www.digitalmars.com         C & C++   DMDScript  

c++.wxwindows - dm idde and wxwidgets

reply WxNewbie <WxNewbie_member pathlink.com> writes:
I am new to dm. I have used wxwidgets with mingwstudio.
Is there any way to set some kind of default project settings in the idde? Or do
I have to enter all the settings for a wxwidgets project every time I start one?
What is the best and easiest way starting a new wxwidgets project in the idde?
Any advice would be very welcome.

// WxNewbie
Nov 04 2004
parent reply "W這dzimierz Skiba" <abx abx.art.pl> writes:
WxNewbie <WxNewbie_member pathlink.com> wrote in
news:cme2bl$2dk7$1 digitaldaemon.com: 
 I am new to dm. I have used wxwidgets with mingwstudio.
 Is there any way to set some kind of default project settings in the
 idde? Or do I have to enter all the settings for a wxwidgets project
 every time I start one? What is the best and easiest way starting a
 new wxwidgets project in the idde? Any advice would be very welcome.
Actually... I'm curious if there is anybody who use IDE of DMC with wxWidgets. I have it myself but had no time to try it out yet. Does it have import of makefile of make.exe or smake.exe? If yes, then you can at least generate initial project using bakefiles. I'm open and would be happy to incorporate DMC IDE project files support to bakefiles once I could be pointed out to IDE project file format specification (which IIRC is not available). ABX
Nov 04 2004
next sibling parent chris elliott <biol75 york.ac.uk> writes:
see Arjan's page with instructions : http://www.digitalmars.com/~arjan/

from 2.4.2 and 2.5x the patches are incorporated into the 
wxWidgets/wxWindows download

points 2,3,4 should be ignored


chris
W這dzimierz Skiba wrote:
 WxNewbie <WxNewbie_member pathlink.com> wrote in
 news:cme2bl$2dk7$1 digitaldaemon.com: 
 
I am new to dm. I have used wxwidgets with mingwstudio.
Is there any way to set some kind of default project settings in the
idde? Or do I have to enter all the settings for a wxwidgets project
every time I start one? What is the best and easiest way starting a
new wxwidgets project in the idde? Any advice would be very welcome.
Actually... I'm curious if there is anybody who use IDE of DMC with wxWidgets. I have it myself but had no time to try it out yet. Does it have import of makefile of make.exe or smake.exe? If yes, then you can at least generate initial project using bakefiles. I'm open and would be happy to incorporate DMC IDE project files support to bakefiles once I could be pointed out to IDE project file format specification (which IIRC is not available). ABX
Nov 05 2004
prev sibling next sibling parent chris elliott <biol75 york.ac.uk> writes:
W這dzimierz Skiba wrote:

 
 Actually... I'm curious if there is anybody who use IDE of DMC with 
 wxWidgets. I have it myself but had no time to try it out yet. Does it have 
 import of makefile of make.exe or smake.exe? 
I don't think so. At least some of the files are binary :-( I have built them by hand and the ide does work fine, but the debugger will happily work with files built by commandline chris If yes, then you can at least
 generate initial project using bakefiles. I'm open and would be happy to 
 incorporate DMC IDE project files support to bakefiles once I could be 
 pointed out to IDE project file format specification (which IIRC is not 
 available).
 
 ABX
Nov 05 2004
prev sibling parent reply Jan Knepper <jan smartsoft.us> writes:
Yes... Arjan Knepper and Jan Knepper are using the IDDE with wxWindows / 
wxWidgets...
www.digitalmars.com/~arjan/
www.digitakmars.com/~jan/
Arjan build the project(s) to compile all the libraries with the IDDE.
Now we are porting our MFC class wrapper to wxWidgets so we can use 
wxWidgets and be MFC independent.

Jan



W這dzimierz Skiba wrote:
 WxNewbie <WxNewbie_member pathlink.com> wrote in
 news:cme2bl$2dk7$1 digitaldaemon.com: 
 
