project-navigation
Personal tools

Author Topic: [ INSTALL ] how to have the 2.0-rc6 running on linux ?  (Read 18097 times)

MartinG

  • Guest
[ INSTALL ] how to have the 2.0-rc6 running on linux ?
« Reply #15 on: March 05, 2007, 10:18:07 am »
I don't understand what I have to do here at all:

"#download source of 2.0-rc6 release 4746
svn co -r 4746 https://svn.sourceforge.net/svnroot/ufoai/ufoai/tags/ufoai_2.0-rc6

#once downloaded a directory: "ufoai_2.0-rc6" must be present, contains a lot of things
#go to this directory
cd ufoai_2.0-rc6 "

I don't know what to download, there are so many different files and directories, and if I type in the line I get:

"bash: svn: command not found"

So, what should I do????

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
[ INSTALL ] how to have the 2.0-rc6 running on linux ?
« Reply #16 on: March 05, 2007, 10:26:20 am »
you have to install svn of course - try this through your packet manager

MartinG

  • Guest
[ INSTALL ] how to have the 2.0-rc6 running on linux ?
« Reply #17 on: March 05, 2007, 12:50:53 pm »
Quote from: "Mattn"
you have to install svn of course - try this through your packet manager


Thanks, I installed SVN and aldo had to install SDL for the sdl-config copmmand.

Now I have some other problems (from my terminal window, after downloading and the make clean command),:

--------------------------------------------------------------------------------
[martin@localhost ufoai_2.0-rc6]$ make src
make[1]: Entering directory `/home/martin/ufo_2.0-rc6_svn_4746/ufoai_2.0-rc6/src'
make[2]: Entering directory `/home/martin/ufo_2.0-rc6_svn_4746/ufoai_2.0-rc6/src'
 * [UFO] debugi386/client/cl_actor.o
/bin/sh: cc: command not found
make[2]: *** [debugi386/client/cl_actor.o] Fehler 127
make[2]: Leaving directory `/home/martin/ufo_2.0-rc6_svn_4746/ufoai_2.0-rc6/src'
make[1]: *** [build_debug] Fehler 2
make[1]: Leaving directory `/home/martin/ufo_2.0-rc6_svn_4746/ufoai_2.0-rc6/src'
make: *** [src] Fehler 2
----------------------------------------------------

What is this with the cc command? I installed everything cc-related via the packet manager (or so I think).

Also, at a previous attempt to the one above I got a message that there is no rule to make scr.

What else do I have to install to make it work?

Thanks in advance.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
[ INSTALL ] how to have the 2.0-rc6 running on linux ?
« Reply #18 on: March 05, 2007, 04:30:30 pm »
it's gcc the gnu compiler

MartinG

  • Guest
[ INSTALL ] how to have the 2.0-rc6 running on linux ?
« Reply #19 on: March 05, 2007, 09:22:18 pm »
Quote from: "Mattn"
it's gcc the gnu compiler


I installed it, but there still are errors:

----------------------------------------------------------------------------------------------------------
In Datei, eingefügt von client/cl_sequence.c:815:
client/snd_loc.h:39:31: Fehler: vorbis/vorbisfile.h: Datei oder Verzeichnis nicht gefunden
make[2]: *** [debugi386/client/cl_sequence.o] Fehler 1
make[2]: Leaving directory `/home/martin/ufo_2.0-rc6_svn_4746/ufoai_2.0-rc6/src'
make[1]: *** [build_debug] Fehler 2
make[1]: Leaving directory `/home/martin/ufo_2.0-rc6_svn_4746/ufoai_2.0-rc6/src'
make: *** [src] Fehler 2
[martin@localhost ufoai_2.0-rc6]$
-------------------------------------------------------------------------------------------------

Any idea what the problem is?

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
[ INSTALL ] how to have the 2.0-rc6 running on linux ?
« Reply #20 on: March 05, 2007, 09:35:29 pm »
yes - but you should really read the wiki articles - seams like you didn't do this yet....
http://ufo.myexp.de/wiki/index.php/Coding#Compiling_the_source

