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 

Linker error in osgparametric example


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
Skylark (Jean-Sébastien Guay)
Professional


Joined: 05 Jan 2009
Posts: 2249

PostPosted: Mon Dec 01, 2008 3:45 pm    Post subject:
Linker error in osgparametric example
Reply with quote

Hi Robert,

I'm getting a linker error in the osgparametric example since my SVN
update as of this morning:

45>osgparametric.obj : error LNK2001: unresolved external symbol
"public: virtual void __thiscall
osg::BufferObject::unbindBuffer(unsigned int)const "
(?unbindBuffer@BufferObject@osg@@UBEXI@Z)

Weird, I can see this in the BufferObject header:

virtual void unbindBuffer(unsigned int contextID) const
{
Extensions* extensions = getExtensions(contextID,true);
extensions->glBindBuffer(_target,0);
}

Perhaps I need to do a rebuild... I'll try that. In the mean time, any
other ideas?

J-S
--
______________________________________________________
Jean-Sebastien Guay
Only registered users can see emails on this board!
Get registred or enter the forums!

http://www.cm-labs.com/
http://whitestar02.webhop.org/


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Skylark (Jean-Sébastien Guay)
Professional


Joined: 05 Jan 2009
Posts: 2249

PostPosted: Mon Dec 01, 2008 3:57 pm    Post subject:
Linker error in osgparametric example
Reply with quote

Hi Robert,

Quote:
I'm getting a linker error in the osgparametric example since my SVN
update as of this morning:

I just tried to rebuild the osg library (as a start) and I'm getting this:

1>..\..\..\src\osg\BufferObject.cpp(736) : error C2065:
'GL_ARRAY_BUFFER' : undeclared identifier

Perhaps we need to add that define to the top of the BufferObject header
like GL_DYNAMIC_DRAW_ARB and others?

I have this in my glext.h (installed as part of the Platform SDK with
Visual C++ Cool:

#define GL_ARRAY_BUFFER 0x8892

J-S
--
______________________________________________________
Jean-Sebastien Guay
http://www.cm-labs.com/
http://whitestar02.webhop.org/


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Skylark (Jean-Sébastien Guay)
Professional


Joined: 05 Jan 2009
Posts: 2249

PostPosted: Mon Dec 01, 2008 5:46 pm    Post subject:
Linker error in osgparametric example
Reply with quote

Hi Robert,

Quote:
1>..\..\..\src\osg\BufferObject.cpp(736) : error C2065:
'GL_ARRAY_BUFFER' : undeclared identifier

Perhaps we need to add that define to the top of the BufferObject header
like GL_DYNAMIC_DRAW_ARB and others?

Looking closer at the BufferObject header, I see there's a
GL_ARRAY_BUFFER_ARB define, but not GL_ARRAY_BUFFER. Furthermore, the
values are the same between what BufferObject defines for
GL_ARRAY_BUFFER_ARB and what I have in my glext.h for GL_ARRAY_BUFFER.
Should we just use GL_ARRAY_BUFFER_ARB in the PixelDataBufferObject
constructor?

Using that, the osg lib compiles correctly, and the osgparametric
example builds correctly too. Is this an appropriate fix?

J-S
--
______________________________________________________
Jean-Sebastien Guay
http://www.cm-labs.com/
http://whitestar02.webhop.org/


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





PostPosted: Mon Dec 01, 2008 6:13 pm    Post subject:
Linker error in osgparametric example
Reply with quote

Hi J-S,

On Mon, Dec 1, 2008 at 5:46 PM, Jean-Sébastien Guay
<> wrote:
Quote:
Looking closer at the BufferObject header, I see there's a
GL_ARRAY_BUFFER_ARB define, but not GL_ARRAY_BUFFER. Furthermore, the values
are the same between what BufferObject defines for GL_ARRAY_BUFFER_ARB and
what I have in my glext.h for GL_ARRAY_BUFFER. Should we just use
GL_ARRAY_BUFFER_ARB in the PixelDataBufferObject constructor?

Using that, the osg lib compiles correctly, and the osgparametric example
builds correctly too. Is this an appropriate fix?

Using GL_ARRAY_BUFFER_ARB in the constructor would be a perfectly
reasonable fix.

Perhaps ideally we'd have the OSG create defines for the
GL_ARRAY_BUFFER rather than GL_ARRAY_BUFFER_ARB, but before we make a
decision on it your suggestion of the change is the appropriate one.

The server is currently unresponsive so I can't check in any fixes right now.

Robert.


------------------
Post generated by Mail2Forum
Back to top
Skylark (Jean-Sébastien Guay)
Professional


Joined: 05 Jan 2009
Posts: 2249

PostPosted: Mon Dec 01, 2008 7:54 pm    Post subject:
Linker error in osgparametric example
Reply with quote

Hi Robert,

Quote:
Using GL_ARRAY_BUFFER_ARB in the constructor would be a perfectly
reasonable fix.

OK, great.

Quote:
The server is currently unresponsive so I can't check in any fixes right now.

OK, I'll send the modified file anyways just to make sure it isn't lost.

J-S
--
______________________________________________________
Jean-Sebastien Guay
http://www.cm-labs.com/
http://whitestar02.webhop.org/


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General 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 Happy New Year to all OSG Users Chris Hanson General 0 Mon Jan 07, 2019 10:17 am View latest post
No new posts osg-users Digest, Vol 138, Issue 27 Zachary1234 General 0 Tue Jan 01, 2019 1:16 am View latest post
No new posts openGL error 'stack overflow' at afte... nebsar General 7 Sun Dec 23, 2018 6:05 am View latest post
No new posts use vs2013 to build osg3.6.3, some er... FreeSouth General 0 Sat Dec 08, 2018 3:26 pm View latest post
No new posts osg-users Digest, Vol 137, Issue 14 poweruserm@live.com.au General 0 Fri Nov 16, 2018 11:16 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