Compiling problems Ubuntu

6 replies [Last post]
Tutu
User offline. Last seen 15 years 1 week ago. Offline
Joined: 2008-03-16
Posts: 20

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

unC0Rr
unC0Rr's picture
User offline. Last seen 1 year 5 weeks ago. Offline
Joined: 2006-11-27
Posts: 576

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.

Tutu
User offline. Last seen 15 years 1 week ago. Offline
Joined: 2008-03-16
Posts: 20

I got it working the missing package was

fp-units-gfx

compiles fine now

Fabioamd87
Fabioamd87's picture
User offline. Last seen 14 years 43 weeks ago. Offline
Joined: 2007-04-29
Posts: 121

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

Tutu
User offline. Last seen 15 years 1 week ago. Offline
Joined: 2008-03-16
Posts: 20

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.

;-(

Bananikus
User offline. Last seen 14 years 23 weeks ago. Offline
Joined: 2008-07-12
Posts: 14

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?

unC0Rr
unC0Rr's picture
User offline. Last seen 1 year 5 weeks ago. Offline
Joined: 2006-11-27
Posts: 576

Something wrong with the compiler. It cannot find its own file.

User login

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