User forums > Help
Please help me compile with wxWidgets support!
Kixdemp:
Hello everyone!
I'm trying to follow this tutorial. I got stuck at 5.1 Setting up paths.
I opened the CodeBlocks.cbp file (the one that comes here is the one it's talking about, right?), but it didn't ask me anything about a global variable... So I tried compiling it, but it gives me these errors:
--- Code: ---Project : Code::Blocks
Compiler : GNU GCC Compiler (called directly)
Directory : C:\Program Files\CodeBlocks\src\
--------------------------------------------------------------------------------
Switching to target: tinyXML
Compiling: sdk\tinyxml\tinyxml.cpp
In file included from sdk\tinyxml\/tinystr.h:26,
from sdk\tinyxml\/tinyxml.h:60,
from sdk\tinyxml\tinyxml.cpp:26:
sdk\tinyxml\/../settings.h:64:23: wx/string.h: No such file or directory
sdk\tinyxml\/../settings.h:65:25: wx/dynarray.h: No such file or directory
sdk\tinyxml\/../settings.h:66:20: missing binary operator before token "("
Process terminated with status 1 (0 minutes, 22 seconds)
3 errors, 0 warnings
--- End code ---
Thanks in advance!
[edit] Update: I figured out what it was, I had to set the $(wx) variable to wxWidgets dir. But then it complained about wxprec.h not existing, so I added C:\GCC\wxWidgets\include and C:\GCC\wxWidgets\lib to compiler/linker dirs... But now I get all this crap:
--- Code: ---Project : wxWidgets application
Compiler : GNU GCC Compiler (called directly)
Directory : C:\Coding\Ascii Strike\Map Designer\
--------------------------------------------------------------------------------
Switching to target: default
Precompiling header: wx_pch.h
In file included from C:/GCC/wxWidgets/include/wx/defs.h:21,
from C:/GCC/wxWidgets/include/wx/wxprec.h:13,
from ./wx_pch.h:9,
from <command line>:6:
C:/GCC/wxWidgets/include/wx/platform.h:190:22: wx/setup.h: No such file or directory
In file included from C:/GCC/wxWidgets/include/wx/platform.h:271,
from C:/GCC/wxWidgets/include/wx/defs.h:21,
from C:/GCC/wxWidgets/include/wx/wxprec.h:13,
from ./wx_pch.h:9,
from <command line>:6:
C:/GCC/wxWidgets/include/wx/chkconf.h:84:9: #error "wxUSE_DYNLIB_CLASS must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:92:9: #error "wxUSE_EXCEPTIONS must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:100:9: #error "wxUSE_FILESYSTEM must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:113:9: #error "wxUSE_DYNAMIC_LOADER must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:121:9: #error "wxUSE_LOG must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:129:9: #error "wxUSE_LONGLONG must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:137:9: #error "wxUSE_MIMETYPE must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:153:9: #error "wxUSE_PROTOCOL must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:195:9: #error "wxUSE_REGEX must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:203:9: #error "wxUSE_STDPATHS must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:211:9: #error "wxUSE_XML must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:219:9: #error "wxUSE_SOCKETS must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:227:9: #error "wxUSE_STREAMS must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:235:9: #error "wxUSE_STOPWATCH must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:243:9: #error "wxUSE_TEXTBUFFER must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:251:9: #error "wxUSE_TEXTFILE must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:267:9: #error "wxUSE_URL must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:285:9: #error "wxUSE_ACCEL must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:293:9: #error "wxUSE_BMPBUTTON must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:301:9: #error "wxUSE_BUTTON must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:309:9: #error "wxUSE_CALENDARCTRL must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:317:9: #error "wxUSE_CARET must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:325:9: #error "wxUSE_CHECKBOX must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:341:9: #error "wxUSE_CHOICE must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:349:9: #error "wxUSE_CHOICEBOOK must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:357:9: #error "wxUSE_CHOICEDLG must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:365:9: #error "wxUSE_CLIPBOARD must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:373:9: #error "wxUSE_COLOURDLG must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:381:9: #error "wxUSE_COMBOBOX must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:389:9: #error "wxUSE_DATAOBJ must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:397:9: #error "wxUSE_DATEPICKCTRL must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:405:9: #error "wxUSE_DISPLAY must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:413:9: #error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:421:9: #error "wxUSE_FILEDLG must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:429:9: #error "wxUSE_FONTDLG must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:437:9: #error "wxUSE_FONTMAP must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:445:9: #error "wxUSE_GAUGE must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:453:9: #error "wxUSE_GRID must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:461:9: #error "wxUSE_HELP must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:469:9: #error "wxUSE_HTML must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:477:9: #error "wxUSE_XRC must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:498:9: #error "wxUSE_ICO_CUR must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:506:9: #error "wxUSE_IFF must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:514:9: #error "wxUSE_IMAGLIST must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:522:9: #error "wxUSE_JOYSTICK must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:530:9: #error "wxUSE_LISTBOOK must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:538:9: #error "wxUSE_LISTBOX must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:546:9: #error "wxUSE_LISTCTRL must be defined."
C:/GCC/wxWidgets/include/wx/chkconf.h:554:9: #error "wxUSE_LOGGUI must be defined."
Process terminated with status 1 (0 minutes, 14 seconds)
52 errors, 0 warnings
--- End code ---
[/edit]
TDragon:
First, those instructions assume you are using one of the Nightly Builds, which are generally more stable and much more feature-rich than RC2. RC2 does not support global variables, among other things.
Second, if you are already using a nightly, then the WX global variable has already been defined somehow and you'll need to change it to the correct value.
Kixdemp:
Oops - I edited that first post without reading yours... Sorry 'bout that! But thanks, I'll try and use a nightly build.
[edit]
--- Quote ---Too many clients for /codeblocks/wxmsw26u_gcc_cb_wx2.6.3p2.7z
--- End quote ---
Can anyone email me the file? (sulfurik15@gmail.com) Thanks!
[/edit]
sethjackson:
--- Quote from: Kixdemp on July 08, 2006, 02:22:35 am ---Oops - I edited that first post without reading yours... Sorry 'bout that! But thanks, I'll try and use a nightly build.
[edit]
--- Quote ---Too many clients for /codeblocks/wxmsw26u_gcc_cb_wx2.6.3p2.7z
--- End quote ---
Can anyone email me the file? (sulfurik15@gmail.com) Thanks!
[/edit]
--- End quote ---
This is even better I think. :)
http://download2.berlios.de/codeblocks/wxmsw26u_gcc_cb_wx2.6.3p2.7z
Kixdemp:
Damnit... Sorry to bother you guys too much, but I accidentally got the message about global variables out and I can't get it back there. How can I do it manually? Creating a $(wx) variable in Settings->Global variables doesn't work... Thanks!
[edit]
(Sorry for editing so much...)
OK, I changed the variable to $(#WX) and it changed itself to set_wx... Yay! Now I added include/lib dirs in Settings->Compiler and debugger and I'm getting the same errors I got in the 2nd code block in my 1st post... Thanks!
[edit]
Navigation
[0] Message Index
[#] Next page
Go to full version