First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 139476
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Games <games@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: stephane barotin <stephane.barotin@gmail.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
irrlicht-1.0.ebuild ebuild text/plain stephane barotin 2006-07-06 13:25 0000 1.94 KB Details
patch.tar patch for the ebuild to work to put in dev-games/irrlicht/files application/x-tar stephane barotin 2006-07-06 13:27 0000 30.00 KB Details
irrlicht.tar irrlich ebuild and patch for ebuild application/x-tar stephane barotin 2006-07-06 15:31 0000 10.00 KB Details
irrlicht.tar working ebuild with tr astuce on it and patch for gcc4.1 and external lib application/x-tar stephane barotin 2006-07-06 15:43 0000 10.00 KB Details
irrlicht.tar the same with edos2unix on all source files and patch without ^M application/x-tar stephane barotin 2006-07-08 00:55 0000 10.00 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 139476 depends on: Show dependency tree
Bug 139476 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-07-06 13:23 0000
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 From stephane barotin 2006-07-06 13:25:19 0000 -------
Created an attachment (id=91073) [edit]
ebuild 

this is the ebuild for irrlicht 1.0

------- Comment #2 From stephane barotin 2006-07-06 13:27:38 0000 -------
Created an attachment (id=91074) [edit]
patch for the ebuild to work to put in dev-games/irrlicht/files

------- Comment #3 From stephane barotin 2006-07-06 14:23:43 0000 -------
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 From stephane barotin 2006-07-06 14:23:43 0000 -------
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 From stephane barotin 2006-07-06 14:31:00 0000 -------
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 From stephane barotin 2006-07-06 15:21:36 0000 -------
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 From stephane barotin 2006-07-06 15:31:06 0000 -------
Created an attachment (id=91080) [edit]
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 From stephane barotin 2006-07-06 15:32:51 0000 -------
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 From stephane barotin 2006-07-06 15:41:05 0000 -------
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 From stephane barotin 2006-07-06 15:43:54 0000 -------
Created an attachment (id=91081) [edit]
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 From Mr. Bones. 2006-07-06 21:40:01 0000 -------
use edos2unix for converting files from dos-style to unix.  It's in
eutils.eclass

------- Comment #12 From stephane barotin 2006-07-08 00:50:11 0000 -------
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 From stephane barotin 2006-07-08 00:51:36 0000 -------
(From update of attachment 91081 [edit])
obsolete, a new one with edos2unix on all the source file 

------- Comment #14 From stephane barotin 2006-07-08 00:55:36 0000 -------
Created an attachment (id=91193) [edit]
the same with edos2unix on all source files and patch without ^M

Portage is so amazing !...
thanks for the edos2unix solution !...

------- Comment #15 From Tupone Alfredo 2006-09-15 15:47:35 0000 -------
Please don't post tar, just plain text files

------- Comment #16 From Tupone Alfredo 2006-09-16 04:31:35 0000 -------
Version 1.1 is now in portage. Thanks for report.

First Last Prev Next    No search results available      Search page      Enter new bug