Hard Light Productions Forums

Hosted Projects - Standalone => Diaspora => Diaspora Tech Help => Topic started by: VulcanRidr on September 16, 2012, 11:41:35 am

Title: Problems compiling wxlauncher
Post by: VulcanRidr on September 16, 2012, 11:41:35 am
First of all, thanks for the awesome efforts on Diaspora! I have been looking forward to this for years!

I'm having a problem installing wxlauncher. My system is an AMD Phenom(tm) II X4 840 with 8GB of RAM. I am running Debian/sid with KDE.

I'm following the README.txt, I compiled fs2_open_3.6.13, and tried to get wxlauncher installed. When I tried to compile wxlauncher, I got the following:

Code: [Select]
Building CXX object CMakeFiles/wxlauncher.dir/code/controls/ModList.cpp.o
/data/Diaspora_R1_Linux/Diaspora/wxlauncher/code/controls/ModList.cpp: In member function ‘void ModList::readIniFileString(wxFileConfig*, wxString, wxString**)’:
/data/Diaspora_R1_Linux/Diaspora/wxlauncher/code/controls/ModList.cpp:527:82: warning: deprecated conversion from string constant to ‘wchar_t*’ [-Wwrite-strings]
/data/Diaspora_R1_Linux/Diaspora/wxlauncher/code/controls/ModList.cpp: In constructor ‘ModInfoDialog::ModInfoDialog(SkinSystem*, ModItem*, wxWindow*)’:
/data/Diaspora_R1_Linux/Diaspora/wxlauncher/code/controls/ModList.cpp:1169:25: error: operands to ?: have different types ‘wxCStrData’ and ‘const wxString’
make[2]: *** [CMakeFiles/wxlauncher.dir/code/controls/ModList.cpp.o] Error 1
make[1]: *** [CMakeFiles/wxlauncher.dir/all] Error 2
make: *** [all] Error 2

I installed the prereqs from the README, but am I missing a wx package? Here is what I have installed:

Code: [Select]
ii  libwxbase2.8-0:amd64                   2.8.12.1-11                     amd64        wxBase library (runtime) - non-GUI support classes of wxWidgets toolkit
ii  libwxgtk2.8-0:amd64                    2.8.12.1-11                     amd64        wxWidgets Cross-platform C++ GUI toolkit (GTK+ runtime)
ii  libwxsvg0:amd64                        2:1.1.8~dfsg0-2                 amd64        SVG library for the wxWidgets toolkit
ii  python-wxgtk2.8                        2.8.12.1-11                     amd64        wxWidgets Cross-platform C++ GUI toolkit (wxPython binding)
ii  python-wxversion                       2.8.12.1-11                     all          wxWidgets Cross-platform C++ GUI toolkit (wxPython version selector)

What am I missing?

Thanks,
--vr
Title: Re: Problems compiling wxlauncher
Post by: VulcanRidr on September 16, 2012, 11:44:23 am
Mods: A thousand apologies, but could you please move this to the tech help forum?
Title: Re: Problems compiling wxlauncher
Post by: jg18 on September 16, 2012, 11:48:05 am
You're missing the wxGTK development libraries and debugging symbols. Retrieving the libwxgtk2.8-dev and libwxgtk2.8-dbg packages should also retrieve any missing dependencies.

Hope that helps.
Title: Re: Problems compiling wxlauncher
Post by: VulcanRidr on September 16, 2012, 12:04:16 pm
You're missing the wxGTK development libraries and debugging symbols. Retrieving the libwxgtk2.8-dev and libwxgtk2.8-dbg packages should also retrieve any missing dependencies.

Hope that helps.

Thanks jg18. I installed them and ran make clean, cmake -D USE_OPENAL=1 -D CMAKE_BUILD_TYPE=RelWithDebInfo -D DEVELOPMENT_MODE=1 ../ and make, and it failed at the same place.

Thanks,
--vr
Title: Re: Problems compiling wxlauncher
Post by: jg18 on September 16, 2012, 12:40:56 pm
What version of GCC are you using?

Just to check, could you post an updated list of your installed wx packages?

Finally, could you try this patch? Please back up your wxlauncher folder before trying it, such as by typing
Code: [Select]
cp -r wxlauncher wxlauncher_backup

Place the patch in your wxlauncher directory and apply it from there using
Code: [Select]
patch -p1 < modlist_tweak.patch

Here's the text of the patch:

Code: [Select]
diff -r 2d05db76f352 code/controls/ModList.cpp
--- a/code/controls/ModList.cpp Sun Aug 26 19:49:36 2012 -0600
+++ b/code/controls/ModList.cpp Sun Sep 16 12:24:52 2012 -0500
@@ -1166,7 +1166,7 @@
  (item->website != NULL) ?
  wxString::Format(_T("<a href='%s'>%s</a> :: "), item->website->c_str(), _("Website")).c_str():wxEmptyString,
  wxString::Format(_T("<a href='%s'>%s</a>"), (item->forum != NULL) ?
- item->forum->c_str():_("http://www.hard-light.net/forums/index.php?board=124.0"), _("Forum")).c_str(),
+ item->forum->c_str():wxString(_("http://www.hard-light.net/forums/index.php?board=124.0")).c_str(), _("Forum")).c_str(),
  (item->bugs != NULL) ?
  wxString::Format(_T(" :: <a href='%s'>%s</a>"), item->bugs->c_str(), _("Bugs")).c_str() : wxEmptyString,
  (item->support != NULL) ?


[attachment removed and sold on the black market]
Title: Re: Problems compiling wxlauncher
Post by: VulcanRidr on September 16, 2012, 01:24:54 pm
What version of GCC are you using?

Code: [Select]
# gcc --version
gcc (Debian 4.7.1-7) 4.7.1

Quote
Just to check, could you post an updated list of your installed wx packages?

Indeed I can:
Code: [Select]
ii  libwxbase2.8-0:amd64                   2.8.12.1-11                     amd64        wxBase library (runtime) - non-GUI support classes of wxWidgets toolkit
ii  libwxbase2.8-dbg:amd64                 2.8.12.1-11                     amd64        wxBase library (debug) - non-GUI support classes of wxWidgets toolkit
ii  libwxbase2.8-dev                       2.8.12.1-11                     amd64        wxBase library (development) - non-GUI support classes of wxWidgets toolkit
ii  libwxgtk2.8-0:amd64                    2.8.12.1-11                     amd64        wxWidgets Cross-platform C++ GUI toolkit (GTK+ runtime)
ii  libwxgtk2.8-dbg:amd64                  2.8.12.1-11                     amd64        wxWidgets Cross-platform C++ GUI toolkit (GTK+ debug)
ii  libwxgtk2.8-dev                        2.8.12.1-11                     amd64        wxWidgets Cross-platform C++ GUI toolkit (GTK+ development)
ii  libwxsvg0:amd64                        2:1.1.8~dfsg0-2                 amd64        SVG library for the wxWidgets toolkit
ii  python-wxgtk2.8                        2.8.12.1-11                     amd64        wxWidgets Cross-platform C++ GUI toolkit (wxPython binding)
ii  python-wxversion                       2.8.12.1-11                     all          wxWidgets Cross-platform C++ GUI toolkit (wxPython version selector)
ii  wx-common                              2.8.12.1-11                     amd64        wxWidgets Cross-platform C++ GUI toolkit (common support files)
ii  wx2.8-headers                          2.8.12.1-11                     amd64        wxWidgets Cross-platform C++ GUI toolkit (header files)

Quote
Finally, could you try this patch? Please back up your wxlauncher folder before trying it, such as by typing
Code: [Select]
cp -r wxlauncher wxlauncher_backup

Place the patch in your wxlauncher directory and apply it from there using
Code: [Select]
patch -p1 < modlist_tweak.patch

Here's the text of the patch:

Code: [Select]
diff -r 2d05db76f352 code/controls/ModList.cpp
--- a/code/controls/ModList.cpp Sun Aug 26 19:49:36 2012 -0600
+++ b/code/controls/ModList.cpp Sun Sep 16 12:24:52 2012 -0500
@@ -1166,7 +1166,7 @@
  (item->website != NULL) ?
  wxString::Format(_T("<a href='%s'>%s</a> :: "), item->website->c_str(), _("Website")).c_str():wxEmptyString,
  wxString::Format(_T("<a href='%s'>%s</a>"), (item->forum != NULL) ?
- item->forum->c_str():_("http://www.hard-light.net/forums/index.php?board=124.0"), _("Forum")).c_str(),
+ item->forum->c_str():wxString(_("http://www.hard-light.net/forums/index.php?board=124.0")).c_str(), _("Forum")).c_str(),
  (item->bugs != NULL) ?
  wxString::Format(_T(" :: <a href='%s'>%s</a>"), item->bugs->c_str(), _("Bugs")).c_str() : wxEmptyString,
  (item->support != NULL) ?


I did this, and got to the following point:

Code: [Select]
[ 56%] Building CXX object CMakeFiles/wxlauncher.dir/code/apis/FlagListManager.cpp.o
[ 59%] Building CXX object CMakeFiles/wxlauncher.dir/code/apis/HelpManager.cpp.o
/data/Diaspora_R1_Linux/Diaspora/wxlauncher/code/apis/HelpManager.cpp: In function ‘bool HelpManager::Initialize()’:
/data/Diaspora_R1_Linux/Diaspora/wxlauncher/code/apis/HelpManager.cpp:62:5: error: expected id-expression before ‘if’
/data/Diaspora_R1_Linux/Diaspora/wxlauncher/code/apis/HelpManager.cpp:62:5: error: expected ‘;’ before ‘if’
/data/Diaspora_R1_Linux/Diaspora/wxlauncher/code/apis/HelpManager.cpp:62:5: error: ‘else’ without a previous ‘if’
/data/Diaspora_R1_Linux/Diaspora/wxlauncher/code/apis/HelpManager.cpp: In function ‘void HelpManager::OpenHelpById(WindowIDS)’:
/data/Diaspora_R1_Linux/Diaspora/wxlauncher/code/apis/HelpManager.cpp:96:4: error: expected id-expression before ‘if’
/data/Diaspora_R1_Linux/Diaspora/wxlauncher/code/apis/HelpManager.cpp:96:4: error: expected ‘;’ before ‘if’
/data/Diaspora_R1_Linux/Diaspora/wxlauncher/code/apis/HelpManager.cpp:96:4: error: ‘else’ without a previous ‘if’
make[2]: *** [CMakeFiles/wxlauncher.dir/code/apis/HelpManager.cpp.o] Error 1
make[1]: *** [CMakeFiles/wxlauncher.dir/all] Error 2
make: *** [all] Error 2

I apologize for all the questions, but I'm a sysadmin, not a programmer, and have very little experience with c++ or the wx tools.

Thanks,
--vr
Title: Re: Problems compiling wxlauncher
Post by: jg18 on September 16, 2012, 01:47:46 pm
The questions aren't a problem, no worries.

What I suspect is happening is that you're using a very new version of GCC that is picky in ways that the compilers we've been using so far (older GCC versions, Visual C++ 2008, Apple's GCC for Xcode 3.2.6) aren't.

Could you try applying this patch as well?

Code: [Select]
patch -p1 < helpmanager_tweak.patch

Code: [Select]
diff -r 2d05db76f352 code/apis/HelpManager.cpp
--- a/code/apis/HelpManager.cpp Sun Aug 26 19:49:36 2012 -0600
+++ b/code/apis/HelpManager.cpp Sun Sep 16 13:43:45 2012 -0500
@@ -59,7 +59,7 @@
  if ( file.FileExists() ) {
  controller->AddBook(file, false);
  } else {
- ::wxLogWarning(_T("Unable to find help file %s"), file.GetFullName().c_str());
+ wxLogWarning(_T("Unable to find help file %s"), file.GetFullName().c_str());
  delete controller;
  controller = NULL;
  return false;
@@ -93,7 +93,7 @@
  return;
  }
  }
- ::wxLogInfo(_T(" ID %d does not have more specific help"), id);
+ wxLogInfo(_T(" ID %d does not have more specific help"), id);
 }
 
 void HelpManager::OpenMainHelpPage() {


[attachment removed and sold on the black market]
Title: Re: Problems compiling wxlauncher
Post by: VulcanRidr on September 16, 2012, 02:02:14 pm
The questions aren't a problem, no worries.

What I suspect is happening is that you're using a very new version of GCC that is picky in ways that the compilers we've been using so far (older GCC versions, Visual C++ 2008, Apple's GCC for Xcode 3.2.6) aren't.

Okay. That makes sense. I've seen other issues with the newer gcc versions.  Would it be better to use gcc-4.6?

Quote
Could you try applying this patch as well?

Code: [Select]
patch -p1 < helpmanager_tweak.patch

Got almost all the way through, but had what I suspect to be one last failure:

Code: [Select]
[100%] Building CXX object CMakeFiles/wxlauncher.dir/code/wxLauncherApp.cpp.o
/data/Diaspora_R1_Linux/Diaspora/wxlauncher/code/wxLauncherApp.cpp:67:1: error: cannot convert ‘const wchar_t*’ to ‘const char*’ in initialization
/data/Diaspora_R1_Linux/Diaspora/wxlauncher/code/wxLauncherApp.cpp:67:1: error: cannot convert ‘const wchar_t*’ to ‘const char*’ in initialization
/data/Diaspora_R1_Linux/Diaspora/wxlauncher/code/wxLauncherApp.cpp:67:1: error: cannot convert ‘const wchar_t*’ to ‘const char*’ in initialization
/data/Diaspora_R1_Linux/Diaspora/wxlauncher/code/wxLauncherApp.cpp:67:1: error: cannot convert ‘const wchar_t*’ to ‘const char*’ in initialization
/data/Diaspora_R1_Linux/Diaspora/wxlauncher/code/wxLauncherApp.cpp:67:1: error: cannot convert ‘const wchar_t*’ to ‘const char*’ in initialization
/data/Diaspora_R1_Linux/Diaspora/wxlauncher/code/wxLauncherApp.cpp:67:1: error: cannot convert ‘const wchar_t*’ to ‘const char*’ in initialization
/data/Diaspora_R1_Linux/Diaspora/wxlauncher/code/wxLauncherApp.cpp:67:1: error: cannot convert ‘const wchar_t*’ to ‘const char*’ in initialization
/data/Diaspora_R1_Linux/Diaspora/wxlauncher/code/wxLauncherApp.cpp:67:1: error: cannot convert ‘const wchar_t*’ to ‘const char*’ in initialization
/data/Diaspora_R1_Linux/Diaspora/wxlauncher/code/wxLauncherApp.cpp:67:1: error: cannot convert ‘const wchar_t*’ to ‘const char*’ in initialization
/data/Diaspora_R1_Linux/Diaspora/wxlauncher/code/wxLauncherApp.cpp:67:1: error: cannot convert ‘const wchar_t*’ to ‘const char*’ in initialization
make[2]: *** [CMakeFiles/wxlauncher.dir/code/wxLauncherApp.cpp.o] Error 1
make[1]: *** [CMakeFiles/wxlauncher.dir/all] Error 2
make: *** [all] Error 2

--vr
Title: Re: Problems compiling wxlauncher
Post by: jg18 on September 16, 2012, 02:15:58 pm
The questions aren't a problem, no worries.

What I suspect is happening is that you're using a very new version of GCC that is picky in ways that the compilers we've been using so far (older GCC versions, Visual C++ 2008, Apple's GCC for Xcode 3.2.6) aren't.

Okay. That makes sense. I've seen other issues with the newer gcc versions.  Would it be better to use gcc-4.6?
Probably, yeah. The solution isn't obvious in the case of this last issue, so it'd likely take time to figure out. GCC 4.6 should work, though, since I used Linux Mint 12 (Ubuntu 11.10) for testing, and it uses 4.6.1.

Let me know if using GCC 4.6 works, and thanks for effectively testing with 4.7. :)
Title: Re: Problems compiling wxlauncher
Post by: VulcanRidr on September 16, 2012, 03:25:11 pm
The questions aren't a problem, no worries.

What I suspect is happening is that you're using a very new version of GCC that is picky in ways that the compilers we've been using so far (older GCC versions, Visual C++ 2008, Apple's GCC for Xcode 3.2.6) aren't.

Okay. That makes sense. I've seen other issues with the newer gcc versions.  Would it be better to use gcc-4.6?
Probably, yeah. The solution isn't obvious in the case of this last issue, so it'd likely take time to figure out. GCC 4.6 should work, though, since I used Linux Mint 12 (Ubuntu 11.10) for testing, and it uses 4.6.1.

Let me know if using GCC 4.6 works, and thanks for effectively testing with 4.7. :)

Not a problem. I'm happy to help.

I don't think I'm doing this right. I did

Code: [Select]
export CC=/usr/bin/gcc-4.6

and re-ran the make, but it failed in the same place.

When I compiled with g++-4.6, I got the same errors in the same places as with g++-4.7. Which leads me to believe that I am not switching the right compiler.

What compiler should I be changing to 4.6? gcc? g++? something else?

For the record:

Code: [Select]
$CC --version
gcc-4.6 (Debian 4.6.3-9) 4.6.3

Thanks,
--vr
Title: Re: Problems compiling wxlauncher
Post by: jg18 on September 16, 2012, 03:34:00 pm
I think you also need this:

Code: [Select]
export CXX=/usr/bin/g++-4.6

EDIT: Although you may need to configure CMake to use GCC 4.6 and then re-run CMake. I'll need to look into it and get back to you. But trying the line above is easy enough to do.

EDIT 2: Based on the information here (http://www.cmake.org/Wiki/CMake_Useful_Variables#Compilers_and_Tools) (under CMAKE_C_COMPILER), try clearing out your wxlauncher build directory (rm -rf * while within the build dir) and then typing

Code: [Select]
CC=gcc-4.6 CXX=g++-4.6 cmake -D USE_OPENAL=1 -D CMAKE_BUILD_TYPE=RelWithDebInfo -D DEVELOPMENT_MODE=1 ../
Title: Re: Problems compiling wxlauncher
Post by: VulcanRidr on September 16, 2012, 05:15:45 pm
I think you also need this:

Code: [Select]
export CXX=/usr/bin/g++-4.6

EDIT: Although you may need to configure CMake to use GCC 4.6 and then re-run CMake. I'll need to look into it and get back to you. But trying the line above is easy enough to do.

EDIT 2: Based on the information here (http://www.cmake.org/Wiki/CMake_Useful_Variables#Compilers_and_Tools) (under CMAKE_C_COMPILER), try clearing out your wxlauncher build directory (rm -rf * while within the build dir) and then typing

Code: [Select]
CC=gcc-4.6 CXX=g++-4.6 cmake -D USE_OPENAL=1 -D CMAKE_BUILD_TYPE=RelWithDebInfo -D DEVELOPMENT_MODE=1 ../

Failed at 100% again. I deleted

Code: [Select]
$ export CC=gcc-4.6; export CXX=g++-4.6; cmake -D USE_OPENAL=1 -D CMAKE_BUILD_TYPE=RelWithDebInfo -D DEVELOPMENT_MODE=1 ../
-- The CXX compiler identification is GNU 4.6.3
-- The C compiler identification is GNU 4.6.3
-- Check for working CXX compiler: /usr/bin/g++-4.6
-- Check for working CXX compiler: /usr/bin/g++-4.6 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc-4.6
-- Check for working C compiler: /usr/bin/gcc-4.6 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Found wxWidgets: TRUE (Required is at least version "2.8.10")
-- Found PythonInterp: /usr/bin/python (found version "2.7.3")
-- Found OpenAL: /usr/lib/x86_64-linux-gnu/libopenal.so 
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found.
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- Found SDL: /usr/lib/x86_64-linux-gnu/libSDLmain.a;/usr/lib/x86_64-linux-gnu/libSDL.so;-lpthread 
Development mode is set. Building of installers is not allowed.  Set DEVELOPMENT_MODE=OFF to build installers.
-- Configuring done
-- Generating done
-- Build files have been written to: /data/Diaspora_R1_Linux/Diaspora/wxlauncher/build

And the output was:

Code: [Select]
[100%] Building CXX object CMakeFiles/wxlauncher.dir/code/wxLauncherApp.cpp.o
/data/Diaspora_R1_Linux/Diaspora/wxlauncher/code/wxLauncherApp.cpp:67:1: error: cannot convert ‘const wchar_t*’ to ‘const char*’ in initialization
/data/Diaspora_R1_Linux/Diaspora/wxlauncher/code/wxLauncherApp.cpp:67:1: error: cannot convert ‘const wchar_t*’ to ‘const char*’ in initialization
/data/Diaspora_R1_Linux/Diaspora/wxlauncher/code/wxLauncherApp.cpp:67:1: error: cannot convert ‘const wchar_t*’ to ‘const char*’ in initialization
/data/Diaspora_R1_Linux/Diaspora/wxlauncher/code/wxLauncherApp.cpp:67:1: error: cannot convert ‘const wchar_t*’ to ‘const char*’ in initialization
/data/Diaspora_R1_Linux/Diaspora/wxlauncher/code/wxLauncherApp.cpp:67:1: error: cannot convert ‘const wchar_t*’ to ‘const char*’ in initialization
/data/Diaspora_R1_Linux/Diaspora/wxlauncher/code/wxLauncherApp.cpp:67:1: error: cannot convert ‘const wchar_t*’ to ‘const char*’ in initialization
/data/Diaspora_R1_Linux/Diaspora/wxlauncher/code/wxLauncherApp.cpp:67:1: error: cannot convert ‘const wchar_t*’ to ‘const char*’ in initialization
/data/Diaspora_R1_Linux/Diaspora/wxlauncher/code/wxLauncherApp.cpp:67:1: error: cannot convert ‘const wchar_t*’ to ‘const char*’ in initialization
/data/Diaspora_R1_Linux/Diaspora/wxlauncher/code/wxLauncherApp.cpp:67:1: error: cannot convert ‘const wchar_t*’ to ‘const char*’ in initialization
/data/Diaspora_R1_Linux/Diaspora/wxlauncher/code/wxLauncherApp.cpp:67:1: error: cannot convert ‘const wchar_t*’ to ‘const char*’ in initialization
make[2]: *** [CMakeFiles/wxlauncher.dir/code/wxLauncherApp.cpp.o] Error 1
make[1]: *** [CMakeFiles/wxlauncher.dir/all] Error 2
make: *** [all] Error 2

I shouldn't be building this as root, should I or something else such as this, should I? I mean, you have obviously had successful builds on Linux, so I'm trying to figure out what might be unique in my situation.
Title: Re: Problems compiling wxlauncher
Post by: niffiwan on September 16, 2012, 05:33:27 pm
This is maybe a silly question, but are you setting/exporting those ENV vars before the make as well?

i.e.
Code: [Select]
$ CC=gcc-4.6 CXX=g++-4.6 cmake -D USE_OPENAL=1 -D CMAKE_BUILD_TYPE=RelWithDebInfo -D DEVELOPMENT_MODE=1 ../
$ CC=gcc-4.6 CXX=g++-4.6 make

(I *think* export should bring the var into your current shell, but I sometimes get confused about what is or is not a sub-shell...)

EDIT: root should not be required to compile...
Title: Re: Problems compiling wxlauncher
Post by: Iss Mneur on September 16, 2012, 05:40:05 pm
Can you please post the CmakeCache.txt file from the build directory.
Title: Re: Problems compiling wxlauncher
Post by: VulcanRidr on September 16, 2012, 05:59:06 pm
This is maybe a silly question, but are you setting/exporting those ENV vars before the make as well?

Actually I exported the variables, which should theoretically do the same thing:

Code: [Select]
$ export CC=gcc-4.6; export CXX=g++-4.6; cmake -D USE_OPENAL=1 -D CMAKE_BUILD_TYPE=RelWithDebInfo -D DEVELOPMENT_MODE=1 ../

which should carry the environment variables over:

Code: [Select]
$ echo $CC $CXX
gcc-4.6 g++-4.6

I figure once I get it working, I can unset the variables. Those variables are only available in the shell in which I exported them, the same one I am trying to compile the launcher in. I am wondering, could it be because I'm on kde? I think I have a lot of the Gnome deps installed, because I have many gnome apps installed.
Title: Re: Problems compiling wxlauncher
Post by: VulcanRidr on September 16, 2012, 07:11:44 pm
Just out of curiosity, is the wxlauncher necessary? If I got fs2_open_diaspora compiled (it worked with gcc-4.7, btw), is there a shortcut to start it from the command line, perhaps with a flag to point it to the ini file?

--vr
Title: Re: Problems compiling wxlauncher
Post by: Iss Mneur on September 16, 2012, 07:33:27 pm
Strictly?  No, wxLauncher is not required to run FSO on linux (it does have to run once on Windows though).  It does make things much easier however.

You can set your resolution from the commandline with the -res <width>x<height>.  I would highly suggest using the following lighting flags as well:
Code: (Diaspora recommended) [Select]
-ambient_factor 90 -spec_exp 0.7 -spec_tube 1.0 -spec_point 0.7 -spec_static 1.0 -ogl_spec 15 -bloom_intensity 20

All of the flags supported by the engine are available on the wiki (http://www.hard-light.net/wiki/index.php/Command-Line_Reference).


The issue you appear to be having is related to some part of your system libraries not being compiled with unicode support. Either way, I am still interested in seeing the contents of your CMakeCache.txt file.
Title: Re: Problems compiling wxlauncher
Post by: VulcanRidr on September 17, 2012, 03:46:21 am
Strictly?  No, wxLauncher is not required to run FSO on linux (it does have to run once on Windows though).  It does make things much easier however.

You can set your resolution from the commandline with the -res <width>x<height>.  I would highly suggest using the following lighting flags as well:
Code: (Diaspora recommended) [Select]
-ambient_factor 90 -spec_exp 0.7 -spec_tube 1.0 -spec_point 0.7 -spec_static 1.0 -ogl_spec 15 -bloom_intensity 20

All of the flags supported by the engine are available on the wiki (http://www.hard-light.net/wiki/index.php/Command-Line_Reference).


The issue you appear to be having is related to some part of your system libraries not being compiled with unicode support. Either way, I am still interested in seeing the contents of your CMakeCache.txt file.

Thanks, Iss Mneur,

I figured this would have been the case, and all things being equal, I would prefer to solve the problem. Toward that end, please find the attached CMakeCache.txt.

Now, how do I go about finding what might not have unicode support? I took a quick look at my system, and it appears that I do have unicode support in general. I also ran a quick perl one-liner:

Code: [Select]
perl -CS -e 'for($i=160;$i<10000;$i++){print c\n"}', $i%30?" ":"\

I got quite a lot of actual characters, though I did, in fact get a number of white boxes. I don't know if this is germane to the conversation, but I gave it a try.

Thanks,
--vr

[attachment removed and sold on the black market]
Title: Re: Problems compiling wxlauncher
Post by: VulcanRidr on September 17, 2012, 06:39:53 am
Just out of curiosity, does Diaspora_R1_Linux.tar.lzma include the 1.0.2 patch? If not, does that have anything that might help with the issue the launcher?

Thanks,
--vr
Title: Re: Problems compiling wxlauncher
Post by: jg18 on September 17, 2012, 09:04:27 am
Just out of curiosity, does Diaspora_R1_Linux.tar.lzma include the 1.0.2 patch? If not, does that have anything that might help with the issue the launcher?

Thanks,
--vr

Nope and nope, sorry.


As for finding out whether your wxWidgets packages were compiled with Unicode support, could you post the output of
Code: [Select]
ls /usr/lib/ | grep wx
and
Code: [Select]
ls /usr/local/lib/ | grep wx

For example, here's mine for /usr/lib/ (didn't find anything in /usr/local/lib/):
Code: [Select]
libwx_baseu-2.8.so
libwx_baseu-2.8.so.0
libwx_baseu-2.8.so.0.7.0
libwx_baseud-2.8.so
libwx_baseud-2.8.so.0
libwx_baseud-2.8.so.0.7.0
libwx_baseud_net-2.8.so
libwx_baseud_net-2.8.so.0
libwx_baseud_net-2.8.so.0.7.0
libwx_baseud_xml-2.8.so
libwx_baseud_xml-2.8.so.0
libwx_baseud_xml-2.8.so.0.7.0
libwx_baseu_net-2.8.so
libwx_baseu_net-2.8.so.0
libwx_baseu_net-2.8.so.0.7.0
libwx_baseu_xml-2.8.so
libwx_baseu_xml-2.8.so.0
libwx_baseu_xml-2.8.so.0.7.0
libwx_gtk2u_adv-2.8.so
libwx_gtk2u_adv-2.8.so.0
libwx_gtk2u_adv-2.8.so.0.7.0
libwx_gtk2u_aui-2.8.so
libwx_gtk2u_aui-2.8.so.0
libwx_gtk2u_aui-2.8.so.0.7.0
libwx_gtk2u_core-2.8.so
libwx_gtk2u_core-2.8.so.0
libwx_gtk2u_core-2.8.so.0.7.0
libwx_gtk2ud_adv-2.8.so
libwx_gtk2ud_adv-2.8.so.0
libwx_gtk2ud_adv-2.8.so.0.7.0
libwx_gtk2ud_aui-2.8.so
libwx_gtk2ud_aui-2.8.so.0
libwx_gtk2ud_aui-2.8.so.0.7.0
libwx_gtk2ud_core-2.8.so
libwx_gtk2ud_core-2.8.so.0
libwx_gtk2ud_core-2.8.so.0.7.0
libwx_gtk2ud_fl-2.8.so
libwx_gtk2ud_fl-2.8.so.0
libwx_gtk2ud_fl-2.8.so.0.7.0
libwx_gtk2ud_gizmos-2.8.so
libwx_gtk2ud_gizmos-2.8.so.0
libwx_gtk2ud_gizmos-2.8.so.0.7.0
libwx_gtk2ud_gizmos_xrc-2.8.so
libwx_gtk2ud_gizmos_xrc-2.8.so.0
libwx_gtk2ud_gizmos_xrc-2.8.so.0.7.0
libwx_gtk2ud_gl-2.8.so
libwx_gtk2ud_gl-2.8.so.0
libwx_gtk2ud_gl-2.8.so.0.7.0
libwx_gtk2ud_html-2.8.so
libwx_gtk2ud_html-2.8.so.0
libwx_gtk2ud_html-2.8.so.0.7.0
libwx_gtk2ud_media-2.8.so
libwx_gtk2ud_media-2.8.so.0
libwx_gtk2ud_media-2.8.so.0.7.0
libwx_gtk2ud_ogl-2.8.so
libwx_gtk2ud_ogl-2.8.so.0
libwx_gtk2ud_ogl-2.8.so.0.7.0
libwx_gtk2ud_plot-2.8.so
libwx_gtk2ud_plot-2.8.so.0
libwx_gtk2ud_plot-2.8.so.0.7.0
libwx_gtk2ud_qa-2.8.so
libwx_gtk2ud_qa-2.8.so.0
libwx_gtk2ud_qa-2.8.so.0.7.0
libwx_gtk2ud_richtext-2.8.so
libwx_gtk2ud_richtext-2.8.so.0
libwx_gtk2ud_richtext-2.8.so.0.7.0
libwx_gtk2ud_stc-2.8.so
libwx_gtk2ud_stc-2.8.so.0
libwx_gtk2ud_stc-2.8.so.0.7.0
libwx_gtk2ud_svg-2.8.so
libwx_gtk2ud_svg-2.8.so.0
libwx_gtk2ud_svg-2.8.so.0.7.0
libwx_gtk2ud_xrc-2.8.so
libwx_gtk2ud_xrc-2.8.so.0
libwx_gtk2ud_xrc-2.8.so.0.7.0
libwx_gtk2u_fl-2.8.so
libwx_gtk2u_fl-2.8.so.0
libwx_gtk2u_fl-2.8.so.0.7.0
libwx_gtk2u_gizmos-2.8.so
libwx_gtk2u_gizmos-2.8.so.0
libwx_gtk2u_gizmos-2.8.so.0.7.0
libwx_gtk2u_gizmos_xrc-2.8.so
libwx_gtk2u_gizmos_xrc-2.8.so.0
libwx_gtk2u_gizmos_xrc-2.8.so.0.7.0
libwx_gtk2u_gl-2.8.so
libwx_gtk2u_gl-2.8.so.0
libwx_gtk2u_gl-2.8.so.0.7.0
libwx_gtk2u_html-2.8.so
libwx_gtk2u_html-2.8.so.0
libwx_gtk2u_html-2.8.so.0.7.0
libwx_gtk2u_media-2.8.so
libwx_gtk2u_media-2.8.so.0
libwx_gtk2u_media-2.8.so.0.7.0
libwx_gtk2u_ogl-2.8.so
libwx_gtk2u_ogl-2.8.so.0
libwx_gtk2u_ogl-2.8.so.0.7.0
libwx_gtk2u_plot-2.8.so
libwx_gtk2u_plot-2.8.so.0
libwx_gtk2u_plot-2.8.so.0.7.0
libwx_gtk2u_qa-2.8.so
libwx_gtk2u_qa-2.8.so.0
libwx_gtk2u_qa-2.8.so.0.7.0
libwx_gtk2u_richtext-2.8.so
libwx_gtk2u_richtext-2.8.so.0
libwx_gtk2u_richtext-2.8.so.0.7.0
libwx_gtk2u_stc-2.8.so
libwx_gtk2u_stc-2.8.so.0
libwx_gtk2u_stc-2.8.so.0.7.0
libwx_gtk2u_svg-2.8.so
libwx_gtk2u_svg-2.8.so.0
libwx_gtk2u_svg-2.8.so.0.7.0
libwx_gtk2u_xrc-2.8.so
libwx_gtk2u_xrc-2.8.so.0
libwx_gtk2u_xrc-2.8.so.0.7.0
wx

The 'u' (such as gtk2u) indicates Unicode, and the 'd' (as in gtk2ud) indicates debug.

Thanks, and sorry about the problems you've been having.

EDIT: Could you also paste the output of
Code: [Select]
find /usr/lib/wx -type f

and output (if any) of
Code: [Select]
find /usr/local/lib/wx -type f
Title: Re: Problems compiling wxlauncher
Post by: VulcanRidr on September 17, 2012, 11:14:15 am
As for finding out whether your wxWidgets packages were compiled with Unicode support, could you post the output of
Code: [Select]
ls /usr/lib/ | grep wx
and
Code: [Select]
ls /usr/local/lib/ | grep wx

Dude, thank you soo much. I found the problem. Apparently, I had a copy of wx-2.9 hiding out in /usr/local. Since I couldn't find the sources, and since Debian doesn't put anything in /usr/local, the only conclusion I can come to is that the files were restored from a backup after I rebuilt my machine the first of the year and were just hanging out there.

In any case, I deleted the ones in /usr/local, ran ldconfig and had a go at building the wxlauncher. It worked.

So thanks to all of those that took the time to give advice and help me through my problems.

Now, at what point should I upgrade to 1.0.2? :)

--vr
Title: Re: Problems compiling wxlauncher
Post by: Iss Mneur on September 17, 2012, 12:51:26 pm
So thanks to all of those that took the time to give advice and help me through my problems.
Thank you for letting us know what the problem finally was.

Now, at what point should I upgrade to 1.0.2? :)

--vr
As soon as possible.  It has many fixes to the engine and the data that make playing Diaspora that much better.
Title: Re: Problems compiling wxlauncher
Post by: VulcanRidr on September 17, 2012, 01:21:09 pm
Thank you for letting us know what the problem finally was.

I make a habit of trying to do that, on the hopes that it helps others who may encounter similar problems.

Quote
Now, at what point should I upgrade to 1.0.2? :)

--vr
As soon as possible.  It has many fixes to the engine and the data that make playing Diaspora that much better.

Guess I'll patch once I get home. Then on to stage 2: Getting the joystick to work. :)

--vr
Title: Re: Problems compiling wxlauncher
Post by: jdthehutt on February 26, 2015, 06:31:03 am
Hi, I hope it's ok to necro this again, as I am having similar issues.  I'm not sure what has changed since this though as it is a few years ago.  I'll post what I have done from here and what happens when I try and compile.  if anyone can help me please I would really appreciate it.

First, I use Archlinux 64bit and it is up to date.  I have the GoG file for Freespace 2 and have successfully installed everything using the most current Freespace Open Installer.  I have then followed the instructions for compiling the wxlauncher, which is where I ran into issues.  I initially used the 0.94 version which came with the installer but that failed.  I tried the 0.95 version from https://code.google.com/p/wxlauncher/issues/detail?id=110 (https://code.google.com/p/wxlauncher/issues/detail?id=110) but that failed as well, then I tried grabbing the most recent master source from https://github.com/wxLauncher/wxlauncher (https://github.com/wxLauncher/wxlauncher) but with the same result as the previous attempts.

I have all of the dependencies listed installed and I initially run it as
Code: [Select]
cmake -DUSE_OPENAL=1 -DCMAKE_INSTALL_PREFIX=/usr/local ../  -DPYTHON_EXECUTABLE=/usr/bin/python2, which seems to work fine.  However, it is when I try and "make" that the error occurs.  I will list my commands and the result below.

Code: [Select]
cmake -DUSE_OPENAL=1 -DCMAKE_INSTALL_PREFIX=/usr/local ../ -DPYTHON_EXECUTABLE=/usr/bin/python2
-- The CXX compiler identification is GNU 4.9.2
-- The C compiler identification is GNU 4.9.2
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found wxWidgets: TRUE (Required is at least version "2.8.10")
-- Found OpenAL: /usr/lib64/libopenal.so 
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- Found SDL: /usr/lib64/libSDLmain.a;/usr/lib64/libSDL.so;-lpthread (found version "1.2.15")
-- rpmbuild does not exist, will not build RPM
-- Configuring done
-- Generating done
-- Build files have been written to: /home/james/FreeSpace2/build/wxlauncher-master/cmake

Then I run make and get this error.

Code: [Select]
Scanning dependencies of target helpmaker
 NOTICE:Building...
 NOTICE: Processing input files:
 NOTICE:  /home/james/FreeSpace2/build/wxlauncher-master/onlinehelp/index.help
 NOTICE:  /home/james/FreeSpace2/build/wxlauncher-master/onlinehelp/jfaq.help
 NOTICE:  /home/james/FreeSpace2/build/wxlauncher-master/onlinehelp/kauthors.help
 NOTICE:  /home/james/FreeSpace2/build/wxlauncher-master/onlinehelp/lchanges.help
 NOTICE:  /home/james/FreeSpace2/build/wxlauncher-master/onlinehelp/10Introduction/02Profiles.help
 NOTICE:  /home/james/FreeSpace2/build/wxlauncher-master/onlinehelp/10Introduction/index.help
 NOTICE:  /home/james/FreeSpace2/build/wxlauncher-master/onlinehelp/30Reference/index.help
 NOTICE:  /home/james/FreeSpace2/build/wxlauncher-master/onlinehelp/30Reference/10Welcome/02profiles.help
 NOTICE:  /home/james/FreeSpace2/build/wxlauncher-master/onlinehelp/30Reference/10Welcome/03news.help
 NOTICE:  /home/james/FreeSpace2/build/wxlauncher-master/onlinehelp/30Reference/10Welcome/index.help
 NOTICE:  /home/james/FreeSpace2/build/wxlauncher-master/onlinehelp/30Reference/20MODs/01modlist.help
 NOTICE:  /home/james/FreeSpace2/build/wxlauncher-master/onlinehelp/30Reference/20MODs/index.help
 NOTICE:  /home/james/FreeSpace2/build/wxlauncher-master/onlinehelp/30Reference/30BasicSettings/01executable.help
 NOTICE:  /home/james/FreeSpace2/build/wxlauncher-master/onlinehelp/30Reference/30BasicSettings/02video.help
 NOTICE:  /home/james/FreeSpace2/build/wxlauncher-master/onlinehelp/30Reference/30BasicSettings/03audio.help
 NOTICE:  /home/james/FreeSpace2/build/wxlauncher-master/onlinehelp/30Reference/30BasicSettings/04speech.help
 NOTICE:  /home/james/FreeSpace2/build/wxlauncher-master/onlinehelp/30Reference/30BasicSettings/05joystick.help
 NOTICE:  /home/james/FreeSpace2/build/wxlauncher-master/onlinehelp/30Reference/30BasicSettings/06network.help
 NOTICE:  /home/james/FreeSpace2/build/wxlauncher-master/onlinehelp/30Reference/30BasicSettings/index.help
 NOTICE:  /home/james/FreeSpace2/build/wxlauncher-master/onlinehelp/30Reference/40AdvancedSettings/01flaglist.help
 NOTICE:  /home/james/FreeSpace2/build/wxlauncher-master/onlinehelp/30Reference/40AdvancedSettings/021lighting.help
 NOTICE:  /home/james/FreeSpace2/build/wxlauncher-master/onlinehelp/30Reference/40AdvancedSettings/05flagsets.help
 NOTICE:  /home/james/FreeSpace2/build/wxlauncher-master/onlinehelp/30Reference/40AdvancedSettings/10customflags.help
 NOTICE:  /home/james/FreeSpace2/build/wxlauncher-master/onlinehelp/30Reference/40AdvancedSettings/15commandline.help
 NOTICE:  /home/james/FreeSpace2/build/wxlauncher-master/onlinehelp/30Reference/40AdvancedSettings/index.help
 NOTICE:  /home/james/FreeSpace2/build/wxlauncher-master/onlinehelp/50TechnicalStuff/02Terminology.help
 NOTICE:  /home/james/FreeSpace2/build/wxlauncher-master/onlinehelp/50TechnicalStuff/03privacy.help
 NOTICE:  /home/james/FreeSpace2/build/wxlauncher-master/onlinehelp/50TechnicalStuff/index.help
 NOTICE:Writing to /home/james/FreeSpace2/build/wxlauncher-master/cmake/generated/helplinks.cpp
 NOTICE:....Done.
[  0%] Built target helpmaker
Scanning dependencies of target version.cpp.maker
Checking if build is needed...
 /home/james/FreeSpace2/build/wxlauncher-master/cmake/version.cpp.maker.temp does not exist
Generating...
 Writing to tempfile /home/james/FreeSpace2/build/wxlauncher-master/cmake/version.cpp.maker.temp.
  Directory already exists...
fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
 Done.
[  0%] Built target version.cpp.maker
Scanning dependencies of target wxlauncher
[  2%] Building CXX object CMakeFiles/wxlauncher.dir/code/tabs/AdvSettingsPage.cpp.o
[  4%] Building CXX object CMakeFiles/wxlauncher.dir/code/tabs/BasicSettingsPage.cpp.o
[  6%] Building CXX object CMakeFiles/wxlauncher.dir/code/tabs/InstallPage.cpp.o
[  9%] Building CXX object CMakeFiles/wxlauncher.dir/code/tabs/ModsPage.cpp.o
[ 11%] Building CXX object CMakeFiles/wxlauncher.dir/code/tabs/WelcomePage.cpp.o
[ 13%] Building CXX object CMakeFiles/wxlauncher.dir/code/controls/BottomButtons.cpp.o
[ 16%] Building CXX object CMakeFiles/wxlauncher.dir/code/controls/FlagListBox.cpp.o
[ 18%] Building CXX object CMakeFiles/wxlauncher.dir/code/controls/LightingPresets.cpp.o
[ 20%] Building CXX object CMakeFiles/wxlauncher.dir/code/controls/Logger.cpp.o
[ 23%] Building CXX object CMakeFiles/wxlauncher.dir/code/controls/ModList.cpp.o
/home/james/FreeSpace2/build/wxlauncher-master/code/controls/ModList.cpp: In member function ‘void ModList::readIniFileString(const wxFileConfig*, const wxString&, wxString&)’:
/home/james/FreeSpace2/build/wxlauncher-master/code/controls/ModList.cpp:638:77: warning: deprecated conversion from string constant to ‘wchar_t*’ [-Wwrite-strings]
   location.IsEmpty() ? _T("Not Specified") : escapeSpecials(location).c_str());
                                                                             ^
/home/james/FreeSpace2/build/wxlauncher-master/code/controls/ModList.cpp: In constructor ‘ModInfoDialog::ModInfoDialog(ModItem*, wxWindow*)’:
/home/james/FreeSpace2/build/wxlauncher-master/code/controls/ModList.cpp:1354:72: error: operands to ?: have different types ‘wxCStrData’ and ‘const wxString’
   wxString::Format(_T("<a href='%s'>%s</a>"), (!item->forum.IsEmpty()) ?
                                                                        ^
CMakeFiles/wxlauncher.dir/build.make:261: recipe for target 'CMakeFiles/wxlauncher.dir/code/controls/ModList.cpp.o' failed
make[2]: *** [CMakeFiles/wxlauncher.dir/code/controls/ModList.cpp.o] Error 1
CMakeFiles/Makefile2:131: recipe for target 'CMakeFiles/wxlauncher.dir/all' failed
make[1]: *** [CMakeFiles/wxlauncher.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2

I have both wxgtk 3.0.2-2 and wxgtk2.8.12.1-2 installed, as Play On Linux requires the 2.8 version.  From earlier in this thread I see that VulcanRidr solved the same issue, but I have worked through the different advice her to see if it works for me and it hasn't fixed it yet.  Can anyone help me please?  I need my Freespace 2 fix!  Let me know if you need any other information.  Thank you.
Title: Re: Problems compiling wxlauncher
Post by: Iss Mneur on February 26, 2015, 09:08:02 am
jdthehutt, can you please try the develop branch?

Code: [Select]
git clone https://github.com/wxLauncher/wxlauncher.git wxlauncher -b develop
Can a moderator please move this post and the previous one, to the main wxLauncher thread: http://www.hard-light.net/forums/index.php?topic=67950.0

Thanks,
Title: Re: Problems compiling wxlauncher
Post by: jdthehutt on February 26, 2015, 10:43:10 am
jdthehutt, can you please try the develop branch?

Code: [Select]
git clone https://github.com/wxLauncher/wxlauncher.git wxlauncher -b develop
Can a moderator please move this post and the previous one, to the main wxLauncher thread: http://www.hard-light.net/forums/index.php?topic=67950.0

Thanks,

Thank you for the quick response, wasn't expecting a reply that fast!  Unfortunately I have had exactly the same result as before.
Title: Re: Problems compiling wxlauncher
Post by: Iss Mneur on March 01, 2015, 01:59:05 pm
Okay, I have found the issue and am now able to compile wxLauncher on my brand new Archlinux test box.  Seems no one has build wxLauncher with GCC and wxWidgets 3.0.  I will have to add that to the testing matrix.

please try:

Code: [Select]
git clone https://github.com/wxLauncher/wxlauncher.git wxlauncher -b revision-0.9.6
I also noticed that you may need to add -DUSE_SPEECH=0 to the cmake line if I haven't pushed the fix for that when you see this.

Thanks,
Title: Re: Problems compiling wxlauncher
Post by: jdthehutt on March 03, 2015, 07:17:26 pm
Okay, I have found the issue and am now able to compile wxLauncher on my brand new Archlinux test box.  Seems no one has build wxLauncher with GCC and wxWidgets 3.0.  I will have to add that to the testing matrix.

please try:

Code: [Select]
git clone https://github.com/wxLauncher/wxlauncher.git wxlauncher -b revision-0.9.6
I also noticed that you may need to add -DUSE_SPEECH=0 to the cmake line if I haven't pushed the fix for that when you see this.

Thanks,

Thank you, Iss, I really appreciate you looking into this.  I've hit a further snag now though.  I still get a warning message at the same point I had an error before, but it is not a fatal stop and it continues on.  I'll post below so you can see the new message.  I get a similar one a bit further one with another part, then I get a fatal error near the end of the compilation.

Code: [Select]
[ 23%] Building CXX object CMakeFiles/wxlauncher.dir/code/controls/ModList.cpp.o                                                                                                                                     
/home/james/FreeSpace2/build/wxlauncher/code/controls/ModList.cpp: In member function ‘void ModList::readIniFileString(const wxFileConfig*, const wxString&, wxString&)’:
/home/james/FreeSpace2/build/wxlauncher/code/controls/ModList.cpp:638:77: warning: deprecated conversion from string constant to ‘wchar_t*’ [-Wwrite-strings]
   location.IsEmpty() ? _T("Not Specified") : escapeSpecials(location).c_str());
                                                                             ^

Code: [Select]
[ 51%] Building CXX object CMakeFiles/wxlauncher.dir/code/datastructures/FSOExecutable.cpp.o
/home/james/FreeSpace2/build/wxlauncher/code/datastructures/FSOExecutable.cpp: In member function ‘wxString FSOExecutable::GetVersionString() const’:
/home/james/FreeSpace2/build/wxlauncher/code/datastructures/FSOExecutable.cpp:386:73: warning: deprecated conversion from string constant to ‘wchar_t*’ [-Wwrite-strings]
   (this->binaryname.IsEmpty()) ? _T("Unknown") : this->binaryname.c_str(), // FS2 Open
                                                                         ^

then the fatal error.

Code: [Select]
[ 72%] Building CXX object CMakeFiles/wxlauncher.dir/code/apis/OpenALManager.cpp.o
/home/james/FreeSpace2/build/wxlauncher/code/apis/OpenALManager.cpp:28:19: fatal error: al/al.h: No such file or directory
 #include <al/al.h>
                   ^
compilation terminated.
CMakeFiles/wxlauncher.dir/build.make:744: recipe for target 'CMakeFiles/wxlauncher.dir/code/apis/OpenALManager.cpp.o' failed
make[2]: *** [CMakeFiles/wxlauncher.dir/code/apis/OpenALManager.cpp.o] Error 1
CMakeFiles/Makefile2:131: recipe for target 'CMakeFiles/wxlauncher.dir/all' failed
make[1]: *** [CMakeFiles/wxlauncher.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2

I have checked and the file is present in the directory it is looking in, so I am not sure why it is reporting that error.  I am running the cmake command as before and have tried it both with and without -DUSE_SPEECH=0 but with the same result.  You're using Arch as well though, so I'm not sure why mine is failing when yours is succeeding.  Thank you.
Title: Re: Problems compiling wxlauncher
Post by: Iss Mneur on March 04, 2015, 12:12:24 am
You're using Arch as well though, so I'm not sure why mine is failing when yours is succeeding.  Thank you.
Well, using is perhaps a bit optimistic.  I can't even convince a GUI to start :|

I tried building what I had put into revision-0.9.6 and it broke for me as well.  Looks like I missed a change in what I pushed.  I have fixed it, and I can now successfully compile wxlauncher from the revision-0.9.6 branch.  Please try the git clone again.
Code: [Select]
git clone https://github.com/wxLauncher/wxlauncher.git wxlauncher -b revision-0.9.6
The warnings should not cause issues, but let me know because my test vm has no GUI so I have not actually been able to run wxLaucnher.

Thanks,
Title: Re: Problems compiling wxlauncher
Post by: jdthehutt on March 04, 2015, 05:39:46 am
Well, using is perhaps a bit optimistic.  I can't even convince a GUI to start :|

Haha, I have been using Arch for a few years now but I do remember a lot of trial and error getting myself used to installing everything as I wanted without breaking it.  There were quite a few occasions of wiping and starting again after I got a bit too cocky with the command line.  I love it now though, still consider myself very inexperienced but going back to other distros makes me feel a bit limited.

The warnings should not cause issues, but let me know because my test vm has no GUI so I have not actually been able to run wxLaucnher.

Thanks,

It has successfully compiled now, thank you so much for the assistance.  I get the warnings but they don't stop with a fatal error.

I can run the launcher and it pops up and displays itself though I am receiving pop-up errors when I launch it and when I select the root directory for Freespace 2.  Looking at the error logs I think that these errors must be related to the compile warning errors but they don't seem to stop the launcher running.

I have successfully chosen the root directory and the executable and configured my graphics settings, however the audio selection has issues and it fails to save to the profile and requires me to reselect OpenAL each time I start the launcher, generating its own pop-up error when it does so.  The notification ticker at the bottom of the launcher also states "OpenAL32.so: cannot open shared object file: No such file or directory".

I also have no advanced settings as it tells me that the executable did not generate a flag file.  I have tried with FS2 Open 3.7.0 and 3.7.2 (RC5), with the same result.

Attempting to launch Freespace 2, with no mods selected, results in another error and it does not run.  The notification ticker at the bottom of the launcher also states "can't open file '/home/james/.fs2_open/' (error 21: Is a directory)" and "Couldn't create 'data' folder /home/james/.fs2_open/data".  I manually created that directory to see what would happen and this time I don't get a pop-up error but it still fails to run with a notification ticker of "can't open file '/home/james/.fs2_open/fs2_open.ini' (error 2: No such file or directory".  However, with me having manually created the ".fs2_open" directory in my home folder, running the game does result in it adding the "fs2_open.ini" file to the directory and a subdirectory of "data" which contains a file of "cmdline_fso.cfg".

I have saved a copy of each error I am receiving and will attach them here in case they are of use to you in further tweaking.  Let me know if there is something I have missed or that you need me to test.  Thanks again!

[attachment deleted by nobody]
Title: Re: Problems compiling wxlauncher
Post by: ngld on March 04, 2015, 06:37:38 pm
Did you try installing the AUR package (https://aur.archlinux.org/packages/wxlauncher/)?
It's compiled against wxWidgets 2.8 and works fine for me.
Title: Re: Problems compiling wxlauncher
Post by: jdthehutt on March 04, 2015, 06:55:09 pm
Did you try installing the AUR package (https://aur.archlinux.org/packages/wxlauncher/)?
It's compiled against wxWidgets 2.8 and works fine for me.

Actually, I hadn't tried the AUR and that's usually my first place to go shopping for stuff.  I thought I'd work with the direct download instead.  I just tried the AUR package instead and it results in exactly the same problem.  I'm really not sure what is going wrong here.
Title: Re: Problems compiling wxlauncher
Post by: Iss Mneur on March 09, 2015, 12:43:04 am
Did you try installing the AUR package (https://aur.archlinux.org/packages/wxlauncher/)?
It's compiled against wxWidgets 2.8 and works fine for me.

Actually, I hadn't tried the AUR and that's usually my first place to go shopping for stuff.  I thought I'd work with the direct download instead.  I just tried the AUR package instead and it results in exactly the same problem.  I'm really not sure what is going wrong here.
That indicates to me, that you are having an issue with your openal.  Can you attach the wxLauncher.log?  See the Troubleshooting section in the main wxLauncher post (http://www.hard-light.net/forums/index.php?topic=67950.0).

Can you also attach the fs2_open.log, which should be in the data directory with the cmdline_fso.cfg?  What happens when you run fs2_open directly?