lianlab / gamekit

Automatically exported from code.google.com/p/gamekit
0 stars 0 forks source link

Linking problem while compiling on Mandriva 2009.1 #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. cd gamekit-read-only
2. cmake -G "Unix Makefiles"
3. make

What is the expected output? What do you see instead?
http://www.pasteall.org/8491

What version of the product are you using? On what operating system?
Mandriva 2009.1

Please provide any additional information below.
Patch attached to fix this error.

Original issue reported on code.google.com by jbernalm...@gmail.com on 19 Oct 2009 at 8:59

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks!
It seems the same issue than this one:

http://code.google.com/p/gamekit/issues/detail?id=2&can=1 

Previously we just disabled the X86 vidmode extension (because some Linux 
distros lack it).
Your patch seems better, but it might break those systems that lack the vidmode 
extension.

Someone needs to check if CMake can test for this extension, and then add it.

Original comment by erwin.coumans on 19 Oct 2009 at 10:44

GoogleCodeExporter commented 9 years ago
May be checking the library and the extension:

........
ELSE (APPLE)
        CHECK_LIBRARY_EXISTS(Xxf86vm XF86VidModeQueryExtension "" XF86VidMode)
        IF(XF86VidMode)
                ADD_DEFINITIONS( -D_IRR_LINUX_X11_VIDMODE_)
                SET(EXTRA_LIBS Xxf86vm)
        ELSE (XF86VidMode)
                SET(EXTRA_LIBS )
        ENDIF (XF86VidMode)
ENDIF (APPLE)
...........

Original comment by jbernalm...@gmail.com on 19 Oct 2009 at 11:37

GoogleCodeExporter commented 9 years ago
Indeed.

It has been applied in latest trunk. Could you check if it works?
http://code.google.com/p/gamekit/source/detail?r=59

Thanks for the report

Original comment by erwin.coumans on 20 Oct 2009 at 12:16

GoogleCodeExporter commented 9 years ago
perhaps you can check latest source download, rev59?

Original comment by erwin.coumans on 20 Oct 2009 at 12:23

GoogleCodeExporter commented 9 years ago
Hi Erwin,

now I obtain the following error:

[lordloki@localhost gamekit]$ make
[  0%] Building CXX object
irrlicht-1.6/source/Irrlicht/CMakeFiles/Irrlicht.dir/CDefaultGUIElementFactory.o
c++: no hay ficheros de entrada
/bin/sh: -D_IRR_LINUX_X11_VIDMODE_: command not found
make[2]: ***
[irrlicht-1.6/source/Irrlicht/CMakeFiles/Irrlicht.dir/CDefaultGUIElementFactory.
o]
Error 127
make[1]: *** [irrlicht-1.6/source/Irrlicht/CMakeFiles/Irrlicht.dir/all] Error 2
make: *** [all] Error 2

Original comment by jbernalm...@gmail.com on 20 Oct 2009 at 8:21

GoogleCodeExporter commented 9 years ago

Too bad :)

Could you try the updated trunk (or replacing the CMakeList.txt in the root 
with the 
attached version in this issue? 
http://code.google.com/p/gamekit/issues/detail?id=10 
)

Thanks,
Erwin

Original comment by erwin.coumans on 20 Oct 2009 at 9:12

GoogleCodeExporter commented 9 years ago
Now it works like a charm.

Thanks for your great work.

Original comment by jbernalm...@gmail.com on 20 Oct 2009 at 9:30

GoogleCodeExporter commented 9 years ago
great, thanks for the feedback!

Original comment by erwin.coumans on 20 Oct 2009 at 10:04