Compiling problems Ubuntu
I run cmake .
and get
cmake .
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Check size of void*
-- Check size of void* - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Found Qt-Version 4.3.2
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/stuart/hedgewars
then make
make
Linking CXX executable ../bin/hedgewars
[ 99%] Built target hedgewars
[ 99%] Generating ../bin/hwengine
Free Pascal Compiler version 2.0.4 [2007/02/02] for i386
Copyright (c) 1993-2006 by Florian Klaempfl
Target OS: Linux for i386
Compiling /home/stuart/hedgewars/hedgewars/hwengine.dpr
Compiling SDLh.pas
Fatal: Can't find unit GL
Fatal: Compilation aborted
Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)
make[2]: *** [bin/hwengine] Error 1
make[1]: *** [hedgewars/CMakeFiles/hwengine.dir/all] Error 2
make: *** [all] Error 2
and ideas
Well, seems to be Ubuntu freepascal package problem... maybe freepascal in Ubuntu is split into several packages. In that case, you should find and install package named somewhat like fpc-opengl.
I got it working the missing package was
fp-units-gfx
compiles fine now
mmm can we make a list of ubuntu packages that must be installed for compile hesdgewars?
my list is:
libqt4-dev fp-compiler libsdl-net1.2-dev libsdl-ttf2.0-dev libsdl-mixer1.2-dev libsdl-image1.2-dev
Can't get it to compile on Xubuntu, (same error, no package in synaptic) on the eeepc the deb's work fine from getdeb but obviously without the updated graphics.
;-(
Free Pascal Compiler version 2.2.0 [2008/07/04] for x86_64
Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Linux for x86-64
Compiling /home/bananikus/svn_repos/trunk/hedgewars/hwengine.dpr
hwengine.dpr(24,1) Fatal: Can't find unit System used by hwengine
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode (normal if you did not specify a source file to be compiled)
make[2]: *** [bin/hwengine] Błąd 1
make[1]: *** [hedgewars/CMakeFiles/hwengine.dir/all] Błąd 2
make: *** [all] Błąd 2
bananikus@linux-x51w:~/svn_repos/trunk>
My distribution is Opensuse 11.0. Any ideas?
Something wrong with the compiler. It cannot find its own file.