Author Topic: fatal error: wx/setup.h: No such file or directory  (Read 21788 times)

Offline dkaip

  • Multiple posting newcomer
  • *
  • Posts: 42
fatal error: wx/setup.h: No such file or directory
« on: July 10, 2013, 08:32:35 am »
Making libs with mingw32-make and makefile.gcc in windows XP, then with wxsqlite3 extracting, premake4 using for making C::B projects, then open and run, C::B says

Quote
C:\wxWidgets-2.9.4\include\wx\platform.h|154|fatal error: wx/setup.h: No such file or directory

In search dir's  properties it lookin for wx/setup.h  in

C:\wxWidgets-2.9.4\lib\vc_dll\mswud
C:\wxWidgets-2.9.4\include

But there is no such dirs.

Bellow building way.

Code
cd C:\wxWidgets-2.9.4\build\msw\
mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=release clean
mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=debug clean

mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=release
mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=debug
mingw32-make -f makefile.gcc SHARED=0 UNICODE=1 BUILD=release
mingw32-make -f makefile.gcc SHARED=0 UNICODE=1 BUILD=debug

mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 MONOLITHIC=1 BUILD=release
mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 MONOLITHIC=1 BUILD=debug
mingw32-make -f makefile.gcc SHARED=0 UNICODE=1 MONOLITHIC=1 BUILD=release
mingw32-make -f makefile.gcc SHARED=0 UNICODE=1 MONOLITHIC=1 BUILD=debug


What i must do?

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5915
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: fatal error: wx/setup.h: No such file or directory
« Reply #1 on: July 10, 2013, 10:52:33 am »
Interesting:
Quote
C:\wxWidgets-2.9.4\lib\vc_dll\mswud
Why "vc_dll"???? visuall c++ dll?

Next time, when you have build errors, please full log.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline dkaip

  • Multiple posting newcomer
  • *
  • Posts: 42
Re: fatal error: wx/setup.h: No such file or directory
« Reply #2 on: July 10, 2013, 02:36:20 pm »
I have no errors compiling wxWidgets.

When with premake4 making C::B project at wxSQLite3 with code ...

Code
cd C:\wxsqlite3-3.0.3\build29
mingw32-make -f makefile.gcc
cd C:\wxsqlite3-3.0.3
premake4 --cc=gcc --os=windows  --platform=x32  --version=2.9 --file=premake4.lua clean
premake4 --cc=gcc --os=windows  --platform=x32  --version=2.9 --file=premake4.lua codeblocks
cd C:\wxsqlite3-3.0.3\premake
premake4 --cc=gcc --os=windows  --platform=x32  --version=2.9 --file=wxwidgets.lua clean
premake4 --cc=gcc --os=windows  --platform=x32  --version=2.9 --file=wxwidgets.lua codeblocks

and then opening C::B projects at

C:\wxsqlite3-3.0.3\build\wxsqlite3lib\wxsqlite3lib.cbp
C:\wxsqlite3-3.0.3\build\wxsqlite3dll\wxsqlite3dll.cbp
C:\wxsqlite3-3.0.3\build\minimal\minimal.cbp

all projects demand wx/setup.h  file on bellow dirs
$(WXWIN)\lib\vc_dll\mswud
$(WXWIN)\include

What must do?




Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline dkaip

  • Multiple posting newcomer
  • *
  • Posts: 42
Re: fatal error: wx/setup.h: No such file or directory
« Reply #4 on: July 10, 2013, 03:51:29 pm »
log


---------------------------------------------
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Owner>cd C:\wxsqlite3-3.0.3\premake

C:\wxsqlite3-3.0.3\premake>premake4 --cc=gcc --os=windows  --platform=x32  --ver
sion=2.9 --file=wxwidgets.lua codeblocks
premake4 (Premake Build Script Generator) 4.4-beta4

C:\wxsqlite3-3.0.3\premake>


Opening C:\wxsqlite3-3.0.3\build\wxsqlite3dll\wxsqlite3dll.cbp  ...
Log
---------------------------------------------
-------------- Clean: Debug in wxsqlite3lib (compiler: GNU GCC Compiler)---------------

Cleaned "wxsqlite3lib - Debug"

-------------- Build: Debug in wxsqlite3lib (compiler: GNU GCC Compiler)---------------

mingw32-g++.exe  -g -DWIN32 -D_WINDOWS -D_LIB -DWXMAKINGLIB_WXSQLITE3 -DwxUSE_DYNAMIC_SQLITE3_LOAD=0 -DWXSQLITE3_HAVE_METADATA=1 -DWXSQLITE3_HAVE_CODEC=1 -DWXSQLITE3_HAVE_LOAD_EXTENSION=0 -D_CRT_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DDEBUG -D_DEBUG -D_UNICODE -D__WXDEBUG__ -DWXUSINGDLL -D__WXMSW__    -I..\..\include -I..\..\sqlite3\include -IC:\wxWidgets-2.9.4\\lib\vc_dll\mswud -IC:\wxWidgets-2.9.4\\include  -c C:\wxsqlite3-3.0.3\src\wxsqlite3.cpp -o obj\Debug\src\wxsqlite3.o
In file included from C:\wxWidgets-2.9.4\\include/wx/defs.h:28:0,
                 from C:\wxWidgets-2.9.4\\include/wx/wxprec.h:13,
                 from C:\wxsqlite3-3.0.3\src\wxsqlite3.cpp:18:
C:\wxWidgets-2.9.4\\include/wx/platform.h:154:22: fatal error: wx/setup.h: No such file or directory
compilation terminated.
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings (0 minutes, 0 seconds)
 





Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: fatal error: wx/setup.h: No such file or directory
« Reply #5 on: July 10, 2013, 04:26:25 pm »
@dkaip:

Please create a thread on wxWidgets Forum; because this is off topic for this site.
Please link to the created thread.
I will try to help you on that site.

"Compiler / Linking / IDE Related" This seems to be a valid group for the post,
http://forums.wxwidgets.org/viewforum.php?f=19&sid=16ec0c049b65ed4eb6b2fce7f69c0b3e

The source of the problem is in "premake/wxwidgets.lua" which is part of wxsqlite.
WindowsCompiler needs to be set to "gcc" because it defaults to "vc".

Edit2: I would suggest editing wxsqlite's "premake4.lua" to set the value of WindowsCompiler; since it looks like you already edited that to do wx 2.9.

Tim S.
« Last Edit: July 10, 2013, 04:46:00 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org