Author Topic: [fixed] r4045: setupBuildDeps.sh does not recognise LinuxMint 14  (Read 1445 times)

jammyjamjamman

  • Administrator
  • Horseman
  • ********
  • Posts: 210
    • View Profile
When I run the script, the output for an unrecogised distribution comes up:
Code: [Select]
We have detected the following system:
 [ LinuxMint ] [ 14 ] [ nadia ] [ x86_64 ]

On supported systems, we will now install build dependencies.

Unsupported LinuxMintrelease.

Please report a bug at http://bugs.megaglest.org providing the following information:
--- snip ---
SVN version:  4045
LSB support:  1
Distribution: LinuxMint
Release:      14
Codename:     nadia
--- snip ---

For now, please try this (which works with other LinuxMint releases) and report back how it works for you:
apt-get install build-essential subversion automake autoconf autogen cmake; apt-get install libsdl1.2-dev libxerces-c2-dev libalut-dev libgl1-mesa-dev libglu1-mesa-dev libvorbis-dev libwxbase2.8-dev libwxgtk2.8-dev libx11-dev liblua5.1-0-dev libjpeg-dev libpng12-dev libcurl4-gnutls-dev libxml2-dev libircclient-dev libglew-dev libftgl-dev libvlc-dev libfribidi-dev
Thanks!

When I install the packages manually they all seem to install except I get an error message at the end:
Code: [Select]
sudo apt-get install build-essential subversion automake autoconf autogen cmake; apt-get install libsdl1.2-dev libxerces-c2-dev libalut-dev libgl1-mesa-dev libglu1-mesa-dev libvorbis-dev libwxbase2.8-dev libwxgtk2.8-dev libx11-dev liblua5.1-0-dev libjpeg-dev libpng12-dev libcurl4-gnutls-dev libxml2-dev libircclient-dev libglew-dev libftgl-dev libvlc-dev libfribidi-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  autoconf2.13 autoconf-archive gnu-standards autoconf-doc libtool
  subversion-tools db5.1-util
The following NEW packages will be installed
  autoconf autogen automake build-essential cmake subversion
