PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Help - Building View3D

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)
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 (12 KB)
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?
Hi Gedimaster,

It's odd that it tries to link the SwapBuffers method instead of the wglSwapBuffers, like it should. Are you using the pc-desktop library of plugingl.lib?
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?
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?
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...
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?
i'm using visual c++ express according to the tutorial and i've also tried switch the x86 and x86-vc2005 libraries. no difference, still the same problem.

can u send me a zipped up folder of the sdk that works for you? maybe just the view3d project and the libs/incl

appreciate any help.
Hi GediMaster,

I've prepared a small version of the SDK with a working View3D sample. The executable has been compiled today with Visual Studio 2005 with no problems.

Can you tell me if using this version works better for you?
Attachments:
edgelib_view3d.zip (683 KB)