install the development header files (in this case the libvorbis headers

MartinG

  • Guest
[ INSTALL ] how to have the 2.0-rc6 running on linux ?
« Reply #21 on: March 05, 2007, 09:52:09 pm »
Alright, I just found this in the Wiki here :http://ufo.myexp.de/wiki/index.php/Dev-CPP

---------------------------------------------
 Prepare Dev-CPP

In order to be able to build UFO:AI from SVN you have to install several development libraries for Dev-CPP.

    * SDL Library
    * SDL_ttf
    * OGG Vorbis SDK
    * libjpeg 6b-4
    * DirectX SDK (required only for snd_dx)
    * zlib (1.2.3 or greater)
    * libpng 1.2.8
----------------------------------------------------------------

The problem is, OGG Vorbis SDK and libjpeg 6b-4 are only available for Windows. I tried OGG Vorbis SDK and was told that Fedora doesn't support this archiove format and when I click on libjpeg-6b_4-1spec.DevPak nothing happens at all.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
[ INSTALL ] how to have the 2.0-rc6 running on linux ?
« Reply #22 on: March 05, 2007, 09:53:10 pm »
you should read the linux articles - not the windows ones. install the developer packets via you packet manager.

MartinG

  • Guest
[ INSTALL ] how to have the 2.0-rc6 running on linux ?
« Reply #23 on: March 05, 2007, 09:54:50 pm »
Quote from: "Mattn"
yes - but you should really read the wiki articles - seams like you didn't do this yet....
http://ufo.myexp.de/wiki/index.php/Coding#Compiling_the_source

install the development header files (in this case the libvorbis headers


I hadn't seen this post until now. I didn't know how to use the Wiki correctly, thanks.

MartinG

  • Guest
[ INSTALL ] how to have the 2.0-rc6 running on linux ?
« Reply #24 on: March 05, 2007, 09:57:39 pm »
I also am completely new to Linux. Anyway, thanks for your help, I'll try to get it running using the info in the Wiki.  ;)

MartinG

  • Guest
[ INSTALL ] how to have the 2.0-rc6 running on linux ?
« Reply #25 on: March 05, 2007, 10:06:57 pm »
Another stupid question: What are development header files?

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
[ INSTALL ] how to have the 2.0-rc6 running on linux ?
« Reply #26 on: March 05, 2007, 10:49:41 pm »
in short: function prototypes and typedefs/structs (datatypes)

MartinG

  • Guest
[ INSTALL ] how to have the 2.0-rc6 running on linux ?
« Reply #27 on: March 05, 2007, 11:19:29 pm »
So after installing every relevant file via packet manager I could find, I get the following error messages after 'Make src':

--------------------------------------------------------------------------

make[2]: artsc-config: Kommando nicht gefunden
 * [SND] debugi386/client/snd_arts.o
ports/linux/snd_arts.c:26:19: Fehler: artsc.h: Datei oder Verzeichnis nicht gefunden
ports/linux/snd_arts.c:33: Fehler: expected »=«, »,«, »;«, »asm« or »__attribute__« before »stream«
ports/linux/snd_arts.c: In Funktion »SND_Init«:
ports/linux/snd_arts.c:50: Warnung: Implizite Deklaration der Funktion »arts_init«
ports/linux/snd_arts.c:53: Warnung: Implizite Deklaration der Funktion »arts_error_text«
ports/linux/snd_arts.c:53: Warnung: format »%s« erwartet Typ »char *«, aber Argument 2 hat Typ »int«
ports/linux/snd_arts.c:85: Fehler: »stream« nicht deklariert (erste Benutzung in dieser Funktion)
ports/linux/snd_arts.c:85: Fehler: (Jeder nicht deklarierte Bezeichner wird nur einmal aufgeführt
ports/linux/snd_arts.c:85: Fehler: für jede Funktion in der er auftritt.)
ports/linux/snd_arts.c:85: Warnung: Implizite Deklaration der Funktion »arts_play_stream«
ports/linux/snd_arts.c:86: Warnung: Implizite Deklaration der Funktion »arts_stream_set«
ports/linux/snd_arts.c:86: Fehler: »ARTS_P_PACKET_SETTINGS« nicht deklariert (erste Benutzung in dieser Funktion)
ports/linux/snd_arts.c:87: Fehler: »ARTS_P_BLOCKING« nicht deklariert (erste Benutzung in dieser Funktion)
ports/linux/snd_arts.c: In Funktion »SND_Shutdown«:
ports/linux/snd_arts.c:118: Warnung: Implizite Deklaration der Funktion »arts_close_stream«
ports/linux/snd_arts.c:118: Fehler: »stream« nicht deklariert (erste Benutzung in dieser Funktion)
ports/linux/snd_arts.c:119: Warnung: Implizite Deklaration der Funktion »arts_free«
ports/linux/snd_arts.c: In Funktion »SND_Submit«:
ports/linux/snd_arts.c:143: Warnung: Implizite Deklaration der Funktion »arts_write«
ports/linux/snd_arts.c:143: Fehler: »stream« nicht deklariert (erste Benutzung in dieser Funktion)
make[2]: *** [debugi386/client/snd_arts.o] Fehler 1
make[2]: Leaving directory `/home/martin/ufo_2.0-rc6_svn_4746/ufoai_2.0-rc6/src'
make[1]: *** [build_debug] Fehler 2
make[1]: Leaving directory `/home/martin/ufo_2.0-rc6_svn_4746/ufoai_2.0-rc6/src'
make: *** [src] Fehler 2

-------------------------------------------------------------------------------

MartinG

  • Guest
[ INSTALL ] how to have the 2.0-rc6 running on linux ?
« Reply #28 on: March 06, 2007, 12:11:47 am »
I checked the Wiki agian, made sure that I found out which files are the right ones, downloaded all of those I could find [unfortunately not all mentioned in the Wiki) via Packet Manager and I got the same result.

When I tried to apply the other instructions  alexmyself had posted, I also only got erroir messages.

Here's the whole thing:

----------------------------------------------------------------------------------------------------------
make[2]: artsc-config: Kommando nicht gefunden
 * [SND] debugi386/client/snd_arts.o
ports/linux/snd_arts.c:26:19: Fehler: artsc.h: Datei oder Verzeichnis nicht gefunden
ports/linux/snd_arts.c:33: Fehler: expected »=«, »,«, »;«, »asm« or »__attribute__« before »stream«
ports/linux/snd_arts.c: In Funktion »SND_Init«:
ports/linux/snd_arts.c:50: Warnung: Implizite Deklaration der Funktion »arts_init«
ports/linux/snd_arts.c:53: Warnung: Implizite Deklaration der Funktion »arts_error_text«
ports/linux/snd_arts.c:53: Warnung: format »%s« erwartet Typ »char *«, aber Argument 2 hat Typ »int«
ports/linux/snd_arts.c:85: Fehler: »stream« nicht deklariert (erste Benutzung in dieser Funktion)
ports/linux/snd_arts.c:85: Fehler: (Jeder nicht deklarierte Bezeichner wird nur einmal aufgeführt
ports/linux/snd_arts.c:85: Fehler: für jede Funktion in der er auftritt.)
ports/linux/snd_arts.c:85: Warnung: Implizite Deklaration der Funktion »arts_play_stream«
ports/linux/snd_arts.c:86: Warnung: Implizite Deklaration der Funktion »arts_stream_set«
ports/linux/snd_arts.c:86: Fehler: »ARTS_P_PACKET_SETTINGS« nicht deklariert (erste Benutzung in dieser Funktion)
ports/linux/snd_arts.c:87: Fehler: »ARTS_P_BLOCKING« nicht deklariert (erste Benutzung in dieser Funktion)
ports/linux/snd_arts.c: In Funktion »SND_Shutdown«:
ports/linux/snd_arts.c:118: Warnung: Implizite Deklaration der Funktion »arts_close_stream«
ports/linux/snd_arts.c:118: Fehler: »stream« nicht deklariert (erste Benutzung in dieser Funktion)
ports/linux/snd_arts.c:119: Warnung: Implizite Deklaration der Funktion »arts_free«
ports/linux/snd_arts.c: In Funktion »SND_Submit«:
ports/linux/snd_arts.c:143: Warnung: Implizite Deklaration der Funktion »arts_write«
ports/linux/snd_arts.c:143: Fehler: »stream« nicht deklariert (erste Benutzung in dieser Funktion)
make[2]: *** [debugi386/client/snd_arts.o] Fehler 1
make[2]: Leaving directory `/home/martin/ufo_2.0-rc6_svn_4746/ufoai_2.0-rc6/src'
make[1]: *** [build_debug] Fehler 2
make[1]: Leaving directory `/home/martin/ufo_2.0-rc6_svn_4746/ufoai_2.0-rc6/src'
make: *** [src] Fehler 2
[martin@localhost ufoai_2.0-rc6]$ cp src/releasei386/ufo2map ./
cp: Aufruf von stat für „src/releasei386/ufo2map“ nicht möglich: Datei oder Verzeichnis nicht gefunden
[martin@localhost ufoai_2.0-rc6]$ make maps
make[1]: Entering directory `/home/martin/ufo_2.0-rc6_svn_4746/ufoai_2.0-rc6/base/maps'
../../ufo2map -nice 19 -extra -bounce 0 b/drop_iso.map
make[1]: ../../ufo2map: Kommando nicht gefunden
make[1]: *** [b/drop_iso.bsp] Fehler 127
make[1]: Leaving directory `/home/martin/ufo_2.0-rc6_svn_4746/ufoai_2.0-rc6/base/maps'
make: *** [maps] Fehler 2
[martin@localhost ufoai_2.0-rc6]$ cp src/release/i386/ufo ./
cp: Aufruf von stat für „src/release/i386/ufo“ nicht möglich: Datei oder Verzeichnis nicht gefunden
[martin@localhost ufoai_2.0-rc6]$ cp src/release/i386/ref_glx.so ./
cp: Aufruf von stat für „src/release/i386/ref_glx.so“ nicht möglich: Datei oder Verzeichnis nicht gefunden
[martin@localhost ufoai_2.0-rc6]$ cp src/release/i386/ref_sdl.so ./
cp: Aufruf von stat für „src/release/i386/ref_sdl.so“ nicht möglich: Datei oder Verzeichnis nicht gefunden
[martin@localhost ufoai_2.0-rc6]$ cd ufoai_2.0-rc6
bash: cd: ufoai_2.0-rc6: Datei oder Verzeichnis nicht gefunden
[martin@localhost ufoai_2.0-rc6]$ cp src/release/i386/ref_sdl.so ./
cp: Aufruf von stat für „src/release/i386/ref_sdl.so“ nicht möglich: Datei oder Verzeichnis nicht gefunden
[martin@localhost ufoai_2.0-rc6]$ cp src/release/i386/snd_alsa.so ./
cp: Aufruf von stat für „src/release/i386/snd_alsa.so“ nicht möglich: Datei oder Verzeichnis nicht gefunden
[martin@localhost ufoai_2.0-rc6]$ cp src/release/i386/snd_oss.so ./
cp: Aufruf von stat für „src/release/i386/snd_oss.so“ nicht möglich: Datei oder Verzeichnis nicht gefunden
[martin@localhost ufoai_2.0-rc6]$ cp src/release/i386/snd_arts.so ./
cp: Aufruf von stat für „src/release/i386/snd_arts.so“ nicht möglich: Datei oder Verzeichnis nicht gefunden
[martin@localhost ufoai_2.0-rc6]$ cp src/release/i386/snd_sdl.so ./
cp: Aufruf von stat für „src/release/i386/snd_sdl.so“ nicht möglich: Datei oder Verzeichnis nicht gefunden
[martin@localhost ufoai_2.0-rc6]$ cp src/releasei386/game.so /base
cp: Aufruf von stat für „src/releasei386/game.so“ nicht möglich: Datei oder Verzeichnis nicht gefunden
[martin@localhost ufoai_2.0-rc6]$ ./ufo
bash: ./ufo: Datei oder Verzeichnis nicht gefunden
[martin@localhost ufoai_2.0-rc6]$
-----------------------------------------------------------------------------------------------------

So, what now?

I think that I simply don't have have a lot of files instatlled that you others take for granted and don't even mention, because you have installed them a long time ago.

MartinG

  • Guest
[ INSTALL ] how to have the 2.0-rc6 running on linux ?
« Reply #29 on: March 06, 2007, 12:14:27 am »
I should mention that I have no idea where to get OGG Vorbis or how to install it, unless the files I can get via Packet Manager are good enough.