0 upgraded, 6 newly installed, 0 to remove and 36 not upgraded.
Need to get 5,243 kB/7,165 kB of archives.
After this operation, 18.9 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ quantal/main autoconf all 2.69-1ubuntu1 [568 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ quantal/main build-essential amd64 11.5ubuntu3 [5,814 B]
Get:3 http://archive.ubuntu.com/ubuntu/ quantal/main cmake amd64 2.8.9-0ubuntu1 [4,669 kB]
Fetched 5,243 kB in 23s (219 kB/s)                                             
Selecting previously unselected package autoconf.
(Reading database ... 188353 files and directories currently installed.)
Unpacking autoconf (from .../autoconf_2.69-1ubuntu1_all.deb) ...
Selecting previously unselected package autogen.
Unpacking autogen (from .../autogen_1%3a5.12-0.1ubuntu2_amd64.deb) ...
Replaced by files in installed package libopts25-dev ...
Selecting previously unselected package automake.
Unpacking automake (from .../automake_1%3a1.11.6-1ubuntu1_all.deb) ...
Selecting previously unselected package build-essential.
Unpacking build-essential (from .../build-essential_11.5ubuntu3_amd64.deb) ...
Selecting previously unselected package cmake.
Unpacking cmake (from .../cmake_2.8.9-0ubuntu1_amd64.deb) ...
Selecting previously unselected package subversion.
Unpacking subversion (from .../subversion_1.7.5-1ubuntu2_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for install-info ...
Processing triggers for doc-base ...
Processing 2 added doc-base files...
Registering documents with scrollkeeper...
Setting up autoconf (2.69-1ubuntu1) ...
Setting up autogen (1:5.12-0.1ubuntu2) ...
Setting up automake (1:1.11.6-1ubuntu1) ...
update-alternatives: using /usr/bin/automake-1.11 to provide /usr/bin/automake (automake) in auto mode
Setting up build-essential (11.5ubuntu3) ...
Setting up cmake (2.8.9-0ubuntu1) ...
Setting up subversion (1.7.5-1ubuntu2) ...
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

but after doing the manual install when I try to run the build-mg script I get this output:
Code: [Select]
-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- 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
-- Build type for this compile will be:
-- MegaGlest Version is [3.7.2]
-- Detected GNUC Compiler...
-- *NOTE: Checking for max SSE LEVEL [1]
-- Max SSE desired: [1]
-- Performing Test HAS_SSE3_EXTENSIONS
-- Performing Test HAS_SSE3_EXTENSIONS - Success
-- Performing Test HAS_SSE2_EXTENSIONS
-- Performing Test HAS_SSE2_EXTENSIONS - Success
-- Performing Test HAS_SSE_EXTENSIONS
-- Performing Test HAS_SSE_EXTENSIONS - Success
-- Found SSE extensions, using flags: -msse -mfpmath=sse
-- *NOTE: using SSE for STREFLOP.
-- Performing Test HAS_GCC_BACKTRACE
-- Performing Test HAS_GCC_BACKTRACE - Success
-- Found GCC backtrace lib, will support backtraces
-- Found Subversion: /usr/bin/svn (found version "1.7.5")
-- Found SVN and using SVN version stamping...
-- *NOTE: NOT USING a Custom Data Install Path...
-- **Found game source code.
-- Will try to build MegaGlest shared library
CMake Error at mk/cmake/Modules/FindPackageHandleStandardArgs.cmake:94 (MESSAGE):
  Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
Call Stack (most recent call first):
  mk/cmake/Modules/FindPackageHandleStandardArgs.cmake:255 (_FPHSA_FAILURE_MESSAGE)
  mk/cmake/Modules/FindCURL.cmake:20 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  source/shared_lib/CMakeLists.txt:51 (FIND_PACKAGE)

-- Configuring incomplete, errors occurred!

ERROR: CMAKE failed.

Thanks

« Last Edit: 25 January 2013, 19:35:30 by tomreyn »
"All right, I've been thinking. When life gives you lemons? Don't make lemonade. Make life take the lemons back! Get mad! 'I don't want your damn lemons! What am I supposed to do with these?'" ~Cave Johnson, Portal 2

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
When I run the script, the output for an unrecogised distribution comes up:

Thanks for your report.

Quote
Code: [Select]
For now, please try this (which works with other LinuxMint releases) and report back how it works for you:
apt-get install build-essential subversion automake autoconf autogen cmake; apt-get install libsdl1.2-dev libxerces-c2-dev libalut-dev libgl1-mesa-dev libglu1-mesa-dev libvorbis-dev libwxbase2.8-dev libwxgtk2.8-dev libx11-dev liblua5.1-0-dev libjpeg-dev libpng12-dev libcurl4-gnutls-dev libxml2-dev libircclient-dev libglew-dev libftgl-dev libvlc-dev libfribidi-dev
Thanks!

When I install the packages manually they all seem to install except I get an error message at the end:
Code: [Select]
sudo apt-get install build-essential subversion automake autoconf autogen cmake; apt-get install libsdl1.2-dev libxerces-c2-dev libalut-dev libgl1-mesa-dev libglu1-mesa-dev libvorbis-dev libwxbase2.8-dev libwxgtk2.8-dev libx11-dev liblua5.1-0-dev libjpeg-dev libpng12-dev libcurl4-gnutls-dev libxml2-dev libircclient-dev libglew-dev libftgl-dev libvlc-dev libfribidi-dev

That's because you're running the second apt-get install without sudo. Try this instead:
Code: [Select]
sudo apt-get install build-essential subversion automake autoconf autogen cmake; sudo apt-get install libsdl1.2-dev libxerces-c2-dev libalut-dev libgl1-mesa-dev libglu1-mesa-dev libvorbis-dev libwxbase2.8-dev libwxgtk2.8-dev libx11-dev liblua5.1-0-dev libjpeg-dev libpng12-dev libcurl4-gnutls-dev libxml2-dev libircclient-dev libglew-dev libftgl-dev libvlc-dev libfribidi-dev

And with the second part of the dependency installation failing (due to lack of 'sudo'), you're lacking depepndencies which consequently makes the build to fail.

I'll look into changing the script so there's only one apt-get command or they are output on separate lines so this will be more obvious.

For now, please retry with sudo and report your findings.
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 · · ·

jammyjamjamman

  • Administrator
  • Horseman
  • ********
  • Posts: 210
    • View Profile
Thanks for the fix. That was a silly mistake with the sudo. ;D Unfortunately I still came up with an error when trying to install libwxgtk2.8-dev:

Code: [Select]
sudo apt-get install build-essential subversion automake autoconf autogen cmake; sudo apt-get install libsdl1.2-dev libxerces-c2-dev libalut-dev libgl1-mesa-dev libglu1-mesa-dev libvorbis-dev libwxbase2.8-dev libwxgtk2.8-dev libx11-dev liblua5.1-0-dev libjpeg-dev libpng12-dev libcurl4-gnutls-dev libxml2-dev libircclient-dev libglew-dev libftgl-dev libvlc-dev libfribidi-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
autoconf is already the newest version.
autogen is already the newest version.
automake is already the newest version.
build-essential is already the newest version.
cmake is already the newest version.
subversion is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 37 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
 libwxgtk2.8-dev : Depends: libwxgtk2.8-0 (= 2.8.12.1-11ubuntu3.1) but 2.8.12.1-12 is to be installed
E: Unable to correct problems, you have held broken packages.

"All right, I've been thinking. When life gives you lemons? Don't make lemonade. Make life take the lemons back! Get mad! 'I don't want your damn lemons! What am I supposed to do with these?'" ~Cave Johnson, Portal 2

jammyjamjamman

  • Administrator
  • Horseman
  • ********
  • Posts: 210
    • View Profile
I just uninstalled libwxgtk2.8-0 and then installed libwxgtk2.8-dev and the installation seemed to work fine.  :)
"All right, I've been thinking. When life gives you lemons? Don't make lemonade. Make life take the lemons back! Get mad! 'I don't want your damn lemons! What am I supposed to do with these?'" ~Cave Johnson, Portal 2

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: [fixed] r4045: setupBuildDeps.sh does not recognise LinuxMint 14
« Reply #4 on: 25 January 2013, 19:36:26 »
LinuxMint 14 should now be supported. Please try running the script once more to confirm.
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 · · ·

jammyjamjamman

  • Administrator
  • Horseman
  • ********
  • Posts: 210
    • View Profile
Re: [fixed] r4045: setupBuildDeps.sh does not recognise LinuxMint 14
« Reply #5 on: 25 January 2013, 23:02:39 »
Thanks. The script now works fine.
"All right, I've been thinking. When life gives you lemons? Don't make lemonade. Make life take the lemons back! Get mad! 'I don't want your damn lemons! What am I supposed to do with these?'" ~Cave Johnson, Portal 2