Compiling Irrlicht SVN with VC2005

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Shykino
Posts: 7
Joined: Tue Aug 01, 2006 6:29 pm

Compiling Irrlicht SVN with VC2005

Post by Shykino »

I downloaded Irrlicht from the SVN, installed DirectX 9 SDK(June) and the Platform SDK, setup the directories in VC and tried to compile Irrlicht and I still get errors
DEBUG BUILD wrote: 1>------ Build started: Project: Irrlicht, Configuration: Debug Win32 ------
1>Compiling...
1>COpenGLDriver.cpp
1>COpenGLNormalMapRenderer.cpp
1>COpenGLParallaxMapRenderer.cpp
1>COpenGLShaderMaterialRenderer.cpp
1>c:\library\irrlicht\source\irrlicht\copenglshadermaterialrenderer.cpp(167) : warning C4996: 'sprintf' was declared deprecated
1> c:\program files\microsoft visual studio 8\vc\include\stdio.h(345) : see declaration of 'sprintf'
1> Message: 'This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
1>c:\library\irrlicht\source\irrlicht\copenglshadermaterialrenderer.cpp(200) : warning C4996: 'sprintf' was declared deprecated
1> c:\program files\microsoft visual studio 8\vc\include\stdio.h(345) : see declaration of 'sprintf'
1> Message: 'This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
1>COpenGLSLMaterialRenderer.cpp
1>COpenGLTexture.cpp
1>CD3D8Driver.cpp
1>c:\library\irrlicht\source\irrlicht\cd3d8shadermaterialrenderer.h(13) : fatal error C1083: Cannot open include file: 'D3dx8core.h': No such file or directory
1>CD3D8NormalMapRenderer.cpp
1>c:\library\irrlicht\source\irrlicht\cd3d8shadermaterialrenderer.h(13) : fatal error C1083: Cannot open include file: 'D3dx8core.h': No such file or directory
1>CD3D8ParallaxMapRenderer.cpp
1>c:\library\irrlicht\source\irrlicht\cd3d8shadermaterialrenderer.h(13) : fatal error C1083: Cannot open include file: 'D3dx8core.h': No such file or directory
1>CD3D8ShaderMaterialRenderer.cpp
1>c:\library\irrlicht\source\irrlicht\cd3d8shadermaterialrenderer.h(13) : fatal error C1083: Cannot open include file: 'D3dx8core.h': No such file or directory
1>CD3D8Texture.cpp
1>c:\library\irrlicht\source\irrlicht\cd3d8texture.cpp(22) : fatal error C1083: Cannot open include file: 'd3dx8tex.h': No such file or directory
1>CD3D9Driver.cpp
1>c:\library\irrlicht\source\irrlicht\cd3d9driver.cpp(206) : warning C4996: 'sprintf' was declared deprecated
1> c:\program files\microsoft visual studio 8\vc\include\stdio.h(345) : see declaration of 'sprintf'
1> Message: 'This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
1>CD3D9HLSLMaterialRenderer.cpp
1>CD3D9NormalMapRenderer.cpp
1>CD3D9ParallaxMapRenderer.cpp
1>CD3D9ShaderMaterialRenderer.cpp
1>CD3D9Texture.cpp
1>CIrrDeviceWin32.cpp
1>c:\library\irrlicht\source\irrlicht\cirrdevicewin32.cpp(526) : warning C4996: 'sprintf' was declared deprecated
1> c:\program files\microsoft visual studio 8\vc\include\stdio.h(345) : see declaration of 'sprintf'
1> Message: 'This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
1>c:\library\irrlicht\source\irrlicht\cirrdevicewin32.cpp(531) : warning C4996: 'sprintf' was declared deprecated
1> c:\program files\microsoft visual studio 8\vc\include\stdio.h(345) : see declaration of 'sprintf'
1> Message: 'This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
1>c:\library\irrlicht\source\irrlicht\cirrdevicewin32.cpp(780) : warning C4996: 'sprintf' was declared deprecated
1> c:\program files\microsoft visual studio 8\vc\include\stdio.h(345) : see declaration of 'sprintf'
1> Message: 'This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
1>c:\library\irrlicht\source\irrlicht\cirrdevicewin32.cpp(785) : warning C4996: 'sprintf' was declared deprecated
1> c:\program files\microsoft visual studio 8\vc\include\stdio.h(345) : see declaration of 'sprintf'
1> Message: 'This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
1>COSOperator.cpp
1>c:\library\irrlicht\source\irrlicht\cosoperator.cpp(62) : warning C4996: 'strcpy' was declared deprecated
1> c:\program files\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy'
1> Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
1>Irrlicht.cpp
1>Generating Code...
1>Compiling...
1>os.cpp
1>c:\library\irrlicht\source\irrlicht\os.cpp(30) : warning C4996: 'sprintf' was declared deprecated
1> c:\program files\microsoft visual studio 8\vc\include\stdio.h(345) : see declaration of 'sprintf'
1> Message: 'This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
1>Generating Code...
1>Build log was saved at "file://c:\library\irrlicht\source\Debug\BuildLog.htm"
1>Irrlicht - 5 error(s), 9 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Cannot open D3dx8core.h
Cannot open D3dx8tex
And some warnings. Thanks for your help!
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Yes, dx8 is not part of the SDK anymore. Either use a different SDK or disable dx8 in IrrCompileConfig.h
jam
Posts: 409
Joined: Fri Nov 04, 2005 3:52 am

Post by jam »

DirectX 8 is not included with the DX 9 SDK anymore. You can either try and find a DX SDK that has the files or you can just setup irrCompileconfig.h to omit DX 8 support. If you have questions use the forum search feature to find more details about the problem and its solution.

As for the sprintf calls defining _CRT_SECURE_NO_DEPRECATE as it states seems to be a good answer or just ignore the warnings. I don't think it's going to be a fatal problem here. :D
system-independent, adj.:
Works equally poorly on all systems.
-- unknown
Shykino
Posts: 7
Joined: Tue Aug 01, 2006 6:29 pm

Post by Shykino »

Thanks guys, I disabled Dx8 in the compile config. Now I get a bunch of linking errors...
1> Creating library .\..\Release/Irrlicht.lib and object .\..\Release/Irrlicht.exp
1>COpenGLDriver.obj : error LNK2019: unresolved external symbol __imp__SwapBuffers@4 referenced in function "public: virtual bool __thiscall irr::video::COpenGLDriver::endScene(int,class irr::core::rect<int> *)" (?endScene@COpenGLDriver@video@irr@@UAE_NHPAV?$rect@H@core@3@@Z)
1>COpenGLDriver.obj : error LNK2019: unresolved external symbol __imp__ReleaseDC@8 referenced in function "public: virtual __thiscall irr::video::COpenGLDriver::~COpenGLDriver(void)" (??1COpenGLDriver@video@irr@@UAE@XZ)
1>CIrrDeviceWin32.obj : error LNK2001: unresolved external symbol __imp__ReleaseDC@8
1>COpenGLDriver.obj : error LNK2019: unresolved external symbol __imp__SetPixelFormat@12 referenced in function "public: bool __thiscall irr::video::COpenGLDriver::initDriver(class irr::core::dimension2d<int> const &,struct HWND__ *,bool,bool)" (?initDriver@COpenGLDriver@video@irr@@QAE_NABV?$dimension2d@H@core@3@PAUHWND__@@_N2@Z)
1>COpenGLDriver.obj : error LNK2019: unresolved external symbol __imp__ChoosePixelFormat@8 referenced in function "public: bool __thiscall irr::video::COpenGLDriver::initDriver(class irr::core::dimension2d<int> const &,struct HWND__ *,bool,bool)" (?initDriver@COpenGLDriver@video@irr@@QAE_NABV?$dimension2d@H@core@3@PAUHWND__@@_N2@Z)
1>COpenGLDriver.obj : error LNK2019: unresolved external symbol __imp__GetDC@4 referenced in function "public: bool __thiscall irr::video::COpenGLDriver::initDriver(class irr::core::dimension2d<int> const &,struct HWND__ *,bool,bool)" (?initDriver@COpenGLDriver@video@irr@@QAE_NABV?$dimension2d@H@core@3@PAUHWND__@@_N2@Z)
1>CIrrDeviceWin32.obj : error LNK2001: unresolved external symbol __imp__GetDC@4
1>CSceneManager.obj : error LNK2019: unresolved external symbol "public: __thiscall irr::scene::CSkyDomeSceneNode::CSkyDomeSceneNode(class irr::video::ITexture *,unsigned int,unsigned int,double,double,class irr::scene::ISceneNode *,class irr::scene::ISceneManager *,int)" (??0CSkyDomeSceneNode@scene@irr@@QAE@PAVITexture@video@2@IINNPAVISceneNode@12@PAVISceneManager@12@H@Z) referenced in function "public: virtual class irr::scene::ISceneNode * __thiscall irr::scene::CSceneManager::addSkyDomeSceneNode(class irr::video::ITexture *,unsigned int,unsigned int,double,double,class irr::scene::ISceneNode *,int)" (?addSkyDomeSceneNode@CSceneManager@scene@irr@@UAEPAVISceneNode@23@PAVITexture@video@3@IINNPAV423@H@Z)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__DestroyWindow@4 referenced in function "public: virtual void __thiscall irr::CIrrDeviceWin32::closeDevice(void)" (?closeDevice@CIrrDeviceWin32@irr@@UAEXXZ)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__GetActiveWindow@0 referenced in function "public: virtual bool __thiscall irr::CIrrDeviceWin32::isWindowActive(void)" (?isWindowActive@CIrrDeviceWin32@irr@@UAE_NXZ)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__ChangeDisplaySettingsA@8 referenced in function "private: bool __thiscall irr::CIrrDeviceWin32::switchToFullScreen(int,int,int)" (?switchToFullScreen@CIrrDeviceWin32@irr@@AAE_NHHH@Z)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__SetWindowPos@28 referenced in function "public: virtual void __thiscall irr::CIrrDeviceWin32::setResizeAble(bool)" (?setResizeAble@CIrrDeviceWin32@irr@@UAEX_N@Z)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__GetSystemMetrics@4 referenced in function "public: virtual void __thiscall irr::CIrrDeviceWin32::setResizeAble(bool)" (?setResizeAble@CIrrDeviceWin32@irr@@UAEX_N@Z)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__AdjustWindowRect@12 referenced in function "public: virtual void __thiscall irr::CIrrDeviceWin32::setResizeAble(bool)" (?setResizeAble@CIrrDeviceWin32@irr@@UAEX_N@Z)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__SetWindowLongA@12 referenced in function "public: virtual void __thiscall irr::CIrrDeviceWin32::setResizeAble(bool)" (?setResizeAble@CIrrDeviceWin32@irr@@UAEX_N@Z)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__SetCursorPos@8 referenced in function "public: virtual void __thiscall irr::CIrrDeviceWin32::CCursorControl::setPosition(int,int)" (?setPosition@CCursorControl@CIrrDeviceWin32@irr@@UAEXHH@Z)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__GetWindowRect@8 referenced in function "public: virtual void __thiscall irr::CIrrDeviceWin32::CCursorControl::setPosition(int,int)" (?setPosition@CCursorControl@CIrrDeviceWin32@irr@@UAEXHH@Z)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__GetCursorPos@4 referenced in function "private: void __thiscall irr::CIrrDeviceWin32::CCursorControl::updateInternalCursorPosition(void)" (?updateInternalCursorPosition@CCursorControl@CIrrDeviceWin32@irr@@AAEXXZ)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__GetClientRect@8 referenced in function "private: void __thiscall irr::CIrrDeviceWin32::resizeIfNecessary(void)" (?resizeIfNecessary@CIrrDeviceWin32@irr@@AAEXXZ)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__StretchDIBits@52 referenced in function "public: virtual void __thiscall irr::CIrrDeviceWin32::present(class irr::video::IImage *,int,class irr::core::rect<int> *)" (?present@CIrrDeviceWin32@irr@@UAEXPAVIImage@video@2@HPAV?$rect@H@core@2@@Z)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__EnumDisplaySettingsA@12 referenced in function "public: virtual class irr::video::IVideoModeList * __thiscall irr::CIrrDeviceWin32::getVideoModeList(void)" (?getVideoModeList@CIrrDeviceWin32@irr@@UAEPAVIVideoModeList@video@2@XZ)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__ClientToScreen@8 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__ToAscii@20 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__GetKeyboardState@4 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__DefWindowProcA@16 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__SetCursor@4 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__PostQuitMessage@4 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__EndPaint@8 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__BeginPaint@8 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__DispatchMessageA@4 referenced in function "public: virtual bool __thiscall irr::CIrrDeviceWin32::run(void)" (?run@CIrrDeviceWin32@irr@@UAE_NXZ)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__TranslateMessage@4 referenced in function "public: virtual bool __thiscall irr::CIrrDeviceWin32::run(void)" (?run@CIrrDeviceWin32@irr@@UAE_NXZ)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__PeekMessageA@20 referenced in function "public: virtual bool __thiscall irr::CIrrDeviceWin32::run(void)" (?run@CIrrDeviceWin32@irr@@UAE_NXZ)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__SetWindowTextW@8 referenced in function "public: virtual void __thiscall irr::CIrrDeviceWin32::setWindowCaption(wchar_t const *)" (?setWindowCaption@CIrrDeviceWin32@irr@@UAEXPB_W@Z)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__SetWindowTextA@8 referenced in function "public: virtual void __thiscall irr::CIrrDeviceWin32::setWindowCaption(wchar_t const *)" (?setWindowCaption@CIrrDeviceWin32@irr@@UAEXPB_W@Z)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function "private: void __thiscall irr::CIrrDeviceWin32::getWindowsVersion(class irr::core::string<char,class irr::core::irrAllocator<char> > &)" (?getWindowsVersion@CIrrDeviceWin32@irr@@AAEXAAV?$string@DV?$irrAllocator@D@core@irr@@@core@2@@Z)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__RegQueryValueExA@24 referenced in function "private: void __thiscall irr::CIrrDeviceWin32::getWindowsVersion(class irr::core::string<char,class irr::core::irrAllocator<char> > &)" (?getWindowsVersion@CIrrDeviceWin32@irr@@AAEXAAV?$string@DV?$irrAllocator@D@core@irr@@@core@2@@Z)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__RegOpenKeyExA@20 referenced in function "private: void __thiscall irr::CIrrDeviceWin32::getWindowsVersion(class irr::core::string<char,class irr::core::irrAllocator<char> > &)" (?getWindowsVersion@CIrrDeviceWin32@irr@@AAEXAAV?$string@DV?$irrAllocator@D@core@irr@@@core@2@@Z)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__SetForegroundWindow@4 referenced in function "public: __thiscall irr::CIrrDeviceWin32::CIrrDeviceWin32(enum irr::video::E_DRIVER_TYPE,class irr::core::dimension2d<int>,unsigned int,bool,bool,bool,bool,class irr::IEventReceiver *,struct HWND__ *,char const *)" (??0CIrrDeviceWin32@irr@@QAE@W4E_DRIVER_TYPE@video@1@V?$dimension2d@H@core@1@I_N222PAVIEventReceiver@1@PAUHWND__@@PBD@Z)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__SetActiveWindow@4 referenced in function "public: __thiscall irr::CIrrDeviceWin32::CIrrDeviceWin32(enum irr::video::E_DRIVER_TYPE,class irr::core::dimension2d<int>,unsigned int,bool,bool,bool,bool,class irr::IEventReceiver *,struct HWND__ *,char const *)" (??0CIrrDeviceWin32@irr@@QAE@W4E_DRIVER_TYPE@video@1@V?$dimension2d@H@core@1@I_N222PAVIEventReceiver@1@PAUHWND__@@PBD@Z)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__MoveWindow@24 referenced in function "public: __thiscall irr::CIrrDeviceWin32::CIrrDeviceWin32(enum irr::video::E_DRIVER_TYPE,class irr::core::dimension2d<int>,unsigned int,bool,bool,bool,bool,class irr::IEventReceiver *,struct HWND__ *,char const *)" (??0CIrrDeviceWin32@irr@@QAE@W4E_DRIVER_TYPE@video@1@V?$dimension2d@H@core@1@I_N222PAVIEventReceiver@1@PAUHWND__@@PBD@Z)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__UpdateWindow@4 referenced in function "public: __thiscall irr::CIrrDeviceWin32::CIrrDeviceWin32(enum irr::video::E_DRIVER_TYPE,class irr::core::dimension2d<int>,unsigned int,bool,bool,bool,bool,class irr::IEventReceiver *,struct HWND__ *,char const *)" (??0CIrrDeviceWin32@irr@@QAE@W4E_DRIVER_TYPE@video@1@V?$dimension2d@H@core@1@I_N222PAVIEventReceiver@1@PAUHWND__@@PBD@Z)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__ShowWindow@8 referenced in function "public: __thiscall irr::CIrrDeviceWin32::CIrrDeviceWin32(enum irr::video::E_DRIVER_TYPE,class irr::core::dimension2d<int>,unsigned int,bool,bool,bool,bool,class irr::IEventReceiver *,struct HWND__ *,char const *)" (??0CIrrDeviceWin32@irr@@QAE@W4E_DRIVER_TYPE@video@1@V?$dimension2d@H@core@1@I_N222PAVIEventReceiver@1@PAUHWND__@@PBD@Z)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__CreateWindowExA@48 referenced in function "public: __thiscall irr::CIrrDeviceWin32::CIrrDeviceWin32(enum irr::video::E_DRIVER_TYPE,class irr::core::dimension2d<int>,unsigned int,bool,bool,bool,bool,class irr::IEventReceiver *,struct HWND__ *,char const *)" (??0CIrrDeviceWin32@irr@@QAE@W4E_DRIVER_TYPE@video@1@V?$dimension2d@H@core@1@I_N222PAVIEventReceiver@1@PAUHWND__@@PBD@Z)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__RegisterClassExA@4 referenced in function "public: __thiscall irr::CIrrDeviceWin32::CIrrDeviceWin32(enum irr::video::E_DRIVER_TYPE,class irr::core::dimension2d<int>,unsigned int,bool,bool,bool,bool,class irr::IEventReceiver *,struct HWND__ *,char const *)" (??0CIrrDeviceWin32@irr@@QAE@W4E_DRIVER_TYPE@video@1@V?$dimension2d@H@core@1@I_N222PAVIEventReceiver@1@PAUHWND__@@PBD@Z)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__LoadImageA@24 referenced in function "public: __thiscall irr::CIrrDeviceWin32::CIrrDeviceWin32(enum irr::video::E_DRIVER_TYPE,class irr::core::dimension2d<int>,unsigned int,bool,bool,bool,bool,class irr::IEventReceiver *,struct HWND__ *,char const *)" (??0CIrrDeviceWin32@irr@@QAE@W4E_DRIVER_TYPE@video@1@V?$dimension2d@H@core@1@I_N222PAVIEventReceiver@1@PAUHWND__@@PBD@Z)
1>CIrrDeviceWin32.obj : error LNK2019: unresolved external symbol __imp__LoadCursorA@8 referenced in function "public: __thiscall irr::CIrrDeviceWin32::CIrrDeviceWin32(enum irr::video::E_DRIVER_TYPE,class irr::core::dimension2d<int>,unsigned int,bool,bool,bool,bool,class irr::IEventReceiver *,struct HWND__ *,char const *)" (??0CIrrDeviceWin32@irr@@QAE@W4E_DRIVER_TYPE@video@1@V?$dimension2d@H@core@1@I_N222PAVIEventReceiver@1@PAUHWND__@@PBD@Z)
1>COSOperator.obj : error LNK2019: unresolved external symbol __imp__CloseClipboard@0 referenced in function "public: virtual void __thiscall irr::COSOperator::copyToClipboard(char const *)" (?copyToClipboard@COSOperator@irr@@UAEXPBD@Z)
1>COSOperator.obj : error LNK2019: unresolved external symbol __imp__SetClipboardData@8 referenced in function "public: virtual void __thiscall irr::COSOperator::copyToClipboard(char const *)" (?copyToClipboard@COSOperator@irr@@UAEXPBD@Z)
1>COSOperator.obj : error LNK2019: unresolved external symbol __imp__EmptyClipboard@0 referenced in function "public: virtual void __thiscall irr::COSOperator::copyToClipboard(char const *)" (?copyToClipboard@COSOperator@irr@@UAEXPBD@Z)
1>COSOperator.obj : error LNK2019: unresolved external symbol __imp__OpenClipboard@4 referenced in function "public: virtual void __thiscall irr::COSOperator::copyToClipboard(char const *)" (?copyToClipboard@COSOperator@irr@@UAEXPBD@Z)
1>COSOperator.obj : error LNK2019: unresolved external symbol __imp__GetClipboardData@4 referenced in function "public: virtual char * __thiscall irr::COSOperator::getTextFromClipboard(void)" (?getTextFromClipboard@COSOperator@irr@@UAEPADXZ)
1>.\..\Release/Irrlicht.dll : fatal error LNK1120: 49 unresolved externals
Thanks again.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

