This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Help - Building View3D


Help - Building View3D

Postby gedimaster » Nov 15, 2007 @ 11:51am

Hi,

I'm using VC++ Express on XP Pro. I've installed the platform SDK, VC++ SP1 etc.

i've checked my link directories and they are correct. i've included edge.lib, edgerender.lib and plugingl.lib for the link options.

There seems to be some problem with PLUGINGL.LIB.

Can someone offer some help here? Thanks in advance

The errors i've encountered are

1>Linking...
1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>plugingl.lib(wrap_gl.obj) : error LNK2019: unresolved external symbol __imp__SetPixelFormat@12 referenced in function "private: bool __thiscall EdgeGLInterface::FindConfig(unsigned char,unsigned long,unsigned long,bool)" (?FindConfig@EdgeGLInterface@@AAE_NEKK_N@Z)
1>plugingl.lib(wrap_gl.obj) : error LNK2019: unresolved external symbol __imp__ChoosePixelFormat@8 referenced in function "private: bool __thiscall EdgeGLInterface::FindConfig(unsigned char,unsigned long,unsigned long,bool)" (?FindConfig@EdgeGLInterface@@AAE_NEKK_N@Z)
1>plugingl.lib(wrap_gl.obj) : error LNK2019: unresolved external symbol __imp__SwapBuffers@4 referenced in function "public: void __thiscall EdgeGLInterface::Flip(void)" (?Flip@EdgeGLInterface@@QAEXXZ)
gedimaster
pm Member
 
Posts: 5
Joined: Nov 15, 2007 @ 11:46am


Postby edge » Nov 16, 2007 @ 10:20am

Hi Gedimaster,

It seems that your OpenGL library doesn't implement all functions needed to link the executable. I've attached our own OpenGL library which should have all these functions implemented.

Could you try the attached library and see if it works better?
Attachments
OpenGL32.zip
(11.28 KiB) Downloaded 498 times
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby gedimaster » Nov 20, 2007 @ 3:46am

Hi, thanks. i replaced my opengl32.lib from my windows/system32 folder with the opengl32.lib that you provided. it still didn't work...

any other idea?
gedimaster
pm Member
 
Posts: 5
Joined: Nov 15, 2007 @ 11:46am


Postby edge » Nov 20, 2007 @ 2:32pm

EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby gedimaster » Nov 22, 2007 @ 3:08am

yes, i did link it with plugingl.lib. but the same error still exists. do you have a VC++ solution file that i can perhaps try with?
gedimaster
pm Member
 
Posts: 5
Joined: Nov 15, 2007 @ 11:46am


Postby edge » Nov 22, 2007 @ 8:49am

Hi Gedimaster,

You can open the View3D solution in the EDGELIB samples folder. This sample uses OpenGL by default. Are you able to recompile and link the executable?
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby gedimaster » Nov 22, 2007 @ 9:48am

Yes, i'm already using the view3D solution file. i've checked many times my lib folders and the lib files which are required (edgerender.lib and plugingl.lib) but still the same link errors...
also installed the opengl32.lib you sent me.

is plugingl supposed to reference a certain version of opengl32? the problems come from plugingl.lib...
gedimaster
pm Member
 
Posts: 5
Joined: Nov 15, 2007 @ 11:46am


Postby edge » Nov 22, 2007 @ 12:32pm

The only thing I can think of is that the library doesn't work with your version of Visual Studio. Can you tell me which version you're using? Perhaps switching between the pc-x86 and pc-x86_vc2005 libraries will help?
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby gedimaster » Nov 23, 2007 @ 6:40am

gedimaster
pm Member
 
Posts: 5
Joined: Nov 15, 2007 @ 11:46am


Postby edge » Nov 23, 2007 @ 10:00am

Attachments
edgelib_view3d.zip
Small EDGELIB SDK for Visual C++ 2005 express and with View3D sample
(682.95 KiB) Downloaded 498 times
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Return to EDGELIB


Sort


Forum Description

Powerful and affordable C++ middleware solution covering true multi-platform 2D, 3D and network features for Apple iPhone, Windows Mobile, Symbian S60, UIQ, Linux and Windows desktop.

Moderator:

edge

Forum permissions

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 post attachments in this forum

cron