User forums > Using Code::Blocks

wxWidgets 2.8.6 can't find setup.h

(1/2) > >>

Knx:
I have downloaded and compiled wxWidgets 2.8.6
http://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_(MSW)

I made a project with wxsmith...
I didn't change that label and 2 buttons...

I tried to compile and I got this error:

--- Code: ---C:\cb\wx\include\wx\platform.h|196|wx/setup.h: No such file or directory|
--- End code ---

I tried to copy C:\cb\wx\include\wx\msw\setup.h to C:\cb\wx\include\wx\

Then I tried to compile again and...

--- Code: ----------------- Build: Release in Test ---------------

Compiling: TestMain.cpp
Compiling: resource.rc
Compiling: TestApp.cpp
Linking executable: bin\Release\Test.exe
mingw32-g++.exe: bin\Release\Test.exe: No such file or directory
Process terminated with status 1 (0 minutes, 4 seconds)
0 errors, 0 warnings
 
--- End code ---

No errors but no exe's...

What's wrong?


--- Code: ---$(#wx)
Base: C:\cb\wx
Include: C:\cb\wx\include
Lib: C:\cb\wx\lib

--- End code ---

Jenna:
Normally you do not need to set the "include" and the "lib" part in the "wx" global variable. "base" is enough, if it points to the basedirectory of wxWidgets (the one with "arts", "build" ... in it).

Can you please post the full command-line from compiler ?

To make it visible, go to "Settings -> Compiler and Debugger ... -> Other Settings" (that's the rightmost tab).
Choose "Full Command Line" from "Compiler Logging:" and start a rebuild.

Knx:

--- Code: ----------------- Build: Release in Test ---------------

mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__  -Wall  -O2    -IC:\cb\wx\include -IC:\cb\wx\contrib\include -I\msw  -c C:\cb\project\Test\TestMain.cpp -o obj\Release\TestMain.o
In file included from C:/cb/wx/include/wx/defs.h:21,
                 from C:/cb/wx/include/wx/wx.h:15,
                 from C:\cb\project\Test\TestMain.h:14,
                 from C:\cb\project\Test\TestMain.cpp:18:
C:/cb/wx/include/wx/platform.h:196:22: wx/setup.h: No such file or directory
In file included from C:/cb/wx/include/wx/platform.h:279,
                 from C:/cb/wx/include/wx/defs.h:21,
                 from C:/cb/wx/include/wx/wx.h:15,
                 from C:\cb\project\Test\TestMain.h:14,
                 from C:\cb\project\Test\TestMain.cpp:18:
C:/cb/wx/include/wx/chkconf.h:103:9: #error "wxUSE_DYNLIB_CLASS must be defined."
C:/cb/wx/include/wx/chkconf.h:111:9: #error "wxUSE_EXCEPTIONS must be defined."
C:/cb/wx/include/wx/chkconf.h:119:9: #error "wxUSE_FILESYSTEM must be defined."
C:/cb/wx/include/wx/chkconf.h:127:9: #error "wxUSE_FS_ARCHIVE must be defined."
C:/cb/wx/include/wx/chkconf.h:140:9: #error "wxUSE_DYNAMIC_LOADER must be defined."
C:/cb/wx/include/wx/chkconf.h:148:9: #error "wxUSE_LOG must be defined."
C:/cb/wx/include/wx/chkconf.h:156:9: #error "wxUSE_LONGLONG must be defined."
C:/cb/wx/include/wx/chkconf.h:164:9: #error "wxUSE_MIMETYPE must be defined."
C:/cb/wx/include/wx/chkconf.h:180:9: #error "wxUSE_PRINTF_POS_PARAMS must be defined."
C:/cb/wx/include/wx/chkconf.h:188:9: #error "wxUSE_PROTOCOL must be defined."
C:/cb/wx/include/wx/chkconf.h:230:9: #error "wxUSE_REGEX must be defined."
C:/cb/wx/include/wx/chkconf.h:238:9: #error "wxUSE_STDPATHS must be defined."
C:/cb/wx/include/wx/chkconf.h:246:9: #error "wxUSE_XML must be defined."
C:/cb/wx/include/wx/chkconf.h:254:9: #error "wxUSE_SOCKETS must be defined."
C:/cb/wx/include/wx/chkconf.h:262:9: #error "wxUSE_STREAMS must be defined."
C:/cb/wx/include/wx/chkconf.h:270:9: #error "wxUSE_STOPWATCH must be defined."
C:/cb/wx/include/wx/chkconf.h:278:9: #error "wxUSE_TEXTBUFFER must be defined."
C:/cb/wx/include/wx/chkconf.h:286:9: #error "wxUSE_TEXTFILE must be defined."
C:/cb/wx/include/wx/chkconf.h:302:9: #error "wxUSE_URL must be defined."
C:/cb/wx/include/wx/chkconf.h:310:9: #error "wxUSE_VARIANT must be defined."
C:/cb/wx/include/wx/chkconf.h:330:9: #error "wxUSE_ABOUTDLG must be defined."
C:/cb/wx/include/wx/chkconf.h:338:9: #error "wxUSE_ACCEL must be defined."
C:/cb/wx/include/wx/chkconf.h:346:9: #error "wxUSE_ANIMATIONCTRL must be defined."
C:/cb/wx/include/wx/chkconf.h:354:9: #error "wxUSE_BITMAPCOMBOBOX must be defined."
C:/cb/wx/include/wx/chkconf.h:362:9: #error "wxUSE_BMPBUTTON must be defined."
C:/cb/wx/include/wx/chkconf.h:370:9: #error "wxUSE_BUTTON must be defined."
C:/cb/wx/include/wx/chkconf.h:378:9: #error "wxUSE_CALENDARCTRL must be defined."
C:/cb/wx/include/wx/chkconf.h:386:9: #error "wxUSE_CARET must be defined."
C:/cb/wx/include/wx/chkconf.h:394:9: #error "wxUSE_CHECKBOX must be defined."
C:/cb/wx/include/wx/chkconf.h:410:9: #error "wxUSE_CHOICE must be defined."
C:/cb/wx/include/wx/chkconf.h:418:9: #error "wxUSE_CHOICEBOOK must be defined."
C:/cb/wx/include/wx/chkconf.h:426:9: #error "wxUSE_CHOICEDLG must be defined."
C:/cb/wx/include/wx/chkconf.h:434:9: #error "wxUSE_CLIPBOARD must be defined."
C:/cb/wx/include/wx/chkconf.h:442:9: #error "wxUSE_COLLPANE must be defined."
C:/cb/wx/include/wx/chkconf.h:450:9: #error "wxUSE_COLOURDLG must be defined."
C:/cb/wx/include/wx/chkconf.h:458:9: #error "wxUSE_COLOURPICKERCTRL must be defined."
C:/cb/wx/include/wx/chkconf.h:466:9: #error "wxUSE_COMBOBOX must be defined."
C:/cb/wx/include/wx/chkconf.h:474:9: #error "wxUSE_COMBOCTRL must be defined."
C:/cb/wx/include/wx/chkconf.h:482:9: #error "wxUSE_DATAOBJ must be defined."
C:/cb/wx/include/wx/chkconf.h:490:9: #error "wxUSE_DATAVIEWCTRL must be defined."
C:/cb/wx/include/wx/chkconf.h:498:9: #error "wxUSE_DATEPICKCTRL must be defined."
C:/cb/wx/include/wx/chkconf.h:506:9: #error "wxUSE_DIRPICKERCTRL must be defined."
C:/cb/wx/include/wx/chkconf.h:514:9: #error "wxUSE_DISPLAY must be defined."
C:/cb/wx/include/wx/chkconf.h:522:9: #error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
C:/cb/wx/include/wx/chkconf.h:530:9: #error "wxUSE_FILEDLG must be defined."
C:/cb/wx/include/wx/chkconf.h:538:9: #error "wxUSE_FILEPICKERCTRL must be defined."
C:/cb/wx/include/wx/chkconf.h:546:9: #error "wxUSE_FONTDLG must be defined."
C:/cb/wx/include/wx/chkconf.h:554:9: #error "wxUSE_FONTMAP must be defined."
C:/cb/wx/include/wx/chkconf.h:562:9: #error "wxUSE_FONTPICKERCTRL must be defined."
Process terminated with status 1 (0 minutes, 1 seconds)
50 errors, 0 warnings

--- End code ---

kisoft:

--- Quote from: Knx on November 16, 2007, 03:24:03 pm ---
--- Code: ----------------- Build: Release in Test ---------------

mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__  -Wall  -O2    -IC:\cb\wx\include -IC:\cb\wx\contrib\include -I\msw  -c C:\cb\project\Test\TestMain.cpp -o obj\Release\TestMain.o

--- End code ---

--- End quote ---
You must add to compiler search path:

--- Code: ---$(#WX.lib)\gcc_dll$(WX_CFG)\msw$(WX_SUFFIX)

--- End code ---
This path content subdirectory wx and have file setup.h

Analogically path you must add to linker search path

Search "Project build options" dialog. Page "Search directories".

For example, you can open Build options for Codeblocks.cbp project.

Good luck!

Knx:

--- Code: ---$(#WX.lib)\gcc_dll$(WX_CFG)\msw$(WX_SUFFIX)
--- End code ---
Didn't work.
But setting to

--- Code: ---C:\cb\wx\lib\gcc_dll\mswu
--- End code ---
worked.


BUT...
new error:

--- Code: ---ld.exe||cannot find -lwxmsw_core|
--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version