View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002202CMakeCMakepublic2005-09-01 11:582005-09-08 09:59
ReporterMathieu Malaterre 
Assigned ToBill Hoffman 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0002202: CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS are not passed anymore
DescriptionBug affect both 2.2 branch and CVS.

In VTK to build dynamic library we overide the default to:
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS} -Wl,-flat_namespace,-U,_environ")


when build ftgl library here is the command line:
Linking CXX shared library bin/libvtkftgl.dylib
/Users/kitware/Dashboards/My\ Tests/CMake-gcc/bin/cmake -E remove -f bin/libvtkftgl.a bin/libvtkftgl.dylib.4.5.0 bin/libvtkftgl.dylib.4.5 bin/libvtkftgl.dylib
c++ -dynamiclib -o bin/libvtkftgl.dylib.4.5.0 -install_name "`cd \`dirname bin/libvtkftgl.dylib.4.5.0\`;pwd`/libvtkftgl.dylib.4.5" "Utilities/ftgl/CMakeFiles/vtkftgl.dir/src/FTBitmapGlyph.o" "Utilities/ftgl/CMakeFiles/vtkftgl.dir/src/FTBitmapGlyphRenderOpenGL.o" "Utilities/ftgl/CMakeFiles/vtkftgl.dir/src/FTCharmap.o" "Utilities/ftgl/CMakeFiles/vtkftgl.dir/src/FTFace.o" "Utilities/ftgl/CMakeFiles/vtkftgl.dir/src/FTFont.o" "Utilities/ftgl/CMakeFiles/vtkftgl.dir/src/FTGLBitmapFont.o" "Utilities/ftgl/CMakeFiles/vtkftgl.dir/src/FTGLBitmapFontRenderOpenGL.o" "Utilities/ftgl/CMakeFiles/vtkftgl.dir/src/FTGLPixmapFont.o" "Utilities/ftgl/CMakeFiles/vtkftgl.dir/src/FTGLPixmapFontRenderOpenGL.o" "Utilities/ftgl/CMakeFiles/vtkftgl.dir/src/FTGlyph.o" "Utilities/ftgl/CMakeFiles/vtkftgl.dir/src/FTGlyphContainer.o" "Utilities/ftgl/CMakeFiles/vtkftgl.dir/src/FTLibrary.o" "Utilities/ftgl/CMakeFiles/vtkftgl.dir/src/FTPixmapGlyph.o" "Utilities/ftgl/CMakeFiles/vtkftgl.dir/src/FTPixmapGlyphRenderOpenGL.o" "Utilities/ftgl/CMakeFiles/vtkftgl.dir/src/FTSize.o" -L/Users/kitware/Dashboards/My\ Tests/VTK-X11-gcc/bin -L/usr/X11R6/lib -lGL -lvtkfreetype -framework AppKit -lgcc -lgcc
ld: Undefined symbols:
_glBitmap
_glDisable
_glPixelStorei
_glPopAttrib
_glPopClientAttrib
_glPushAttrib
_glPushClientAttrib
_glBlendFunc
_glEnable
_glDrawPixels
_glGetFloatv
/usr/bin/libtool: internal link edit command failed

The CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS flag is obviously missing.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0002991)
Bill Hoffman (manager)
2005-09-08 09:59

Fixed in CVS, and will be fixed in 2.2.1

 Issue History
Date Modified Username Field Change


Copyright © 2000 - 2018 MantisBT Team