Author Topic: lugaru compile SOLVED  (Read 2914 times)

zozzo

  • Guest
lugaru compile SOLVED
« on: May 18, 2010, 01:15:21 PM »
Hi to everibody since I'm new to the distro.

Since Lugaru has been released as open source:
http://blog.wolfire.com/2010/05/Lugaru-goes-open-source
I was trying to compile the program under pclinux, however I got stuck at this point:

Code: [Select]
[ 70%] Building CXX object CMakeFiles/lugaru.dir/Source/Text.cpp.o              
[ 74%] Building CXX object CMakeFiles/lugaru.dir/Source/TGALoader.cpp.o        
[ 77%] Building C object CMakeFiles/lugaru.dir/Source/unpack.c.o                
[ 81%] Building C object CMakeFiles/lugaru.dir/Source/unpack_private.c.o        
[ 85%] Building CXX object CMakeFiles/lugaru.dir/Source/Weapons.cpp.o          
[ 88%] Building CXX object CMakeFiles/lugaru.dir/Source/OpenGL_Windows.cpp.o    
/home/lorenzo/lugaru/Source/OpenGL_Windows.cpp:125:26: error: res/resource.h: No such file or directory
make[2]: *** [CMakeFiles/lugaru.dir/Source/OpenGL_Windows.cpp.o] Error 1
make[1]: *** [CMakeFiles/lugaru.dir/all] Error 2
make: *** [all] Error 2

What dependency am I missing? I can't really figure it out.

thanks in advance.
« Last Edit: May 19, 2010, 08:46:40 AM by zozzo »

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: lugaru compile
« Reply #1 on: May 18, 2010, 04:45:01 PM »
Hi to everibody since I'm new to the distro.

Since Lugaru has been released as open source:
http://blog.wolfire.com/2010/05/Lugaru-goes-open-source
I was trying to compile the program under pclinux, however I got stuck at this point:

Code: [Select]
[ 70%] Building CXX object CMakeFiles/lugaru.dir/Source/Text.cpp.o             
[ 74%] Building CXX object CMakeFiles/lugaru.dir/Source/TGALoader.cpp.o         
[ 77%] Building C object CMakeFiles/lugaru.dir/Source/unpack.c.o               
[ 81%] Building C object CMakeFiles/lugaru.dir/Source/unpack_private.c.o       
[ 85%] Building CXX object CMakeFiles/lugaru.dir/Source/Weapons.cpp.o           
[ 88%] Building CXX object CMakeFiles/lugaru.dir/Source/OpenGL_Windows.cpp.o   
/home/lorenzo/lugaru/Source/OpenGL_Windows.cpp:125:26: error: res/resource.h: No such file or directory
make[2]: *** [CMakeFiles/lugaru.dir/Source/OpenGL_Windows.cpp.o] Error 1
make[1]: *** [CMakeFiles/lugaru.dir/all] Error 2
make: *** [all] Error 2

What dependency am I missing? I can't really figure it out.

thanks in advance.


From your post, it appears that you have the windows version --->> 
Quote
make[2]: *** [CMakeFiles/lugaru.dir/Source/OpenGL_Windows.cpp.o] Error 1

Windows code, even when it is open source code, does not compile on Linux. Look for non-windows, non-mac-os code; i.e. look for a Linux version.


zozzo

  • Guest
Re: lugaru compile
« Reply #2 on: May 19, 2010, 12:38:06 AM »
it did compile correctly on my opensuse install on the same machine..

to quote the guy who released the code:

Quote
The source code is based on Ryan C. Gordon's branch, which took David Rosen's original Windows and Carbonized Mac OS code and ported it to Linux and Mac OS X, using SDL and OpenAL. It should compile as-is on those platforms from the command-line.

so yeah, it is supposed to compile on  a linux machine.
« Last Edit: May 19, 2010, 12:49:14 AM by zozzo »

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: lugaru compile
« Reply #3 on: May 19, 2010, 01:47:15 AM »
Oh? Really?

zozzo

  • Guest
Re: lugaru compile
« Reply #4 on: May 19, 2010, 02:04:36 AM »

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: lugaru compile
« Reply #5 on: May 19, 2010, 02:28:42 AM »
I've never heard of a windows C++ program compiling on Linux before. :o
Perhaps in addition to SDL and OpenAL, you need mono? It is supposed to work with some windows stuff.

zozzo

  • Guest
Re: lugaru compile
« Reply #6 on: May 19, 2010, 07:13:35 AM »
it works now! :D I think I was missing some devel packages related to SDL ( not sure which one since I installed a bunch of them just to be sure).

If anyone else wants to try:

required dependencies should be: make cmake gcc-c++ mercurial zlib-devel libpng-devel libjpeg-devel libvorbis-devel libSDL-devel openal-devel mercurial libSDLmm0.1-devel libSDL_mixer-devel

then type on a shell as root:

Code: [Select]
hg clone http://hg.icculus.org/icculus/lugaru
Code: [Select]
mkdir lugaru/build
Code: [Select]
cd lugaru/build
Code: [Select]
cmake ..
Code: [Select]
make
Code: [Select]
make install
to launch the game type:

Code: [Select]
/usr/local/lugaru/lugaru

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: lugaru compile
« Reply #7 on: May 19, 2010, 08:15:09 AM »
Point of information here -->
PCLinuxOS discourages installation from outside sources. Such installations are officially not supported.

Online gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3882
Re: lugaru compile
« Reply #8 on: May 19, 2010, 09:40:06 AM »
Point of information here -->
PCLinuxOS discourages installation from outside sources. Such installations are officially not supported.

Neal's right. But, I think the advanced section was created to allow discussion of this, with an empasis on the fact that this installation cannot be supported? Anyway, this information is useful is someone wants to create a package.

Galen