I am new to dm. I have used wxwidgets with mingwstudio.
Is there any way to set some kind of default project settings in the
idde? Or do I have to enter all the settings for a wxwidgets project
every time I start one? What is the best and easiest way starting a
new wxwidgets project in the idde? Any advice would be very welcome.
Actually... I'm curious if there is anybody who use IDE of DMC with wxWidgets. I have it myself but had no time to try it out yet. Does it have import of makefile of make.exe or smake.exe? If yes, then you can at least generate initial project using bakefiles. I'm open and would be happy to incorporate DMC IDE project files support to bakefiles once I could be pointed out to IDE project file format specification (which IIRC is not available). ABX
-- ManiaC++ Jan Knepper But as for me and my household, we shall use Mozilla... www.mozilla.org
Nov 05 2004
next sibling parent reply "W這dzimierz Skiba" <abx abx.art.pl> writes:
Jan Knepper <jan smartsoft.us> wrote in 
news:cmfqbi$2k5q$1 digitaldaemon.com:
 Yes... Arjan Knepper and Jan Knepper are using the IDDE with wxWindows / 
 wxWidgets...
 www.digitalmars.com/~arjan/
 www.digitakmars.com/~jan/
Great! I probably saw it in the past but forgot, sorry :-(
 Arjan build the project(s) to compile all the libraries with the IDDE.
Anyway that's still a handmade projects, right? The building of the project file can't be automated and perform without ide available (in other words build into bakefiles)?
 Now we are porting our MFC class wrapper to wxWidgets so we can use 
 wxWidgets and be MFC independent.
Do you use ability of mixing MFC and wxW during porting or do you do complete fresh rewrite ? ABX
Nov 05 2004
parent reply Arjan Knepper <arjan ask.me> writes:
W這dzimierz Skiba wrote:
 Jan Knepper <jan smartsoft.us> wrote in 
 news:cmfqbi$2k5q$1 digitaldaemon.com:
 
Yes... Arjan Knepper and Jan Knepper are using the IDDE with wxWindows / 
wxWidgets...
www.digitalmars.com/~arjan/
www.digitakmars.com/~jan/
Great! I probably saw it in the past but forgot, sorry :-(
Arjan build the project(s) to compile all the libraries with the IDDE.
Anyway that's still a handmade projects, right? The building of the project file can't be automated and perform without ide available (in other words build into bakefiles)?
The .prj file is an ascii text file. You should be able to generate it.
 
 
Now we are porting our MFC class wrapper to wxWidgets so we can use 
wxWidgets and be MFC independent.
Do you use ability of mixing MFC and wxW during porting or do you do complete fresh rewrite ?
No rewrite of the wrapper for wxW Arjan
Nov 05 2004
parent "W這dzimierz Skiba" <abx abx.art.pl> writes:
Arjan Knepper <arjan ask.me> wrote in
news:cmg6j0$12mf$1 digitaldaemon.com: 
 Anyway that's still a handmade projects, right? The building of the
 project file can't be automated and perform without ide available (in
 other words build into bakefiles)?
The .prj file is an ascii text file. You should be able to generate it.
So once I finish PCH issue, I will look into it. Thanks. ABX
Nov 05 2004
prev sibling parent reply wxNewbie <wxNewbie_member pathlink.com> writes:
Thank you all for your help. What I have done is downloading the latest
wxwidgets src. I compiled it using the incuded makefile.dmc. I had no problem
doing this. I also have no trouble compiling the samples using makefiles. What I
can't do is to compile for example the minimal sample using the idde. I have
tried setting the include directories and all but in the end I just get alot of
errors like below. I am missing one or more things. Could you please set me on
the right track. I have not found a lot of info on the dm+wx combination on the
internet. Is it a bad one? Should I stick with mingw for wx? I really like dm.

// wxNewbie :-(


sc minimal.cpp -cpp -mn -o+time -WA -ff -5 -a8 -c -IC:\wx\include\
-IC:\wx\lib\dmc_lib -IC:\wx\lib\dmc_lib\mswd\
-oc:\wx\samples\minimal\minimal.obj 
rcc -32 -IC:\wx\include\ -IC:\wx\lib\dmc_lib -IC:\wx\lib\dmc_lib\mswd\
-oc:\wx\samples\minimal\minimal.res minimal.rc 
link /NOI /DE /PACKF /XN /NT /ENTRY:WinMainCRTStartup /BAS:4194304 /A:512 /RC
:c:\wx\samples\minimal\minimal.RES  minimal.LNK 
Error: C:\WX\SAMPLES\MINIMAL\minimal.OBJ(minimal)  (2203648): Symbol Undefined
?ms_classInfo wxApp  2VwxClassInfo  A (wxClassInfo wxApp::ms_classInfo)
Error: C:\WX\SAMPLES\MINIMAL\minimal.OBJ(minimal)  (128): Symbol Undefined ?

and so on... ending in:

Lines Processed: 182198  Errors: 248  Warnings: 0
Build failed :-(
Nov 05 2004
parent reply Arjan Knepper <arjan ask.me> writes:
wxNewbie wrote:

 
 
 sc minimal.cpp -cpp -mn -o+time -WA -ff -5 -a8 -c -IC:\wx\include\
 -IC:\wx\lib\dmc_lib -IC:\wx\lib\dmc_lib\mswd\
 -oc:\wx\samples\minimal\minimal.obj 
 rcc -32 -IC:\wx\include\ -IC:\wx\lib\dmc_lib -IC:\wx\lib\dmc_lib\mswd\
 -oc:\wx\samples\minimal\minimal.res minimal.rc 
 link /NOI /DE /PACKF /XN /NT /ENTRY:WinMainCRTStartup /BAS:4194304 /A:512 /RC
 :c:\wx\samples\minimal\minimal.RES  minimal.LNK 
 Error: C:\WX\SAMPLES\MINIMAL\minimal.OBJ(minimal)  (2203648): Symbol Undefined
 ?ms_classInfo wxApp  2VwxClassInfo  A (wxClassInfo wxApp::ms_classInfo)
 Error: C:\WX\SAMPLES\MINIMAL\minimal.OBJ(minimal)  (128): Symbol Undefined ?
Seems the wxWidgets *.lib file is missing in the link stage. Did you actually build the lib using the makefile in %WXWIN%/src/msw directory?
 
 and so on... ending in:
 
 Lines Processed: 182198  Errors: 248  Warnings: 0
 Build failed :-(
 
 
Nov 08 2004
parent chris elliott <biol75 york.ac.uk> writes:
Arjan Knepper wrote:
 wxNewbie wrote:
 
 sc minimal.cpp -cpp -mn -o+time -WA -ff -5 -a8 -c -IC:\wx\include\
 -IC:\wx\lib\dmc_lib -IC:\wx\lib\dmc_lib\mswd\
 -oc:\wx\samples\minimal\minimal.obj rcc -32 -IC:\wx\include\ 
 -IC:\wx\lib\dmc_lib -IC:\wx\lib\dmc_lib\mswd\
 -oc:\wx\samples\minimal\minimal.res minimal.rc link /NOI /DE /PACKF 
 /XN /NT /ENTRY:WinMainCRTStartup /BAS:4194304 /A:512 /RC
 :c:\wx\samples\minimal\minimal.RES  minimal.LNK Error: 
 C:\WX\SAMPLES\MINIMAL\minimal.OBJ(minimal)  (2203648): Symbol Undefined
 ?ms_classInfo wxApp  2VwxClassInfo  A (wxClassInfo wxApp::ms_classInfo)
 Error: C:\WX\SAMPLES\MINIMAL\minimal.OBJ(minimal)  (128): Symbol 
 Undefined ?
Seems the wxWidgets *.lib file is missing in the link stage. Did you actually build the lib using the makefile in %WXWIN%/src/msw directory?
under 2.5.3 the library makefile.dmc is in build/msw (not src/msw) and the library is built into lib\dmc_lib so you may need to alter the paths given to the idde to find the libs chris
Nov 08 2004