Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 307205 - dev-games/ogre-1.7.4: version bump
Summary: dev-games/ogre-1.7.4: version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Games
URL: http://www.ogre3d.org
Whiteboard:
Keywords:
: 406473 (view as bug list)
Depends on: 307487
Blocks:
  Show dependency tree
 
Reported: 2010-02-28 16:29 UTC by Christoph Brill (egore) (RESIGNED)
Modified: 2012-03-03 20:59 UTC (History)
14 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-games/ogre-1.7.0_rc1.ebuild (ogre-1.7.0_rc1.ebuild,1.81 KB, text/plain)
2010-02-28 18:05 UTC, Christoph Brill (egore) (RESIGNED)
Details
dev-games/ogre-1.7.0_rc1.ebuild (ogre-1.7.0_rc1.ebuild,1.84 KB, text/plain)
2010-02-28 19:29 UTC, Christoph Brill (egore) (RESIGNED)
Details
ogre-1.7.1.ebuild (ogre-1.7.1.ebuild,2.31 KB, text/plain)
2010-04-26 18:32 UTC, Jacek Szafarkiewicz
Details
ogre-1.7.1.ebuild (ogre-1.7.1.ebuild,2.60 KB, text/plain)
2010-05-04 00:42 UTC, Azamat H. Hackimov
Details
ogre-1.7.1.ebuild (ogre-1.7.1.ebuild,2.38 KB, text/plain)
2010-05-07 18:48 UTC, Azamat H. Hackimov
Details
ogre-1.7.1.ebuild (ogre-1.7.1.ebuild,3.88 KB, text/plain)
2010-05-15 10:39 UTC, Jacek Szafarkiewicz
Details
Ogre-1.7.2 ebuild (ogre-1.7.2.ebuild,3.94 KB, text/plain)
2011-04-02 08:22 UTC, Myckel Habets
Details
Ogre version 1.7.4 ebuild (ogre-1.7.4.ebuild,2.82 KB, text/plain)
2012-02-18 20:50 UTC, Myckel Habets
Details
Ogre version 1.8.0 RC1 ebuild (ogre-1.8.0_rc1.ebuild,2.82 KB, text/plain)
2012-02-18 20:52 UTC, Myckel Habets
Details
Patch for gcc46 (ogre-gcc46.patch,277 bytes, text/plain)
2012-02-18 20:55 UTC, Myckel Habets
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Brill (egore) (RESIGNED) 2010-02-28 16:29:13 UTC
I'm starting this bug as a tracker because (for some unknown reason) ogre 1.7 will be using cmake instead of autotools. This pretty much forces us to start over from scratch.

I'll start looking into this (as I'm facing a bug that was fixed in 1.7.0RC1) but I really suck at cmake. Can't promise this will end with a usable result.

Reproducible: Always
Comment 1 Christoph Brill (egore) (RESIGNED) 2010-02-28 18:05:42 UTC
Created attachment 221557 [details]
dev-games/ogre-1.7.0_rc1.ebuild

Initial draft on the 1.7.0RC1 ebuild. It seems to build find but I can't get it to run right now because of API changes.
Comment 2 Christoph Brill (egore) (RESIGNED) 2010-02-28 19:29:31 UTC
Created attachment 221559 [details]
dev-games/ogre-1.7.0_rc1.ebuild

Actually install the library by forcing CMAKE_BUILD_TYPE=Release
Comment 3 Christoph Brill (egore) (RESIGNED) 2010-03-01 08:14:36 UTC
1.) I removed the "--enable-static" stuff because "-DOGRE_STATIC=ON" causes all pkg-config files be get a "Static" appended.
Why were we using this earlier? Is that a problem?

2.) Next to that the DevIL support is gone and freeimage is no longer in the tree. Therefore we can't load images currently.

3.) Samples failed with 1.7.0RC1, not tested 1.7.0.

