lianlab / gamekit

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

Can't build on OSX 10.7 with Xcode, Makefile build ok, but RunTime Crash. #195

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
With Xcode, /Developer/usr/bin/gcc-4.2 can not be found, but the Xcode project 
needs it.
Makefile works ok, but when I'm trying to control the monkey, the runtime crash.

Original issue reported on code.google.com by zhzhxt...@gmail.com on 27 Oct 2011 at 6:49

GoogleCodeExporter commented 9 years ago
Don't know about Xcode, but one possiblity for the crash might be, that you 
don't have openal installed, what would have the consequence that it is not 
compiled into the runtime and crashes as soon as you want to play a sound (what 
will happen when you start moving)... just one guess...

Original comment by thomas.t...@googlemail.com on 28 Oct 2011 at 12:52

GoogleCodeExporter commented 9 years ago
I'm new to Mac, I do have OpenAL.Framework installed with Xcode, but I'm not 
sure if I have the runtime dylib installed.

Original comment by zhzhxt...@gmail.com on 28 Oct 2011 at 1:41

GoogleCodeExporter commented 9 years ago
UPDATE:
I disabled OGREKIT_OPENAL_SOUND, then It works!
I don't know why I have OpanAL.Framework but no runtime is install.
Thanks Thomas.

Original comment by zhzhxt...@gmail.com on 28 Oct 2011 at 1:58

GoogleCodeExporter commented 9 years ago
UPDATE:
The Xcode problem, The compiler should be llvm-gcc.

Original comment by zhzhxt...@gmail.com on 28 Oct 2011 at 1:10

GoogleCodeExporter commented 9 years ago
UPDATE:
I removed the following lines from the CMakeLists.txt in the root folder, then, 
everything works.

if (APPLE)
    if (${XCODE_VERSION} STRGREATER "4.0.0")
        set(CMAKE_XCODE_ATTRIBUTE_GCC_VERSION "4.2")
    endif()
endif()

Original comment by zhzhxt...@gmail.com on 31 Oct 2011 at 9:39

GoogleCodeExporter commented 9 years ago
Now, XCode4 llmv-gcc OpenAL issue is solved?
http://code.google.com/p/gamekit/issues/detail?id=160
What is XCode version on OSX 10.7?

Thanks for reporting.

Original comment by harkon...@gmail.com on 6 Nov 2011 at 1:13

GoogleCodeExporter commented 9 years ago
Yes, I think it have been fixed, with my case, I use Xcode4.2, Everything 
(including openAL) works fine.
But, with Makefile build, OpenAL crashes the runtime demo.

Original comment by zhzhxt...@gmail.com on 6 Nov 2011 at 2:40