Debian Gnu/Linux Tutorial

Problems building or running the engine, queries about how to use features etc.
Ceacy
Halfling
Posts: 81
Joined: Sat Jan 29, 2005 5:47 pm
Location: Paris, France.

Post by Ceacy »

The people.debian.org/~fog/ogre doesn't seem to work any more ; nevertheless, there are packages at :

Code: Select all

deb ftp://ftp.fr.debian.org/debian/ unstable main
deb-src ftp://ftp.fr.debian.org/debian/ unstable main
Hoping it will work (i'm installing it) ...
User avatar
fog
Greenskin
Posts: 149
Joined: Sun Sep 19, 2004 6:00 pm
Location: Torino, ITALY

Officially in Debian

Post by fog »

Yes, my personal repository is gone, because all the needed packages (NVIDIA Cg tools, Ogre and CEGUI) are now officially in Debian unstable. Just apt-get from your nearest mirror.
zith
Gnoblar
Posts: 2
Joined: Sat May 14, 2005 12:16 am

Post by zith »

Hello! I am also getting the zziplib error when doing ./configure.. my ./bootstrap went through fine when updating autoconf, automake and libtool.

Code: Select all

.
.
.
checking for FreeType - version >= 9.0.0... yes
checking for dlopen in -ldl... yes
checking for pow in -lm... yes
checking for gzopen in -lz... yes
checking for pthread_create in -lpthread... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for cppunit-config... /usr/bin/cppunit-config
checking for Cppunit - version >= 1.9.0... 1.10.0
./configure: line 20722: syntax error near unexpected token `ZZIPLIB,'
./configure: line 20722: `PKG_CHECK_MODULES(ZZIPLIB, zziplib)'
Any ideas anyone?
User avatar
fog
Greenskin
Posts: 149
Joined: Sun Sep 19, 2004 6:00 pm
Location: Torino, ITALY

Post by fog »

Yes, install pkg-config.
zith
Gnoblar
Posts: 2
Joined: Sat May 14, 2005 12:16 am

Post by zith »

Already have it,,
BaffledMollusc
Halfling
Posts: 59
Joined: Wed Feb 09, 2005 10:58 am

Post by BaffledMollusc »

Hi all,

I'm trying to move my development environment over from Windows to Ubuntu linux. I've been through this entire thread, and I'm still a bit confused about exactly what packages I need to install. If I install everything that has been quoted in this thread I seem to need

libsdl1.2-dev
libdevil-dev
libfreetype6-dev
libgtkmm2.0-dev
libglademm2.0-dev
libogre-dev
ogre-tools
ogre-doc
blender-ogrexml
ogre-plugins-cgprogrammanager
nvidia-cg-toolkit
libcegui-mk2-doc
libcegui-mk2-doc

Do I need all of these? Any others?

The other problem is that I have added "deb http://ftp.us.debian.org/debian/ unstable main" to my repository list, but I still can't see some of the packages above (e.g. ogre-plugins-cgprogrammanager and nvidia-cg-toolkit).

Finally, is there a problem in that Ubuntu uses XOrg and standard Debian uses XFree?

This whole linux/package management thing is quite new to me, so I'm not completely sure what I'm doing!
User avatar
fog
Greenskin
Posts: 149
Joined: Sun Sep 19, 2004 6:00 pm
Location: Torino, ITALY

Post by fog »

BaffledMollusc wrote:The other problem is that I have added "deb http://ftp.us.debian.org/debian/ unstable main" to my repository list, but I still can't see some of the packages above (e.g. ogre-plugins-cgprogrammanager and nvidia-cg-toolkit).

Finally, is there a problem in that Ubuntu uses XOrg and standard Debian uses XFree?
ogre-plugins-cgprogrammanager and nvidia-cg-toolkit are not completely free (the second is just an installer for the non-free NVIDIA Cg toolkit and the first one depends on it, making it "contrib".) Just make your apt src line into:

Code: Select all

http://ftp.us.debian.org/debian/ unstable main contrib non-free
I use XOrg myself and the ogre packages have no problems running on it. Also, not that you only need the ogre packages, all the dependencies will be resolved for you by apt. E.g.,

Code: Select all

apt-get install libogre-dev libcegui-mk2-dev libcegui-mk2-doc ogre-doc ogre-tools ogre-plugins-cgprogrammanager  blender-ogrexml 
If later you're missing some -dev package please send a bug report using the Debian bug tracking system (just install and run "reportbug").
BaffledMollusc
Halfling
Posts: 59
Joined: Wed Feb 09, 2005 10:58 am

Post by BaffledMollusc »

Excellent! Thanks for that. I'll give it go and hope for the best.

If I have any insurmountable problems I'll be back :)
BaffledMollusc
Halfling
Posts: 59
Joined: Wed Feb 09, 2005 10:58 am

Post by BaffledMollusc »

Okay, everything seemed to work, although after I added

Code: Select all

deb http://ftp.us.debian.org/debian/ unstable main contrib non-free
I got the following warning

Code: Select all

W: GPG error: http://ftp.us.debian.org unstable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F1D53D8C4F368D5D
plus lots of other threating security warnings whenever I added a package. Do I need to add some sort of digital signature key thing somewhere?
User avatar
fog
Greenskin
Posts: 149
Joined: Sun Sep 19, 2004 6:00 pm
Location: Torino, ITALY

Post by fog »

apt-get 0.6.x has archive verification using public key cryptography. You can download the archive key from http://ftp-master.debian.org/ziyi_key_2005.asc and install it using the apt-key command.
BaffledMollusc
Halfling
Posts: 59
Joined: Wed Feb 09, 2005 10:58 am

Post by BaffledMollusc »

Thanks, that worked (after an educational journey through debian package-signing land via google :) ).

