Page 1 of 1

Compiling CEGUISamples.

Posted: Sat Jun 25, 2011 09:04
by iRay
Yeah as topic, I was compiling the CEGUISamples.sln file, till I got the errors which I coded in green below.

After which I just tried to compile the TreeDemo.sln file as I wanted to see the output (I was planning to make a CEGUI Menu).
I did the same for that project alone, included the necessary libraries and dependencies.
Till then, I had one error which was: " CEGuiSampleHelper_d.dll was missing from your computer. "

If any wants to know, I'm using MSVC 2008 Professional Edition. My ogre version 1.7. CEGUI Version 0.7.5.vc9. Windows 7 - 64 bit OS.
I linked every plausible thing which they needed to be included, this includes all the libraries and stuff.


This is what I found in my build log when compiling CEGuiSamples.sln.

Code: Select all

Output Window
        
Linking...
   Creating library ../../../../lib/CEGUISampleHelper_d.lib and object ../../../../lib/CEGUISampleHelper_d.exp
CEGuiD3D9BaseApplication.obj : error LNK2019: unresolved external symbol _Direct3DCreate9@4 referenced in function "protected: bool __thiscall CEGuiD3D9BaseApplication::initialiseDirect3D(unsigned int,unsigned int,unsigned int,bool)" (?initialiseDirect3D@CEGuiD3D9BaseApplication@@IAE_NIII_N@Z)
Win32AppHelper.obj : error LNK2001: unresolved external symbol _c_dfDIKeyboard
Win32AppHelper.obj : error LNK2001: unresolved external symbol _GUID_SysKeyboard
Win32AppHelper.obj : error LNK2019: unresolved external symbol _DirectInput8Create@20 referenced in function "public: static bool __cdecl Win32AppHelper::initialiseDirectInput(struct HWND__ *,struct Win32AppHelper::DirectInputState &)" (?initialiseDirectInput@Win32AppHelper@@SA_NPAUHWND__@@AAUDirectInputState@1@@Z)
Win32AppHelper.obj : error LNK2001: unresolved external symbol _IID_IDirectInput8A
../../../../bin/CEGUISampleHelper_d.dll : fatal error LNK1120: 5 unresolved externals


Any idea what are those errors? Please help me!
Also, compiling CEGUISamples is to get the CEGUISampleHelper_d.dll yes?

All help is greatly appreciated, thanks.

Re: Compiling CEGUISamples.

Posted: Sat Jun 25, 2011 12:17
by Kulik
So you are compiling the whole CEGUI from source?

What DX SDK do you have? I think the SampleHelper should link to dxguid or something like that to resolve these, I am not sure though, don't use Windows much lately.

Re: Compiling CEGUISamples.

Posted: Sat Jun 25, 2011 12:40
by iRay
I'm using DirectX SDK June 2010.

And yes, I've already tried linking SampleHelper to the dxguid.lib location.
It did help but I ended up with those errors above.

Re: Compiling CEGUISamples.

Posted: Sat Jul 02, 2011 03:37
by iRay
Help me please ;(.

Re: Compiling CEGUISamples.

Posted: Sat Jul 02, 2011 07:07
by MarkR
The symbol _Direct3DCreate9@4 should be part of the d3d9.lib, the DirectInput stuff requires the dinput8.lib
Try to add these two libs, too.

Re: Compiling CEGUISamples.

Posted: Sat Jul 02, 2011 08:19
by iRay
MarkR wrote:The symbol _Direct3DCreate9@4 should be part of the d3d9.lib, the DirectInput stuff requires the dinput8.lib
Try to add these two libs, too.


Thanks, but I've already included those 2 in Linker->Input->Additional Dependencies but still get the same errors.
I went to search on google about this error but most of them included those libraries and solved the errors, however it's a different case for me.

Re: Compiling CEGUISamples.

Posted: Tue Jul 05, 2011 16:31
by Jamarr
iRay wrote:
MarkR wrote:The symbol _Direct3DCreate9@4 should be part of the d3d9.lib, the DirectInput stuff requires the dinput8.lib
Try to add these two libs, too.


Thanks, but I've already included those 2 in Linker->Input->Additional Dependencies but still get the same errors.
I went to search on google about this error but most of them included those libraries and solved the errors, however it's a different case for me.


Adding the library names alone will not necessarily allow the linker to find those libraries. In other words you gave the linker the library names, but not their locations. You must also supply the linker with correct Library Directories to look in, eg: Linker > General > Additional Library Directories.

Re: Compiling CEGUISamples.

Posted: Sun Jul 10, 2011 13:04
by iRay
Jamarr wrote:
iRay wrote:
MarkR wrote:The symbol _Direct3DCreate9@4 should be part of the d3d9.lib, the DirectInput stuff requires the dinput8.lib
Try to add these two libs, too.


Thanks, but I've already included those 2 in Linker->Input->Additional Dependencies but still get the same errors.
I went to search on google about this error but most of them included those libraries and solved the errors, however it's a different case for me.


Adding the library names alone will not necessarily allow the linker to find those libraries. In other words you gave the linker the library names, but not their locations. You must also supply the linker with correct Library Directories to look in, eg: Linker > General > Additional Library Directories.


I've already linked it, if I'm not wrong it's this one.
C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Lib\x64

I still got the error.

Re: Compiling CEGUISamples.

Posted: Thu Jul 14, 2011 11:26
by CrazyEddie
Are you building CEGUI for 64 bit processors? If so, this is not well supported on Windows. If not, why are you linking the 64 bit versions of the DirectX libs?

CE

Re: Compiling CEGUISamples.

Posted: Mon Jul 25, 2011 11:57
by AHlimon
I am trying to fix it but I can't. It is very complected.

Re: Compiling CEGUISamples.

Posted: Wed Jul 27, 2011 10:41
by belkacem
OK .
if you are using visual studio follow this :

*go to

Code: Select all

project >>proprieties >> VC++ Directoires >> Library Direction >> 

then add directx sdk path .
it is look like like this

Code: Select all

C:\DXSDK\Lib\x64


2- go to

Code: Select all

project >>proprieties >> Linker >> Input >>  Additional dependencies


past the following

Code: Select all

d3dx9.lib
d3dx9d.lib
dxguid.lib


and recompile again