You are not logged in.

#1 2005-03-10 05:59:46

Father
Member
From: Australia
Registered: 2004-06-01
Posts: 209

[Lib: Development] Ogre v1.0.X + Dependencies

here is the pkgbuilds for ogre 1.0.X and all of its dependencies

EDIT: removed PKGBUILDs and replaced with AUR links

follow this howto to get a sample program compiling
http://www.ogre3d.org/wiki/index.php/Th … Anjuta_IDE

thanks go to shastry for the original ogre PKGBUILD which i used as a base..
http://bbs.archlinux.org/viewtopic.php? … light=ogre

note: you must install the cgcompiler, even if you dont have an nvidia graphics card!

enjoy

cgcompiler
http://aur.archlinux.org/packages.php?d … s=0&SeB=nd

zziplib
http://aur.archlinux.org/packages.php?d … s=0&SeB=nd

OGRE
http://aur.archlinux.org/packages.php?d … ns=&SeB=nd

Offline

#2 2005-03-10 06:10:02

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: [Lib: Development] Ogre v1.0.X + Dependencies

just a note - instead of specifying a sourceforge mirror you can use:
http://dl.sourceforge.net/sourceforge/<project name>/<file name>.tar.gz as an alias (good practice to put this in PKGBUILDs

Offline

#3 2005-03-10 07:44:50

Father
Member
From: Australia
Registered: 2004-06-01
Posts: 209

Re: [Lib: Development] Ogre v1.0.X + Dependencies

cool thanks! ive been wondering about how to do that properly, id seen it before but couldnt find a PKGBUILD that did it properly again..

ive updated the PKGBUILDs above

Offline

#4 2005-04-21 04:29:33

Father
Member
From: Australia
Registered: 2004-06-01
Posts: 209

Re: [Lib: Development] Ogre v1.0.X + Dependencies

im attempting to compile ogre 1.0.1 and am running into some problems.
when it tries to link it generates the following error

mkdir .libs
libtool: link: warning: library `/usr/lib/libzzip.la' was moved.
grep: /usr/lib/libmng.la: No such file or directory
/bin/sed: can't read /usr/lib/libmng.la: No such file or directory
libtool: link: `/usr/lib/libmng.la' is not a valid libtool archive
make[2]: *** [libOgreMain.la] Error 1
make[2]: Leaving directory `/var/abs/local/ogre/src/ogrenew/OgreMain/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/abs/local/ogre/src/ogrenew/OgreMain'
make: *** [all-recursive] Error 1
==> ERROR: Build Failed.  Aborting...
[root@64-3200 ogre]# pacman -Qs libmng
local/libmng 1.0.9-1
    A collection of routines used to create and manipulate MNG format graphics files

as you can see, libmng is installed but is missing libmng.la
it should be pretty easy to make using libzzip.la as a reference, but i think libmng should have this file added to its package..

heres the PKGBUILD im using
[edit] Removed to prevent confusion.. refer to OGRE 1.0.1 PKGBUILD at top [/edit]


ogre 1.0.0 didnt generate this error.. which is strange.. image support would be done through DevIL.. and DevIL is the same version and worked previously...

any help would be appreciated

Offline

#5 2005-04-21 12:32:32

Father
Member
From: Australia
Registered: 2004-06-01
Posts: 209

Re: [Lib: Development] Ogre v1.0.X + Dependencies

i manually created the missing file.. i DIDNT use the libtool.sh script as the file suggests.. i manually edited the libzzip.la file and converted it to a libmng.la file

here it is

[edit] removed to prevent confusion / double updating, please refer to first post for file [/edit]



ogre compiled so i assume that means it works


ill try and package CEGui later on since ogre's .config looks for CEGui (but doesnt require it).
Im not using any ogre UIs for a while so dont hold your breath.

Offline

#6 2005-06-27 13:23:51

Father
Member
From: Australia
Registered: 2004-06-01
Posts: 209

Re: [Lib: Development] Ogre v1.0.X + Dependencies

in a few days ill package up Ogre 1.0.2, it should be a very minor change to the ogre package, and most likely just a version increment to the pkgver variable

[edit] ogre 1.0.2 is available here and in the AUR [/edit]

Offline

#7 2006-01-25 13:53:39

Father
Member
From: Australia
Registered: 2004-06-01
Posts: 209

Re: [Lib: Development] Ogre v1.0.X + Dependencies

could someone give me a hand packaging ogre 1.0.6?

its driving me crazy and i really need it to start development.

i just get libtool errors
heres what ive got so far

#contributor: Adam Griffiths <adam_griffithsAATTdart.net.au>
pkgname=ogre
pkgver=1.0.6
pkgrel=1
pkgdesc="ogre3d (Object-oriented Graphics Rendering Engine)"
url="http://www.ogre3d.org/"
license="LGPL"
depends=('cgcompiler' 'devil' 'zziplib' 'freetype2')
makedepends=('sed')
source=('http://dl.sourceforge.net/sourceforge/ogre/ogre-linux_osx-v1-0-6.tar.bz2')
md5sums=('49d75f22a5893bdab31367c069b9b99b')

build() {   cd $startdir/src/ogrenew 
#  aclocal
#  ./bootstrap

     # for GLX support
        ./configure --prefix=/opt/ogre --with-gl-support=GLX --with-platform=GLX

        make || return 1
        make prefix=$startdir/pkg/opt/ogre install

        # Copy the sample code and meshes across
        cp -R $startdir/src/ogrenew/Samples $startdir/pkg/opt/ogre/
        chgrp users $startdir/pkg/opt/ogre/Samples -R
        chmod 775 $startdir/pkg/opt/ogre/Samples -R

        # Update the plugin.cfg file paths
        sed -i "sPluginFolder=/usr/local/lib/OGREPluginFolder=/opt/ogre/lib/OGRE/\" $startdir/pkg/opt/ogre/Samples/Common/bin/plugins.cfg

        # Create a reference to our pkgconfig file
        mkdir -p $startdir/pkg/etc/profile.d
        echo "export PATH=$PATH:/opt/ogre/bin" > $startdir/pkg/etc/profile.d/ogre.sh
        echo "export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/ogre/lib/pkgconfig" >> $startdir/pkg/etc/profile.d/ogre.sh
        chmod 755 $startdir/pkg/etc/profile.d/ogre.sh

        # kill libtool
        find $startdir/pkg -name '*.la' -exec rm {} ;
}

Offline

#8 2006-01-25 18:30:37

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [Lib: Development] Ogre v1.0.X + Dependencies

What error message are you getting?

Offline

#9 2006-01-26 05:22:09

Father
Member
From: Australia
Registered: 2004-06-01
Posts: 209

Re: [Lib: Development] Ogre v1.0.X + Dependencies

sorry, i realised i should've mentioned that when i went to sleep.
Basically, the main ogre libraries compile fine.
But when it comes to building system dependent libraries, in this case, RenderSystems, etc, libtool complains, and gives a command it says i should run first.
It does this for about 5 libraries.
If i do make; followed by the commands libtool said, and then make install; The errors go away, but the libraries still aren't built.

this is the first of such errors

make[4]: Nothing to be done for `install-exec-am'.
/bin/sh ../../../mkinstalldirs /home/father/arch/build/for_aur/ogre/pkg/opt/ogre/lib
 /bin/sh ../../../libtool --mode=install /bin/install -c  libOgrePlatform.la /home/father/arch/build/for_aur/ogre/pkg/opt/ogre/lib/libOgrePlatform.la
