public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Jon Turney <jon.turney@dronecode.org.uk>
To: The Cygwin Mailing List <cygwin@cygwin.com>
Cc: codespunk+cygwin@gmail.com
Subject: Re: What is the purpose of libglut32?
Date: Thu, 27 Sep 2018 13:43:00 -0000	[thread overview]
Message-ID: <b6c3b5b5-0bb6-1437-983b-3da0f84d2a00@dronecode.org.uk> (raw)
In-Reply-To: <dcc6471d-f995-52b8-2770-1f523ae34ae6@gmail.com>

On 27/09/2018 13:48, Matt D. wrote:
> Does anyone know what libglut32 is used for? It comes as part of 
> "w32api-runtime" and "mingw64-i686-runtime" and is installed into:
> 
> usr/lib/w32api/libglut32.a
> 
> and
> 
> usr/i686-w64-mingw32/sys-root/mingw/lib/libglut32.a
> 
> I haven't been able to find a use for this as attempting to link with it 
> produces the following errors:
> 
> undefined reference to `_imp____glutInitWithExit@12'
> undefined reference to `_imp____glutCreateWindowWithExit@8'
> undefined reference to `_imp____glutCreateMenuWithExit@8'
> 
> It is possible to link with it if -DGLUT_DISABLE_ATEXIT_HACK is used to 
> skip these declarations but then it depends upon glut32.dll which isn't 
> provided by any package. How can libglut32 be used for anything if it is 
> missing its binary dependency? Is this library unused? Is the glut32.dll 
> dependency an error?

Fascinating.

So: the corresponding glut32.dll used to be provided by the 'opengl' 
package [1],[2]

[1] https://sourceware.org/ml/cygwin-announce/2012-06/msg00003.html
[2] https://sourceware.org/ml/cygwin-announce/2008-12/msg00005.html

I have no idea for what historical reason this is split up, with the 
import lib in w32api, but I guess we don't need that there anymore.

If you need glut for a non-cygwin application, I'd suggest using the 
cross freeglut packages mingw64-i686-freeglut and mingw64-x86_64-freeglut.

If you need glut for a cygwin application which uses GLX, use the 
libglut-devel.

If you need glut for a cygwin application which uses WGL, you'll have to 
build you own (although a package for this would be great)

This situation is briefly touched upon in [3], although I see that needs 
updating a bit.

[3] https://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-opengl-link-problems


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

      reply	other threads:[~2018-09-27 13:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-27 12:50 Matt D.
2018-09-27 13:43 ` Jon Turney [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b6c3b5b5-0bb6-1437-983b-3da0f84d2a00@dronecode.org.uk \
    --to=jon.turney@dronecode.org.uk \
    --cc=codespunk+cygwin@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).