4.) 1.7.0 was release
Comment 4 Christoph Brill (egore) (RESIGNED) 2010-03-02 14:19:07 UTC
I tried to get freeimage to work with the system wide libs. It seems to work, but ogre fails to link in this case. Looks like the build system does know about the new dependencies.
Comment 5 Azamat H. Hackimov 2010-04-23 11:22:44 UTC
(In reply to comment #4)
> I tried to get freeimage to work with the system wide libs. It seems to work,
> but ogre fails to link in this case. Looks like the build system does know
> about the new dependencies.
> 

You need to create pkg-config file for freeimage (freeimage.pc). As I know, Ogre tries check library via pkg-config first.
Comment 6 Jacek Szafarkiewicz 2010-04-26 18:32:57 UTC
Created attachment 229281 [details]
ogre-1.7.1.ebuild

Little modified ebuild with media-libs/freeimage support (Bug 307487), but thread don't work - won't compile.
Comment 7 Azamat H. Hackimov 2010-05-04 00:42:24 UTC
Created attachment 230219 [details]
ogre-1.7.1.ebuild

OGRE suuport 3 levels of threading:
0 - Threading off.
1 - Full background loading.
2 - Background resource preparation.

OGRE Developers recommended 2 level, 1 in some way deprecated (http://ogre3d.org/forums/viewtopic.php?f=2&t=54953)
So, there must be -DOGRE_CONFIG_THREADS=ON (enables 2 by default) or -DOGRE_CONFIG_THREADS=2.
Also boost may be optional depedency (even if threader chosen poco or tbb).
Comment 8 Marc Plano-Lesay 2010-05-07 05:55:49 UTC
Your ebuild works pretty fine, but it fails to install libOgreTerrain.so, RenderSystem_GL.so, … Any libs other than libOgreMain.so in fact. I don't have any idea of how to correct this… Copying them by hand from Portage temp dir works just fine.
Comment 9 Azamat H. Hackimov 2010-05-07 18:48:21 UTC
Created attachment 230719 [details]
ogre-1.7.1.ebuild

Haha, my bad :). Forgot uncomment one line. This ebuild should work. Also fixed samples installation.
Comment 10 Marc Plano-Lesay 2010-05-07 19:17:45 UTC
Yep, better, thanks :) Anyway, there's still a problem, Plugin_CgProgramManager.so is not build (same problem with the previous ebuild), with the cg use flag. The SampleBrowser segfault, don't know why (It seems to be while loading the OpenGL renderer)

Thanks for your work ;)
Comment 11 Azamat H. Hackimov 2010-05-11 15:28:55 UTC
(In reply to comment #10)
> Yep, better, thanks :) Anyway, there's still a problem,
> Plugin_CgProgramManager.so is not build (same problem with the previous
> ebuild), with the cg use flag.

