User forums > Help

fatal error: wx/setup.h: No such file or directory

(1/2) > >>

dkaip:
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
--- End quote ---

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

--- End code ---


What i must do?

ollydbg:
Interesting:

--- Quote ---C:\wxWidgets-2.9.4\lib\vc_dll\mswud
--- End quote ---
Why "vc_dll"???? visuall c++ dll?

Next time, when you have build errors, please full log.

dkaip:
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
--- End code ---

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?



stahta01:

--- Quote from: ollydbg on July 10, 2013, 10:52:33 am ---Next time, when you have build errors, please full log.

--- End quote ---

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

Tim S.

dkaip:
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)
 




Navigation

[0] Message Index

[#] Next page

Go to full version