scp-fs2open / wxLauncher

wxLauncher
Other
26 stars 12 forks source link

ubuntu 12.04 compile issues #75

Closed IssMneur closed 10 years ago

IssMneur commented 10 years ago

From niffiwan...@gmail.com on May 16, 2012 10:09:53

What steps will reproduce the problem? 1. make from source following the instructions in the readme What is the expected output? What do you see instead? Expected to see a normal successful build.

Three errors found.

/bin/sh: 1: /usr/bin/python2.6: not found make[2]: * [CMakeFiles/helpmaker] Error 127 make[1]: * [CMakeFiles/helpmaker.dir/all] Error 2 make: *\ [all] Error 2

make[2]: * No rule to make target /usr/lib/libSDLmain.a', needed bywxlauncher'. Stop. make[1]: * [CMakeFiles/wxlauncher.dir/all] Error 2 make: *\ [all] Error 2

make[2]: * No rule to make target /usr/lib/libSDL.so', needed bywxlauncher'. Stop. make[1]: * [CMakeFiles/wxlauncher.dir/all] Error 2 make: *\ [all] Error 2

What version of the wxLauncher are you using: latest trunk What version of fs2_open: n/a What mods (and version, if known): n/a

What operating system and version: Ubuntu 12.04 Please provide any additional information below. You can work around the issues fairly easily:

1) cd /usr/lib && sudo ln -s python python2.6 2) cd /usr/lib && sudo ln -s x86_64-linux-gnu/libSDLmain.a . 3) cd /usr/lib && sudo ln -s x86_64-linux-gnu/libSDL.so .

(note: only valid for 64bit ubuntu, 32bit ubuntu needs different paths)

For the python issue cmake just needs to accept python2.7 as a valid option. For the SDL issues, cmake just needs to look in /usr/lib/x86_64-linux-gnu and /usr/lib/i386-linux-gnu for libs (as well as /usr/lib).

Original issue: http://code.google.com/p/wxlauncher/issues/detail?id=75

IssMneur commented 10 years ago

From jg18....@gmail.com on May 17, 2012 09:44:55

Hm, I'm not sure why CMake doesn't accept Python 2.7. What version of CMake are you using? I'm using version 2.8.5 on OS X 10.6, and it detects and accepts Python 2.7.

When running CMake, you can specify the Python executable, SDL include directories, and SDL library that you want to use with -DPYTHON_EXECUTABLE=/path/to/python -DSDL_INCLUDE_DIR=/path/to/include1;/path/to/include2;... and -DSDL_LIBRARY=/path/to/SDLlibrary

Could you try removing the symbolic links and checking if compiling works by manually specifying those three things?

IssMneur commented 10 years ago

From niffiwan...@gmail.com on May 20, 2012 02:09:27

Sorry - I'm an idiot. I neglected to remove my build directory after upgrading, so all the files like CMakeCache.txt had references to the old 10.04 directories. When I removed the build directory and started over from scratch, it all worked fine without needing any extra cmd-line params.

Apologies for wasting your time.

IssMneur commented 10 years ago

From issmn...@gmail.com on May 20, 2012 18:51:42

Okay. No problem.

Status: Done