Author Topic: UFO: Alien Invasion (new)  (Read 5916 times)

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: UFO: Alien Invasion (new)
« Reply #15 on: July 15, 2009, 04:46:12 PM »
I was really busy last couple days, but i'll continue tomorrow.

We can go with modifying alienarena spec file.

Can you please give me a link to spec file, i can't find it... don't know where to search?

http://pclosusers.com/pclosfiles/pclinuxos/2007/SRPMS.extra/alienarena-2007-1pclos2007.src.rpm
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: UFO: Alien Invasion (new)
« Reply #16 on: July 16, 2009, 06:03:43 PM »
This is way more complicated than anything I've built so far, but not so complicated as to seem impossible, it will take me up a knotch.  Examining all three spec files now.

Since it is your first, just don't get frustrated, I'll try to explain things as best I can as we go, but I will be learning with you.

I gotta do things wrong many times, till I understand why it's wrong, in this case, we could end up with a bunch of junk directories and files while trying different things from these foreign spec files.  

I'm kind of hoping you're the kind of person that "just gets it" which I am not.  
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline slax

  • Sr. Member
  • ****
  • Posts: 391
    • PCLinuxOS Gnome Edition
Re: UFO: Alien Invasion (new)
« Reply #17 on: July 17, 2009, 11:45:30 AM »
I've checked the spec file from alienarena, and i don't understand it :|
I'm learning the spec structure, but i need some time.

Also i noticed that alienarena spec file uses .bin file, not source... so the question is will we use the source for ufoai or the .bin installer?

i found out the dependencies (according to authors):
gcc/g++
 OpenGL-header files (usually comes with your graphic card drivers; or you may use the 'mesa' source package)
 ogg vorbis header
 libjpeg6 header
 libpng header
 libcurl header
 zlib header version >= 1.2.3
 SDL (incl. headers)
 SDL version >= 1.2.10
 SDL_ttf (sdl-ttf) version >= 2.0.7
 SDL_mixer (libsdl-mixer) version >= 1.2.7
 make

trying yo compile it now...



Offline slax

  • Sr. Member
  • ****
  • Posts: 391
    • PCLinuxOS Gnome Edition
Re: UFO: Alien Invasion (new)
« Reply #18 on: July 17, 2009, 01:27:28 PM »
Ok i successfuly compiled the source :)
Had to install the following:

libcurl5-devel
libjpeg62-devel
libSDL1.2-devel
libSDL_mixer1.2-devel
libSDL_ttf2.0-devel
libpng-devel
libmesaglu1-devel

at the end i got this msg:
Please unpack file ufoai-2.2.1-data.tar into /usr/lib/ufoai/share/ufoai

i used the --prefix /usr/lib/ufoai

i also attached the filelist of the created files during the compilation.

Any thoughts on next steps?

[attachment deleted by admin]



Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: UFO: Alien Invasion (new)
« Reply #19 on: July 19, 2009, 10:03:38 AM »
Work on the spec file.   ;)
I hope to make my first attempt to build sometime today.  With the information you've provided I think I'm close.
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline slax

  • Sr. Member
  • ****
  • Posts: 391
    • PCLinuxOS Gnome Edition
Re: UFO: Alien Invasion (new)
« Reply #20 on: July 20, 2009, 02:10:08 PM »
Hi Joble  :)

I've been busy these days, and i had no time to work on the game.

i only wanted to make a suggestion... Should we add a separate package for data (ufoai-data-2.2.1)? and maybe maps if they are additional?



Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: UFO: Alien Invasion (new)
« Reply #21 on: July 20, 2009, 02:22:32 PM »
They will be one src.rpm but the src.rpm will (I believe) build all three packages which will show up in the repo separately.

Still looking for now, at the spec files.  There are a couple lines that I haven't figured out what they do, or what I expect they should do, and I don't like that feeling.  I'll get it figured out though.
« Last Edit: July 20, 2009, 07:04:09 PM by Joble »
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: UFO: Alien Invasion (new)
« Reply #22 on: July 22, 2009, 09:37:55 PM »
OK, finally got around to my first attempt at building this.  Roadblock:
libcurl5-devel
I don't see this in the repos, not even in testing.
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline slax

  • Sr. Member
  • ****
  • Posts: 391
    • PCLinuxOS Gnome Edition
