[osg-users] Preparing to make 3.5.3 dev release, please test

François Bérard francois.berard at imag.fr
Sat Jun 4 08:23:38 PDT 2016


Hi Robert,

On 3/6/16 18:46, Robert Osfield wrote:
> Rather than add this to the root CMakeLists.txt file I have added a
> Clang specific section to the src/osgPlugins/cfg/CMakeLists.txt thus:
>
> # lex/yacc generated files use register that causes warnings with
> CLang under OSX so disable this warnings.
> IF(${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
>     SET(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -Wno-deprecated-register)
> ENDIF()
>
> This is now checked into master.  Could remove you your own mds and test this?

there is a small pb which breaks the build:

Scanning dependencies of target osgdb_cfg
[ 79%] Building CXX object 
src/osgPlugins/cfg/CMakeFiles/osgdb_cfg.dir/CameraConfig.cpp.o
clang: error: no input files
/bin/sh: -Wno-deprecated-register: command not found
make[2]: *** 
[src/osgPlugins/cfg/CMakeFiles/osgdb_cfg.dir/CameraConfig.cpp.o] Error 127
make[1]: *** [src/osgPlugins/cfg/CMakeFiles/osgdb_cfg.dir/all] Error 2
make: *** [all] Error 2


adding double quotes fixes it:

      SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-register")

Also, the warning appears in osg/Matrix_implementation.cpp (see attached 
log), you may want to add the definition to the CMakelist of libosg. I 
tried by adding the IF block juste before the SETUP_LIBRARY, it worked. 
But removing the two register keywords in the matrix code may be the 
best approach: they are most probably always ignored by the compilers.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmakelog.txt.zip
Type: application/zip
Size: 12084 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160604/8a422567/attachment-0003.zip>


More information about the osg-users mailing list