Regarding your comments a couple of posts ago regarding filing a bug report, there were a number of extra -dev packages required. I tried to submit a report with reportbug, but failed as I couldn't get sendmail to work (I use web based email at home, and have never bothered configuring email to work with my ISP. Just spent some time trying to do this, but I'm obviously incompetent. I'll have another go tonight, since that's obviously what Friday nights are for...). But since the bug report would probably go to you (fog) since you're the maintainer, I'll mention the problems here. I found I needed these additional packages:

Code: Select all

libzzip-dev
libdevil-dev
libtiff4-dev
liblcms1-dev
libpng12-dev
libxerces26-dev
plus one other package that I didn't note at the time and can't remember.

Thanks again for all your help!
Last edited by BaffledMollusc on Sat Oct 01, 2005 3:49 pm, edited 1 time in total.
BaffledMollusc
Halfling
Posts: 59
Joined: Wed Feb 09, 2005 10:58 am

Post by BaffledMollusc »

Okay, upgrade me to semi-incompetent. I configured ssmtp and sent in a bug report. I hope.
gururise
Gnoblar
Posts: 13
Joined: Sat May 28, 2005 12:39 am

Post by gururise »

I too am having this problem when doing a 'make install' on ubuntu:

Code: Select all

Making install in OgreMain
make[1]: Entering directory `/home/gene/Projects/ogrenew/OgreMain'
Making install in src
make[2]: Entering directory `/home/gene/Projects/ogrenew/OgreMain/src'
make[3]: Entering directory `/home/gene/Projects/ogrenew/OgreMain/src'
test -z "/usr/local/lib" || mkdir -p -- "/usr/local/lib"
 /bin/sh ../../libtool --mode=install /usr/bin/install -c  'libOgreMain.la' '/usr/local/lib/libOgreMain.la'
/usr/bin/install -c .libs/libOgreMain.so.5.1.0 /usr/local/lib/libOgreMain.so.5.1.0
(cd /usr/local/lib && rm -f libOgreMain.so.5 && ln -s libOgreMain.so.5.1.0 libOgreMain.so.5)
(cd /usr/local/lib && rm -f libOgreMain.so && ln -s libOgreMain.so.5.1.0 libOgreMain.so)
/usr/bin/install -c .libs/libOgreMain.lai /usr/local/lib/libOgreMain.la
/usr/bin/install: cannot stat `.libs/libOgreMain.lai': No such file or directorymake[3]: *** [install-libLTLIBRARIES] Error 1
make[3]: Leaving directory `/home/gene/Projects/ogrenew/OgreMain/src'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/gene/Projects/ogrenew/OgreMain/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/gene/Projects/ogrenew/OgreMain'
make: *** [install-recursive] Error 1
Noticed that ColdDarkness had the same exact problem on page 4 of this thread... Notice the misspelling of libOgreMain.lai. Dont know why the install script is looking for that file?? It doesnt seem to exist anywhere.

I am using libtools v1.5.6. Any help would be greatly appreciated!
User avatar
discipline
OGRE Community Helper
OGRE Community Helper
Posts: 766
Joined: Mon May 16, 2005 12:09 am

Post by discipline »

gururise:
When I first setup ogre, I ran into this problem. Then I just used the debian packages, which you should probably use. They are in unstable. However tonight I was able to get it to install. The libOgreMain.lai file is basically the same thing as the libOgreMain.la file. The only difference is the .lai file has a line that says 'installed=yes' whereas the other is 'installed=no'. You can manually create this. I scoured the internet and libtool source to try and figure out what libtool did with it's .lai files. I still don't know exactly. However on subsequent installs tonight, this was no longer a problem. I ran it a few times, cleaned out the whole directory, compiled and the .lai file was there. Strange.

Anyway, I recommend installing the precompiled debian packages. They will also pull down the dependencies you need. If you want the CVS features and need to compile your self, here is my process for the record (rehash of earlier posts on this thread):

Code: Select all

- Install dependencies (see below)
- Download/extract ogre release file
- Pull down bug fixes from CVS stable (see bottom of 'developers' link on main page)
$ aclocal
$ ./bootstrap
$ ./configure --prefix=/usr --with-platform=GLX --enable-openexr
$ make
$ ln -s Docs doc-pak
$ sudo checkinstall -D --pkgname=libogre --pkgversion=1.0.1 --pkgrelease=1 --maintainer=myemail@blah.com
I link the Docs directory so the debian package includes the manual and api. The sudo line could be replaced with 'su' then running the rest of the command as root. If you don't want to make a debian package, substituting 'make install' for everything after 'make' will suffice.

I just did this exact process successfully, from an empty directory, even though earlier tonight I had the .lai problem.

edit: Added in a couple options on to configure, as on my system it defaults to SDL, but apparently it doesn't work. I have an Nvidia Geforce4 MX440. Also for the record, here are the debian packages I use to fulfill my dependencies (from unstable):

Code: Select all

$ apt-get install g++ gcc cpp make automake1.9 checkinstall libtool \
    libsdl1.2-dev libdevil-dev libfreetype6-dev libgtkmm2.0-dev \
    libcegui-mk2-0 libcegui-mk2-dev libcegui-mk2-doc libxerces26-dev \
    libpng3-dev libtiff4-dev liblcms1-dev libpng3 libjpeg62-dev \
    libglademm2.0-dev libzzip-dev libxaw7-dev\
    libopenexr-dev libopenexr2 
Plus the Cg toolkit from nvidia's website (link earlier in this thread).
gururise
Gnoblar
Posts: 13
Joined: Sat May 28, 2005 12:39 am

Post by gururise »

Any debian packages for OgreODE yet? For the life of me, I just cannot get OgreODE to compile in Ubuntu. I noticed a few posts back that someone mentioned that OgreODE would be packaged within 48 hours. Anyone?

Thanks!

p.s. Discipline, I used the v1-0 cvs branch, and got that to compile fine, but now am having trouble compiling OgreOde... see this thread.
User avatar
fog
Greenskin
Posts: 149
Joined: Sun Sep 19, 2004 6:00 pm
Location: Torino, ITALY

Post by fog »

BaffledMollusc wrote:But since the bug report would probably go to you (fog) since you're the maintainer, I'll mention the problems here. I found I needed these additional packages:
Thank you very much. Next version of the libogre-dev package will have apprpriate dependencies on the packages you listed.
User avatar
fog
Greenskin
Posts: 149
Joined: Sun Sep 19, 2004 6:00 pm
Location: Torino, ITALY

Post by fog »

discipline wrote: Plus the Cg toolkit from nvidia's website (link earlier in this thread).
This is available as nvidia-cg-toolkit Debian package. It will download and install the latest NVIDIA toolkit.
User avatar
discipline
OGRE Community Helper
OGRE Community Helper
Posts: 766
Joined: Mon May 16, 2005 12:09 am

Post by discipline »

fog wrote:This is available as nvidia-cg-toolkit Debian package. It will download and install the latest NVIDIA toolkit.
Does this mean Cg 1.3 is now supported and Ogre compiles with it? (earlier in this thread both were apparently false).
User avatar
fog
Greenskin
Posts: 149
Joined: Sun Sep 19, 2004 6:00 pm
Location: Torino, ITALY

Post by fog »

1.0.1 Debian packages are compiled against nvidia-cg-toolkit. They build and run the samples without any problems.
Kpt Lothar
Gnoblar
Posts: 11
Joined: Sat Oct 16, 2004 10:08 am
Location: Józefów/Poland

Post by Kpt Lothar »

what about this one:

OgreMesh.cpp:844: instantiated from here
/usr/include/c++/3.3/ext/stl_hashtable.h:514: error: no match for call to `(
const __gnu_cxx::hash<Ogre::_StringBase>) (const std::basic_string<char,
std::char_traits<char>, std::allocator<char> >&)'
make[2]: *** [OgreMesh.lo] Error 1