Re: UFO: Alien Invasion (new)
« Reply #23 on: July 23, 2009, 02:39:27 PM »
I'm really sorry Joble :|
it's a typo, i havent noticed till now....

it's libcurl4-devel

please send me spec file on mail or attach it here, so i can take a look at it, and hopefully, understand something



Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: UFO: Alien Invasion (new)
« Reply #24 on: July 23, 2009, 05:47:24 PM »
You wouldn't learn anything from this spec file yet.  But getting there.  It looks like the source is trying to put stuff in /bin instead buildroot /bin from looking at the output.  Working on it....

hehe, making some kind of stupid mistake with the icon.

Code: [Select]
+ rm -Rf /home/joe/src/tmp/ufoai-2.2.1-buildroot
+ install -D -m 0755 ufo /home/joe/src/tmp/ufoai-2.2.1-buildroot/usr/bin/ufo
+ install -D -m 0755 ufoded /home/joe/src/tmp/ufoai-2.2.1-buildroot/usr/bin
+ mkdir -p -m 0755 /home/joe/src/tmp/ufoai-2.2.1-buildroot/usr/share/locale
+ mkdir -p /home/joe/src/tmp/ufoai-2.2.1-buildroot/usr/share/pixmaps
+ convert ufoai.png /home/joe/src/tmp/ufoai-2.2.1-buildroot/usr/share/pixmaps/ufoai.png
/home/joe/src/tmp/rpm-tmp.49509: line 35: convert: command not found

You want the spec file?  I don't recomend you try this on your day-to-day install, it's pretty much garbage so far.
« Last Edit: August 02, 2009, 12:44:46 PM by Joble »
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline slax

  • Sr. Member
  • ****
  • Posts: 391
    • PCLinuxOS Gnome Edition
Re: UFO: Alien Invasion (new)
« Reply #25 on: July 26, 2009, 09:10:11 AM »
I just don't get it where is the source for ufoded?

I'll try to build the source using your spec file



Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: UFO: Alien Invasion (new)
« Reply #26 on: July 26, 2009, 12:43:36 PM »
There wasn't a separate download for ufoded, from looking at the other spec files it looks like it's an option from the ufoai source.  Looking at the ufoai wiki again for any ideas.

EDIT:

Still working on it, kind of stumped at the moment, been doing more research than actual work on it the past few days.

EDIT:

Progress, but ouch, so much for using a USB drive to build this:
Code: [Select]
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/joe/src/tmp/ufoai-2.2.1-buildroot
error: create archive failed on file /home/joe/src/rpm/SOURCES/ufoai-2.2.1-mappack.tar.bz2: cpio: write failed - No space left on device
Guess it'll be put on hold again till next weekend.  Here's my latest spec file, I'm pretty sure it will still not build properly, but I have made progress.


[attachment deleted by admin]
« Last Edit: August 02, 2009, 12:43:03 PM by Joble »
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline slax

  • Sr. Member
  • ****
  • Posts: 391
    • PCLinuxOS Gnome Edition
Re: UFO: Alien Invasion (new)
« Reply #27 on: August 05, 2009, 03:12:09 PM »
Hi Joble,
as i practise i repackaged Glest game from 2.0.0 to 3.2.2 version.
I'll look into your UFOAI spec file and we'll make it work. :)

Btw, where can i send the srpms after i test them well?

Talk to you soon,
Slax



Offline slax

  • Sr. Member
  • ****
  • Posts: 391
    • PCLinuxOS Gnome Edition
Re: UFO: Alien Invasion (new)
« Reply #28 on: August 09, 2009, 03:01:00 PM »
Hi Joble,
i finished the ufoai  :D

The mappack is no good, i added the already compiled mappack fo this install.
I'm uploading the files to a server (except the datapack, and the source) , then i'll put the link here.



Offline slax

  • Sr. Member
  • ****
  • Posts: 391
    • PCLinuxOS Gnome Edition
Re: UFO: Alien Invasion (new)
« Reply #29 on: August 09, 2009, 03:27:44 PM »
Here are the files:
http://rapidshare.com/files/265585304/ufoai.tar.bz2.html

[attachment deleted by admin]