libtool: install: warning: relinking `libOgrePlatform.la'
(cd /home/father/arch/build/for_aur/ogre/src/ogrenew/PlatformManagers/GLX/src; /bin/sh ../../../libtool --mode=relink g++ -march=i686 -O2 -pipe -o libOgrePlatform.la -rpath /opt/ogre/lib -module -shared -L../../../OgreMain/src OgreGLXConfig.lo OgreGLXInput.lo OgreGLXTimer.lo OgreGLXPlatform.lo -L/usr/X11R6/lib -lX11 -lXaw
-lGL -lGLU -lOgreMain -lXaw -lCg -lILU -lIL -lpthread -lz -lm -ldl)
gcc -shared  OgreGLXConfig.lo OgreGLXInput.lo OgreGLXTimer.lo OgreGLXPlatform.lo  -Wl,--rpath -Wl,/opt/ogre/lib  -L/home/father/arch/build/for_aur/ogre/src/ogrenew/OgreMain/src -L/usr/X11R6/lib -lX11 -L/usr/lib -lGL
-lGLU -L/opt/ogre/lib -lOgreMain -lXaw -lCg -lILU -lIL -lpthread -lz -lm -ldl   -Wl,-soname -Wl,libOgrePlatform.so.0 -o .libs/libOgrePlatform.so.0.0.0
/usr/bin/ld: cannot find -lOgreMain
collect2: ld returned 1 exit status
libtool: install: error: relink `libOgrePlatform.la' with the above command before installing it
libtool: install: warning: remember to run `libtool --finish /opt/ogre/lib'
make[4]: Leaving directory `/home/father/arch/build/for_aur/ogre/src/ogrenew/PlatformManagers/GLX/src'

i just realised i didnt run libtool --finish .... like it says...
i might try that..
but its just so... brute force.. there has to be a more elegant way that doesn't involve re-creating the project or running these crazy commands.. dunno

fyi, the libraries that aren't being built SHOULD be located in /opt/ogre/lib/OGRE

thanks for any help!

Offline

#10 2006-01-26 05:37:08

WillySilly
Member
Registered: 2005-01-14
Posts: 268

Re: [Lib: Development] Ogre v1.0.X + Dependencies

Random question but why cant ogre be located in /usr?

Offline

#11 2006-01-26 11:41:21

Father
Member
From: Australia
Registered: 2004-06-01
Posts: 209

Re: [Lib: Development] Ogre v1.0.X + Dependencies

Alot of projects need to modify it and what not, having it in /opt just means that the source is easy to find and not scattered about with other misc libraries. I just felt it was the best location for it.

Offline

#12 2006-01-29 09:58:51

Father
Member
From: Australia
Registered: 2004-06-01
Posts: 209

Re: [Lib: Development] Ogre v1.0.X + Dependencies

...anyone......?

Offline

#13 2006-02-09 10:47:36

Father
Member
From: Australia
Registered: 2004-06-01
Posts: 209

Re: [Lib: Development] Ogre v1.0.X + Dependencies

........................................

Offline

#14 2006-02-09 11:52:15

Father
Member
From: Australia
Registered: 2004-06-01
Posts: 209

Re: [Lib: Development] Ogre v1.0.X + Dependencies

weird... when i compile WITHOUT GLX support, it works!?!

weird!

So i guess its trying to link to the nvidia libraries or something and can't find the .la files???

Offline

Board footer

Powered by FluxBB