How to compile more easily?
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:
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?
You can find a list of dependencies etc. here.
http://hedgewars.org/kb/BuildingOnLinux
e.g. this
should install all required dependencies on Linux Mint (and other debian-based distros)
sheepluva <- me
my code stats ->
a Hedgewars Developer
click here to message me
Why do you compile it yourself then if its too exhausting for you? You could just use the build from the debian repo instead.
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
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.