Patricia Curtis
2009-04-29 00:05:55 UTC
Hi Guys Firstly let me say awesome job, now onto my problem, im
running fedora 10, and i have built my application on windows and Linux,
with OSX to come a bit later all using wxWidgets 2.8.10, my App is all
working on both platforms but now I need to distribute it, so on linux i
need to build it as a static app --static=yes, i spent most of the day
compiling and recompiling a static build of wxWidgets but
1 it put it it usr/local/lib/wx when the package installer installs it to
/usr/lib/wx
2 the wx-config only comes up with the shared version (probably because its
in a different location)
3 when i symbolic link to the static version it cant find the libraries
4 when i compile my app with the static 'wx-config --libs' etc i get loads
of link errors for every wx Class including undefined wxEmptyString and
wxApp to name just two so it cant find the libraries for the any of the wx
Classes
so my questions are
How do i get a switchable version of wxWidgets shared and static? What
Libraies am i suposed to be linking too? i found loads of .a files which i
was assuming was the libraries.
Im using Eclipse 3.4.1 with
g++ `wx-config --cxxflags`
g++ `wx-config --libs`
i have swapped the command line pattern as per your wikki and shared
compiles no with problems and my application runs with no problems too
so as i said all i need now is a static version, how or where to get a
static build for fedora 10 that will let me compile through eclipse.
Thanks for your time.
PS i am not a newbie i have been programming for years and i know my way
around linux, but i am pulling my hair out here
running fedora 10, and i have built my application on windows and Linux,
with OSX to come a bit later all using wxWidgets 2.8.10, my App is all
working on both platforms but now I need to distribute it, so on linux i
need to build it as a static app --static=yes, i spent most of the day
compiling and recompiling a static build of wxWidgets but
1 it put it it usr/local/lib/wx when the package installer installs it to
/usr/lib/wx
2 the wx-config only comes up with the shared version (probably because its
in a different location)
3 when i symbolic link to the static version it cant find the libraries
4 when i compile my app with the static 'wx-config --libs' etc i get loads
of link errors for every wx Class including undefined wxEmptyString and
wxApp to name just two so it cant find the libraries for the any of the wx
Classes
so my questions are
How do i get a switchable version of wxWidgets shared and static? What
Libraies am i suposed to be linking too? i found loads of .a files which i
was assuming was the libraries.
Im using Eclipse 3.4.1 with
g++ `wx-config --cxxflags`
g++ `wx-config --libs`
i have swapped the command line pattern as per your wikki and shared
compiles no with problems and my application runs with no problems too
so as i said all i need now is a static version, how or where to get a
static build for fedora 10 that will let me compile through eclipse.
Thanks for your time.
PS i am not a newbie i have been programming for years and i know my way
around linux, but i am pulling my hair out here