Game Development Community

Ubuntu Install

by developer_dna · in Technical Issues · 02/28/2007 (7:23 pm) · 7 replies

I am a new Ubuntu user (Edgy Eft) and I am trying to install the Torque Game Engine on a Ubuntu laptop. I have had no success.

I originally tried to simply install the file directly from the site but that failed. I attempted to follow this tutorial http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=10843 but it simply said to install and did not mention any possible problems.

I also tried this resource http://eviwo.free.fr/ (specifically page http://eviwo.free.fr/torque/fixetorque15.html) and I followed the instructions but this also did not work. I specifically did the following:

For files:
engine/collision/optimizedPolyList.h : replace Poly::Poly by Poly

engine/game/cameraSpline.h : replace Knot::Knot with Knot

engine/game/fx/particleEngine.cc : move namespace sgParticleEngine after class declaration

engine/platformX86UNIX/x86UNIXInputManager.cc : comment KeyToUnicode paragraph and uncomment "if and endif" in mapkey function

And finally change the execution permission on : chmod +x lib/xiph/linux/checklinks.sh

The only one I am not sure of is part 4 where it says to comment KeyToUnicode paragraph. I assume that is referring the the method with KeyToUnicode and simply commenting the lines (and adding key=skey; under //Lower Case) as per the following diff statements (diff statements from the site):

diff -r old/engine/platformX86UNIX/x86UNIXInputManager.cc new/engine/platformX86UNIX/x86UNIXInputManager.cc
63,64c63,65
< // lower case

< key = X11_KeyToUnicode( skey, mod );

---
> // lower case

> //key = X11_KeyToUnicode( skey, mod );

> key = skey;

68c69
< key = X11_KeyToUnicode( skey, mod );

---
> //key = X11_KeyToUnicode( skey, mod );

72c73
< key = X11_KeyToUnicode( skey, mod );

---
> //key = X11_KeyToUnicode( skey, mod );



My latest attempt to install failed. I saw a number of errors but these are the errors that occurred just before the make failed.

./dgl/gTexManager.h:428:26: warning: no newline at end of file
--> Compiling interior/interiorLightAnim.cc
/bin/sh: freetype-config: not found
--> Compiling interior/interiorLMManager.cc
/bin/sh: freetype-config: not found
In file included from interior/interiorLMManager.cc:7:
./dgl/gTexManager.h:428:26: warning: no newline at end of file
--> Compiling interior/interiorMapRes.cc
/bin/sh: freetype-config: not found
In file included from interior/interiorMapRes.h:9,
from interior/interiorMapRes.cc:1:
./dgl/gTexManager.h:428:26: warning: no newline at end of file
interior/interiorMapRes.cc:1034:2: warning: no newline at end of file
--> Compiling interior/interiorRender.cc
/bin/sh: freetype-config: not found
In file included from ./sceneGraph/sceneState.h:28,
from interior/interiorRender.cc:7:
./dgl/gTexManager.h:428:26: warning: no newline at end of file
In file included from interior/interiorRender.cc:13:
./dgl/gTexManager.h:428:26: warning: no newline at end of file
--> Compiling interior/interiorRes.cc
/bin/sh: freetype-config: not found
--> Compiling interior/interiorResObjects.cc
/bin/sh: freetype-config: not found
--> Compiling interior/interiorSubObject.cc
/bin/sh: freetype-config: not found
In file included from ./sceneGraph/sceneState.h:28,
from ./interior/interiorSubObject.h:10,
from interior/interiorSubObject.cc:9:
./dgl/gTexManager.h:428:26: warning: no newline at end of file
--> Assembling interior/itfdump.asm
make[1]: nasm: Command not found
make[1]: *** [out.GCC4.RELEASE/interior/itfdump.obj] Error 127
make: *** [default] Error 2
ron@hpdv6000:~/Desktop/TorqueGameEngineSDK-Linux-1-5-0$ sudo make install
make: *** No rule to make target 'install'. Stop.
ron@hpdv6000:~/Desktop/TorqueGameEngineSDK-Linux-1-5-0$


I am trying to install this by the following commands:

sudo make

sudo make install

Any idea what the problem may be?

Thanks in advance.

#1
02/28/2007 (7:39 pm)
Use your package manager [synaptic, IIRC] and install libfreetype. Might be called freetype2 or something, just look for freetype...

Gary (-;
#2
02/28/2007 (7:50 pm)
Gary,

Thanks for your quick response. I just looked in Synaptic and I already have libfreetype6 (which is FreeType 2 font engine, shared library files). My version is 2.2.1-5

I do not have libfreetype6-dev (which is FreeType 2 font engine, development files). Perhaps I need that? Or perhaps I should install the FreeType1 files (libttf2 and/or libttf2-dev)?

I might try an install with libfreetype6-dev but I am not sure if that is what is necessary. Any idea if that is what I am missing?

Ron
#3
02/28/2007 (8:41 pm)
Well I reinstalled libfreetype6 as well as installed libfreetype-dev and ftgl-dev (Library to render text in OpenGL using FreeType) and I tried to install again. It failed again with numerous errors. Below are the ones that happened just before it officially failed (stopped trying to compile):

./dgl/gTexManager.h:428:26: warning: no newline at end of file
--> Compiling util/frustrumCuller.cpp
In file included from ./sceneGraph/sceneState.h:28,
from ./util/frustrumCuller.h:10,
from util/frustrumCuller.cpp:6:
./dgl/gTexManager.h:428:26: warning: no newline at end of file
In file included from util/frustrumCuller.cpp:6:
./util/frustrumCuller.h:39:7: warning: no newline at end of file
util/frustrumCuller.cpp:166:2: warning: no newline at end of file
--> Compiling util/quadTreeTracer.cpp
In file included from util/quadTreeTracer.cpp:6:
./util/quadTreeTracer.h:87:7: warning: no newline at end of file
util/quadTreeTracer.cpp:229:2: warning: no newline at end of file
--> Compiling util/rectClipper.cpp
--> Compiling util/triBoxCheck.cpp
In file included from util/triBoxCheck.cpp:13:
./util/triBoxCheck.h:35:7: warning: no newline at end of file
--> Compiling i18n/lang.cc
In file included from ./console/compiler.h:15,
from i18n/lang.cc:13:
./console/codeBlock.h:129:7: warning: no newline at end of file
In file included from i18n/lang.cc:14:
./util/safeDelete.h:18:64: warning: no newline at end of file
--> Compiling i18n/i18n.cc
In file included from i18n/i18n.cc:12:
./i18n/i18n.h:22:7: warning: no newline at end of file
--> Compiling interior/floorPlanRes.cc
--> Compiling interior/forceField.cc
In file included from interior/forceField.cc:10:
./dgl/gTexManager.h:428:26: warning: no newline at end of file
--> Compiling interior/interior.cc
In file included from ./sceneGraph/sceneState.h:28,
from interior/interior.cc:7:
./dgl/gTexManager.h:428:26: warning: no newline at end of file
In file included from interior/interior.cc:12:
./dgl/gTexManager.h:428:26: warning: no newline at end of file
--> Compiling interior/interiorCollision.cc
In file included from ./dgl/materialList.h:10,
from interior/interiorCollision.cc:16:
./dgl/gTexManager.h:428:26: warning: no newline at end of file
--> Compiling interior/interiorDebug.cc
In file included from interior/interiorDebug.cc:9:
./dgl/gTexManager.h:428:26: warning: no newline at end of file
--> Compiling interior/interiorInstance.cc
In file included from ./sceneGraph/sceneState.h:28,
from ./interior/interiorSubObject.h:10,
from interior/interiorInstance.cc:9:
./dgl/gTexManager.h:428:26: warning: no newline at end of file
In file included from ./dgl/gNewFont.h:29,
from ./dgl/gFont.h:26,
from ./gui/core/guiTypes.h:10,
from ./gui/core/guiControl.h:25,
from ./editor/editor.h:13,
from interior/interiorInstance.cc:19:
./dgl/gTexManager.h:428:26: warning: no newline at end of file
--> Compiling interior/interiorIO.cc
In file included from ./dgl/materialList.h:10,
from interior/interiorIO.cc:11:
./dgl/gTexManager.h:428:26: warning: no newline at end of file
--> Compiling interior/interiorLightAnim.cc
--> Compiling interior/interiorLMManager.cc
In file included from interior/interiorLMManager.cc:7:
./dgl/gTexManager.h:428:26: warning: no newline at end of file
--> Compiling interior/interiorMapRes.cc
In file included from interior/interiorMapRes.h:9,
from interior/interiorMapRes.cc:1:
./dgl/gTexManager.h:428:26: warning: no newline at end of file
interior/interiorMapRes.cc:1034:2: warning: no newline at end of file
--> Compiling interior/interiorRender.cc
In file included from ./sceneGraph/sceneState.h:28,
from interior/interiorRender.cc:7:
./dgl/gTexManager.h:428:26: warning: no newline at end of file
In file included from interior/interiorRender.cc:13:
./dgl/gTexManager.h:428:26: warning: no newline at end of file
--> Compiling interior/interiorRes.cc
--> Compiling interior/interiorResObjects.cc
--> Compiling interior/interiorSubObject.cc
In file included from ./sceneGraph/sceneState.h:28,
from ./interior/interiorSubObject.h:10,
from interior/interiorSubObject.cc:9:
./dgl/gTexManager.h:428:26: warning: no newline at end of file
--> Assembling interior/itfdump.asm
make[1]: nasm: Command not found
make[1]: *** [out.GCC4.RELEASE/interior/itfdump.obj] Error 127
make: *** [default] Error 2
ron@hpdv6000:~/Desktop/TorqueGameEngineSDK-Linux-1-5-0$

Sorry to fill up this thread with all of this but I believe this is necessary to troubleshoot the error.



I have not used Linux heavily but I need to look up how to pull the text that is coming up during install into a text file. I am aware that is possible but I do not immediately recall how to do this. Perhaps the first failure message might give a better idea as to what the problem is.

Ron
#4
02/28/2007 (8:53 pm)
Searching for this I came across this thread http://www.garagegames.com/mg/forums/result.thread.php?qt=2159

Although it is talking about a Win32 install some of it appears to be relevant. For example, I appear to be missing nasm which is an x86 assembler so I am going to install that package via Synaptic and attempt to reinstall.

Also I noticed Tim Gift states that the person may be having a problem as:
"You may have gotten the wrong tag... did you use "1.1" for the release tag (from the WinCVS dropdown), or did you type in "Release_1_1_0" ? 1.1 is interpreted as a revision number and is not correct, you end up with revision 1.1 of every file, basically garbage."

When I configure mk/configure.mk I use the following options:
OS=LINUX
COMPILER=gcc4
BUILD=RELEASE

Should I be using a nomenclature such as RELEASE_1_1_0?

At the bare minimum, it appears that I need to add nasm into my package library. It was not listed in the requirements below but it appears that I need it.

XFree86 4.0 or newer with NVIDIA OpenGL drivers
glibc 2.2 or newer (e.g.: Redhat 7.x+, Mandrake 8.x+, Debian 3.0+)
SDL version 1.2 or newer (1.2.3 or later is recommended)
OpenAL Runtime or SDK Installation
Mesa3D version 3.4 or newer (3.4.2 or later recommended)
Supported Compilers: GNU make and g++ (version 2 or 3)

Thanks in advance for any insight.

Ron
#5
02/28/2007 (9:00 pm)
Well, I tried again and I receive numerous errors (though different ones). Now it appears something is wrong with my audio folder. Any insight?

audio/audio.cc:1933: error: expected ';' before 'min'
audio/audio.cc:1934: error: 'AL_REFERENCE_DISTANCE' was not declared in this scope
audio/audio.cc:1934: error: 'min' was not declared in this scope
audio/audio.cc:1934: error: 'alGetSourcef' was not declared in this scope
audio/audio.cc:1935: error: 'AL_MAX_DISTANCE' was not declared in this scope
audio/audio.cc:1935: error: 'max' was not declared in this scope
audio/audio.cc: In function 'void alxUpdateMaxDistance()':
audio/audio.cc:2014: error: 'AL_POSITION' was not declared in this scope
audio/audio.cc:2014: error: 'alGetListener3f' was not declared in this scope
audio/audio.cc:2026: error: 'ALint' was not declared in this scope
audio/audio.cc:2026: error: expected ';' before 'val'
audio/audio.cc:2027: error: 'mSource' was not declared in this scope
audio/audio.cc:2027: error: 'AL_SOURCE_RELATIVE' was not declared in this scope
audio/audio.cc:2027: error: 'val' was not declared in this scope
audio/audio.cc:2027: error: 'alGetSourcei' was not declared in this scope
audio/audio.cc:2028: error: 'AL_TRUE' was not declared in this scope
audio/audio.cc:2033: error: 'alGetSourcefv' was not declared in this scope
audio/audio.cc:2036: error: 'AL_MAX_DISTANCE' was not declared in this scope
audio/audio.cc:2036: error: 'alGetSourcef' was not declared in this scope
audio/audio.cc:2042: error: 'AL_GAIN' was not declared in this scope
audio/audio.cc:2042: error: 'alSourcef' was not declared in this scope
audio/audio.cc: At global scope:
audio/audio.cc:2069: error: 'ALuint' does not name a type
audio/audio.cc:2098: error: variable or field 'alxEnvironmenti' declared void
audio/audio.cc:2098: error: redefinition of 'int alxEnvironmenti'
./platform/platformAudio.h:141: error: 'int alxEnvironmenti' previously defined here
audio/audio.cc:2098: error: 'ALenum' was not declared in this scope
audio/audio.cc:2098: error: 'ALint' was not declared in this scope
audio/audio.cc:2105: error: variable or field 'alxEnvironmentf' declared void
audio/audio.cc:2105: error: redefinition of 'int alxEnvironmentf'
./platform/platformAudio.h:142: error: 'int alxEnvironmentf' previously defined here
audio/audio.cc:2105: error: 'ALenum' was not declared in this scope
audio/audio.cc:2105: error: 'ALfloat' was not declared in this scope
audio/audio.cc:2112: error: variable or field 'alxGetEnvironmenti' declared void
audio/audio.cc:2112: error: redefinition of 'int alxGetEnvironmenti'
./platform/platformAudio.h:143: error: 'int alxGetEnvironmenti' previously defined here
audio/audio.cc:2112: error: 'ALenum' was not declared in this scope
audio/audio.cc:2112: error: 'ALint' was not declared in this scope
audio/audio.cc:2112: error: 'value' was not declared in this scope
audio/audio.cc:2119: error: variable or field 'alxGetEnvironmentf' declared void
audio/audio.cc:2119: error: redefinition of 'int alxGetEnvironmentf'
./platform/platformAudio.h:144: error: 'int alxGetEnvironmentf' previously defined here
audio/audio.cc:2119: error: 'ALenum' was not declared in this scope
audio/audio.cc:2119: error: 'ALfloat' was not declared in this scope
audio/audio.cc:2119: error: 'value' was not declared in this scope
audio/audio.cc: In function 'void alxEnableEnvironmental(bool)':
audio/audio.cc:2139: error: 'ALint' was not declared in this scope
audio/audio.cc:2139: error: expected ';' before 'val'
audio/audio.cc:2146: error: 'mSource' was not declared in this scope
audio/audio.cc:2146: error: 'AL_SOURCE_RELATIVE' was not declared in this scope
audio/audio.cc:2146: error: 'val' was not declared in this scope
audio/audio.cc:2146: error: 'alGetSourcei' was not declared in this scope
audio/audio.cc:2147: error: 'AL_TRUE' was not declared in this scope
audio/audio.cc:2152: error: 'AL_STOPPED' was not declared in this scope
audio/audio.cc:2153: error: 'AL_SOURCE_STATE' was not declared in this scope
audio/audio.cc: At global scope:
audio/audio.cc:2319: error: 'ALvoid' does not name a type
audio/audio.cc: In function 'bool Audio::prepareContext()':
audio/audio.cc:2334: error: 'mSource' was not declared in this scope
audio/audio.cc:2334: error: 'alGenSources' was not declared in this scope
audio/audio.cc:2351: error: 'ALuint' was not declared in this scope
audio/audio.cc:2351: error: expected ';' before 'bufferId'
audio/audio.cc: In function 'void Audio::shutdownContext()':
audio/audio.cc:2361: error: 'mSource' was not declared in this scope
audio/audio.cc: In function 'bool Audio::OpenALInit()':
audio/audio.cc:2380: error: 'mDevice' was not declared in this scope
audio/audio.cc:2380: error: 'ALCdevice' was not declared in this scope
audio/audio.cc:2380: error: expected primary-expression before ')' token
audio/audio.cc:2380: error: expected ';' before 'alcOpenDevice'
audio/audio.cc:2384: error: expected primary-expression before ')' token
audio/audio.cc:2384: error: expected ')' before '__null'
audio/audio.cc:2404: error: 'mContext' was not declared in this scope
audio/audio.cc:2404: error: 'alcCreateContext' was not declared in this scope
audio/audio.cc:2412: error: 'alcMakeContextCurrent' was not declared in this scope
audio/audio.cc:2414: error: 'ALenum' was not declared in this scope
audio/audio.cc:2414: error: expected ';' before 'err'
audio/audio.cc:2418: error: 'mSource' was not declared in this scope
audio/audio.cc:2418: error: 'alGenSources' was not declared in this scope
audio/audio.cc:2419: error: 'err' was not declared in this scope
audio/audio.cc:2419: error: 'alGetError' was not declared in this scope
audio/audio.cc:2420: error: 'AL_NO_ERROR' was not declared in this scope
audio/audio.cc:2441: error: 'alGetError' was not declared in this scope
audio/audio.cc:2444: error: 'AL_DISTANCE_MODEL' was not declared in this scope
audio/audio.cc:2444: error: 'alEnable' was not declared in this scope
audio/audio.cc:2445: error: 'AL_INVERSE_DISTANCE' was not declared in this scope
audio/audio.cc:2445: error: 'alDistanceModel' was not declared in this scope
audio/audio.cc:2446: error: 'alListenerf' was not declared in this scope
audio/audio.cc: In function 'void Audio::OpenALShutdown()':
audio/audio.cc:2478: error: 'mSource' was not declared in this scope
audio/audio.cc:2478: error: 'alDeleteSources' was not declared in this scope
audio/audio.cc:2480: error: 'mContext' was not declared in this scope
audio/audio.cc:2482: error: 'alcDestroyContext' was not declared in this scope
audio/audio.cc:2485: error: 'mDevice' was not declared in this scope
audio/audio.cc:2487: error: 'alcCloseDevice' was not declared in this scope
make[1]: *** [out.GCC4.RELEASE/audio/audio.obj] Error 1
make: *** [default] Error 2
ron@hpdv6000:~/Desktop/TorqueGameEngineSDK-Linux-1-5-0$



Again, thanks in advance for any help.

Ron
#6
03/01/2007 (10:13 am)
Looks like you now need openAL. Ignore the tag stuff, it dates from a time long ago

Gary (-;
#7
03/01/2007 (1:35 pm)
Ron on the top of ubuntu "edgy eft" i have installed that :

sudo apt-get -y install nvidia-glx
sudo nvidia-glx-config enable
 
if nvidia does not work :
 	sudo dpkg-reconfigure -phigh xserver-xorg
 	sudo nvidia-xconfig
 	
 
sudo apt-get -y install gcc
sudo apt-get -y install g++
sudo apt-get -y install nasm
sudo apt-get -y install libxft-dev*
sudo apt-get -y install libsdl1.2-dev

And apply this patch : www.garagegames.com/mg/forums/result.thread.php?qt=52962
read the post until the end !


And torque compile should work.