From 84dee0978652aa8a079c3dc75a80564a0f769872 Mon Sep 17 00:00:00 2001 From: jfaust Date: Tue, 31 Aug 2010 18:51:05 +0000 Subject: [PATCH] Upgrade assimp to svn rev 811 -- this includes some fixes for collada loading as well as uri syntax --- assimp/Makefile | 2 +- assimp/assimp.patch | 87 +++++++++++++++++++++------------------------ 2 files changed, 42 insertions(+), 47 deletions(-) diff --git a/assimp/Makefile b/assimp/Makefile index 4702f19..02abba6 100644 --- a/assimp/Makefile +++ b/assimp/Makefile @@ -2,7 +2,7 @@ all: installed PACKAGE_NAME=`rospack find assimp` # Regular download -TARBALL_NAME = assimp-1.1.700 +TARBALL_NAME = assimp-svn-811 TARBALL = build/$(TARBALL_NAME).tar.gz TARBALL_URL = http://pr.willowgarage.com/downloads/$(TARBALL_NAME).tar.gz TARBALL_PATCH = assimp.patch diff --git a/assimp/assimp.patch b/assimp/assimp.patch index 48fd01b..2e2866d 100644 --- a/assimp/assimp.patch +++ b/assimp/assimp.patch @@ -1,61 +1,56 @@ ---- CMakeLists.txt.old 2010-05-21 11:08:29.598051070 -0700 -+++ CMakeLists.txt 2010-05-21 11:19:28.595500290 -0700 -@@ -20,6 +20,21 @@ SET( INCLUDE_INSTALL_DIR "${CMAKE_INSTAL - SET( BIN_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/bin" CACHE PATH - "Path the tool executables are installed to." ) +Index: code/CMakeLists.txt +=================================================================== +--- code/CMakeLists.txt (revision 811) ++++ code/CMakeLists.txt (working copy) +@@ -742,6 +742,8 @@ + SOVERSION ${LIBRARY_SOVERSION} + ) + ++target_link_libraries(assimp ${boost_libraries}) ++ + INSTALL( TARGETS assimp DESTINATION ${LIB_INSTALL_DIR} ) + INSTALL( FILES ${PUBLIC_HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/assimp ) + INSTALL( FILES ${COMPILER_HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/assimp/Compiler ) +Index: CMakeLists.txt +=================================================================== +--- CMakeLists.txt (revision 811) ++++ CMakeLists.txt (working copy) +@@ -25,26 +25,21 @@ + CONFIGURE_FILE( "${CMAKE_SOURCE_DIR}/assimp.pc.in" "${CMAKE_BINARY_DIR}/assimp.pc" @ONLY ) + INSTALL( FILES "${CMAKE_BINARY_DIR}/assimp.pc" DESTINATION ${LIB_INSTALL_DIR}/pkgconfig/ ) +-# Globally enbale Boost resp. the Boost workaround – it is also needed by the +-# tools which include the Assimp headers. +-IF ( ENABLE_BOOST_WORKAROUND ) +- INCLUDE_DIRECTORIES( BoostWorkaround ) +- ADD_DEFINITIONS( -DASSIMP_BUILD_BOOST_WORKAROUND ) +- MESSAGE( STATUS "Building a non-boost version of Assimp." ) +-ELSE ( ENABLE_BOOST_WORKAROUND ) +- FIND_PACKAGE( Boost 1.35 ) +SET (boost_include_dirs "" CACHE STRING "Boost include paths. Use this to override automatic detection.") +SET (boost_library_dirs "" CACHE STRING "Boost library paths. Use this to override automatic detection.") +SET (boost_libraries "" CACHE STRING "Boost libraries. Use this to override automatic detection.") -+ -+ + +- IF ( NOT Boost_FOUND ) +- MESSAGE( FATAL_ERROR +- "Boost libraries (http://www.boost.org/) not found. " +- "You can build a non-boost version of Assimp with slightly reduced " +- "functionality by specifying -DENABLE_BOOST_WORKAROUND=ON." +- ) +- ENDIF ( NOT Boost_FOUND ) + +- INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIRS} ) +-ENDIF ( ENABLE_BOOST_WORKAROUND ) +message(status " debug: ${boost_include_dirs} ${boost_libraries}" ) +INCLUDE_DIRECTORIES( + include + ${boost_include_dirs} +) -+ + +LINK_DIRECTORIES( + ${boost_library_dirs} +) + - # Libs ADD_SUBDIRECTORY( code/ ) IF ( WIN32 ) ---- code/CMakeLists.txt.old 2010-05-21 11:25:22.057223769 -0700 -+++ code/CMakeLists.txt 2010-05-21 11:25:47.295533481 -0700 -@@ -1,25 +1,6 @@ - SET( LIBRARY_VERSION "1.0.0" ) - SET( LIBRARY_SOVERSION "1" ) - --IF ( ENABLE_BOOST_WORKAROUND ) -- INCLUDE_DIRECTORIES( BoostWorkaround ) -- ADD_DEFINITIONS( -DASSIMP_BUILD_BOOST_WORKAROUND ) -- MESSAGE( STATUS "Building a non-boost version of Assimp." ) --ELSE ( ENABLE_BOOST_WORKAROUND ) -- FIND_PACKAGE( Boost 1.35 ) -- -- IF ( NOT Boost_FOUND ) -- MESSAGE( FATAL_ERROR -- "Boost libraries (http://www.boost.org/) not found. " -- "You can build a non-boost version of Assimp with slightly reduced " -- "functionality by specifying -DENABLE_BOOST_WORKAROUND=ON." -- ) -- ENDIF ( NOT Boost_FOUND ) -- -- INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIRS} ) --ENDIF ( ENABLE_BOOST_WORKAROUND ) -- -- - # - # Listing and grouping of all the source files for use with IDE project - # generators. -@@ -691,6 +672,8 @@ ADD_LIBRARY( assimp SHARED - ${COMPILER_HEADERS} - ) - -+TARGET_LINK_LIBRARIES( assimp ${boost_libraries}) -+ - ADD_DEFINITIONS( -DASSIMP_BUILD_DLL_EXPORT ) - - if ( WIN32 ) + ADD_SUBDIRECTORY( test/ )