Code::Blocks Forums

User forums => Help => Topic started by: dkaip on July 10, 2013, 08:32:35 am

Title: fatal error: wx/setup.h: No such file or directory
Post by: dkaip 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?
Title: Re: fatal error: wx/setup.h: No such file or directory
Post by: ollydbg 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.
Title: Re: fatal error: wx/setup.h: No such file or directory
Post by: dkaip 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?



Title: Re: fatal error: wx/setup.h: No such file or directory
Post by: stahta01 on July 10, 2013, 02:57:25 pm
Next time, when you have build errors, please full log.

http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F)

Tim S.
Title: Re: fatal error: wx/setup.h: No such file or directory
Post by: dkaip 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)
 




Title: Re: fatal error: wx/setup.h: No such file or directory
Post by: stahta01 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 (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.