How to compile more easily?

3 replies [Last post]
Kaphbr
User offline. Last seen 10 years 11 weeks ago. Offline
Joined: 2015-04-03
Posts: 2

I need build the game to play on my computer, Linux Mint.

Then, just as I do with any other software, I downloaded the source and will try to compile. If any dependency is missing, I do a search on apt and install, until there is no more missing dependencies.

Example:

Quote:
mint@mint-acer ~/Desktop/hedgewars-src-0.9.22 $ cmake .
-- Building 0.9.22-r11265 (4c4f22cc3fa4)
-- Using RELEASE configuration
-- Found SDL2: /usr/lib/x86_64-linux-gnu/libSDL2main.a;/usr/lib/x86_64-linux-gnu/libSDL2.so;-lpthread
-- Could NOT find SDL_image (missing: SDL_IMAGE_LIBRARIES SDL_IMAGE_INCLUDE_DIRS)
-- Could NOT find SDL_net (missing: SDL_NET_LIBRARIES SDL_NET_INCLUDE_DIRS)
-- Could NOT find SDL_ttf (missing: SDL_TTF_LIBRARIES SDL_TTF_INCLUDE_DIRS)
-- Could NOT find SDL_mixer (missing: SDL_MIXER_LIBRARIES SDL_MIXER_INCLUDE_DIRS)
CMake Error: your Pascal compiler: "CMAKE_Pascal_COMPILER-NOTFOUND" was not found. Please set CMAKE_Pascal_COMPILER to a valid compiler path or name.
CMake Error at hedgewars/CMakeLists.txt:18 (if):
if given arguments:

"VERSION_GREATER" "2.7" "OR" "x86_64" "MATCHES" "x86_64" "OR" "x86_64" "MATCHES" "i386"

Unknown arguments specified

-- Configuring incomplete, errors occurred!
See also "/home/macabeus/Desktop/hedgewars-src-0.9.22/CMakeFiles/CMakeOutput.log".
See also "/home/macabeus/Desktop/hedgewars-src-0.9.22/CMakeFiles/CMakeError.log".

mint@mint-acer ~ $ sudo apt-get install fpc
[...]

mint@mint-acer ~/Desktop/hedgewars-src-0.9.22 $ cmake .
-- Building 0.9.22-r11265 (4c4f22cc3fa4)
-- Using RELEASE configuration
-- Could NOT find SDL_image (missing: SDL_IMAGE_LIBRARIES SDL_IMAGE_INCLUDE_DIRS)
-- Could NOT find SDL_net (missing: SDL_NET_LIBRARIES SDL_NET_INCLUDE_DIRS)
-- Could NOT find SDL_ttf (missing: SDL_TTF_LIBRARIES SDL_TTF_INCLUDE_DIRS)
-- Found SDL_mixer: /usr/lib/x86_64-linux-gnu/libSDL_mixer.so (found version "1.2.12")
-- Check for working Pascal compiler: /usr/bin/fpc
-- Check for working Pascal compiler: /usr/bin/fpc -- works
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-2.8/Modules/FindGLUT.cmake:82 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
hedgewars/avwrapper/CMakeLists.txt:5 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/macabeus/Desktop/hedgewars-src-0.9.22/CMakeFiles/CMakeOutput.log".
See also "/home/macabeus/Desktop/hedgewars-src-0.9.22/CMakeFiles/CMakeError.log".

mint@mint-acer ~ $ sudo apt search glut
[...]
mint@mint-acer ~ $ sudo apt-get install freeglut3-dev
[...]
mint@mint-acer ~/Desktop/hedgewars-src-0.9.22 $ cmake .
-- Building 0.9.22-r11265 (4c4f22cc3fa4)
-- Using RELEASE configuration
-- Could NOT find SDL_image (missing: SDL_IMAGE_LIBRARIES SDL_IMAGE_INCLUDE_DIRS)
-- Could NOT find SDL_net (missing: SDL_NET_LIBRARIES SDL_NET_INCLUDE_DIRS)
-- Could NOT find SDL_ttf (missing: SDL_TTF_LIBRARIES SDL_TTF_INCLUDE_DIRS)
qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory
CMake Error at /usr/share/cmake-2.8/Modules/FindQt4.cmake:1386 (message):
Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x
Call Stack (most recent call first):
QTfrontend/CMakeLists.txt:13 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/macabeus/Desktop/hedgewars-src-0.9.22/CMakeFiles/CMakeOutput.log".
See also "/home/macabeus/Desktop/hedgewars-src-0.9.22/CMakeFiles/CMakeError.log".

mint@mint-acer ~ $ sudo apt search qt.*4.*dev
[...]
mint@mint-acer ~ $ sudo apt-get install libqt4-dev
[...]

However, this is very annoying and time-consuming to make.
Was there a faster way to do this?

sheepluva
sheepluva's picture
User offline. Last seen 18 weeks 3 days ago. Offline
Joined: 2009-07-18
Posts: 565

You can find a list of dependencies etc. here.

http://hedgewars.org/kb/BuildingOnLinux

e.g. this

Quote:
sudo apt-get install mercurial cmake g++ qt4-qmake libqt4-dev libsdl1.2-dev libsdl-net1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsdl-ttf2.0-dev liblua5.1-dev fpc libphysfs-dev fonts-dejavu-core ttf-wqy-zenhei libpng12-dev libavcodec-dev libavformat-dev freeglut3-dev

should install all required dependencies on Linux Mint (and other debian-based distros)

  sheepluva <- me  my code stats -> 
a Hedgewars Developer


   <- where I'm from  what I speak -> 

Anachron
User offline. Last seen 2 years 14 weeks ago. Offline
Joined: 2014-11-08
Posts: 42

Why do you compile it yourself then if its too exhausting for you? You could just use the build from the debian repo instead.

IncredibleHog
User offline. Last seen 10 years 6 weeks ago. Offline
Joined: 2014-09-28
Posts: 5

I have the same problem here. Am i wrong or was there a more convenient way to update to 0.9.21-5. I admit i've allways found a way around building/compiling from source and am quite a noob on this.
Using

Quote:
cmake . -DNOVIDEOREC=1
and
Quote:
make install

created serveral files and folders in /home and also in /home/Downloads/hedgewars-src-0.9.22/ and left the system-wide installed version 0.9.21 untouched wich is sort of confusing.

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]