Author Topic: Any working wxFred2 builds?  (Read 1997 times)

0 Members and 1 Guest are viewing this topic.

Offline Fractux

  • 28
Any working wxFred2 builds?
I'm having problems trying to compile wxFred2 in Fedora Core 4.

I get missing file errors:

Code: [Select]

[...]
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!
-What exactly gets separated in "mechanically separated chicken" ?

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Any working wxFred2 builds?
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. ;)

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Re: Any working wxFred2 builds?
Quote
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.