Mail Archives: cygwin/1998/09/01/11:30:51
--Message-Boundary-2647
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body
Hi
I am trying to get Mesa and GLUT up and running on mingw32 environment.
I succeed compiling it (and linking)
but the major problem glut steel net working.
It compilrt OK but need attention:
in glut.h in win32 ifdef case you should have something like this:
-----------------------------------------------------------------------------------------------
#if defined(__CYGWIN32__) || defined(__MINGW32__)
# define GLUTCALLBACK
# define GLUTAPI extern
#else
# define GLUTCALLBACK __cdecl
# if defined(BUILD_GLUT32)
# define GLUTAPI __declspec(dllexport)
# elif defined(_DLL)
# define GLUTAPI __declspec(dllimport)
# else
# define GLUTAPI extern
# endif
# pragma warning (disable:4244) /* Disable bogus conversion warnings.
*/
# pragma warning (disable:4305) /* VC++ 5.0 version of above warning. */
#endif
this because gnuwin32 behave as unix for declaring extern function.
Now you should remove call to joystick stuff in glut_input.c and glut_joy.c
singe gnuwin32 does not have the header files for this.
similarly in glut_console.c there is a undefine constant ???FULLSCREEN
i ended up doing as for joystick #ifdefining code.
the makefile are quike out of date you should use similar make as cygnus
one but includeing all c file enumerated in the last part of
WIN32/MESAGLUT.DSP
so then OK you get it compiling you generate a libglut.a
then in demo when you compole every thing goes smooth (execp if in GL
sources you let CopyMemory as win32 function, it should be defined as
memcpy).
Now running it. it does not blow up but as for mesa-2.6 it failed and cant get
pixel with necessary capabilities message.
on the other hand osmesa demo just work fine. thus gl library are OK .
OK I took a look on that and invistigated the problem (although I didnot
solved it I found a problem)
take a look at thist test.c which does the initialisation stuff glut is
doing
(all GLUT data structure handling is removed I only keep call to relevant
functions).
THEN i found that ChoosePixelFormat failed sayin that module can't be
loaded (GetLastError) Thus I assumed I got a problem may be my set up
may
be a more subtle thing
If any one can have a look at this test program to see what happen ??? I
tried it on visual C (on the same machine and it failed, with the same
diagnostic)
Please HELP.
thank you.
Stef.
//////////////////////////////////////////////////
//
// Stephane Cateland <cateland AT adersa DOT asso DOT fr>
//
// Adersa 10 rue de la croix Martre
// 91873 Palaiseau cedex FRANCE
//
// Phone [switchboard] (33) 0 160 135 353
// Fax (33) 0 169 200 563
//
//////////////////////////////////////////////////
--Message-Boundary-2647
Content-type: text/plain; charset=US-ASCII
Content-disposition: inline
Content-description: Attachment information.
The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any another MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.
---- File information -----------
File: test.c
Date: 1 Sep 1998, 9:42
Size: 9989 bytes.
Type: Program-source
--Message-Boundary-2647
Content-type: Application/Octet-stream; name="test.c"; type=Program-source
Content-disposition: attachment; filename="test.c"
Content-transfer-encoding: BASE64
LyogU3RlZiBURVNUIGZvciBDaG9vc2VQaXhlbEZvcm1hdCBQQg0KICovDQovKiBmcm9tIGds
aW5mby5jIGluIGRlbW9zICovDQojaW5jbHVkZSA8c3RkaW8uaD4NCiNpbmNsdWRlIDxzdGRs
aWIuaD4NCiNpbmNsdWRlIDxzdGRpby5oPg0KI2luY2x1ZGUgPHN0cmluZy5oPg0KI2luY2x1
ZGUgPGFzc2VydC5oPg0KDQojaW5jbHVkZSAid2luZG93cy5oIg0KDQp0eXBlZGVmIEhXTkQg
V2luZG93Ow0KDQovKiBmcm9tIGdsdXRpbml0ICovDQpjaGFyICpfX2dsdXRQcm9ncmFtTmFt
ZSA9IE5VTEw7DQppbnQgX19nbHV0QXJnYyA9IDA7DQpjaGFyICoqX19nbHV0QXJndiA9IE5V
TEw7DQpjaGFyICpfX2dsdXRHZW9tZXRyeSA9IE5VTEw7DQovKiANCiAqIERpc3BsYXkgKl9f
Z2x1dERpc3BsYXkgPSBOVUxMOw0KICovDQppbnQgX19nbHV0U2NyZWVuOw0KV2luZG93IF9f
Z2x1dFJvb3Q7DQppbnQgX19nbHV0U2NyZWVuSGVpZ2h0Ow0KaW50IF9fZ2x1dFNjcmVlbldp
ZHRoOw0KdW5zaWduZWQgaW50IF9fZ2x1dERpc3Bs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iAgICAvKg0KICAgICAqIGdsdXRDcmVh
dGVXaW5kb3coYXJndlswXSk7DQogICAgICovDQogICAgLyogICB3aW5kb3cgPSBfX2dsdXRD
cmVhdGVXaW5kb3coTlVMTCg9PXBhcmVudCksIA0KICAgICAqICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgIF9fZ2x1dFNpemVIaW50cy54LCBfX2dsdXRTaXplSGludHMueSwNCiAg
ICAgKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfX2dsdXRJbml0V2lkdGgsIF9f
Z2x1dEluaXRIZWlnaHQsDQogICAgICovDQogICAgaWYgKCFHZXRDbGFzc0luZm8oR2V0TW9k
dWxlSGFuZGxlKE5VTEwpLCAiR0xVVCIsICZ3Y18xKSkgew0KICAgICAgICBmcHJpbnRmKHN0
ZGVyciwiIEdPVCBQUk9CTEVNIGluIGdsdXRJbml0IHNob3VsZG5vdCBmYWlsZWRcbiIpOw0K
ICAgIH0NCiAgICBlbHNlIGZwcmludGYoc3RkZXJyLCJDcmVhdGVXaW46IEdvdCBHTFVUIENs
YXNzSW5mbyBPS1xuIik7DQogICAgLyogZ2V0VW51c2VkV2luZG93U2xvdCgpOyANCiAgICAg
KiBTS0lQUEVEIA0KICAgICAqLw0KICAgIC8qIGluaXQgc2tpcHBlZCAqLw0KICAgIC8qIF9f
Z2x1dEFkanVzdENvb3JkcyhwYXJlbnQgPyBwYXJlbnQtPndpbiA6IE5VTEwsDQogICAgICog
ICAgICAgICAgICAgICAgICAgICAmeCwgJnksICZ3aWR0aCwgJmhlaWdodCk7IA0KICAgICAq
ICBTa2lwcGVkIA0KICAgICAqLw0KICAgIA0KICAgIC8qIEEgc3RhbmRhcmQgdG9wbGV2ZWwg
d2luZG93IHdpdGggYm9yZGVycyBhbmQgc3VjaC4gKi8NCiAgICBzdHlsZSA9IFdTX09WRVJM
QVBQRURXSU5ET1c7DQogICAgZnByaW50ZihzdGRlcnIsDQogICAgICAgICAgICAiY2FsbCBD
cmVhdGVXaW5kb3coXCJHTFVUXCIsXCJHTFVUXCIsICV4LCAlZCwlZCwgJWQsJWQsJXggJWMu
LlxuIiwNCiAgICAgICAgICBXU19DTElQU0lCTElOR1MgfCBXU19DTElQQ0hJTERSRU4gfCBz
dHlsZSwNCiAgICAgICAgICBfX2dsdXRJbml0WCwgX19nbHV0SW5pdFksDQogICAgICAgICAg
X19nbHV0SW5pdFdpZHRoLCBfX2dsdXRJbml0SGVpZ2h0LA0KICAgICAgICAgIF9fZ2x1dFJv
b3QsDQogICAgICAgICAgICdSJyk7DQogICAgd2luX3dpbjMyID0gQ3JlYXRlV2luZG93KCJH
TFVUIiwgIkdMVVQiLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICBXU19DTElQU0lC
TElOR1MgfCBXU19DTElQQ0hJTERSRU4gfCBzdHlsZSwNCiAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgX19nbHV0SW5pdFgsIF9fZ2x1dEluaXRZLA0KICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICBfX2dsdXRJbml0V2lkdGgsIF9fZ2x1dEluaXRIZWlnaHQsDQogICAgICAg
ICAgICAgICAgICAgICAgICAgICAgIF9fZ2x1dFJvb3QsDQogICAgICAgICAgICAgICAgICAg
ICAgICAgICAgIE5VTEwsIEdldE1vZHVsZUhhbmRsZShOVUxMKSwgMCk7DQogICAgZnByaW50
ZihzdGRlcnIsIiBDUkVBVEVEIFdJTkRPVyAleCBcbiIsIHdpbl93aW4zMik7DQogICAgd2lu
X2hkYyA9IEdldERDKHdpbl93aW4zMik7DQogICAgZnByaW50ZihzdGRlcnIsIiBDUkVBVEVE
IEhEQyAleCBcbiIsIHdpbl9oZGMpOw0KICAgIA0KICAgIC8qIE11c3Qgc2V0IHRoZSBYSERD
IGZvciBmYWtlIGdsWENob29zZVZpc3VhbCAmIGZha2UNCiAgICAgICBnbFhDcmVhdGVDb250
ZXh0ICYgZmFrZSBYQWxsb2NDb2xvckNlbGxzLiAqLw0KICAgIFhIREMgPSB3aW5faGRjOw0K
ICAgIFhIV05EID0gd2luX3dpbjMyOw0KDQogICAgaWYgKCFkdW1teUNob29zZVZpc3VhbCgx
LDApKQ0KICAgIHsNCiAgICAgICAgZnByaW50ZihzdGRlcnIsIiBGYWlsZWQgVG8gQ2hvb3Nl
IFZpc3VhbCBSR0IgXG4iKTsNCiAgICB9DQogICAgaWYgKCFkdW1teUNob29zZVZpc3VhbCgx
LDEpKQ0KICAgIHsNCiAgICAgICAgZnByaW50ZihzdGRlcnIsIiBGYWlsZWQgVG8gQ2hvb3Nl
IFZpc3VhbCBSR0IgRGJsZVxuIik7DQogICAgfQ0KICAgIGlmICghZHVtbXlDaG9vc2VWaXN1
YWwoMCwwKSkNCiAgICB7DQogICAgICAgIGZwcmludGYoc3RkZXJyLCIgRmFpbGVkIFRvIENo
b29zZSBWaXN1YWwgQ01BUCBcbiIpOw0KICAgIH0NCiAgICBpZiAoIWR1bW15Q2hvb3NlVmlz
dWFsKDAsMSkpDQogICAgew0KICAgICAgICBmcHJpbnRmKHN0ZGVyciwiIEZhaWxlZCBUbyBD
aG9vc2UgVmlzdWFsIENNQVAgRGJsZVxuIik7DQogICAgfQ0KICAgIA0KDQp9DQoNCg0KDQo=
--Message-Boundary-2647--
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -