project-navigation
Personal tools

Author Topic: ufoai-2.2.1 on stock Slackware 12.2, problems when compiling from svn source  (Read 6245 times)

Offline gtludwig

  • Cannon Fodder
  • **
  • Posts: 5
    • View Profile
Dear all,

I have downloaded the .tar.gz version of this game and came across the following problem when running the game:

Code: [Select]
gtl@predator:~/ufoai_2.2$ ufoai
./ufo: error while loading shared libraries: libcurl-gnutls.so.4: cannot open shared object file: No such file or directory

I have tried to solve the missing library problem to no avail, then I found the SVN version and, after downloading, I started compiling.

The $ ./configure, $ make and $ make lang where fast, but $ make maps took an awful long time to finish (is this normal?).

When it was over, # make install returns the following message:
Code: [Select]
Please unpack file ufoai-2.2.1-data.tar into /usr/local/share/ufoai
Now where's this tar file?

Thanks in advance!

Cheers!



Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Compiling maps can take some hours, yes. Before make install do a make pk3 - I'm not sure if that prevents the message but you'll have the data packs for playing.

-geever

Offline gtludwig

  • Cannon Fodder
  • **
  • Posts: 5
    • View Profile
i started over again...

$ make clean OK
$ ./configure OK
$ make OK
$ make lang OK
$ make maps OK - this time it doesn't compile maps again  ;D

but, then i get this:
Code: [Select]
gtl@predator:~/ufoai_2.2$ make pk3
make: *** No rule to make target `pk3'.  Stop.

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Oh, sorry you have 2.2.x, base/archives.sh will be your command. :) (not sure about path)

-geever

Offline gtludwig

  • Cannon Fodder
  • **
  • Posts: 5
    • View Profile
First of all, thanks so much for the time ;D

I did this:
Code: [Select]
$ cd base
$ ./archives.sh
$ cd ..
$ su
# make install

# make install still asks to unpack ufo-2.2.1-data.tar into /usr/local/share/ufoai

what's next?

cheers!

-gtludwig

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
you're welcome.

Check if pk3 files are copied to that dir, if not do that manually. (Ignore the message.)
After that you should be able to run the game (ufo).

One more thing I've experienced: languages. You can only select languages which are supported by your system.
For me on Debian Etch to select English I had to put en_GB.UTF-8 UTF-8 to /etc/locale.gen (which wasn't there before) and run a locale-gen

-geever

Offline Wizard^^

  • Rookie
  • ***
  • Posts: 22
    • View Profile
Hi.. while trying to work out the make problems I'm having and autotools. I find this..

Code: [Select]
#From ufoai/Makefile.in

# Target to install only the executables, language files and the run script.
# Other game data has to be installed from the ufoai-VERSION-data.tar archive.
#
# For destination directories see install_complete above.
#
install: install_exec
@echo
@echo Please unpack file ufoai-$(VERSION)-data.tar into $(DATADIR)
@echo
@echo


So every time you type "make install" you run the echo to remind you..
Now after make install can you run ufoai? If not try 'make install_data'

Code: [Select]
#From ./ufoai/INSTALL

  4. Type `make install' to install the programs. Type
     `make install_data' to install data files (including the maps).

See still learning  :P
« Last Edit: December 31, 2008, 04:54:11 pm by Wizard^^ »