[osg-users] [build] Xocde 7.1 with osgDB compiler error

Ulrich Hertlein u.hertlein at sandbox.de
Sat Oct 31 05:21:59 PDT 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi,

On 28/10/2015 15:07, Radu Popescu wrote:
> We are using OSG for a cross-platform application that runs on Windows, Linux and Mac
> OS X (10.10 and 10.11).
> 
> The application uses OSG 3.4 and Qt 4.8 and we had to apply some patches to get this 
> setup working. We maintain a public Git clone, based on the GitHub mirror of
> OpenSceneGraph. ... Here is a patch that could help with the compilation:
> 
> diff --git a/CMakeLists.txt b/CMakeLists.txt index ce2815b..3e496c1 100644 ---
> a/CMakeLists.txt +++ b/CMakeLists.txt @@ -180,7 +180,13 @@ IF(APPLE) STRING(REPLACE
> "." ";" MACOS_VERSION_LIST ${OSG_OSX_SDK_NAME}) LIST(GET MACOS_VERSION_LIST 0
> MACOS_VERSION_MAJOR) LIST(GET MACOS_VERSION_LIST 1 MACOS_VERSION_MINOR) -    LIST(GET
> MACOS_VERSION_LIST 2 MACOS_VERSION_PATCH) + +    LIST(LENGTH MACOS_VERSION_LIST
> MACOS_VERSION_LIST_LENGTH) +    IF(MACOS_VERSION_LIST_LENGTH EQUAL "3") +
> LIST(GET MACOS_VERSION_LIST 2 MACOS_VERSION_PATCH) +    ELSE() +
> SET(MACOS_VERSION_PATCH "0") +    ENDIF()
> 
> SET(OSG_OSX_SDK_NAME "macosx${MACOS_VERSION_MAJOR}.${MACOS_VERSION_MINOR}")

- From what I could grep, MACOS_VERSION_PATCH isn't used anywhere.
Should we maybe remove it instead of adding code for something that's not used?

Cheers,
/ulrich

- -- 
Public Key - 0227 8EE1 2C64 8EF4 DA11  9864 FF16 0114 B9DA 3318
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJWNLJnAAoJEP8WARS52jMYU0UIANJrUOwKsl+anVIeHosqxPal
W9Oww/DVFnlwF8T0o8ZqWzhLqqHiwBgMuDSB16ZS20F+avj5UD+za4oxFNDoS9Du
HbUBa+qfiEu5So6B40mG7ofZlTuh4Sjz/PoNsONVNVxUXCnELvnIexmWmch63FxH
vzLcMvu+dgJTBEyx2BlsETcpNp0/PIHgUwcK7w3yhrOOdLgEswAI4W8KoEwowbPf
u9YMkw04FPCCvWCn2TwizwjTDMnoxDnQCcframN+EwnmiTP3ulgJa9Ahr5EdTlB2
MO2aTuw7943LXDi+qqQlT8PhgEBZ3e/fOT4gxbbQwUxPk9SMfIcmWPQcCUjuEhg=
=RdbZ
-----END PGP SIGNATURE-----



More information about the osg-users mailing list