dremerbuik / gamekit

Automatically exported from code.google.com/p/gamekit
0 stars 0 forks source link

wxWidgets fails on linux #308

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.cmake-gui ../path/to/src (choose wxwidgets build or something that depends on 
it.)
2.make 

What is the expected output? What do you see instead?
complete build without errors.

What version of the product are you using? On what operating system?
latest trunk

Please provide any additional information below.
output:
<<<<<<<<<
[  0%] Building C object 
wxWidgets-2.9.1/wxCMake/wxSupport/CMakeFiles/wxSupport.dir/__/__/src/expat/lib/x
mlparse.o
/home/salamanderrake/src/gamekit/trunk/wxWidgets-2.9.1/src/expat/lib/xmlparse.c:
30:26: fatal error: expat_config.h: No such file or directory
compilation terminated.
make[2]: *** 
[wxWidgets-2.9.1/wxCMake/wxSupport/CMakeFiles/wxSupport.dir/__/__/src/expat/lib/
xmlparse.o] Error 1
make[1]: *** [wxWidgets-2.9.1/wxCMake/wxSupport/CMakeFiles/wxSupport.dir/all] 
Error 2
make: *** [all] Error 2
>>>>>>>>>>

Original issue reported on code.google.com by salamand...@gmail.com on 6 May 2013 at 1:15

GoogleCodeExporter commented 9 years ago
Try with lasest trunk.

Thanks.

Original comment by harkon...@gmail.com on 7 May 2013 at 2:25

GoogleCodeExporter commented 9 years ago
with just wxWidgets enabled from the default

[  0%] Building C object 
wxWidgets-2.9.1/wxCMake/wxSupport/CMakeFiles/wxSupport.dir/__/__/src/expat/lib/x
mlparse.o
/home/salamanderrake/src/gamekit/trunk/wxWidgets-2.9.1/src/expat/lib/xmlparse.c:
30:26: fatal error: expat_config.h: No such file or directory
compilation terminated.
make[2]: *** 
[wxWidgets-2.9.1/wxCMake/wxSupport/CMakeFiles/wxSupport.dir/__/__/src/expat/lib/
xmlparse.o] Error 1
make[1]: *** [wxWidgets-2.9.1/wxCMake/wxSupport/CMakeFiles/wxSupport.dir/all] 
Error 2
make: *** [all] Error 2

Original comment by salamand...@gmail.com on 7 May 2013 at 3:01

GoogleCodeExporter commented 9 years ago
remove cmake cache & try clean  build. 

Original comment by harkon...@gmail.com on 8 May 2013 at 2:15

GoogleCodeExporter commented 9 years ago
I did it again, I usally do rm -rf * in the build dir, but its the same issue.
I do build outside of the source directory.
[  9%] Building C object 
wxWidgets-2.9.1/wxCMake/wxSupport/CMakeFiles/wxSupport.dir/__/__/src/expat/lib/x
mlparse.o
/home/salamanderrake/src/gamekit/trunk/wxWidgets-2.9.1/src/expat/lib/xmlparse.c:
30:26: fatal error: expat_config.h: No such file or directory
compilation terminated.
make[2]: *** 
[wxWidgets-2.9.1/wxCMake/wxSupport/CMakeFiles/wxSupport.dir/__/__/src/expat/lib/
xmlparse.o] Error 1
make[1]: *** [wxWidgets-2.9.1/wxCMake/wxSupport/CMakeFiles/wxSupport.dir/all] 
Error 2
make: *** [all] Error 2

Original comment by salamand...@gmail.com on 8 May 2013 at 12:13

GoogleCodeExporter commented 9 years ago
It seems gcc version issue. I tested build with gcc 4.4.3.
I added wxAll include directory log to latest trunk.
What is your log? my log is below.
---
Creating Unity build files for target OgreKitCore
...
wxAll_INC: 
/home/harkon/work/src/wxWidgets-2.9.1/include/setup/home/harkon/work/src/wxWidge
ts-2.9.1/include/home/harkon/work/src/wxWidgets-2.9.1/src/zlib/home/harkon/work/
src/wxWidgets-2.9.1/src/jpeg/home/harkon/work/src/wxWidgets-2.9.1/src/png/home/h
arkon/work/src/wxWidgets-2.9.1/src/tiff/libtiff/home/harkon/work/src/wxWidgets-2
.9.1/src/expat/lib/home/harkon/work/src/wxWidgets-2.9.1/src/stc/scintilla/includ
e/home/harkon/work/src/wxWidgets-2.9.1/src/stc/scintilla/src

Creating Unity build files for target AppCppDemo
...

Original comment by harkon...@gmail.com on 13 May 2013 at 12:54

GoogleCodeExporter commented 9 years ago
I don't enable unity builds thought but here is my build log.
_____________________________
make
[  0%] Building C object 
wxWidgets-2.9.1/wxCMake/wxSupport/CMakeFiles/wxSupport.dir/__/__/src/expat/lib/x
mlparse.o
/home/salamanderrake/src/gamekit/trunk/wxWidgets-2.9.1/src/expat/lib/xmlparse.c:
30:26: fatal error: expat_config.h: No such file or directory
compilation terminated.
make[2]: *** 
[wxWidgets-2.9.1/wxCMake/wxSupport/CMakeFiles/wxSupport.dir/__/__/src/expat/lib/
xmlparse.o] Error 1
make[1]: *** [wxWidgets-2.9.1/wxCMake/wxSupport/CMakeFiles/wxSupport.dir/all] 
Error 2
make: *** [all] Error 2
____________________

Original comment by salamand...@gmail.com on 13 May 2013 at 4:06

GoogleCodeExporter commented 9 years ago
gcc --version
gcc (Gentoo 4.6.3 p1.11, pie-0.5.2) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Original comment by salamand...@gmail.com on 13 May 2013 at 4:07

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I made a patch for the missing include, and all of the GCC 4.7+ errors.

Original comment by khy...@gmail.com on 3 Jan 2014 at 5:52

Attachments:

GoogleCodeExporter commented 9 years ago
With that patch it now compiles the wxWidgets part, the build failed in another 
area unrelated to wxWidgets so I haven't tested it with what depends on 
wxWidgets.

Original comment by salamand...@gmail.com on 3 Jan 2014 at 4:33