project-navigation
Personal tools

Author Topic: compiling 2.5 from git source  (Read 12956 times)

Offline wizardelo

  • Rookie
  • ***
  • Posts: 28
    • View Profile
compiling 2.5 from git source
« on: June 24, 2013, 11:56:31 am »
Hello,

i used to compile source with no problems, but today i got the latest git source and i cant get it working
it gets stuck on a radiant module
Code: [Select]
===> CC [uforadiant] src/libs/picomodel/pm_md2.c
===> CXX [game] src/game/g_actor.cpp
===> CXX [game] src/game/g_ai.cpp
===> CXX [game] src/game/g_ai_lua.cpp
===> CXX [game] src/game/g_camera.cpp
In file included from src/libs/picomodel/pm_md2.c:44:0:
src/tools/radiant/libs/../../../shared/byte.h:30:24: fatal error: SDL_endian.h: No such file or directory
compilation terminated.
make: *** [debug-linux-x86_64/uforadiant/libs/picomodel/pm_md2.c.o] Error 1
make: *** Waiting for unfinished jobs....
EDIT: seems uforadiant gave me error when compiling also:

Code: [Select]
===> CC [uforadiant] src/libs/picomodel/pm_md2.c
In file included from src/libs/picomodel/pm_md2.c:44:0:
src/tools/radiant/libs/../../../shared/byte.h:30:24: fatal error: SDL_endian.h: No such file or directory
compilation terminated.
make: *** [debug-linux-x86_64/uforadiant/libs/picomodel/pm_md2.c.o] Error 1


EDIT2: seems ./configure is missing something also

Code: [Select]
~/ufoai $ ./configure
Debug build
Compile for linux
Compile for x86_64
Found cc cc
Found cxx c++
Using bindir /usr/local/bin
Using datadir /usr/local/games/ufoai
Using libdir /usr/local/lib
Using prefix /usr/local
Build modules:
Build cgame-campaign
Build cgame-multiplayer
Build cgame-skirmish
Build cgame-staticcampaign
Build game
Build memory
Build testall
Build ufo
Build ufo2map
Build ufoded
Build ufomodel
Build uforadiant
Build ufoslicer
Enable hard linked cgame
Use signal handler
Setting custom data directory
Setting custom library directory
Found zip from zip
Found python from python
Could not find doxygen from doxygen
Found xvid.h
Found theora/theora.h
Found execinfo.h
Found bfd.h
Found sys/utsname.h
Found link.h
Found jpeglib.h
Found zlib.h
Found png.h
Found CUnit/Basic.h
Found mxml.h
Found SDL.h
Found SDL_mixer.h
Found SDL_ttf.h
Could not find picomodel.h
....
« Last Edit: June 24, 2013, 12:17:28 pm by wizardelo »

Offline yobbo

  • Cannon Fodder
  • **
  • Posts: 6
    • View Profile
Re: compiling 2.5 from git source
« Reply #1 on: June 24, 2013, 05:00:18 pm »
I believe this has been fixed already, try pulling again :).

Offline wizardelo

  • Rookie
  • ***
  • Posts: 28
    • View Profile
Re: compiling 2.5 from git source
« Reply #2 on: June 24, 2013, 06:11:52 pm »
i pulled it again just now and its the same in ./configure

Code: [Select]
Could not find picomodel.h
i am using this for source

git remote add -t master origin git://git.code.sf.net/p/ufoai/code
git fetch --depth 1
git checkout -t origin/master


i am now attempting to bring the torrent bundle, but its speed is very very bad:) il need 2 days or so
« Last Edit: June 24, 2013, 06:13:49 pm by wizardelo »

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: compiling 2.5 from git source
« Reply #3 on: June 24, 2013, 06:30:10 pm »
picomodel is one of the optional things

Offline wizardelo

  • Rookie
  • ***
  • Posts: 28
    • View Profile
Re: compiling 2.5 from git source
« Reply #4 on: June 24, 2013, 07:16:47 pm »
umm ok, but it breaks the make

I am testing now with the torrent bundle, seems fine so far, havent finished make yet, will edit once done.
« Last Edit: June 24, 2013, 07:29:59 pm by wizardelo »

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: compiling 2.5 from git source
« Reply #5 on: June 24, 2013, 09:24:53 pm »
please post the output of make (latest master, please)

Offline wizardelo

  • Rookie
  • ***
  • Posts: 28
    • View Profile
Re: compiling 2.5 from git source
« Reply #6 on: June 24, 2013, 10:27:17 pm »
all fine, game runs smoothly with 2.5dev :)

attached latest make output

Offline Battlescared

  • Squad Leader
  • ****
  • Posts: 107
    • View Profile
Re: compiling 2.5 from git source
« Reply #7 on: July 13, 2013, 02:51:27 pm »
I am having similar problem with the files not being found.  Here is my configure.log:

/usr/bin/zip
/usr/bin/python
/usr/bin/doxygen
<stdin>:3:25: fatal error: CUnit/Basic.h: No such file or directory
compilation terminated.
<stdin>:3:18: fatal error: mxml.h: No such file or directory
compilation terminated.
<stdin>:3:23: fatal error: picomodel.h: No such file or directory
compilation terminated.

I'm not sure where to get these files.  Basic.h sounds like a UFOAI file.  No clue on the other two.  I've done the git commands as directed, cut and pasted them straight into the command line.  Any ideas or suggestions?
---------------------------------------------------------