Strange, I have this lib: /usr/lib64/OGRE/Plugin_CgProgramManager.so
Can you post your emerge --info?
Comment 12 Marc Plano-Lesay 2010-05-13 06:05:37 UTC
Here it is :
Portage 2.2_rc67 (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.11.1-r0, 2.6.33-ck x86_64)
=================================================================
System uname: Linux-2.6.33-ck-x86_64-AMD_Phenom-tm-_II_X4_955_Processor-with-gentoo-2.0.1
Timestamp of tree: Wed, 12 May 2010 05:15:02 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p5
dev-java/java-config: 2.1.11
dev-lang/python:     2.5.4-r4, 2.6.5-r2, 3.1.2-r3
dev-python/pycrypto: 2.1.0
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 PUEL skype-eula ut2003"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -msse -msse2 -mmmx -m3dnow -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=amdfam10 -O2 -msse -msse2 -mmmx -m3dnow -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache confcache distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mneisen.org/ http://gentoo.tiscali.nl/ http://de-mirror.org/distro/gentoo/"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="fr"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/mozilla /var/lib/layman/rion /var/lib/layman/roslin /var/lib/layman/games /var/lib/layman/sunrise /var/lib/layman/suka /var/lib/layman/gnome /var/lib/layman/zugaina /var/lib/layman/akoya /var/lib/layman/devnull /var/lib/layman/webapps-experimental /usr/local/portage/moi"
SYNC="rsync://rsync1.fr.gentoo.org/gentoo-portage/"
USE="3dnow 3dnowext 64bit X a52 aac aalib acct acl aim alsa amd64 animgif ao apache2 applet archive aspell audiofile autoipd avahi ban bash-completion bazaar berkdb bidi bineditor blender blender-game bluetooth bonjour boo bookmarks boost branding bzip2 cairo cdda cdio cdparanoia cdr cegui cg cjk cli clock connection-sharing consolekit contrib cracklib crypt css ctype cue cups cvs cxx daap dbus debugger designer deskbar devhelp device-mapper devil dga dhclient dhcp dhcpcd dia dirac directfb diskio djvu doc dot dri dts dvb dvd dvdnav dvdr dvi eds embedded emerald encode evo exif extensions extra extras fakevim fam fat fbcon fbcondecor festival ffmpeg filter flac flash fontconfig fortran freetts ftp fts3 fuse gadu galago gconf gd gdbm gdm gdu gif git glitz gmail gmp gnome gnome-keyring gnome-print gnomecd gnutls gopher gpg gphoto2 gpm groupwise grub gsf gstreamer gtk hal hddtemp html iconv icu id3 id3tag idn ieee1394 imap imlib inkjar iostats iplayer iptc ipv6 irc irda ithreads jabber jadetex java java6 javascript jpeg jpeg2k karma kate kdrive kpathsea ladspa lastfm latex lcms libass libcaca libmms libnl libnotify libsexy libsoup libtiger libv4l libv4l2 lightning live lm_sensors lua lua-cairo lua-imlib lyrics lzma lzo mad mail maildir math matroska mbox mbrola mdnsresponder-compat meanwhile memoryview mercurial mh midi mikmod mirage mmx mng moc modules mono moonlight mozembed mozilla mp3 mp3tunes mpd mpeg mpi msn mtp mudflap multilib musepack mysql mysqli nagios-dns nagios-game nagios-ntp nagios-ping nagios-ssh nano-syntax nautilus ncurses network network-cron networking networkmanager nfs nls nptl nptlonly nsplugin ntfs ntp nvidia offensive ogg ogre openal opengl openmp pam pango passfile passwordsave pastebin pch pcntl pcre pda pdf pdo perforce perl php physfs pidgin playlist plotutils png podcast policykit pop posix postscript pppd prediction pulseaudio python qml qq qt3support qt4 qthelp qtscript quicktime rar readline reflection remote remoteosd resolvconf rss rtf ruby samba sasl savedconfig schroedinger scintilla sdl semantic-desktop sensord session silc smbclient smbsharemodes smtp sndfile sound speech speex spell spl splash sql sqlite sqlite3 sse sse2 ssl startup-notification stream subversion svg sysfs syslog t1lib taglib tcl tcpd themes theora thumbnail thunderbird tiff tk tokenizer topal truetype udev unicode upnp usb userpriv v4l v4l2 vdpau verse vhosts view-captcha vim vim-syntax vorbis vroot wav wavpack weather-metar weather-xoap webinterface webkit wifi wikipedia winbind wma x11vnc x264 xcb xfs xft xine xinerama xml xmp xorg xsl xspf xulrunner xv xvid xvmc yahoo youtube zeroconf zip zlib zsh-completion" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 13 Richard Connon 2010-05-13 11:12:35 UTC
Doesn't work for me. It fails to detect Cg in /opt and picks libfreeimage.a instead of libfreeimage.so.3 (possibly missing libfreeimage.so symlink).

Also... even when set up correctly using ccmake it fails to build with undefined reference errors to libfreeimage stuff.
Comment 14 Thomas J. Moore 2010-05-13 23:07:01 UTC
To fix the cg detection, I added the following before the "use freeimage && ..." line:

	use cg && test -d /opt/nvidia-cg-toolkit && mycmakeargs+=" -DCg_HOME=/opt/nvidia-cg-toolkit"

Not sure all that detection is necessary; the ebuild could just as well depend on a version where the location is guaranteed to skip the 2nd test.

Other than cg detection, this ebuild worked fine for me (when also using the freeimage ebuild)
Comment 15 Jacek Szafarkiewicz 2010-05-15 10:39:26 UTC
Created attachment 231529 [details]
ogre-1.7.1.ebuild

I've added the nvidia-cg LDFLAGS (comment #14) and clean up the files (especially the doc files)
Comment 16 Cliff Yapp 2010-06-18 02:06:40 UTC
Has anyone successfully used Ogre with this ebuild and the freeimage ebuild from http://bugs.gentoo.org/show_bug.cgi?id=307487 ?

I have successfully compiled both, but when I build Ogitor and actually try to display a scene I get a wipeout in FreeImage:

#0  0x00007ffff1bb1e6c in FreeImage_SetTagValue () from /usr/lib/libfreeimage.so.3
#1  0x00007ffff1b8a18e in Load () from /usr/lib/libfreeimage.so.3
#2  0x00007ffff1b745dd in FreeImage_LoadFromHandle () from /usr/lib/libfreeimage.so.3
#3  0x00007ffff1b72b27 in FreeImage_LoadFromMemory () from /usr/lib/libfreeimage.so.3
#4  0x00007ffff61db9a4 in Ogre::FreeImageCodec::decode(Ogre::SharedPtr<Ogre::DataStream>&) const () from /usr/lib/libOgreMain.so.1.7.1
#5  0x00007ffff5fa3836 in Ogre::Image::load(Ogre::SharedPtr<Ogre::DataStream>&, std::string const&) () from /usr/lib/libOgreMain.so.1.7.1
#6  0x00007ffff5fa402b in Ogre::Image::load(std::string const&, std::string const&) () from /usr/lib/libOgreMain.so.1.7.1
#7  0x00007ffff55a77be in Ogitors::CTerrainGroupEditor::setBrushName (this=0x7fffe1922f88, brush=...)
    at /home/user/cadtoplevel/ogitor/v0-4/Ogitor/src/TerrainGroupEditorEditing.cpp:165


