Page 1 of 2
building from source for Linux PPC
Posted: Sun Apr 23, 2006 8:42 pm
by Rxke
step 1:
You will need the following components:
* The GNU Objective-C compiler (gcc-objc). Your distribution should have this available.
Rats, Dapper (Ubuntu Beta) seems not to have gcc-objc... But IIRC, somebody did build this for PPC?
Posted: Sun Apr 23, 2006 9:30 pm
by winston
Ubuntu on i386 has the Objective C compiler, I'd be very surprised if the PPC port doesn't (it's just a front end for GCC after all). It might be called 'gobc' or something similar. Have a look through the GUI software installation tool that Ubuntu has and you'll prolly find it.
Posted: Sun Apr 23, 2006 10:09 pm
by JensAyton
Surely gcc -lobjc should work? Objective-C is supported by default in GCC, since it’s such a small extension to C.
Posted: Mon Apr 24, 2006 7:39 am
by winston
The Objective C package on most distros (I think) comes with some of the extra stuff, such as the run time system etc. Generally, if you try and compile GNUstep Make and Base without having installed the package, 'configure' will fail telling you that you don't have a working Objective C compiler.
Posted: Mon Apr 24, 2006 7:43 am
by winston
Yes, for Debian (and by extension, for Ubuntu) the Objective C compiler package is 'gobjc'. Just
and all should happen. This will automatically resolve any dependencies.
Bookmark your distro's package search webpage - it comes in handy when finding what packages you have available.
Posted: Mon Apr 24, 2006 1:06 pm
by Rxke
Thanks!
(looks like Ubuntu doesn't come w/ any dev stuff installed, now also apt-getting make, gcc etc etc...
Posted: Mon Apr 24, 2006 3:50 pm
by Rxke
(slowly getting there, reading some manpages etc...)
when compiling SDL etc. , I got a lot of
there is nothing to do for "all-am"
I hope that won't come around, bite me in the a**e?
(EDIT: No, don't think so
)
Posted: Mon Apr 24, 2006 4:12 pm
by Rxke
Update: sllloooowwwly going further, making notes to make an uber leet noob maanual (which -if successful- I will then post @ the wiki and Ubuntu forums, in the hope some other people will come aboard, hee)
Posted: Mon Apr 24, 2006 4:34 pm
by Rxke
ack! SDLgfx make goes totally wrong... stuff like
(EDIT:) forget that, all is fine... got libsdl_gfx installed
Posted: Mon Apr 24, 2006 8:08 pm
by Rxke
##= translation to the bard's tongue...
Code: Select all
make
Making all for app oolite...
Compiling file GuiDisplayGen.m ...
In bestand ingevoegd door OpenGLSprite.h:44, ##inserted in file by
door GuiDisplayGen.h:57,
door GuiDisplayGen.m:40:
SDLImage.h:13:26: let op: SDL_rotozoom.h: Onbekend bestand of map ##Warning: unknown file or map
In bestand ingevoegd door OOSound.h:10,
door GuiDisplayGen.m:44:
SDLSound.h:13:23: fout: SDL_mixer.h: Onbekend bestand of map ##Error: unknown file or map
In file included from OOSound.h:10,
from GuiDisplayGen.m:44:
SDLSound.h:23: fout: syntax error before ‘Mix_Chunk’ ##Error
In file included from OOSound.h:11,
from GuiDisplayGen.m:44:
SDLMusic.h:15: fout: syntax error before ‘Mix_Music’ ##Error
make[1]: *** [shared_obj/GuiDisplayGen.o] Fout 1 ##Error 1
make: *** [oolite.all.app.variables] Fout 2 ##Error 2
So what am I doing wrong here?
Posted: Mon Apr 24, 2006 9:54 pm
by JensAyton
*Casts Summon Babelfish level 2*
Code: Select all
make
Making all for app oolite...
Compiling file GuiDisplayGen.m ...
In file included from OpenGLSprite.h:44,
from GuiDisplayGen.h:57,
from GuiDisplayGen.m:40:
SDLImage.h:13:26: let op: SDL_rotozoom.h: No such file or directory
In file included from OOSound.h:10,
from GuiDisplayGen.m:44:
SDLSound.h:13:23: fout: SDL_mixer.h: No such file or directory
In file included from OOSound.h:10,
from GuiDisplayGen.m:44:
SDLSound.h:23: error: syntax error before ‘Mix_Chunk’
In file included from OOSound.h:11,
from GuiDisplayGen.m:44:
SDLMusic.h:15: error: syntax error before ‘Mix_Music’
make[1]: *** [shared_obj/GuiDisplayGen.o] Error 1
make: *** [oolite.all.app.variables] Error 2
Right… it’s looking for, and not finding, the header files for the SDL_mixer and SDL_rotozoom libraries. There may be packages for them; if not, they’re available from
libsdl.org.
Posted: Mon Apr 24, 2006 10:00 pm
by winston
In particular, the build for SDL_mixer et al. is straightforward if Ubuntu doesn't have development packages for them (but I imagine Ubuntu has all this prepackaged - IIRC, some Debian user mentioned they had installed all the requisite development kit from Debian's repo, so I'd imagine Ubuntu should have it too).
Posted: Tue Apr 25, 2006 6:47 am
by Rxke
Thanks!
(scurries off)
(edit: scurries back:)
As I thought: libsdl-mixer1.2(and dev) and libsdlgfx1.2-4 (which says it provides rotozoom) are in place; maybe I need a libsdlgfx dev?
(make-ing the whole bunch from the tarballs from libsdl link anyway)
Posted: Tue Apr 25, 2006 7:27 am
by Rxke
I just forgot to do make and THEN make INSTALL (sigh... Always too eager...)
Posted: Tue Apr 25, 2006 8:37 am
by Rxke
Ok, learned a lot how NOT to do things, going to restart all over.
One thing I still don't understand, during make I got a lot of complaining/warning rotozoom could not be found, and i seem unable to find it at libsdl... am I looking in the right place?