User forums > Help
problems with the compiled wxwidgets and code blocks.
code2d:
I finally got around to compiling wxwidgets but I'm still having problems.
I'm running on Windows ME (basically 98) and using Wxwidgets 2.8.3 with the MinGW compiler with a 2 month old ANSI build of code blocks that I downloaded from seth.
This is the way I compiled Wxwidgets.
1.Downloaded Wxwidgets zip and extracted to the c drive so wxwidgets is in the C:\wxWidgets-2.8.3 directory.
2.open a cmd prompt, and navigate to the folder build/msw inside the wxWidgets folder
3.used the following commands in command prompt
--- Quote --- set path=c:\mingw\bin;c:\mingw\mingw32\bin
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 clean
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0
--- End quote ---
The last command was about 1 hour long.
4.Opened code blocks and went to file>new>project>wxWidgets project
5.Clicked next and selected 2.8.x>typed project title>next twice>selected C:\wxWidgets-2.8.3
for wxwidgets location>clicked next and left the stock compiler gnu gcc compiler>clicked use wxwidgets dll and wxwidgets is built as a monolithic library>I select no additional libraries
6.One warning come up "a matching debug configuration cannot be found in the wxwidgets directoy you specified this means that debug target of your project will not build"
7.When I build I get the following errors
--- Quote ----------------- Build: Debug in bla ---------------
Compiling: blaMain.cpp
In file included from C:/wxWidgets-2.8.3/include/wx/defs.h:21,
from C:/wxWidgets-2.8.3/include/wx/wxprec.h:13,
from C:\My Documents\projects\bla\blaApp.h:13,
from C:\My Documents\projects\bla\blaMain.h:13,
from C:\My Documents\projects\bla\blaMain.cpp:18:
C:/wxWidgets-2.8.3/include/wx/platform.h:196:22: wx/setup.h: No such file or directory
In file included from C:/wxWidgets-2.8.3/include/wx/platform.h:279,
from C:/wxWidgets-2.8.3/include/wx/defs.h:21,
from C:/wxWidgets-2.8.3/include/wx/wxprec.h:13,
from C:\My Documents\projects\bla\blaApp.h:13,
from C:\My Documents\projects\bla\blaMain.h:13,
from C:\My Documents\projects\bla\blaMain.cpp:18:
C:/wxWidgets-2.8.3/include/wx/chkconf.h:98:9: #error "wxUSE_DYNLIB_CLASS must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:106:9: #error "wxUSE_EXCEPTIONS must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:114:9: #error "wxUSE_FILESYSTEM must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:122:9: #error "wxUSE_FS_ARCHIVE must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:135:9: #error "wxUSE_DYNAMIC_LOADER must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:143:9: #error "wxUSE_LOG must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:151:9: #error "wxUSE_LONGLONG must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:159:9: #error "wxUSE_MIMETYPE must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:175:9: #error "wxUSE_PRINTF_POS_PARAMS must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:183:9: #error "wxUSE_PROTOCOL must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:225:9: #error "wxUSE_REGEX must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:233:9: #error "wxUSE_STDPATHS must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:241:9: #error "wxUSE_XML must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:249:9: #error "wxUSE_SOCKETS must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:257:9: #error "wxUSE_STREAMS must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:265:9: #error "wxUSE_STOPWATCH must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:273:9: #error "wxUSE_TEXTBUFFER must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:281:9: #error "wxUSE_TEXTFILE must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:297:9: #error "wxUSE_URL must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:305:9: #error "wxUSE_VARIANT must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:325:9: #error "wxUSE_ABOUTDLG must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:333:9: #error "wxUSE_ACCEL must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:341:9: #error "wxUSE_ANIMATIONCTRL must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:349:9: #error "wxUSE_BITMAPCOMBOBOX must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:357:9: #error "wxUSE_BMPBUTTON must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:365:9: #error "wxUSE_BUTTON must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:373:9: #error "wxUSE_CALENDARCTRL must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:381:9: #error "wxUSE_CARET must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:389:9: #error "wxUSE_CHECKBOX must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:405:9: #error "wxUSE_CHOICE must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:413:9: #error "wxUSE_CHOICEBOOK must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:421:9: #error "wxUSE_CHOICEDLG must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:429:9: #error "wxUSE_CLIPBOARD must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:437:9: #error "wxUSE_COLLPANE must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:445:9: #error "wxUSE_COLOURDLG must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:453:9: #error "wxUSE_COLOURPICKERCTRL must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:461:9: #error "wxUSE_COMBOBOX must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:469:9: #error "wxUSE_COMBOCTRL must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:477:9: #error "wxUSE_DATAOBJ must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:485:9: #error "wxUSE_DATAVIEWCTRL must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:493:9: #error "wxUSE_DATEPICKCTRL must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:501:9: #error "wxUSE_DIRPICKERCTRL must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:509:9: #error "wxUSE_DISPLAY must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:517:9: #error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:525:9: #error "wxUSE_FILEDLG must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:533:9: #error "wxUSE_FILEPICKERCTRL must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:541:9: #error "wxUSE_FONTDLG must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:549:9: #error "wxUSE_FONTMAP must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:557:9: #error "wxUSE_FONTPICKERCTRL must be defined."
Process terminated with status 1 (0 minutes, 24 seconds)
50 errors, 0 warnings
--- End quote ---
Any ideas...
thanks for the help :?
edit: my svn is 3607
stahta01:
Try building the release target NOT the debug target. To build the debug target you have to compiled wxWidgets for debug build.
--- Quote ----------------- Build: Debug in bla ---------------
--- End quote ---
Tim S
code2d:
so go through the same steps again but use "BUILD=debug" instead of "BUILD=release"?
stahta01:
--- Quote from: code2d on April 30, 2007, 01:13:56 am ---so go through the same steps again but use "BUILD=debug" instead of "BUILD=release"?
--- End quote ---
Yeah, you can do that. But, if you just want to build the release version set it to "release" in CB "Build Target" and just build the release.
Tim S
code2d:
yaaay it compiles. Thanks for the great help!!!
I do have a minor thing I wish I could change. the program's (exe) will not run unless "mingwm10.dll" and "wxmsw28d_gcc_custom.dll" are in the same folder. I does not matter because I have "mingwm10.dll" for code blocks and I just went and got "wxmsw28d_gcc_custom.dll" for lib in wxwidgets. Is there a way I could could rename these files??? This would be handy but If I cant I'm still very much happy with what I have
Navigation
[0] Message Index
[#] Next page
Go to full version