Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Cross-Platform Development => Topic started by: Fractux on July 19, 2005, 11:18:00 am
-
I'm having problems trying to compile wxFred2 in Fedora Core 4.
I get missing file errors:
[...]
In file included from /usr/include/wx/defs.h:23,
from /usr/include/wx/wxprec.h:13,
from wxfred2/wxfred2.cpp:50:
/usr/include/wx/platform.h:85:22: error: wx/setup.h: No such file or directory
In file included from /usr/include/wx/platform.h:88,
from /usr/include/wx/defs.h:23,
from /usr/include/wx/wxprec.h:13,
from wxfred2/wxfred2.cpp:50:
/usr/include/wx/chkconf.h:47:9: error: #error "wxUSE_DYNLIB_CLASS must be defined."
/usr/include/wx/chkconf.h:55:9: error: #error "wxUSE_FILESYSTEM must be defined."
/usr/include/wx/chkconf.h:68:9: error: #error "wxUSE_DYNAMIC_LOADER must be defined."
[...]
Anything I need to setup first before attempting to compile fred2?
Cheers!
-
You might have to recompile wxWidgets first. It sounds like it's a configuration problem. This link should help:
http://www.hard-light.net/forums/index.php/topic,32815.0.html
But wxFred2 isn't even close to being finished yet... all it is currently is a GUI with a bunch of menus and dialogs. ;)
-
Originally posted by Fractux
/usr/include/wx/platform.h:85:22: error: wx/setup.h: No such file or directory
setup.h is kept outside of the include directories for some reason. Make sure that you have wxGTK2-devel installed and make sure that "wxgtk2-2.4-config --cflags" lists at least "-I/usr/lib/wx/include/gtk2-2.4" (could be lib64 if you have the x86_64 version installed). This assumes that you are using the packages from Fedora Extras and not from a self installed 2.6 version.