Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139476 - irrlicht game engine version bumped 1.0
Summary: irrlicht game engine version bumped 1.0
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://irrlicht.sourceforge.net/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-06 13:23 UTC by stephane barotin
Modified: 2006-09-16 04:31 UTC (History)
0 users

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


Attachments
ebuild (irrlicht-1.0.ebuild,1.94 KB, text/plain)
2006-07-06 13:25 UTC, stephane barotin
Details
patch for the ebuild to work to put in dev-games/irrlicht/files (patch.tar,30.00 KB, application/x-tar)
2006-07-06 13:27 UTC, stephane barotin
Details
irrlich ebuild and patch for ebuild (irrlicht.tar,10.00 KB, application/x-tar)
2006-07-06 15:31 UTC, stephane barotin
Details
working ebuild with tr astuce on it and patch for gcc4.1 and external lib (irrlicht.tar,10.00 KB, application/x-tar)
2006-07-06 15:43 UTC, stephane barotin
Details
the same with edos2unix on all source files and patch without ^M (irrlicht.tar,10.00 KB, application/x-tar)
2006-07-08 00:55 UTC, stephane barotin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stephane barotin 2006-07-06 13:23:28 UTC
Hi,
a new version of irrlicht 3D game engine was released the 1.0,
i make the job to integrated him (reusing the irrlich-0.14.0 ebuild)

i give you my work in attachement!...
Comment 1 stephane barotin 2006-07-06 13:25:19 UTC
Created attachment 91073 [details]
ebuild 

this is the ebuild for irrlicht 1.0
Comment 2 stephane barotin 2006-07-06 13:27:38 UTC
Created attachment 91074 [details]
patch for the ebuild to work to put in dev-games/irrlicht/files
Comment 3 stephane barotin 2006-07-06 14:23:43 UTC
sorry it doesn't seems to work !...
when i try an example :examples/01.HelloWorld 
gmake
g++ main.cpp -o example -I"/usr/include/irrlicht" -I"/usr/X11R6/include" -L"/usr/X11R6/lib" -L"/usr/lib" -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
/usr/X11R6/lib/libIrrlicht.a(CZipReader.o): dans la fonction 
Comment 4 stephane barotin 2006-07-06 14:23:43 UTC
sorry it doesn't seems to work !...
when i try an example :examples/01.HelloWorld 
gmake
g++ main.cpp -o example -I"/usr/include/irrlicht" -I"/usr/X11R6/include" -L"/usr/X11R6/lib" -L"/usr/lib" -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
/usr/X11R6/lib/libIrrlicht.a(CZipReader.o): dans la fonction « irr::io::CZipReader::openFile(int)»:
: référence indéfinie vers « inflateInit2_ »
/usr/X11R6/lib/libIrrlicht.a(CZipReader.o): dans la fonction « irr::io::CZipReader::openFile(int)»:
: référence indéfinie vers « inflate »
/usr/X11R6/lib/libIrrlicht.a(CZipReader.o): dans la fonction « irr::io::CZipReader::openFile(int)»:

maybe some links to lipng libjpeg and zlib !...
Comment 5 stephane barotin 2006-07-06 14:31:00 UTC
i need to add the lib to link with libjpeg libpng and libz : 
g++ main.cpp -o example -I"/usr/include/irrlicht" -I"/usr/X11R6/include" -L"/usr/X11R6/lib" 
-L"/usr/lib" -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11 -lpng -lz -ljpeg

an this work fine !...

so i have a little problem in the makefile, i need to add to link with -lpng -lz -ljpeg to make the static library !...
Comment 6 stephane barotin 2006-07-06 15:21:36 UTC
Ok i understand why sed from the irrlicht-0.14.ebuild doesn't work on irrlicht-1.0 Makefile, it's because Makefile is a dos file (each end of line with ^M).
i need to find  how to supress this ^M whitout using dos2unix (maybe some person doesn't emerge dos2unix )!..

i found : cat Makefile | awk '{print}' >Makefile.new
	mv Makefile.new Makefile
Comment 7 stephane barotin 2006-07-06 15:31:06 UTC
Created attachment 91080 [details]
irrlich ebuild and patch for ebuild

In this ebuild, we need to find something to transform Makefile in dos format to unix format without using dos2unix, before applying sed transformation on the Makefile (if not a ^M is on the midlle of the line and failed the make)
Comment 8 stephane barotin 2006-07-06 15:32:51 UTC
sorry this doesnt work !...

(In reply to comment #5)
> Ok i understand why sed from the irrlicht-0.14.ebuild doesn't work on
> irrlicht-1.0 Makefile, it's because Makefile is a dos file (each end of line
> with ^M).
> i need to find  how to supress this ^M whitout using dos2unix (maybe some
> person doesn't emerge dos2unix )!..
> 
> i found : cat Makefile | awk '{print}' >Makefile.new
>         mv Makefile.new Makefile
> 

Comment 9 stephane barotin 2006-07-06 15:41:05 UTC
ok this is the good one !..

tr -d "\015\023" <Makefile >Makefile.new 
mv Makefile.new Makefile

just need to be tested and validate before gentoo introduction !...
Comment 10 stephane barotin 2006-07-06 15:43:54 UTC
Created attachment 91081 [details]
working ebuild with tr astuce on it and patch for gcc4.1 and external lib

this is working ebuild with the "tr astuce" on it 
and patch for gcc4.1 support 
and external lib for zlib, jpeg, and png

the example 01.helloword works :
gmake
g++ main.cpp -o example -I"/usr/include/irrlicht" -I"/usr/X11R6/include" -L"/usr/X11R6/lib" -L"/usr/lib" -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
Comment 11 Mr. Bones. (RETIRED) gentoo-dev 2006-07-06 21:40:01 UTC
use edos2unix for converting files from dos-style to unix.  It's in eutils.eclass
Comment 12 stephane barotin 2006-07-08 00:50:11 UTC
Portage is so amazing !...
maybe we need to apply this edos2unix to all files to avoid header with ^M on it !...

(In reply to comment #10)
> use edos2unix for converting files from dos-style to unix.  It's in
> eutils.eclass
> 
Comment 13 stephane barotin 2006-07-08 00:51:36 UTC
Comment on attachment 91081 [details]
working ebuild with tr astuce on it and patch for gcc4.1 and external lib

obsolete, a new one with edos2unix on all the source file
Comment 14 stephane barotin 2006-07-08 00:55:36 UTC
Created attachment 91193 [details]
the same with edos2unix on all source files and patch without ^M

Portage is so amazing !...
thanks for the edos2unix solution !...
Comment 15 Tupone Alfredo gentoo-dev 2006-09-15 15:47:35 UTC
Please don't post tar, just plain text files
Comment 16 Tupone Alfredo gentoo-dev 2006-09-16 04:31:35 UTC
Version 1.1 is now in portage. Thanks for report.