--- common/CMakeLists.txt.orig 2014-02-11 02:55:11 UTC +++ common/CMakeLists.txt @@ -4,6 +4,8 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}) +ADD_DEFINITIONS(-fPIC) + add_library(vglcommon STATIC Frame.cpp Profiler.cpp) target_link_libraries(vglcommon vglutil ${TJPEG_LIBRARY})