Hi There,

I have been trying to compile osgCompute and osgCuda and have been facing 
linking problems. I have provided links to all directories as far as I know. 
Please find the log below. Any help would be greatly appreciated.

1>   Creating library 
C:\Users\Tatric\Desktop\osgCompute-0.4\build\lib\Debug\osgCudad.lib and object 
C:\Users\Tatric\Desktop\osgCompute-0.4\build\lib\Debug\osgCudad.exp
1>Context.obj : error LNK2019: unresolved external symbol 
_cudagetdevicepropert...@8 referenced in function "public: virtual bool 
__thiscall osgCuda::Context::init(void)" (?i...@context@osgCuda@@UAE_NXZ)
1>Context.obj : error LNK2019: unresolved external symbol _cudagetdeviceco...@4 
referenced in function "public: virtual bool __thiscall 
osgCuda::Context::init(void)" (?i...@context@osgCuda@@UAE_NXZ)
1>Context.obj : error LNK2019: unresolved external symbol _cudaglsetgldev...@4 
referenced in function "bool __cdecl osgCuda::setupSharedDevice(int)" 
(?setupshareddev...@osgcuda@@ya...@z)
1>Texture1D.obj : error LNK2001: unresolved external symbol 
_cudageterrorstr...@4
1>Texture2D.obj : error LNK2001: unresolved external symbol 
_cudageterrorstr...@4
1>Texture3D.obj : error LNK2001: unresolved external symbol 
_cudageterrorstr...@4
1>Texture.obj : error LNK2001: unresolved external symbol _cudageterrorstr...@4
1>Context.obj : error LNK2019: unresolved external symbol _cudageterrorstr...@4 
referenced in function "public: void * __thiscall 
osgCuda::Context::mallocDeviceMemory(unsigned int)const " 
(?mallocdevicemem...@context@osgCuda@@qbep...@z)
1>Array.obj : error LNK2001: unresolved external symbol _cudageterrorstr...@4
1>Buffer.obj : error LNK2001: unresolved external symbol _cudageterrorstr...@4
1>Geometry.obj : error LNK2001: unresolved external symbol _cudageterrorstr...@4
1>Context.obj : error LNK2019: unresolved external symbol _cudamal...@8 
referenced in function "public: void * __thiscall 
osgCuda::Context::mallocDeviceMemory(unsigned int)const " 
(?mallocdevicemem...@context@osgCuda@@qbep...@z)
1>Context.obj : error LNK2019: unresolved external symbol _cudamalloch...@8 
referenced in function "public: void * __thiscall 
osgCuda::Context::mallocDeviceHostMemory(unsigned int)const " 
(?mallocdevicehostmem...@context@osgCuda@@qbep...@z)
1>Context.obj : error LNK2019: unresolved external symbol _cudamallocpi...@16 
referenced in function "public: void * __thiscall 
osgCuda::Context::mallocDevice2DMemory(unsigned int,unsigned int)const " 
(?mallocdevice2dmem...@context@osgCuda@@qbepa...@z)
1>Context.obj : error LNK2019: unresolved external symbol _cudamallo...@16 
referenced in function "public: void * __thiscall 
osgCuda::Context::mallocDevice3DMemory(unsigned int,unsigned int,unsigned 
int)const " (?mallocdevice3dmem...@context@osgCuda@@qbepax...@z)
1>Context.obj : error LNK2019: unresolved external symbol _cudamallocar...@16 
referenced in function "public: struct cudaArray * __thiscall 
osgCuda::Context::mallocDeviceArray(unsigned int,struct cudaChannelFormatDesc 
const &)const " 
(?mallocdevicear...@context@osgCuda@@QBEPAUcudaArray@@IABUcudaChannelFormatDesc@@@Z)
1>Context.obj : error LNK2019: unresolved external symbol _cudamalloc3dar...@20 
referenced in function "public: struct cudaArray * __thiscall 
osgCuda::Context::mallocDevice3DArray(unsigned int,unsigned int,unsigned 
int,struct cudaChannelFormatDesc const &)const " 
(?mallocdevice3dar...@context@osgCuda@@QBEPAUcudaArray@@IIIABUcudaChannelFormatDesc@@@Z)
1>TextureRectangle.obj : error LNK2001: unresolved external symbol 
_cudaglregisterbufferobj...@4
1>Context.obj : error LNK2019: unresolved external symbol 
_cudaglregisterbufferobj...@4 referenced in function "public: unsigned int 
__thiscall osgCuda::Context::mallocBufferObject(unsigned int)const " 
(?mallocbufferobj...@context@osgCuda@@qb...@z)
1>Texture1D.obj : error LNK2001: unresolved external symbol 
_cudaglregisterbufferobj...@4
1>Texture2D.obj : error LNK2001: unresolved external symbol 
_cudaglregisterbufferobj...@4
1>Texture3D.obj : error LNK2001: unresolved external symbol 
_cudaglregisterbufferobj...@4
1>Context.obj : error LNK2019: unresolved external symbol _cudafreeh...@4 
referenced in function "public: void __thiscall 
osgCuda::Context::freeMemory(void *)const " 
(?freemem...@context@osgCuda@@qbex...@z)
1>Context.obj : error LNK2019: unresolved external symbol _cudaf...@4 
referenced in function "public: void __thiscall 
osgCuda::Context::freeMemory(void *)const " 
(?freemem...@context@osgCuda@@qbex...@z)
1>Context.obj : error LNK2019: unresolved external symbol _cudafreear...@4 
referenced in function "public: void __thiscall 
osgCuda::Context::freeMemory(struct cudaArray *)const " 
(?freemem...@context@osgCuda@@QBEXPAUcudaArray@@@Z)
1>TextureRectangle.obj : error LNK2001: unresolved external symbol 
_cudaglunregisterbufferobj...@4
1>Context.obj : error LNK2019: unresolved external symbol 
_cudaglunregisterbufferobj...@4 referenced in function "public: void __thiscall 
osgCuda::Context::freeBufferObject(unsigned int)const " 
(?freebufferobj...@context@osgCuda@@qb...@z)
1>Texture1D.obj : error LNK2001: unresolved external symbol 
_cudaglunregisterbufferobj...@4
1>Texture2D.obj : error LNK2001: unresolved external symbol 
_cudaglunregisterbufferobj...@4
1>Texture3D.obj : error LNK2001: unresolved external symbol 
_cudaglunregisterbufferobj...@4
1>Array.obj : error LNK2019: unresolved external symbol _cudamem...@16 
referenced in function "protected: bool __thiscall 
osgCuda::Array::setupStream(unsigned int,class osgCuda::ArrayStream &)const " 
(?setupstr...@array@osgCuda@@ibe_niaavarraystr...@2@@Z)
1>Buffer.obj : error LNK2001: unresolved external symbol _cudamem...@16
1>Geometry.obj : error LNK2001: unresolved external symbol _cudamem...@16
1>Texture.obj : error LNK2001: unresolved external symbol _cudamem...@16
1>Array.obj : error LNK2019: unresolved external symbol _cudamemcp...@4 
referenced in function "protected: bool __thiscall 
osgCuda::Array::setupStream(unsigned int,class osgCuda::ArrayStream &)const " 
(?setupstr...@array@osgCuda@@ibe_niaavarraystr...@2@@Z)
1>Array.obj : error LNK2019: unresolved external symbol _cudamemcpytoar...@24 
referenced in function "protected: bool __thiscall 
osgCuda::Array::setupStream(unsigned int,class osgCuda::ArrayStream &)const " 
(?setupstr...@array@osgCuda@@ibe_niaavarraystr...@2@@Z)
1>Array.obj : error LNK2019: unresolved external symbol 
_cudamemcpy2dfromar...@32 referenced in function "protected: bool __thiscall 
osgCuda::Array::syncStream(unsigned int,class osgCuda::ArrayStream &)const " 
(?syncstr...@array@osgCuda@@ibe_niaavarraystr...@2@@Z)
1>Array.obj : error LNK2019: unresolved external symbol _cudamemcpyfromar...@24 
referenced in function "protected: bool __thiscall 
osgCuda::Array::syncStream(unsigned int,class osgCuda::ArrayStream &)const " 
(?syncstr...@array@osgCuda@@ibe_niaavarraystr...@2@@Z)
1>Array.obj : error LNK2019: unresolved external symbol _cudamemcpy2dtoar...@32 
referenced in function "protected: bool __thiscall 
osgCuda::Array::syncStream(unsigned int,class osgCuda::ArrayStream &)const " 
(?syncstr...@array@osgCuda@@ibe_niaavarraystr...@2@@Z)
1>Buffer.obj : error LNK2019: unresolved external symbol _cudamem...@12 
referenced in function "public: virtual bool __thiscall 
osgCuda::Buffer::setMemory(class osgCompute::Context const &,int,unsigned 
int,unsigned int,unsigned int)const " 
(?setmem...@buffer@osgCuda@@ube_nabvcont...@osgcompute@@h...@z)
1>Geometry.obj : error LNK2001: unresolved external symbol _cudamem...@12
1>Texture.obj : error LNK2001: unresolved external symbol _cudamem...@12
1>Geometry.obj : error LNK2019: unresolved external symbol 
_cudaglmapbufferobj...@8 referenced in function "protected: virtual void * 
__thiscall osgCuda::Geometry::mapStream(class osgCuda::GeometryStream 
&,unsigned int)const " 
(?mapstr...@geometry@osgCuda@@mbepaxaavgeometrystr...@2@i...@z)
1>Texture.obj : error LNK2001: unresolved external symbol 
_cudaglmapbufferobj...@8
1>Geometry.obj : error LNK2019: unresolved external symbol 
_cudaglunmapbufferobj...@4 referenced in function "protected: virtual void 
__thiscall osgCuda::Geometry::unmapStream(class osgCuda::GeometryStream &)const 
" (?unmapstr...@geometry@osgCuda@@mbexaavgeometrystr...@2@@Z)
1>Texture.obj : error LNK2001: unresolved external symbol 
_cudaglunmapbufferobj...@4
1>C:\Users\Tatric\Desktop\osgCompute-0.4\build\bin\Debug\..\osgCudad.dll : 
fatal error LNK1120: 24 unresolved externals

Thanks,
Arun Yoganandan

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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to