bug in libgl port

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Post Reply
User avatar
bogglez
Moderator
Moderator
Posts: 578
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Sun Apr 20, 2014 9:45 am
Has thanked: 0
Been thanked: 0

bug in libgl port

Post by bogglez »

The kos-port libgl was renamed to libGL due to the naming convention of OpenGL.
Due to this, kos-ports/include/GL points to
/opt/toolchains/dc/kos/../kos-ports/libGL/inst/include instead of
/opt/toolchains/dc/kos/../kos-ports/libgl/inst/include

This causes errors on case-sensitive filesystems.
Wiki & tutorials: http://dcemulation.org/?title=Development
Wiki feedback: viewtopic.php?f=29&t=103940
My libgl playground (not for production): https://bitbucket.org/bogglez/libgl15
My lxdream fork (with small fixes): https://bitbucket.org/bogglez/lxdream
User avatar
bogglez
Moderator
Moderator
Posts: 578
Joined: Sun Apr 20, 2014 9:45 am
Has thanked: 0
Been thanked: 0

Re: bug in libgl port

Post by bogglez »

Same problem with /opt/toolchains/kos-ports/lib/libGL.a -> /opt/toolchains/dc/kos/../kos-ports/libGL/inst/lib/libGL.a
The folder name needs to be libgl.
Wiki & tutorials: http://dcemulation.org/?title=Development
Wiki feedback: viewtopic.php?f=29&t=103940
My libgl playground (not for production): https://bitbucket.org/bogglez/libgl15
My lxdream fork (with small fixes): https://bitbucket.org/bogglez/lxdream
User avatar
bogglez
Moderator
Moderator
Posts: 578
Joined: Sun Apr 20, 2014 9:45 am
Has thanked: 0
Been thanked: 0

Re: bug in libgl port

Post by bogglez »

Here's patch that changes -lgl to -lGL.
Ph3nom probably didn't catch these errors because he's running Windows, which is case insensitive.
Attachments
patch_makefile_libgl_case.patch
(15.11 KiB) Downloaded 28 times
Wiki & tutorials: http://dcemulation.org/?title=Development
Wiki feedback: viewtopic.php?f=29&t=103940
My libgl playground (not for production): https://bitbucket.org/bogglez/libgl15
My lxdream fork (with small fixes): https://bitbucket.org/bogglez/lxdream
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5652
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has thanked: 9 times
Been thanked: 69 times
Contact:

Re: bug in libgl port

Post by BlueCrab »

Actually, the problem in kos-ports is my fault (and thus the issue with the Makefiles too). The ports tree itself is fixed now. :wink:

I'll deal with the examples in a little bit.
Post Reply