[Build 0.8.4]WIn32App undefined reference

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

Jykten
Just popping in
Just popping in
Posts: 3
Joined: Sat Feb 19, 2011 15:20

[Build 0.8.4]WIn32App undefined reference

Postby Jykten » Tue Nov 03, 2015 20:45

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 :)

YaronCT
CEGUI Team
Posts: 448
Joined: Fri Jun 19, 2015 12:18
Location: Kiryat-Bialik, Israel

Re: [Build 0.8.4]WIn32App undefined reference

Postby YaronCT » Wed Nov 04, 2015 09:19

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".

Jykten
Just popping in
Just popping in
Posts: 3
Joined: Sat Feb 19, 2011 15:20

Re: [Build 0.8.4]WIn32App undefined reference

Postby Jykten » Wed Nov 04, 2015 18:42

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.

YaronCT
CEGUI Team
Posts: 448
Joined: Fri Jun 19, 2015 12:18
Location: Kiryat-Bialik, Israel

Re: [Build 0.8.4]WIn32App undefined reference

Postby YaronCT » Wed Nov 04, 2015 19:23

No, it doesn't mean it won't work, it only means we don't test it with MinGW.

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: [Build 0.8.4]WIn32App undefined reference

Postby Ident » Fri Nov 06, 2015 18:46

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.
CrazyEddie: "I don't like GUIs"

Jykten
Just popping in
Just popping in
Posts: 3
Joined: Sat Feb 19, 2011 15:20

Re: [Build 0.8.4]WIn32App undefined reference

Postby Jykten » Sun Nov 08, 2015 19:53

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...

YaronCT
CEGUI Team
Posts: 448
Joined: Fri Jun 19, 2015 12:18
Location: Kiryat-Bialik, Israel

Re: [Build 0.8.4]WIn32App undefined reference

Postby YaronCT » Sun Nov 08, 2015 20:00

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.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 4 guests