it is during make command.
Kpt Lothar
Gnoblar
Posts: 11
Joined: Sat Oct 16, 2004 10:08 am
Location: Józefów/Poland

Post by Kpt Lothar »

@zith: dont run bootstrap; it crashes my installation (i have non-cvs version)
delete ogrenew dir and extract package one more time; start installation with ./configure
Kpt Lothar
Gnoblar
Posts: 11
Joined: Sat Oct 16, 2004 10:08 am
Location: Józefów/Poland

Post by Kpt Lothar »

@discipline:

fix with 'installed=no' worked for libOgreMain. For others I get:

libtool: install: warning: relinking `libOgrePlatform.la'
(cd /home/yogi/yake/dependencies/ogrenew/PlatformManagers/SDL/src; /bin/sh ../../../libtool --mode=relink g++ -g -O2 -I/usr/include/SDL -D_REENTRANT -fno-rtti -o libOgrePlatform.la -rpath /usr/local/lib -module -shared -avoid-version -L../../../OgreMain/src -Wl,-z,defs OgreSDLConfig.lo OgreSDLInput.lo OgreSDLTimer.lo OgreSDLPlatform.lo -L/usr/lib -lSDL -lpthread -lGL -lGLU -lOgreMain -lCg -lILU -lIL -lpthread -lz -lm -ldl -L/usr/lib -lSDL -lpthread)
mv: cannot stat `libOgrePlatform.so': No such file or directory
libtool: install: error: relink `libOgrePlatform.la' with the above command before installing it
PATH="$PATH:/sbin" ldconfig -n /usr/local/li

interesting thing is that i see only *.so file i see in OgreMain/src/.libs is
libOgreMain.so. so where are other *.so's??

I'm trying to install Azazoth on ubuntu.

2nd question: i have no make-file for EXRCodec.
User avatar
discipline
OGRE Community Helper
OGRE Community Helper
Posts: 766
Joined: Mon May 16, 2005 12:09 am

Post by discipline »

What versions of libtool, autoconf, make and automake are you using? These fixes you are proposing haven't been necessary for anyone else here. If ./bootstrap crashes your install, that is a sign of a problem. If you don't run bootstrap and have problems with the rest of your installation, it's probably because you didn't run bootstrap. You should be using all the autotools packages from debian unstable. Or just install fog's debian packages for Ogre, also in unstable. If not using debian, these versions work fine for me:

Code: Select all

automake      1.9.5
autoconf      2.59a
make          3.80
libtool       1.5.6
pkg-config    0.17.2
Kpt Lothar
Gnoblar
Posts: 11
Joined: Sat Oct 16, 2004 10:08 am
Location: Józefów/Poland

Post by Kpt Lothar »

discipline - do please check your PM.
Kpt Lothar
Gnoblar
Posts: 11
Joined: Sat Oct 16, 2004 10:08 am
Location: Józefów/Poland

Post by Kpt Lothar »

zith wrote:Already have it,,
ok - here is solution for us (thnx to IRC guys) for ZZIPLIB thang:

$ pkg-config --cflags zziplib
$ ./bootstrap
$ 1 more time run ./configure

WORKS!!