[Bug 528892] Review Request: mingw32-freeglut - Fedora MinGW alternative to the OpenGL Utility Toolkit (GLUT)
by Red Hat Bugzilla
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=528892
--- Comment #6 from Paulo Roma Cavalcanti <promac(a)gmail.com> 2009-10-15 05:23:46 EDT ---
(In reply to comment #5)
> (In reply to comment #3)
> > I recreated mingw32-freglut on F10(64 bits) and F11(32 bits).
> > On F10, the compilation goes just fine. On F11:
> >
> > [leo:~/cg/TutorsMin1.0] make
> > i686-pc-mingw32-gcc -o fog".exe" fog.c glm.o -lglut32 -lglu32 -lopengl32
> > /usr/lib/gcc/i686-pc-mingw32/4.4.0/../../../../i686-pc-mingw32/bin/ld: cannot
> > find -lglut32
> > collect2: ld returned 1 exit status
> > make: *** [fog".exe"] Error 1
> >
> > This is what I have on F10:
> >
> > [cascavel:/usr/i686-pc-mingw32/sys-root/mingw/lib] d *glut*
> > -rw-r--r-- 1 root root 86612 2008-12-10 18:55 libglut32.a
> > -rw-r--r-- 1 root root 86374 2008-12-10 18:55 libglut.a
> > -rwxr-xr-x 1 root root 90624 2009-10-14 06:15 libglut.dll.a
>
> When you say you "recreated" freeglut, what does that mean?
>
I mean I created the rpm:
http://orion.lcg.ufrj.br/RPMS/myrpms-f11/repoview/mingw32-freeglut.html
> The package under review contains the following library-related
> files:
>
> /usr/i686-pc-mingw32/sys-root/mingw/bin/libglut-0.dll
> /usr/i686-pc-mingw32/sys-root/mingw/lib/libglut.dll.a
>
> > On F11:
> >
> > [leo:/usr/i686-pc-mingw32/sys-root/mingw/lib] d *glut*
> > -rwxr-xr-x 1 root root 90624 2009-10-14 08:46 libglut.dll.a
>
> I'm assuming this file comes from my package?
yes:
[orion:~/RPMS11/lcgrpms] lstrpm mingw32-freeglut-2.6.0-0.1.rc1.fc11.noarch.rpm
/usr/i686-pc-mingw32/sys-root/mingw/bin/libglut-0.dll
/usr/i686-pc-mingw32/sys-root/mingw/include/GL/freeglut.h
/usr/i686-pc-mingw32/sys-root/mingw/include/GL/freeglut_ext.h
/usr/i686-pc-mingw32/sys-root/mingw/include/GL/freeglut_std.h
/usr/i686-pc-mingw32/sys-root/mingw/include/GL/glut.h
/usr/i686-pc-mingw32/sys-root/mingw/lib/libglut.dll.a
/usr/share/doc/mingw32-freeglut-2.6.0
/usr/share/doc/mingw32-freeglut-2.6.0/AUTHORS
/usr/share/doc/mingw32-freeglut-2.6.0/COPYING
/usr/share/doc/mingw32-freeglut-2.6.0/FrequentlyAskedQuestions
/usr/share/doc/mingw32-freeglut-2.6.0/NEWS
/usr/share/doc/mingw32-freeglut-2.6.0/README
/usr/share/doc/mingw32-freeglut-2.6.0/README.win32
/usr/share/doc/mingw32-freeglut-2.6.0/TODO
>
> With mingw32-freeglut installed you can compile programs
> like this:
>
> i686-pc-mingw32-gcc cube.c -o cube -lglut -lglu32 -lopengl32
>
> You don't need to copy files from one system to another.
>
What I said is that without
libglut32.a and libglut.a
on F11, which I do not have, my system does not find glut32.
I need to copy both libs from
mingw32-w32api-3.12-8.fc10.noarch
Why are those libs missing from F11?
--
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
14 years, 7 months
[Bug 528892] Review Request: mingw32-freeglut - Fedora MinGW alternative to the OpenGL Utility Toolkit (GLUT)
by Red Hat Bugzilla
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=528892
--- Comment #5 from Richard W.M. Jones <rjones(a)redhat.com> 2009-10-15 04:37:25 EDT ---
(In reply to comment #3)
> I recreated mingw32-freglut on F10(64 bits) and F11(32 bits).
> On F10, the compilation goes just fine. On F11:
>
> [leo:~/cg/TutorsMin1.0] make
> i686-pc-mingw32-gcc -o fog".exe" fog.c glm.o -lglut32 -lglu32 -lopengl32
> /usr/lib/gcc/i686-pc-mingw32/4.4.0/../../../../i686-pc-mingw32/bin/ld: cannot
> find -lglut32
> collect2: ld returned 1 exit status
> make: *** [fog".exe"] Error 1
>
> This is what I have on F10:
>
> [cascavel:/usr/i686-pc-mingw32/sys-root/mingw/lib] d *glut*
> -rw-r--r-- 1 root root 86612 2008-12-10 18:55 libglut32.a
> -rw-r--r-- 1 root root 86374 2008-12-10 18:55 libglut.a
> -rwxr-xr-x 1 root root 90624 2009-10-14 06:15 libglut.dll.a
When you say you "recreated" freeglut, what does that mean?
The package under review contains the following library-related
files:
/usr/i686-pc-mingw32/sys-root/mingw/bin/libglut-0.dll
/usr/i686-pc-mingw32/sys-root/mingw/lib/libglut.dll.a
> On F11:
>
> [leo:/usr/i686-pc-mingw32/sys-root/mingw/lib] d *glut*
> -rwxr-xr-x 1 root root 90624 2009-10-14 08:46 libglut.dll.a
I'm assuming this file comes from my package?
With mingw32-freeglut installed you can compile programs
like this:
i686-pc-mingw32-gcc cube.c -o cube -lglut -lglu32 -lopengl32
You don't need to copy files from one system to another.
Also I'm only testing this on Fedora 11 and above, because
Fedora 10 is almost at end of life.
--
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
14 years, 7 months
[Bug 528892] Review Request: mingw32-freeglut - Fedora MinGW alternative to the OpenGL Utility Toolkit (GLUT)
by Red Hat Bugzilla
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=528892
--- Comment #4 from Paulo Roma Cavalcanti <promac(a)gmail.com> 2009-10-14 17:08:22 EDT ---
Copying the missing libs from F10 to F11, make it work on F11:
libglut32.a
libglut.a
[leo:~/cg/TutorsMin1.0] make
i686-pc-mingw32-gcc -c glm.c
i686-pc-mingw32-gcc -o fog".exe" fog.c glm.o -lglut32 -lglu32 -lopengl32
i686-pc-mingw32-gcc -o lightmaterial".exe" lightmaterial.c glm.o -lglut32
-lglu32 -lopengl32
i686-pc-mingw32-gcc -o lightposition".exe" lightposition.c glm.o -lglut32
-lglu32 -lopengl32
i686-pc-mingw32-gcc -o projection".exe" projection.c glm.o -lglut32 -lglu32
-lopengl32
i686-pc-mingw32-gcc -o shapes".exe" shapes.c -lglut32 -lglu32 -lopengl32
i686-pc-mingw32-gcc -o texture".exe" texture.c glm.o -lglut32 -lglu32
-lopengl32
i686-pc-mingw32-gcc -o transformation".exe" transformation.c glm.o -lglut32
-lglu32 -lopengl32
Compilation completed.
These libs should have come from
mingw32-w32api-3.13-3.fc11.noarch
but they are not in the package.
--
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
14 years, 7 months
[Bug 528892] Review Request: mingw32-freeglut - Fedora MinGW alternative to the OpenGL Utility Toolkit (GLUT)
by Red Hat Bugzilla
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=528892
Paulo Roma Cavalcanti <promac(a)gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |promac(a)gmail.com
--- Comment #3 from Paulo Roma Cavalcanti <promac(a)gmail.com> 2009-10-14 16:55:06 EDT ---
Hi,
I used these examples to test:
http://orion.lcg.ufrj.br/temp/TutorsMin1.0/
The corresponding Makefile defines an OS. For instance,
make OS="linux" (compiles for linux)
make OS="win32" (compiles for windows)
make OS="cross" (cross-compile)
I recreated mingw32-freglut on F10(64 bits) and F11(32 bits).
On F10, the compilation goes just fine. On F11:
[leo:~/cg/TutorsMin1.0] make
i686-pc-mingw32-gcc -o fog".exe" fog.c glm.o -lglut32 -lglu32 -lopengl32
/usr/lib/gcc/i686-pc-mingw32/4.4.0/../../../../i686-pc-mingw32/bin/ld: cannot
find -lglut32
collect2: ld returned 1 exit status
make: *** [fog".exe"] Error 1
This is what I have on F10:
[cascavel:/usr/i686-pc-mingw32/sys-root/mingw/lib] d *glut*
-rw-r--r-- 1 root root 86612 2008-12-10 18:55 libglut32.a
-rw-r--r-- 1 root root 86374 2008-12-10 18:55 libglut.a
-rwxr-xr-x 1 root root 90624 2009-10-14 06:15 libglut.dll.a
On F11:
[leo:/usr/i686-pc-mingw32/sys-root/mingw/lib] d *glut*
-rwxr-xr-x 1 root root 90624 2009-10-14 08:46 libglut.dll.a
I have all mingw32 packages on both systems.
--
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
14 years, 7 months