OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Building with Eclipse and MinGW. __int64 definition in GL


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Build system [build]
View previous topic :: View next topic  
Author Message
marc J
Newbie


Joined: 06 Feb 2014
Posts: 2

PostPosted: Thu Feb 06, 2014 11:06 am    Post subject:
Building with Eclipse and MinGW. __int64 definition in GL
Reply with quote

Hi all,

Trying to build OSG with Eclipse and MinGW on Win 7 reports a "_int64 does not name a type" error in GL header file at lines 147 & 148:

#if !defined(GL_EXT_timer_query) && !defined(OSG_GL3_AVAILABLE)

#ifdef _WIN32
typedef __int64 GLint64EXT;
typedef unsigned __int64 GLuint64EXT;[/u]
#else
typedef long long int GLint64EXT;
typedef unsigned long long int GLuint64EXT;
#endif
#endif

Adding a stdlib include at the top of GL.h seems to fix it.

Is that the proper way to do it ?

Thanks.

Cheers,
Marc
Back to top
View user's profile Send private message
marc J
Newbie


Joined: 06 Feb 2014
Posts: 2

PostPosted: Tue Mar 04, 2014 9:18 am    Post subject:
Building with Eclipse and MinGW. __int64 definition in GL
Reply with quote

Hi all,

Trying to build OSG with Eclipse and MinGW on Win 7 reports a "_int64 does not name a type" error in GL header file at lines 147 & 148:

#if !defined(GL_EXT_timer_query) && !defined(OSG_GL3_AVAILABLE)

#ifdef _WIN32
typedef __int64 GLint64EXT;
typedef unsigned __int64 GLuint64EXT;[/u]
#else
typedef long long int GLint64EXT;
typedef unsigned long long int GLuint64EXT;
#endif
#endif

Adding a stdlib include at the top of GL.h seems to fix it.

Is that the proper way to do it ?

Thanks.

Cheers,
Marc

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=58174#58174







------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12261

PostPosted: Thu Apr 17, 2014 4:22 pm    Post subject:
Building with Eclipse and MinGW. __int64 definition in GL
Reply with quote

Hi Marc,

MinGW isn't a commonly used platform for OSG users so I'm afraid it's
a case of those who want to use MinGW need help fix the problems as
they occur. If you have a fix then subscribe to and a send en email
with the whole modified file to osg-submissions mailing list so it can
be reviewed and consered to merge with svn/trunk and/or the OSG-3.2
branch.

As for the specific suggestion of adding include <stdlib.h>, I'd be
hesitate to add this for all platforms but a specific case for MinGW
would be OK, although would feel a bit hacky. If there is already a
MinGW code path in the header than adding it that section would be
most natural.

Robert.

On 6 February 2014 11:06, Marc Jacquin <> wrote:
Quote:
Hi all,

Trying to build OSG with Eclipse and MinGW on Win 7 reports a "_int64 does not name a type" error in GL header file at lines 147 & 148:

#if !defined(GL_EXT_timer_query) && !defined(OSG_GL3_AVAILABLE)

#ifdef _WIN32
typedef __int64 GLint64EXT;
typedef unsigned __int64 GLuint64EXT;[/u]
#else
typedef long long int GLint64EXT;
typedef unsigned long long int GLuint64EXT;
#endif
#endif

Adding a stdlib include at the top of GL.h seems to fix it.

Is that the proper way to do it ?

Thanks.

Cheers,
Marc

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=58174#58174








------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Alexpux
Guest





PostPosted: Thu Apr 17, 2014 4:32 pm    Post subject:
Building with Eclipse and MinGW. __int64 definition in GL
Reply with quote

17 апр. 2014 г., в 20:19, Robert Osfield <> написал(а):

Quote:
Hi Marc,

MinGW isn't a commonly used platform for OSG users so I'm afraid it's
a case of those who want to use MinGW need help fix the problems as
they occur. If you have a fix then subscribe to and a send en email
with the whole modified file to osg-submissions mailing list so it can
be reviewed and consered to merge with svn/trunk and/or the OSG-3.2
branch.

As for the specific suggestion of adding include <stdlib.h>, I'd be
hesitate to add this for all platforms but a specific case for MinGW
would be OK, although would feel a bit hacky. If there is already a
MinGW code path in the header than adding it that section would be
most natural.

Robert.

I think switching to mingw-w64 toolchain is a best variant here. Mingw-w64 don’t have any problems with it and has more completely runtime than Mingw.org toolchains. I’m developer of MSYS2 project and provide about 200 precompiled OpenSource packages for mingw-w64 both 32 and 64-bit. OSG also provided.
Also we hard working with mingw-w64 developers to fix any issues that we find.

Regards,
Alexey.

Quote:
On 6 February 2014 11:06, Marc Jacquin <> wrote:
Quote:
Hi all,

Trying to build OSG with Eclipse and MinGW on Win 7 reports a "_int64 does not name a type" error in GL header file at lines 147 & 148:

#if !defined(GL_EXT_timer_query) && !defined(OSG_GL3_AVAILABLE)

#ifdef _WIN32
typedef __int64 GLint64EXT;
typedef unsigned __int64 GLuint64EXT;[/u]
#else
typedef long long int GLint64EXT;
typedef unsigned long long int GLuint64EXT;
#endif
#endif

Adding a stdlib include at the top of GL.h seems to fix it.

Is that the proper way to do it ?

Thanks.

Cheers,
Marc

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=58174#58174










------------------
Post generated by Mail2Forum
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Build system [build] All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Building with MinGW on Windows 10 Skaldi Build system [build] 1 Sat May 18, 2019 3:47 pm View latest post
No new posts Building with Visual Studio 2019 icf80 Build system [build] 0 Fri May 10, 2019 11:20 am View latest post
No new posts Building with Visual Studio 2019 icf80 Build system [build] 2 Fri May 10, 2019 11:19 am View latest post
No new posts Question about method of building osgQt trexmsuee Build system [build] 0 Thu Apr 11, 2019 2:22 pm View latest post
No new posts Building on macOS 10.14 Ulrich Hertlein General 9 Sun Nov 11, 2018 12:45 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP