LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Trying to compile gnustep for x86_64 (https://www.linuxquestions.org/questions/slackware-14/trying-to-compile-gnustep-for-x86_64-a-800961/)

samac 04-12-2010 02:27 PM

in that case, yes.

samac

Richard Cranium 04-19-2010 01:02 PM

Quote:

Originally Posted by samac (Post 3931634)
I've decided that compiling gnustep is easy. Compiling oolite appears to be much harder. I eventually devided just to use the oolite-x86_64.package and install it as a user. I hate autopackage but I do not have the knowledge to compile oolite. src2pkg -VV turns up this which is similar to what I get using a slackbuild. The documentation says all you have to do is run 'make'

samac chuckles insanely.

samac

Hmm. I dunno about that. gnustep was a major PITA to compile with src2pkg (not src2pkg's fault); I had to generate the autobuild scripts and modify them to get things to work. (And I'm not convinced that things are working.)

Which versions of everything did you install? I managed to create and install...
Code:

gnustep-back-0.16.0-x86_64-1
gnustep-base-1.19.3-x86_64-1
gnustep-gui-0.17.1-x86_64-1
gnustep-make-2.2.0-x86_64-1

...but oolite 1.73.4 has turned out to be a true "beat head against the wall" exercise. Most of that is centered around SpiderMonkey.

samac 04-19-2010 03:27 PM

Quote:

gnustep-base-1.18-x86_64-1
gnustep-make-2.2.0-x86_64-1
Are the versions that I made packages of.

As for Oolite, I installed and ran it under wine. I also used the oolite.package and installed it to my ~/games directory, and then sang "spidermonkey, spidermonkey, does whatever a spidermonkey does".

So does this suggest that mozilla spidermonkey is a dependency?

Looks like a lead?

I will maybe look at it again?

Here is a slackbuild http://www.unrealize.co.uk/slackbuilds/13.0/js/

It is also on slackbuilds.org, sbopkg is doing its thing.


samac

samac 04-19-2010 03:42 PM

Quote:

Linking objc_program oolite ...
gcc: deps/Cross-platform-deps/SpiderMonkey/js/src/Linux_All_OPT.OBJ/libjs.a: No such file or directory
make[2]: *** [obj.dbg/oolite] Error 1
make[1]: *** [internal-objc_program-all_] Error 2
make: *** [oolite.all.objc-program.variables] Error 2
and it was all going so well!

libjs.a is in /usr/lib64

samac

samac 04-19-2010 03:52 PM

Quote:

On Linux, BSD and other Unix platforms without dpkg tools, you will need to
get GNUstep and SDL development libraries in addition to what is usually
installed by default if you choose to install the development
headers/libraries etc. when initially installing the OS. For most Linux
distros, GNUstep and SDL development libraries come prepackaged - just
apt-get/yum install the relevant files. You may also need to install Mozilla
Spidermonkey (libmozjs). On others you may need to build them from source. In
particular, you need the SDL_Mixer library, which doesn't always come with the
base SDL development kit. Then just type 'make'.
If I am reading this correctly I need gnustep, SDL_mixer and spidermonkey, then to run make. All is installed but I still get the error in post 19. Any suggestions

samac

Richard Cranium 04-19-2010 06:53 PM

Well, I had to add a top-level Makefile as well as some mods to the autogenerated js.src2pkg.auto script....

The Makefile:
Code:

all:
        ( cd src ; make -f Makefile.ref )

install:
        /usr/bin/install -d ${DESTDIR}/usr/libexec/SpiderMonkey/Linux_All_DBG.OBJ/
        /usr/bin/install -t ${DESTDIR}/usr/libexec/SpiderMonkey/Linux_All_DBG.OBJ/ src/Linux_All_DBG.OBJ/*

The contents of js.src2pkg.auto:
Code:

#!/bin/bash
## src2pkg script for:        js
## Auto-generated by src2pkg-2.1
## src2pkg - Copyright 2005-2009 Gilbert Ashley <amigo@ibilio.org>

SOURCE_NAME='js-1.8.0-rc1.tar.gz'
NAME='js'  # Use ALT_NAME to override guessed value
VERSION='1.8.0'  # Use ALT_VERSION to override guessed value
ALT_NAME="SpiderMonkey"
# ARCH=''
# BUILD='1'
# PRE_FIX='usr'
# Any extra options go here:
# EXTRA_CONFIGS=""

# Optional function replaces configure_source, compile_source, fake_install
# To use, uncomment and write/paste CODE between the {} brackets.
# build() { CODE }

# Get the functions and configs
. /usr/libexec/src2pkg/FUNCTIONS ;

# Execute the named packaging steps:
pre_process
find_source
make_dirs
unpack_source

cp ${CWD}/Makefile ${SRC_DIR}

fix_source_perms
configure_source #
compile_source  # If used, the 'build' function replaces these 3
fake_install    #
fix_pkg_perms
strip_bins
create_docs
compress_man_pages
make_description
make_doinst
make_package
post_process

## See the documentation for more help and examples. Below are some of
# the most common Extras and Options for easy cut-and-paste use.
# DOCLIST='' PATCHLIST='' INSTALL_TYPE=''
# CONFIG_COMMAND='' MAKE_COMMAND='' INSTALL_LINE=''
# When editing src2pkg scripts to add custom code, use these variables
# to refer to the current directory, the sources or the package tree:
# $CWD (current directory), $SRC_DIR (sources), $PKG_DIR (package tree)
# Other commonly-used directories include: $DOC_DIR (document directory)
# $MAN_DIR (man-page directory) $DATA_DIR (shared-data directory)

Then I use this src2pkg script to compile oolite. The problem is that it doesn't install all the config/resource files.

Code:

#!/bin/bash
## src2pkg script for:        oolite-dev-source
## Auto-generated by src2pkg-2.1
## src2pkg - Copyright 2005-2009 Gilbert Ashley <amigo@ibilio.org>

SOURCE_NAME='oolite-dev-source-1.73.4.tar.bz2'
NAME='oolite-dev-source'  # Use ALT_NAME to override guessed value
VERSION='1.73.4'  # Use ALT_VERSION to override guessed value
ALT_NAME="oolite"
# ARCH=''
# BUILD='1'
# PRE_FIX='usr'
# Any extra options go here:
# EXTRA_CONFIGS=""
INSTALL_LINE="gmake install GNUSTEP_INSTALLATION_DOMAIN=SYSTEM"

# Optional function replaces configure_source, compile_source, fake_install
# To use, uncomment and write/paste CODE between the {} brackets.
# build() { CODE }

# Get the functions and configs
. /usr/libexec/src2pkg/FUNCTIONS ;

# Get the gnustep-make cruft
. /usr/share/GNUstep/Makefiles/GNUstep.sh


# Execute the named packaging steps:
pre_process
find_source
make_dirs
unpack_source

cp /usr/libexec/SpiderMonkey/Linux_All_DBG.OBJ/jsautocfg.h ${SRC_DIR}/deps/Cross-platform-deps/SpiderMonkey/js/src/
ln -s /usr/libexec/SpiderMonkey/Linux_All_DBG.OBJ ${SRC_DIR}/deps/Cross-platform-deps/SpiderMonkey/js/src/Linux_All_OPT.OBJ

fix_source_perms
configure_source #
compile_source  # If used, the 'build' function replaces these 3
fake_install    #
fix_pkg_perms
strip_bins
create_docs
compress_man_pages
make_description
make_doinst
make_package
post_process

## See the documentation for more help and examples. Below are some of
# the most common Extras and Options for easy cut-and-paste use.
# DOCLIST='' PATCHLIST='' INSTALL_TYPE=''
# CONFIG_COMMAND='' MAKE_COMMAND='' INSTALL_LINE=''
# When editing src2pkg scripts to add custom code, use these variables
# to refer to the current directory, the sources or the package tree:
# $CWD (current directory), $SRC_DIR (sources), $PKG_DIR (package tree)
# Other commonly-used directories include: $DOC_DIR (document directory)
# $MAN_DIR (man-page directory) $DATA_DIR (shared-data directory)

Oh yeah, I also added a /etc/GNUstep/installation-domains.conf file to get gnustep-base to build:
Code:

GNUSTEP_INSTALLATION_DOMAIN=SYSTEM

samac 04-20-2010 10:27 AM

Quote:

#!/bin/bash
## src2pkg script for: oolite-dev-source
## Auto-generated by src2pkg-2.1
## src2pkg - Copyright 2005-2009 Gilbert Ashley <amigo@ibilio.org>

SOURCE_NAME='oolite-dev-source-1.73.4.tar.bz2'
NAME='oolite-dev-source' # Use ALT_NAME to override guessed value
VERSION='1.73.4' # Use ALT_VERSION to override guessed value
ALT_NAME="oolite"
# ARCH=''
# BUILD='1'
# PRE_FIX='usr'
# Any extra options go here:
# EXTRA_CONFIGS=""
# INSTALL_LINE="make install GNUSTEP_INSTALLATION_DOMAIN=SYSTEM"

# Optional function replaces configure_source, compile_source, fake_install
# To use, uncomment and write/paste CODE between the {} brackets.
# build() { CODE }

# Get the functions and configs
. /usr/libexec/src2pkg/FUNCTIONS ;

# Get the gnustep-make cruft
. /usr/System/Library/Makefiles/GNUstep.sh


# Execute the named packaging steps:
pre_process
find_source
make_dirs
unpack_source

mkdir $SRC_DIR/deps/Cross-platform-deps/SpiderMonkey/js/src/Linux_All_OPT.OBJ
cp /usr/lib64/libjs.a $SRC_DIR/deps/Cross-platform-deps/SpiderMonkey/js/src/Linux_All_OPT.OBJ
cp /usr/include/jsautocfg.h $SRC_DIR/deps/Cross-platform-deps/SpiderMonkey/js/src/
ln -s /usr/include $SRC_DIR/deps/Cross-platform-deps/SpiderMonkey/js/src/Linux_All_OPT.OBJ

fix_source_perms
configure_source #
compile_source # If used, the 'build' function replaces these 3
fake_install #
fix_pkg_perms
strip_bins
create_docs
compress_man_pages
make_description
make_doinst
make_package
post_process

## See the documentation for more help and examples. Below are some of
# the most common Extras and Options for easy cut-and-paste use.
# DOCLIST='' PATCHLIST='' INSTALL_TYPE=''
# CONFIG_COMMAND='' MAKE_COMMAND='' INSTALL_LINE=''
# When editing src2pkg scripts to add custom code, use these variables
# to refer to the current directory, the sources or the package tree:
# $CWD (current directory), $SRC_DIR (sources), $PKG_DIR (package tree)
# Other commonly-used directories include: $DOC_DIR (document directory)
# $MAN_DIR (man-page directory) $DATA_DIR (shared-data directory)
Here is a modified version based upon what I have done in this thread. The package builds and after it has installed the oolite executable to /usr/Local/Tools/oolite it fails on running with the following error:
Quote:

samac@quad:$ /usr/Local/Tools/oolite
Floating point exception
On removing the package I noticed that none of the resource files are loaded.
Quote:

bash-4.1# removepkg oolite

Removing package /var/log/packages/oolite-1.73.4-x86_64-1...
Removing files:
--> Deleting /usr/Local/Tools/oolite
--> Deleting /usr/doc/oolite-1.73.4/README.txt
--> Deleting /usr/man/man3/editline.3.gz
--> Deleting empty directory /usr/doc/oolite-1.73.4/
bash-4.1#
samac

Richard Cranium 04-20-2010 10:37 AM

I don't get an exception, but none of the resources required by oolite are installed to a valid location by the GNUMakefile. I get a small screen that pops up and goes away in less than a second.

It doesn't help that oolite is looking for the resources in odd places, from what I've seen in strace:

Code:

stat("/usr/bin/Resources/oolite/Resources", 0xcf73f8) = -1 ENOENT (No such file or directory)
stat("/usr/bin/Resources/oolite/Resources/descriptions.plist", 0x7fff4c61de60) = -1 ENOENT (No such file or directory)

I'm not sure that this *bleep* works if you use "--with-layout=fhs-system --enable-flattened" when building gnustep-make.

samac 04-20-2010 11:15 AM

Quote:

I don't get an exception, but none of the resources required by oolite are installed to a valid location by the GNUMakefile. I get a small screen that pops up and goes away in less than a second.
I can get this by running make in the source directory and I can get it to finish by modifying the oolite_LIB_DIRS in the GNUmakefile to -L/usr/X11R6/lib64

I'm thinking that I might play with LIBJS_BIN_DIR after I've had some food.

samac

samac 04-20-2010 12:53 PM

I'm giving up again, it is easier to use the alternative install methods, even though they don't really fit with the Slackware mentality. It is impossible to to work through problems when you cannot even get access to the oolite wiki.

samac

Richard Cranium 04-20-2010 01:45 PM

I intend to create a sh script to call oolite in the location where it should be installed, which would have all the resources in subdirectories. I believe that I'll have to patch the makefile to do so.

I'll post my results here when done.

samac 04-20-2010 02:14 PM

Sorry about the length but this is the directory/file structure as installed by the autopackage. This is ~/.local/bin/oolite
Quote:

#!/bin/bash
# Autopackage bootstrap script
# Name: oolite
# Package: @oolite-linux.berlios.de/oolite:1.73.4-test
# Version: 1.73.4-test
# Oolite for Linux

export PATH="/home/samac/.local/bin:$PATH"
export LD_LIBRARY_PATH="/home/samac/.local/lib:$LD_LIBRARY_PATH"


exec "/home/samac/.local/bin/.proxy.oolite" "$@"

Quote:

./.local/bin
|-- autopackage
|-- autopackage-frontend-gtk
|-- autopackage-launcher-gtk
|-- autopackage-launcher-gtk-nautilus-wrapper
|-- autopackage-manager-gtk
|-- oolite
|-- oolite-update
`-- package

0 directories, 8 files
./.local/lib
`-- Oolite
|-- AddOns
|-- doc
| |-- AdviceForNewCommanders.pdf
| |-- CHANGELOG.TXT
| |-- OoliteRS.pdf
| |-- OoliteReadMe.pdf
| |-- README-PREAMBLE.TXT
| `-- README.TXT
|-- oolite-deps
| |-- GNUstep
| | |-- Defaults
| | |-- Library
| | | |-- Colors
| | | | `-- System.clr
| | | |-- DTDs
| | | | |-- http+_www.apple.com_DTDs_PropertyList-1.0.dtd
| | | | `-- plist-0_9.dtd
| | | `-- Services
| | `-- System
| | |-- Library
| | | |-- Bundles
| | | | |-- GSPrinting
| | | | | |-- GSCUPS.bundle
| | | | | | |-- GSCUPS
| | | | | | |-- Resources
| | | | | | | `-- Info-gnustep.plist
| | | | | | `-- stamp.make
| | | | | `-- GSLPR.bundle
| | | | | |-- GSLPR
| | | | | |-- Resources
| | | | | | `-- Info-gnustep.plist
| | | | | `-- stamp.make
| | | | |-- SSL.bundle
| | | | | |-- Resources
| | | | | | `-- Info-gnustep.plist
| | | | | |-- SSL
| | | | | `-- stamp.make
| | | | |-- TextConverters
| | | | | `-- RTFConverter.bundle
| | | | | |-- RTFConverter
| | | | | |-- Resources
| | | | | | `-- Info-gnustep.plist
| | | | | `-- stamp.make
| | | | |-- libgmodel.bundle
| | | | | |-- Resources
| | | | | | `-- Info-gnustep.plist
| | | | | |-- libgmodel
| | | | | `-- stamp.make
| | | | `-- libgnustep-back-010.bundle
| | | | |-- Resources
| | | | | |-- English.lproj
| | | | | | `-- nfontFaceNames.strings
| | | | | |-- Info-gnustep.plist
| | | | | `-- Swedish.lproj
| | | | | `-- nfontFaceNames.strings
| | | | |-- libgnustep-back-010
| | | | `-- stamp.make
| | | `-- Fonts
| | | `-- Helvetica.nfont
| | | |-- FontInfo.plist
| | | |-- n019003l.afm
| | | |-- n019003l.pfb
| | | |-- n019003l.pfm
| | | |-- n019004l.afm
| | | |-- n019004l.pfb
| | | |-- n019004l.pfm
| | | |-- n019023l.afm
| | | |-- n019023l.pfb
| | | |-- n019023l.pfm
| | | |-- n019024l.afm
| | | |-- n019024l.pfb
| | | |-- n019024l.pfm
| | | |-- n019043l.afm
| | | |-- n019043l.pfb
| | | |-- n019043l.pfm
| | | |-- n019044l.afm
| | | |-- n019044l.pfb
| | | |-- n019044l.pfm
| | | |-- n019063l.afm
| | | |-- n019063l.pfb
| | | |-- n019063l.pfm
| | | |-- n019064l.afm
| | | |-- n019064l.pfb
| | | `-- n019064l.pfm
| | `-- share
| | `-- config.site
| `-- lib
| |-- libSDL-1.2.so.0
| |-- libSDL_mixer-1.2.so.0
| |-- libavcall.so.0
| |-- libcallback.so.0
| |-- libdirect-1.0.so.0
| |-- libdirectfb-1.0.so.0
| |-- libfusion-1.0.so.0
| |-- libgnustep-base.so.1.14
| |-- libobjc.so.2
| `-- libpng12.so.0
|-- oolite.app
| |-- Resources
| | |-- AIReference.html
| | |-- AIs
| | | |-- buoyAI.plist
| | | |-- collectLootAI.plist
| | | |-- delayedReactToAttackAI.plist
| | | |-- dockingAI.plist
| | | |-- dumbAI.plist
| | | |-- enteringPirateAI.plist
| | | |-- enteringTraderAI.plist
| | | |-- escortAI.plist
| | | |-- exitingTraderAI.plist
| | | |-- fallingShuttleAI.plist
| | | |-- fttAI.plist
| | | |-- gotoWaypointAI.plist
| | | |-- hardMissileAI.plist
| | | |-- homeAI.plist
| | | |-- interceptAI.plist
| | | |-- minerAI.plist
| | | |-- missileAI.plist
| | | |-- nullAI.plist
| | | |-- oolite-constrictor-AI.plist
| | | |-- pirateAI.plist
| | | |-- planetPatrolAI.plist
| | | |-- policeInterceptAI.plist
| | | |-- receiveDockingAI.plist
| | | |-- risingShuttleAI.plist
| | | |-- rockHermitAI.plist
| | | |-- route1patrolAI.plist
| | | |-- route1traderAI.plist
| | | |-- route2patrolAI.plist
| | | |-- route2sunskimAI.plist
| | | |-- scavengerAI.plist
| | | |-- stationAI.plist
| | | |-- sunSkimExitAI.plist
| | | |-- thargletAI.plist
| | | |-- thargoidAI.plist
| | | |-- timebombAI.plist
| | | `-- traderInterceptAI.plist
| | |-- Config
| | | |-- autoAImap.plist
| | | |-- changedScriptHandlers.plist
| | | |-- characters.plist
| | | |-- commodities.plist
| | | |-- crosshairs.plist
| | | |-- customsounds.plist
| | | |-- demoships.plist
| | | |-- descriptions.plist
| | | |-- equipment.plist
| | | |-- hud-small.plist
| | | |-- hud.plist
| | | |-- illegal_goods.plist
| | | |-- keyconfig.plist
| | | |-- logcontrol.plist
| | | |-- material-defaults.plist
| | | |-- missiontext.plist
| | | |-- nebulatextures.plist
| | | |-- oolite-font.plist
| | | |-- oolite-javascript-errors.plist
| | | |-- pirate-victim-roles.plist
| | | |-- planetinfo.plist
| | | |-- shipdata.plist
| | | |-- shipyard.plist
| | | |-- speech_pronunciation_guide.plist
| | | |-- startextures.plist
| | | |-- verifyOXP.plist
| | | |-- whitelist.plist
| | | `-- world-scripts.plist
| | |-- Images
| | | |-- WMicon.bmp
| | | |-- solar.png
| | | |-- splash.bmp
| | | |-- splash.png
| | | |-- splashback.png
| | | `-- trumblebox.png
| | |-- Info-gnustep.plist
| | |-- InfoPlist.strings
| | |-- Models
| | | |-- adder_redux.dat
| | | |-- alloy.dat
| | | |-- anaconda_redux.dat
| | | |-- arcdetail.dat
| | | |-- asp_redux.dat
| | | |-- asteroid.dat
| | | |-- asteroid1.dat
| | | |-- barrel.dat
| | | |-- boa2_redux.dat
| | | |-- boa_redux.dat
| | | |-- boulder.dat
| | | |-- boulder1.dat
| | | |-- buoy.dat
| | | |-- cobra1_redux.dat
| | | |-- cobra1_redux1.dat
| | | |-- cobra1_redux2.dat
| | | |-- cobra3_redux.dat
| | | |-- cobra3_redux1.dat
| | | |-- constrictor_redux.dat
| | | |-- dock-flat.dat
| | | |-- dock.dat
| | | |-- escpod_redux.dat
| | | |-- exhaust.dat
| | | |-- ferdelance_redux.dat
| | | |-- gecko_redux.dat
| | | |-- icosahedron.dat
| | | |-- icostextured.dat
| | | |-- krait_redux.dat
| | | |-- mamba_redux.dat
| | | |-- mamba_redux1.dat
| | | |-- missile.dat
| | | |-- moray_redux.dat
| | | |-- moray_redux1.dat
| | | |-- new-dodo.dat
| | | |-- new-icos.dat
| | | |-- new-rock.dat
| | | |-- new_coriolis.dat
| | | |-- oolite-ball-turret.dat
| | | |-- oolite-unknown-ship.dat
| | | |-- python_redux.dat
| | | |-- python_redux1.dat
| | | |-- python_redux2.dat
| | | |-- qbomb.dat
| | | |-- ring.dat
| | | |-- rock-box.dat
| | | |-- rock-dock.dat
| | | |-- scarred_alloy.dat
| | | |-- shuttle_redux.dat
| | | |-- sidewinder_redux.dat
| | | |-- splinter.dat
| | | |-- splinter1.dat
| | | |-- strut.dat
| | | |-- thargoid_redux.dat
| | | |-- thargon_redux.dat
| | | |-- transporter_redux.dat
| | | |-- transporter_redux1.dat
| | | |-- viper_redux.dat
| | | |-- viperi_redux.dat
| | | |-- worm_redux.dat
| | | |-- worm_redux1.dat
| | | |-- wreck1.dat
| | | |-- wreck2.dat
| | | |-- wreck3.dat
| | | |-- wreck4.dat
| | | `-- wreck5.dat
| | |-- Music
| | | |-- BlueDanube.ogg
| | | `-- OoliteTheme.ogg
| | |-- README.TXT
| | |-- Schemata
| | | |-- README.txt
| | | |-- demoshipsSchema.plist
| | | |-- hudSchema.plist
| | | |-- plistschema.plist
| | | |-- shipdataEntrySchema.plist
| | | `-- shipyardSchema.plist
| | |-- Scripts
| | | |-- oolite-cloaking-device-mission.js
| | | |-- oolite-cloaking-device-pod.js
| | | |-- oolite-cloaking-device-target-ship.js
| | | |-- oolite-constrictor-hunt-mission.js
| | | |-- oolite-constrictor.js
| | | |-- oolite-default-ship-script.js
| | | |-- oolite-global-prefix.js
| | | |-- oolite-nova-mission.js
| | | |-- oolite-thargoid-plans-mission.js
| | | |-- oolite-thargoid-warship.js
| | | `-- oolite-trumbles-mission.js
| | |-- Shaders
| | | |-- oolite-default-shader.fragment
| | | |-- oolite-standard-vertex.vertex
| | | `-- oolite-tangent-space-vertex.vertex
| | |-- Sounds
| | | |-- afterburner1.ogg
| | | |-- beep.ogg
| | | |-- bigbang.ogg
| | | |-- boop.ogg
| | | |-- breakpattern.ogg
| | | |-- buy.ogg
| | | |-- ecm.ogg
| | | |-- guiclick.ogg
| | | |-- hit.ogg
| | | |-- hullbang.ogg
| | | |-- laser.ogg
| | | |-- laserhits.ogg
| | | |-- missile.ogg
| | | |-- scoop.ogg
| | | |-- sell.ogg
| | | |-- trumble.ogg
| | | |-- trumblesqueal.ogg
| | | |-- warning.ogg
| | | `-- witchabort.ogg
| | |-- Textures
| | | |-- MorayMED_bottom.png
| | | |-- MorayMED_top.png
| | | |-- adder_redux.png
| | | |-- anaconda_redux.png
| | | |-- arcdetail.png
| | | |-- asp_redux.png
| | | |-- asteroid.png
| | | |-- back_metal.png
| | | |-- barrel_metal.png
| | | |-- blur256.png
| | | |-- boa2_left.png
| | | |-- boa2_rear.png
| | | |-- boa2_redux.png
| | | |-- boa2_right.png
| | | |-- boa2_top.png
| | | |-- boa_redux.png
| | | |-- bottom_metal.png
| | | |-- cobra1_redux.png
| | | |-- cobra1_redux1.png
| | | |-- cobra1_redux2.png
| | | |-- cobra1miner_top.png
| | | |-- cobra3_redux.png
| | | |-- cobra3_redux1.png
| | | |-- constrictor_redux.png
| | | |-- dark_metal.png
| | | |-- ferdelance_redux.png
| | | |-- flare256.png
| | | |-- front_metal.png
| | | |-- galaxy256.png
| | | |-- gecko_redux.png
| | | |-- krait_redux.png
| | | |-- left_metal.png
| | | |-- mamba_redux.png
| | | |-- mamba_redux1.png
| | | |-- metal.png
| | | |-- missile.png
| | | |-- moray_redux.png
| | | |-- moray_redux1.png
| | | |-- oolite-ball-turret.png
| | | |-- oolite-barrel-specular.png
| | | |-- oolite-document.png
| | | |-- oolite-expansion-document.png
| | | |-- oolite-font.png
| | | |-- oolite-logo.png
| | | |-- oolite-logo1.png
| | | |-- oolite-nebula-1.png
| | | |-- oolite-nebula-2.png
| | | |-- oolite-nebula-3.png
| | | |-- oolite-nebula-4.png
| | | |-- oolite-scarred-metal-specular.png
| | | |-- oolite-star-1.png
| | | |-- pod2_redux.png
| | | |-- python_redux.png
| | | |-- python_redux1.png
| | | |-- python_redux2.png
| | | |-- qbomb.png
| | | |-- right_metal.png
| | | |-- scarred_metal.png
| | | |-- shuttle_redux.png
| | | |-- sidewinder_redux.png
| | | |-- star64.png
| | | |-- target_metal.png
| | | |-- thargoid_redux.png
| | | |-- thargon_redux.png
| | | |-- top_metal.png
| | | |-- transporter_redux.png
| | | |-- transporter_redux1.png
| | | |-- trumblekit.png
| | | |-- viper_redux.png
| | | |-- viperi_redux.png
| | | |-- worm_redux.png
| | | |-- worm_redux1.png
| | | `-- wreck.png
| | |-- oolite-document.icns
| | |-- oolite-expansion-document.icns
| | `-- oolite-icon.icns
| `-- oolite
`-- release.txt

45 directories, 323 files

samac

Richard Cranium 04-21-2010 02:20 AM

Hmm. It appears that oolite's GNUMakefile is supposed to be run by the Makefile found in the same directory.

This version of oolite-dev-source.src2pkg will create something that almost works. I get the pop-up window with something in it and strace doesn't indicate a problem. It just immediately exits.

Code:

#!/bin/bash
## src2pkg script for:        oolite-dev-source
## Auto-generated by src2pkg-2.1
## src2pkg - Copyright 2005-2009 Gilbert Ashley <amigo@ibilio.org>

SOURCE_NAME='oolite-dev-source-1.73.4.tar.bz2'
NAME='oolite-dev-source'  # Use ALT_NAME to override guessed value
VERSION='1.73.4'  # Use ALT_VERSION to override guessed value
ALT_NAME="oolite"
# ARCH=''
# BUILD='1'
# PRE_FIX='usr'
# Any extra options go here:
# EXTRA_CONFIGS=""

# Optional function replaces configure_source, compile_source, fake_install
# To use, uncomment and write/paste CODE between the {} brackets.
build()
{
    # Get the gnustep-make cruft
    . /usr/share/GNUstep/Makefiles/GNUstep.sh
    # add spidermonkey crud
    cp /usr/libexec/SpiderMonkey/Linux_All_DBG.OBJ/jsautocfg.h ${SRC_DIR}/deps/Cross-platform-deps/SpiderMonkey/js/src/
    ln -s /usr/libexec/SpiderMonkey/Linux_All_DBG.OBJ ${SRC_DIR}/deps/Cross-platform-deps/SpiderMonkey/js/src/Linux_All_OPT.OBJ
    (
        cd ${SRC_DIR}
        make -f Makefile ${JOBS} release
    )
    mkdir -p ${PKG_DIR}/usr/libexec/oolite
    cp -a ${SRC_DIR}/oolite.app ${PKG_DIR}/usr/libexec/oolite
    install -d ${PKG_DIR}/usr/bin
    cat <<EOF > ${SRC_DIR}/oolite
#!/bin/ash
/usr/libexec/oolite/oolite.app/oolite "$@"
EOF
    install ${SRC_DIR}/oolite ${PKG_DIR}/usr/bin
}

# Get the functions and configs
. /usr/libexec/src2pkg/FUNCTIONS ;

# Execute the named packaging steps:
pre_process
find_source
make_dirs
unpack_source
fix_source_perms
configure_source #
compile_source  # If used, the 'build' function replaces these 3
fake_install    #
fix_pkg_perms
strip_bins
create_docs
compress_man_pages
make_description
make_doinst
make_package
post_process

## See the documentation for more help and examples. Below are some of
# the most common Extras and Options for easy cut-and-paste use.
# DOCLIST='' PATCHLIST='' INSTALL_TYPE=''
# CONFIG_COMMAND='' MAKE_COMMAND='' INSTALL_LINE=''
# When editing src2pkg scripts to add custom code, use these variables
# to refer to the current directory, the sources or the package tree:
# $CWD (current directory), $SRC_DIR (sources), $PKG_DIR (package tree)
# Other commonly-used directories include: $DOC_DIR (document directory)
# $MAN_DIR (man-page directory) $DATA_DIR (shared-data directory)


GetafixJr 04-29-2010 07:31 PM

Hi to all.
I have build Oolite in Ubuntu. I know that it has nothing to do with Slackware philosophy,
but perhaps the following could give some hints to proceed further.

Since this is my first post here, I have to split my reply in two due to URLs post and forum rules.

GetafixJr 04-29-2010 07:37 PM

Repository Libraries used (not compiled from source) on a fresh installation (no updates)
subversion, gobjc
libffi4-dev, libxml2-dev, zlib1g-dev
libsmpeg-dev (this used by SDL_mixer. however it tries to fecth libsdl1.2-dev which overwrites our sdl manual make install. therefore install this prior to SDL installation)
libesd0-dev, libaudiofile-dev, libaudio-dev
libpulse-dev
(this one had a too many subdependencies and I did not bother recording them... sorry)
libasound2-dev, libartsc0-dev, libgl1-mesa-dev, libglu1-mesa-dev, libusb-dev, x11proto-xext-dev
libogg-dev, libflac-dev, libvorbis-dev

and g++ to build eSpeak

Code:

Build gnustep-make-2.2.0
        http://ftpmain.gnustep.org/pub/gnust...e-2.0.8.tar.gz
        tar xzvf gnustep-make-2.0.8.tar.gz
        cd gnustep-make-2.2.0
        ./configure --prefix=/usr
        make
        sudo make install
        (added in GNUstep.sh execution in my profile)

Build gnustep-base-1.18.0
        http://ftpmain.gnustep.org/pub/gnust...-1.18.0.tar.gz
        tar xzvf gnustep-base-1.18.0.tar.gz
        cd gnustep-base-1.18.0
        ./configure --prefix=/usr --disable-xslt --disable-tls
        make
        sudo bash
        make install (for some reason "sudo make install" could not found GNUSTEP_MAKEFILES env var)

Build SDL-1.2.14
        http://www.libsdl.org/release/SDL-1.2.14.tar.gz
        tar xzvf SDL-1.2.14.tar.gz
        cd SDL-1.2.14
        ./configure --prefix=/usr
        make
        sudo make install

Build SDL_mixer-1.2.11
        http://www.libsdl.org/projects/SDL_m...-1.2.11.tar.gz
        tar xzvf SDL_mixer-1.2.11.tar.gz
        cd SDL_mixer-1.2.11
        ./configure --prefix=/usr --enable-music-mp3
        make
        sudo make install

Build portaudio (v19 snapshot) - Only portaudio v19 supports ALSA audio
(Having many problems with portaudio in various distros, I tweaked eSpeak Makefile to use pulseaudio instead. See below in eSpeak section)
        portaudio-v19/src/hostapi/alsa/pa_linux_alsa.c
        at line 1372 there is:
        ENSURE_( snd_pcm_sw_params_set_tstamp_mode( self->pcm, swParams, SND_PCM_TSTAMP_ENABLE ), paUnanticipatedHostError );
        Remeber, changing that to SND_PCM_TSTAMP_MMAP

        tar xzvf pa_stable_v19_20071207.tar.gz
        cd portaudio
        ./configure --prefix=/usr
        make
        sudo make install
        sudo ldconfig

Build libpng-1.4.1
        http://prdownloads.sourceforge.net/l...ar.gz?download
        tar xzvf libpng-1.4.1.tar.gz
        cd libpng-1.4.1
        ./configure --prefix=/usr
        make check
        sudo make install

Build eSpeak
        http://espeak.sourceforge.net/download.html
        unzip espeak-1.43.03-source.zip
        cd espeak-1.43.03-source/src
        alter Makefile to build with pulseaudio (comment portaudio and uncomment pulseaudio)
        make
        sudo make install

I apologize if this big post is of no help.
I tried to workaround it's size
by putting a part in "code" tags to have a scrolling window.

[EDIT]
Following to these build/installations:
for oolite 1.73.4
Code:

$ svn co -r2579 http://svn.berlios.de/svnroot/repos/oolite-linux/branches/1.73-maintenance/
$ cd 1.73-maintenance

or if you need bleeding edge
Code:

$ svn co http://svn.berlios.de/svnroot/repos/oolite-linux/trunk/
$ cd trunk

then to build oolite:
Code:

$ make -f Makefile release
Cheers!


All times are GMT -5. The time now is 12:31 AM.