Author

Topic: Release fails to build. (Read 3497 times)

donator
Activity: 826
Merit: 1039
November 25, 2010, 12:38:34 PM
#7
The problem is that there is no such thing as setup.h below /usr/local/include/wx-*.

For what it's worth, on Fedora the makefile puts setup.h in /usr/local/lib, not in /usr/local/include:

Code:
/usr/local/lib/wx/include/gtk2-unicode-debug-static-2.9/wx/setup.h
/usr/local/lib/wx/include/gtk2-unicode-static-2.9/wx/setup.h
hero member
Activity: 812
Merit: 1022
No Maps for These Territories
November 25, 2010, 12:31:22 PM
#6
setup.h is in another location, in my case I installed wx in /opt/wx, and they were here:
Quote
INCLUDEPATHS= \
 -I"/opt/wx/include/wx-2.9" \
 -I"/opt/wx/lib/wx/include/gtk2-unicode-2.9"
For you it is probably:
Quote
INCLUDEPATHS= \
 -I"/usr/local/include/wx-2.9" \
 -I"/usr/local/lib/wx/include/gtk2-unicode-2.9"
newbie
Activity: 56
Merit: 0
November 25, 2010, 12:29:08 PM
#5
You may have to edit makefile.unix to fix the include paths for wx. They are hard-coded and probably wrong for your system.
That should have given a different error message. The problem is that there is no such thing as setup.h below /usr/local/include/wx-*.
newbie
Activity: 43
Merit: 0
November 25, 2010, 12:25:06 AM
#4
You may have to edit makefile.unix to fix the include paths for wx. They are hard-coded and probably wrong for your system.
newbie
Activity: 56
Merit: 0
November 24, 2010, 11:14:08 PM
#3
On Fedora Linux I get that error if I build wxWidgets 2.9.1, but the error goes away if I build wxWidgets 2.9.0 which is available here:
http://biolpc22.york.ac.uk/pub/2.9.0/

I don't know whether that will solve the problem on Ubuntu also.
I got my 2.9.0 now from wxwidgets.org, removed the old installation in the correct way, but I still get the same error. From my point of view it is simply not correct C++ code in combination with the makefile.unix for Ubuntu, and I don't think Ubuntu is doing anything non-standard, that is outside of the Linux Standard Base.
donator
Activity: 826
Merit: 1039
November 24, 2010, 07:48:32 AM
#2
On Fedora Linux I get that error if I build wxWidgets 2.9.1, but the error goes away if I build wxWidgets 2.9.0 which is available here:
http://biolpc22.york.ac.uk/pub/2.9.0/

I don't know whether that will solve the problem on Ubuntu also.
newbie
Activity: 56
Merit: 0
November 23, 2010, 01:05:03 PM
#1
I downloaded both the release as the svn version, but they both have the same problem:
 
I installed wx-2.9 and I verified that I can build and run the demos that come with wx. I have also not been able to find a setup.h file anywhere, so why it refers to that is a mystery to me.

Platform: Ubuntu 10.10 x86-64

make -f makefile.unix
g++ -c -O2 -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -D__WXGTK__ -DNOPCH -DFOURWAYSSE2 -DUSE_SSL -I"/usr/local/include/wx-2.9" -I"/usr/local/lib/wx/include/gtk2-unicode-debug-static-2.9" -DGUI -o obj/util.o util.cpp
In file included from /usr/local/include/wx-2.9/wx/defs.h:26,
                 from /usr/local/include/wx-2.9/wx/wx.h:15,
                 from headers.h:30,
                 from util.cpp:5:
/usr/local/include/wx-2.9/wx/platform.h:174: fatal error: wx/setup.h: No such file or directory
compilation terminated.
make: *** [obj/util.o] Error 1


Can you fix the release?
Jump to: