Wed 01 Oct 2008 09:01:22 AM UTC, original submission:
There is some problem to build TSP on Solaris 2.8 .
To fix that some modifications are needed :
-The include of stdint.h in bb_core.h must be removed.
-Then some definitions and link to libraries must be added in CMakeLists:
IF(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
ADD_DEFINITIONS(-D_POSIX_PTHREAD_SEMANTICS)
TARGET_LINK_LIBRARIES(bb_tsp_provider ${ONCRPC_LIBRARY})
TARGET_LINK_LIBRARIES(bb_tsp_provider ${SOCKET_LIBRARY})
ENDIF(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
in [TSP_SOURCE_DIR]/src/providers/ for bb_provider,generic_reader,res_reader and stub.For the consumers, just the links to libraries must be added for generic,res_writer,stdout,stdout_callback,test_group and tutorial.
-Concerning the ascii_writer consumer ,the option -o is not recognized by the system so the path to the flex command must be added:
IF(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
SET(LEX_PROGRAM "/usr/local/bin/flex"
ENDIF(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
-Finally,the RPATH must be forced to find some libraries,write the following in the main CMakeList:
# use, i.e. don't skip the full RPATH for the build tree
SET(CMAKE_SKIP_BUILD_RPATH FALSE)
# when building, don't use the install RPATH already
# (but later on when installing)
SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
# the RPATH to be used when installing
SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
# add the automatically determined parts of the RPATH
# which point to directories outside the build tree to the #install RPATH
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
Now, unless i miss something, everithing is working.
|