X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:cc:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=kmhK4O8lhXzbiExV tm5WwSuafxNWil2jc7bL5cBwPpPmTwS28y9bB6YIYgZ68a57ZXp24w6umyuybVQD +yJWui1VAIG/949pteR2hWTrmFqx1Xyy6yyjI7e0GBCVCsdYfeMiRr0svyXh75J4 mtnYBzTPISCd3YV/FQUczlofDKA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:cc:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=k3rHcOBvkw5w/OwKzeSSVk 9qGkE=; b=ZRAZBeG59CjZzeqUtA78owzZ6pO/k5jesjET1+VElsnTDLilETcets J9drqJ8l8pS+fnBbOuSCkySQMURD2+26uu/BQRvXGvCEjUGYL56Pfpv08Rl+Re3r Tw4n2JHMTBHG9EGKRpouW1w45eC06YYRDCY8F6/pcyzdxk3z+WYoM= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=Hx-languages-length:1819, w32api-runtime, cygwinannounce, H*r:9.0.019 X-HELO: rgout04.bt.lon5.cpcloud.co.uk X-OWM-Source-IP: 86.179.112.56 (GB) X-OWM-Env-Sender: jonturney AT btinternet DOT com X-VadeSecure-score: verdict=clean score=0/300, class=clean X-SNCR-VADESECURE: CLEAN Subject: Re: What is the purpose of libglut32? To: The Cygwin Mailing List References: From: Jon Turney Cc: codespunk+cygwin AT gmail DOT com Message-ID: Date: Thu, 27 Sep 2018 14:42:56 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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 AT 12' > undefined reference to `_imp____glutCreateWindowWithExit AT 8' > undefined reference to `_imp____glutCreateMenuWithExit AT 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