Author Topic: wxWidgets 2.8.6 can't find setup.h  (Read 5586 times)

Offline Knx

  • Multiple posting newcomer
  • *
  • Posts: 41
wxWidgets 2.8.6 can't find setup.h
« on: November 16, 2007, 05:50:50 am »
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|

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
 

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
Using:
• Code::Blocks SVN        • wxWidGets 2.8.6
• Windows XP SP2          • MinGW Latest  Wish List • Code folding (For wxSmith and more options like NetBeans)

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: wxWidgets 2.8.6 can't find setup.h
« Reply #1 on: November 16, 2007, 07:02:55 am »
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.

Offline Knx

  • Multiple posting newcomer
  • *
  • Posts: 41
Re: wxWidgets 2.8.6 can't find setup.h
« Reply #2 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
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
Using:
• Code::Blocks SVN        • wxWidGets 2.8.6
• Windows XP SP2          • MinGW Latest  Wish List • Code folding (For wxSmith and more options like NetBeans)

Offline kisoft

  • Almost regular
  • **
  • Posts: 194
Re: wxWidgets 2.8.6 can't find setup.h
« Reply #3 on: November 16, 2007, 03:34:36 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
You must add to compiler search path:
Code
$(#WX.lib)\gcc_dll$(WX_CFG)\msw$(WX_SUFFIX)
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!
OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
https://github.com/kisoft/cbmakefilegen

Offline Knx

  • Multiple posting newcomer
  • *
  • Posts: 41
Re: wxWidgets 2.8.6 can't find setup.h
« Reply #4 on: November 16, 2007, 03:47:07 pm »
Code
$(#WX.lib)\gcc_dll$(WX_CFG)\msw$(WX_SUFFIX)
Didn't work.
But setting to
Code
C:\cb\wx\lib\gcc_dll\mswu
worked.


BUT...
new error:
Code
ld.exe||cannot find -lwxmsw_core|
Using:
• Code::Blocks SVN        • wxWidGets 2.8.6
• Windows XP SP2          • MinGW Latest  Wish List • Code folding (For wxSmith and more options like NetBeans)

Offline kisoft

  • Almost regular
  • **
  • Posts: 194
Re: wxWidgets 2.8.6 can't find setup.h
« Reply #5 on: November 16, 2007, 04:17:24 pm »
Code
$(#WX.lib)\gcc_dll$(WX_CFG)\msw$(WX_SUFFIX)
Didn't work.
But setting to
Code
C:\cb\wx\lib\gcc_dll\mswu
worked.

For my example you must set Global variable: "wx" to "C:\cb\wx" analogically variable "cb".
You can do set this variables in C::B, do search menu "Settings/Global variables..."

BUT...
new error:
Code
ld.exe||cannot find -lwxmsw_core|

For example, your project was created with wrong options. With monolitic version wxWidgets linker being searched libwxmsw28u library (you can see "-lmsw28u" vs "-lwxmsw_core"). You can see your wxWidgets library name in C:\cb\wx\lib\gcc_dll directory. I have "libwxmsw28u.a" file for monolitic type (used for build C::B).
I think you created your project before wxWidgets building or wrongly answered on wizard questions.

Good luck!
OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
https://github.com/kisoft/cbmakefilegen

Offline Knx

  • Multiple posting newcomer
  • *
  • Posts: 41
Re: wxWidgets 2.8.6 can't find setup.h
« Reply #6 on: November 16, 2007, 07:44:38 pm »
I've clean wx, and rebuild.
Start a new project, but this time it says that can't find Release configuration $(#wx) is the same as before

Code
mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=release clean 
mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=release
Using:
• Code::Blocks SVN        • wxWidGets 2.8.6
• Windows XP SP2          • MinGW Latest  Wish List • Code folding (For wxSmith and more options like NetBeans)