One is from the missing CSkyDomeSceneNode.cpp which you have to add to your project. The others seem to be wrong or missing libraries. Did you use the project file provided? But there are many subtle settings you have to do until VC++ is pleased. It took me about a week to find the correct settings for my last Irrlicht based app. I now prefer dev-cpp for windows :P
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

You need to link to user32.lib opengl32.lib, and maybe one or two others. I don't know why you're getting these errors. I sync'd the svn code yesterday and build with no problems with VC7.0

Travis
Shykino
Posts: 7
Joined: Tue Aug 01, 2006 6:29 pm

Post by Shykino »

Ok, what I did was download code::blocks and compile that. All worked perfectly, it created the .lib but no DLL. Any ideas about that?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Maybe it's set up to produce a static lib and not a dynamic one?
Shykino
Posts: 7
Joined: Tue Aug 01, 2006 6:29 pm

Post by Shykino »

Ok, I'm on the verge of giving up. VC obviously didn't work, so someone suggested I use Code::Block to compile instead. So I downloaded it, set everything up and compiled with Code::Blocks. Everything went fine no erros and warnings, but it didn't make a DLL. Only the .lib. So I messed with it trying different things and it still wouldn't work.

So I redownloaded form the SVN and started over from scratch. Now i'm getting errors from the platform SDK. which worked before. This is really getting on my nerves.
In file included from ../../../../Program Files/Microsoft Platform SDK/Include/winnt.h:99,
from ../../../../Program Files/Microsoft Platform SDK/Include/windef.h:176,
from C:/Program Files/CodeBlocks/include/excpt.h:20,
from ../../../../Program Files/Microsoft Platform SDK/Include/windows.h:157,
from CD3D8Driver.h:16,
from CD3D8Driver.cpp:6:
../../../../Program Files/Microsoft Platform SDK/Include/basetsd.h: In function `void* PtrToPtr64(const void*)':
../../../../Program Files/Microsoft Platform SDK/Include/basetsd.h:345: warning: cast to pointer from integer of different size
../../../../Program Files/Microsoft Platform SDK/Include/basetsd.h: In function `void* Ptr64ToPtr(const void*)':
../../../../Program Files/Microsoft Platform SDK/Include/basetsd.h:354: warning: cast from pointer to integer of different size
../../../../Program Files/Microsoft Platform SDK/Include/basetsd.h: In function `void* Handle64ToHandle(const void*)':
../../../../Program Files/Microsoft Platform SDK/Include/basetsd.h:372: warning: cast from pointer to integer of different size
In file included from ../../../../Program Files/Microsoft Platform SDK/Include/windef.h:176,
from C:/Program Files/CodeBlocks/include/excpt.h:20,
from ../../../../Program Files/Microsoft Platform SDK/Include/windows.h:157,
from CD3D8Driver.h:16,
from CD3D8Driver.cpp:6:
../../../../Program Files/Microsoft Platform SDK/Include/winnt.h:228:1: warning: "_cdecl" redefined
<built-in>:83:1: warning: this is the location of the previous definition
../../../../Program Files/Microsoft Platform SDK/Include/winnt.h:666:2: #error Must define a target architecture.
make.exe: *** [.objs/source/Irrlicht/CD3D8Driver.o] Error 1
Process terminated with status 1 (0 minutes, 27 seconds)
1 errors, 5 warnings
GNU GCC Compiler

Directories->Compiler
..\..\include
zlib
program files\microsoft directx sdk (june 2006)\include
program files\microsoft platform sdk\include

Directories->Linker
program files\microsoft directx sdk (june 2006)\lib\x86
program files\microsoft platform sdk\lib

Why can't things just work....it does for everyone else.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Maybe you should start with Irrlicht 1.0 first, and then change to the more complex task of compiling the SVN version.
Cezaro
Posts: 18
Joined: Fri Jul 07, 2006 2:31 pm
Location: Korytow Poland

Post by Cezaro »

Hi!


linker input libs: odbc32.lib odbccp32.lib opengl32.lib User32.lib Advapi32.lib Gdi32.lib

linker ignore libs: libci.lib

also You need some directx8 headers and libs You can download this from net or a can send You by email but this is 16megz zip file

and important : svn version please convert Irrlicht.dsw file not ..7.1.sln
to do this try click on irrlicht.dsw then visual c++ express 2005 convert it to 8.0 solution file, finally set linker.
Cezaro
Posts: 18
Joined: Fri Jul 07, 2006 2:31 pm
Location: Korytow Poland

Post by Cezaro »

of course PlatformSDK and directx9 SDK(or only headers and libs)
must exist on You pc and visual studio 2005 expres must now where is they
Post Reply