Update: Going to keep an updated log in case someone else has similar issues.

Found CUnit.  It is an installable package. 

mxml - mini-xml.   Found it.  Wasn't showing up in Synaptic, but found it on the UFOAI announcement website and installed with "apt-get install libmxml-dev"

picomodel - only place its showing up is in relation to ufoai.  I found it in the lib directory structure.  Still can't seem to get it to get past the configure, but appears to be related to uforadiant, as noted above, so will try to compile without it and hopefully that works.
« Last Edit: July 13, 2013, 05:06:07 pm by Battlescared »

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: compiling 2.5 from git source
« Reply #8 on: July 13, 2013, 08:37:51 pm »
all of them are optional - cunit is for our unittests

mxml is also included in our source tree. but you can also take the system wide installed lib if you want.
the same as for mxml is also true for picomodel. it's also included in our source tree, but you can also use a system wide installed lib

Offline Battlescared

  • Squad Leader
  • ****
  • Posts: 107
    • View Profile
Re: compiling 2.5 from git source
« Reply #9 on: July 14, 2013, 03:13:23 am »
How would I get these three as part of the git trunk?  I don't know that much about git.  I thought I got the whole baseline with the commands that were given.  Are there other areas I should include to get the whole baseline?

Thanks for the response, btw.

Offline Telok

  • Squad Leader
  • ****
  • Posts: 117
    • View Profile
Re: compiling 2.5 from git source
« Reply #10 on: July 19, 2013, 09:08:13 am »
I'll ask a new question to avoid starting a new thread with the same name.

For the last week I've been getting the following error during compiling.
Code: [Select]
===> CXX [ufo] src/client/battlescape/events/event/player/e_event_centerview.cpp
===> CXX [ufo] src/client/battlescape/events/event/player/e_event_doendround.cpp
===> CXX [ufo] src/client/battlescape/events/event/player/e_event_endroundannounce.cpp
make: *** No rule to make target `src/client/battlescape/evgnts/event/player/../../../../../common/../game/chr_shared.h', needed by `debug-linux-i386/ufo/client/battlescape/events/event/player/e_event_reset.cpp.o'.  Stop.

Anyone got any ideas? I've been doing $git fetch   $./compile   $make
each time and each time it's the same thing. Unfortunately I'm not yet savvy enough to grok what I need to do to fix this.

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: compiling 2.5 from git source
« Reply #11 on: July 19, 2013, 06:51:29 pm »
I'll ask a new question to avoid starting a new thread with the same name.

For the last week I've been getting the following error during compiling.

Anyone got any ideas? I've been doing $git fetch   $./compile   $make
each time and each time it's the same thing. Unfortunately I'm not yet savvy enough to grok what I need to do to fix this.

First of all: git fetch is not enough, it downloads but doesn't merge the changes into your copy so basically you are still on the old code. Do git pull --rebase instead. Or to make it easier (less typing), set up an alias like:

Code: [Select]
$ git config alias.up "pull --rebase"

Then you can update with git up simply.

For the compilation problem, try a clean build:
Code: [Select]
$ make clean
$ make

(./compile is ./configure, right?)

Hope it helps!
-geever

Offline Telok

  • Squad Leader
  • ****
  • Posts: 117
    • View Profile
Re: compiling 2.5 from git source
« Reply #12 on: July 21, 2013, 08:27:17 am »

(./compile is ./configure, right?)[/size]

Hope it helps!
-geever

My bad, it is indeed ./configure

It seems to help but I've got another one for you. There’s a new error.

Code: [Select]
===> CXX [ufomodel] src/ports/unix/unix_shared.cpp
===> CXX [ufomodel] src/ports/unix/unix_main.cpp
===> LD [ufomodel]
===> CXX [uforadiant] src/tools/radiant/radiant/commands.cpp
In file included from src/tools/radiant/radiant/ui/mainframe/mainframe.h:25:0,
                 from src/tools/radiant/radiant/commands.cpp:2:
src/tools/radiant/libs/gtkutil/window.h:25:27: fatal error: gtk/gtkwindow.h: No such file or directory
compilation terminated.
make: *** [debug-linux-i386/uforadiant/tools/radiant/radiant/commands.cpp.o] Error 1

Now battlescapes do not occur.

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: compiling 2.5 from git source
« Reply #13 on: July 21, 2013, 12:46:57 pm »
My bad, it is indeed ./configure

It seems to help but I've got another one for you. There’s a new error.

Now battlescapes do not occur.

The compilation error is in uforadiant, the map editor. It is probably a missing dependency.

You can disable compiling the mapeditor by running
Code: [Select]
$ ./configure --disable-uforadiant

Or check if you installed all the deps on the Wiki. UfoRadiant dependencies are separated.


The battlescape issue is different, you can find out more from the ufoconsole.log.

My guess is that you forgot compiling/syncing the maps. This command will download pre-compiled maps:
Code: [Select]
$ make maps-sync

-geever

Offline Telok

  • Squad Leader
  • ****
  • Posts: 117
    • View Profile
Re: compiling 2.5 from git source
« Reply #14 on: July 22, 2013, 08:53:49 am »
I actually got the maps first with the sync before running the git and compile. And the radiant bit (I did recognize it as the editor) is odd because I've always compiled with uforadiant in there without any issues. I'll try a few different things. If none of them work I'll wipe the directory and start from scratch again.