UIKit0 / ogre-procedural

Automatically exported from code.google.com/p/ogre-procedural
1 stars 0 forks source link

Library will not build on MacOS X #135

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use CMake to create a makefile
2. run "make"

What is the expected output? What do you see instead?
Expected: It should build
What I get: It won't build and is complaining about missing boost symbols.

Solution:
Change line 116 in library/CMakeLists.txt to

target_link_libraries(OgreProcedural ${OGRE_LIBRARIES} ${OIS_LIBRARIES} 
${Boost_LIBRARIES})

Original issue reported on code.google.com by t...@huetz.biz on 28 Nov 2012 at 6:49

GoogleCodeExporter commented 8 years ago
Hi,

Thanks for reporting, but is it a bug in FindOgre.cmake itself?

I can read : set(OGRE_LIBRARIES ${OGRE_LIBRARIES} ${Boost_LIBRARIES})
in that script... which is only included if OGRE_STATIC is defined.

Is it the case for you? Are you using a static build of OGRE?

Could you insert : MESSAGE(STATUS "OGRE_LIBRARIES ${OGRE_LIBRARIES}") at line 
115 of library/CMakeLists.txt, run configure, and tell me what you get?

If boost is not in these, and is still needed by the compiler, then maybe it 
should be reported as an Ogre bug...

Original comment by michael.broutin@gmail.com on 28 Nov 2012 at 10:43

GoogleCodeExporter commented 8 years ago
Hey,

sorry for my late response. Nope, I'm linking dynamically to the Ogre3D 
framework. Here is what I get with the messaging line in the CMakeLists.txt 
file:

...
OGRE_LIBRARIES -framework OGRE
...

I thin thats a specific issue using dylib libraries compared to the shared 
objects (.so) file known from Linux.

Regards,
Tim

Original comment by t...@huetz.biz on 30 Nov 2012 at 7:27