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: 567
Joined: Sun Apr 20, 2014 9:45 am

bug in libgl port

Post by bogglez » Mon Dec 28, 2015 11:02 am

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: 567
Joined: Sun Apr 20, 2014 9:45 am

Re: bug in libgl port

Post by bogglez » Mon Dec 28, 2015 11:13 am

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: 567
Joined: Sun Apr 20, 2014 9:45 am

Re: bug in libgl port

Post by bogglez » Mon Dec 28, 2015 12:00 pm

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 20 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: 5250
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Contact:

Re: bug in libgl port

Post by BlueCrab » Mon Dec 28, 2015 12:36 pm

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