Page 1 of 1

[Build 0.8.4]WIn32App undefined reference

Posted: Tue Nov 03, 2015 20:45
by Jykten
Hi,

I'm trying to build cegui 0.8.4 on my computer. Here what I've :

Linking CXX executable ..\bin\CEGUISampleFramework-0.8.exe
CMakeFiles\CEGUISampleFramework-0.8.dir/objects.a(Win32AppHelper.cpp.obj):Win32A
ppHelper.cpp:(.text+0x899): undefined reference to `IID_IDirectInput8A'
CMakeFiles\CEGUISampleFramework-0.8.dir/objects.a(Win32AppHelper.cpp.obj):Win32A
ppHelper.cpp:(.text+0x8a9): undefined reference to `DirectInput8Create@20'
CMakeFiles\CEGUISampleFramework-0.8.dir/objects.a(Win32AppHelper.cpp.obj):Win32A
ppHelper.cpp:(.text+0x8cf): undefined reference to `GUID_SysKeyboard'
CMakeFiles\CEGUISampleFramework-0.8.dir/objects.a(Win32AppHelper.cpp.obj):Win32A
ppHelper.cpp:(.text+0x8ed): undefined reference to `c_dfDIKeyboard'
collect2.exe: error: ld returned 1 exit status
samples_framework\CMakeFiles\CEGUISampleFramework-0.8.dir\build.make:465: recipe
for target 'bin/CEGUISampleFramework-0.8.exe' failed
mingw32-make[2]: *** [bin/CEGUISampleFramework-0.8.exe] Error 1
CMakeFiles\Makefile2:578: recipe for target 'samples_framework/CMakeFiles/CEGUIS
ampleFramework-0.8.dir/all' failed
mingw32-make[1]: *** [samples_framework/CMakeFiles/CEGUISampleFramework-0.8.dir/
all] Error 2
Makefile:136: recipe for target 'all' failed
mingw32-make: *** [all] Error 2


I'm building with mingw gcc 4.8.1 on Windows 7 (64bits but using 32bits compiler).

I've found a topic where this error could be related to DirectX. I've DirectX SDK June 2010.

CMake values DIRECTXSDK_H_PATH and DIRECTXSKD_LIB_PATH lead to the correct folders. It leads to the x86 libs folder.

If I understand correctly, it is only the sample framework that's stuck. Is there any way to skip it or maybe I could build my projects without the samples framework ?

Thanks to anyone will answer :)

Re: [Build 0.8.4]WIn32App undefined reference

Posted: Wed Nov 04, 2015 09:19
by YaronCT
Jykten: CEGUI doesn't officially support MinGW. You can, however, disable building of the sample framework by setting the CMake variable "CEGUI_SAMPLES_ENABLED" to "OFF".

Re: [Build 0.8.4]WIn32App undefined reference

Posted: Wed Nov 04, 2015 18:42
by Jykten
Does that mean I could encounter problems with my further projects using CEGUI ? Yet it compiled fine without the samples, thanks.

Then I should look for another Ogre compatible GUI library.

Re: [Build 0.8.4]WIn32App undefined reference

Posted: Wed Nov 04, 2015 19:23
by YaronCT
No, it doesn't mean it won't work, it only means we don't test it with MinGW.

Re: [Build 0.8.4]WIn32App undefined reference

Posted: Fri Nov 06, 2015 18:46
by Ident
What yaron says is right. It would be good for you to get this running though, since this will allow you to see the extremely useful samples and see if everything works. We use the SampleBrowser as a way to check if everything is working, this is as close to a real-world demo as it can get as it uses almost everything CEGUI has inside its many samples.

Re: [Build 0.8.4]WIn32App undefined reference

Posted: Sun Nov 08, 2015 19:53
by Jykten
Well, yes it would be great if it compiles fine. Yet, this is the first time I see this error.

Yet, I've already seen some old demos of what CEGUI is capable of. And for the moment, I only need very light and basic gui : menus and just some numbers like timer on game screen.

But, even if it not the best place to ask it ; I've a dumb question : why MinGW is not supported ? I mean, is it that different from Linux gcc ? And I'm using MinGW because I've read that you need to pay a licence to Visual Studio to distribute your binaries... So when I read that MinGW isn't supported, I'm feeling forced to pay or go on Linux...

Re: [Build 0.8.4]WIn32App undefined reference

Posted: Sun Nov 08, 2015 20:00
by YaronCT
Basically I agree with u. I have plans to work on official MinGW support soon.

In the meantime, if u want, feel free to help us by testing with MinGW.