Upgrade assimp to svn rev 811 -- this includes some fixes for collada loading as well as uri syntax

This commit is contained in:
jfaust 2010-08-31 18:51:05 +00:00
parent 2cac8c6027
commit 84dee09786
2 changed files with 42 additions and 47 deletions

View File

@ -2,7 +2,7 @@ all: installed
PACKAGE_NAME=`rospack find assimp` PACKAGE_NAME=`rospack find assimp`
# Regular download # Regular download
TARBALL_NAME = assimp-1.1.700 TARBALL_NAME = assimp-svn-811
TARBALL = build/$(TARBALL_NAME).tar.gz TARBALL = build/$(TARBALL_NAME).tar.gz
TARBALL_URL = http://pr.willowgarage.com/downloads/$(TARBALL_NAME).tar.gz TARBALL_URL = http://pr.willowgarage.com/downloads/$(TARBALL_NAME).tar.gz
TARBALL_PATCH = assimp.patch TARBALL_PATCH = assimp.patch

View File

@ -1,40 +1,36 @@
--- CMakeLists.txt.old 2010-05-21 11:08:29.598051070 -0700 Index: code/CMakeLists.txt
+++ CMakeLists.txt 2010-05-21 11:19:28.595500290 -0700 ===================================================================
@@ -20,6 +20,21 @@ SET( INCLUDE_INSTALL_DIR "${CMAKE_INSTAL --- code/CMakeLists.txt (revision 811)
SET( BIN_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/bin" CACHE PATH +++ code/CMakeLists.txt (working copy)
"Path the tool executables are installed to." ) @@ -742,6 +742,8 @@
SOVERSION ${LIBRARY_SOVERSION}
)
+SET (boost_include_dirs "" CACHE STRING "Boost include paths. Use this to override automatic detection.") +target_link_libraries(assimp ${boost_libraries})
+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.")
+ +
+ INSTALL( TARGETS assimp DESTINATION ${LIB_INSTALL_DIR} )
+message(status " debug: ${boost_include_dirs} ${boost_libraries}" ) INSTALL( FILES ${PUBLIC_HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/assimp )
+INCLUDE_DIRECTORIES( INSTALL( FILES ${COMPILER_HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/assimp/Compiler )
+ include Index: CMakeLists.txt
+ ${boost_include_dirs} ===================================================================
+) --- CMakeLists.txt (revision 811)
+ +++ CMakeLists.txt (working copy)
+LINK_DIRECTORIES( @@ -25,26 +25,21 @@
+ ${boost_library_dirs} 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/ )
+
# 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" )
-# Globally enbale Boost resp. the Boost workaround it is also needed by the
-# tools which include the Assimp headers.
-IF ( ENABLE_BOOST_WORKAROUND ) -IF ( ENABLE_BOOST_WORKAROUND )
- INCLUDE_DIRECTORIES( BoostWorkaround ) - INCLUDE_DIRECTORIES( BoostWorkaround )
- ADD_DEFINITIONS( -DASSIMP_BUILD_BOOST_WORKAROUND ) - ADD_DEFINITIONS( -DASSIMP_BUILD_BOOST_WORKAROUND )
- MESSAGE( STATUS "Building a non-boost version of Assimp." ) - MESSAGE( STATUS "Building a non-boost version of Assimp." )
-ELSE ( ENABLE_BOOST_WORKAROUND ) -ELSE ( ENABLE_BOOST_WORKAROUND )
- FIND_PACKAGE( Boost 1.35 ) - 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 ) - IF ( NOT Boost_FOUND )
- MESSAGE( FATAL_ERROR - MESSAGE( FATAL_ERROR
- "Boost libraries (http://www.boost.org/) not found. " - "Boost libraries (http://www.boost.org/) not found. "
@ -42,20 +38,19 @@
- "functionality by specifying -DENABLE_BOOST_WORKAROUND=ON." - "functionality by specifying -DENABLE_BOOST_WORKAROUND=ON."
- ) - )
- ENDIF ( NOT Boost_FOUND ) - ENDIF ( NOT Boost_FOUND )
-
- INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIRS} ) - INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIRS} )
-ENDIF ( ENABLE_BOOST_WORKAROUND ) -ENDIF ( ENABLE_BOOST_WORKAROUND )
- +message(status " debug: ${boost_include_dirs} ${boost_libraries}" )
- +INCLUDE_DIRECTORIES(
# + include
# Listing and grouping of all the source files for use with IDE project + ${boost_include_dirs}
# generators. +)
@@ -691,6 +672,8 @@ ADD_LIBRARY( assimp SHARED
${COMPILER_HEADERS}
)
+TARGET_LINK_LIBRARIES( assimp ${boost_libraries}) +LINK_DIRECTORIES(
+ ${boost_library_dirs}
+)
+ +
ADD_DEFINITIONS( -DASSIMP_BUILD_DLL_EXPORT ) ADD_SUBDIRECTORY( code/ )
IF ( WIN32 )
if ( WIN32 ) ADD_SUBDIRECTORY( test/ )