It's quite possible this is Ogitor's fault, but I thought I'd check and see if anyone else has confirmed this combination not only compiles but actually works? (bty, freeimage is apparently a hard requirement now so it's being optional as a USE flag might not make sense anymore.)
Comment 17 Shannon 2010-10-16 14:41:16 UTC
I had to change the line:
   use cg && [ -d /opt/nvidia-cg-toolkit ] && ogre_dynamic_config+="-DCg_HOME=/opt/nvidia-cg-toolkit"

to: 
   use cg && [ -d /opt/nvidia-cg-toolkit ] && mycmakeargs+=" -DCg_HOME=/opt/nvidia-cg-toolkit"

for it to find the toolkit.

I don't know ebuild or cmake well but found a line that had didn't have the space between options and noticed that most other lines had a space before the quote and -D...
After trying that it still didn't work so, again taking from other lines in the ebuild, changed it to mycmakeargs. And it worked.

I don't know if this is the right way but it worked for me. 

Thanks for all of the work! I had compiled by hand before I found this. I like using portage better.
Comment 18 Myckel Habets 2011-02-28 06:01:50 UTC
I installed ogre-0.7.2 by renaming the latest ogre-0.7.1 ebuild. That worked, however USE="examples" doesn't install examples.
Comment 19 Myckel Habets 2011-04-02 08:22:23 UTC
Created attachment 268187 [details]
Ogre-1.7.2 ebuild

Last week I've worked on an updated ebuild (removed some issues). This one has now examples enabled (which installs the sample browser), useful for testing if it works properly (which in my case doesn't).

People who are interested in a new version in tree should test this version and see if all examples in the sample browser work.
One of the issues that I have is reported here, by myself but no reply/help from upstream:

http://www.ogre3d.org/forums/viewtopic.php?f=2&t=63921

I've tested some games against this ebuild, but they fail because of this same issue.

Please test and see if the samples work in your case, or not. Also post your emerge --info and maybe your video setup (card + drivers). I'm curious if this issue is on my system only, or more Gentoo general.
Comment 20 Erik 2011-05-30 11:06:09 UTC
If you just bump it to 1.7.3 and remove the cg magic, it just works, at least by my experience, but ymmv.
Comment 21 Myckel Habets 2012-02-18 20:50:55 UTC
Created attachment 302443 [details]
Ogre version 1.7.4 ebuild

Here is an updated ebuild for ogre-1.7.4. It should work fine.
Comment 22 Myckel Habets 2012-02-18 20:52:41 UTC
Created attachment 302445 [details]
Ogre version 1.8.0 RC1 ebuild

Ebuild for RC1 of the 1.8.0 branch of ogre. Should work fine, but remember, this is an RC.
Comment 23 Myckel Habets 2012-02-18 20:55:28 UTC
Created attachment 302447 [details]
Patch for gcc46

The two ebuilds that I just uploaded apply this patch (from gamerlay, only renamed).
Comment 24 SpanKY gentoo-dev 2012-03-03 04:53:29 UTC
*** Bug 406473 has been marked as a duplicate of this bug. ***
Comment 25 SpanKY gentoo-dev 2012-03-03 20:59:15 UTC
i fixed a bunch of issues in the cmake conversion.  unfortunately, doing so shows that ogre doesn't build when threading w/boost is enabled.  the ebuilds posted here end up always building with threading disabled (due to misconstruction of the -DOGRE_CONFIG_THREAD_PROVIDER flag) so i imagine that's why no one noticed.

http://www.ogre3d.org/mantis/view.php?id=425

http://sources.gentoo.org/dev-games/ogre/ogre-1.7.4.ebuild?rev=1.1
http://sources.gentoo.org/dev-games/ogre/metadata.xml?r1=1.6&r2=1.7
http://sources.gentoo.org/dev-games/ogre/files/ogre-1.7.4-threading.patch?rev=1.1
http://sources.gentoo.org/dev-games/ogre/files/ogre-1.7.4-gcc46.patch?rev=1.1