Author Topic: [fixed] r3438: setupBuildDeps.sh breaks with Debian 6.0 i686  (Read 956 times)

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
When run on Debian 6.0 i686 (32 bit), the setupBuildDeps.sh considers this system to be "Ubuntu 8.04". It then tries to install, amongst other packages, libluajit-5.1-dev and libvlc-dev. libluajit-5.1-dev is not available on Debian 6.0, making the entire command fail. if you run this apt-get command without luajit-5.1-dev you end up installing libvlc-dev 1.1.3-1squeeze6, which, I believe because MegaGlest expects a different version, breaks the build (cmake works) with:
Code: [Select]
[ 30%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/PNGReader.cpp.o 
/home/megaglest/trunk/source/shared_lib/sources/graphics/video_player.cpp: In function 'void Shared::Graphics::callbacks(const libvlc_event_t*, void*)': 
/home/megaglest/trunk/source/shared_lib/sources/graphics/video_player.cpp:314: error: 'libvlc_MediaPlayerVout' was not declared in this scope 
/home/megaglest/trunk/source/shared_lib/sources/graphics/video_player.cpp: In member function 'bool Shared::Graphics::VideoPlayer::initPlayer(std::string)': 
/home/megaglest/trunk/source/shared_lib/sources/graphics/video_player.cpp:765: error: 'libvlc_MediaPlayerVout' was not declared in this scope 
make[2]: *** [source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/video_player.cpp.o] Error 1 
make[2]: *** Waiting for unfinished jobs.... 
make[1]: *** [source/shared_lib/CMakeFiles/libmegaglest.dir/all] Error 2 
make: *** [all] Error 2 
ERROR: MAKE failed. 

I think the real problem with the setupBuildDeps.sh scritpt is that it uses unreliable criteria to map out the system it is run on. It would be better to work more with the 'lsb_release' and 'arch' / 'uname -a' commands, and to develop unique criteria for each supported distribution and version, and, optionally, for readability, to use 'case' instead of 'if ... then ... elif ... fi'.

In case Softcoder agrees with my view then I'd happily offer to rewrite it myself.
« Last Edit: 14 July 2012, 19:38:50 by tomreyn »
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: r3438: setupBuildDeps.sh breaks with Debian 6.0 i686
« Reply #1 on: 9 July 2012, 16:19:31 »
Feel free to edit the script :)

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: [fixed] r3438: setupBuildDeps.sh breaks with Debian 6.0 i686
« Reply #2 on: 14 July 2012, 19:44:54 »
Fixed in r3453.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·