Skip to content

Commit

Permalink
Merge pull request tum-vision#22 from kidovate/master
Browse files Browse the repository at this point in the history
Added ARM support
  • Loading branch information
simonlynen committed Jul 12, 2013
2 parents dddd5cb + b8ccc7b commit ffcfc5d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions ptam/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
cmake_minimum_required(VERSION 2.4.6)
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)

# Set the build type. Options are:
# Coverage : w/ debug symbols, w/o optimization, w/ code-coverage
# Debug : w/ debug symbols, w/o optimization
Expand Down Expand Up @@ -104,7 +103,7 @@ add_definitions(-DKF_REPROJ)

# PTAM executable
rosbuild_add_executable(ptam ${PTAM_SOURCE_FILES} ${PTAM_HEADER_FILES})
rosbuild_add_compile_flags(ptam -D_LINUX -D_REENTRANT -Wall -O3 -march=native -msse3)
rosbuild_add_compile_flags(ptam -D_LINUX -D_REENTRANT -Wall -O3 -march=native)
target_link_libraries(ptam ${PTAM_LIBRARIES} ${OpenCV_LIBS})


Expand Down
4 changes: 2 additions & 2 deletions ptam/thirdparty/gvars3/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ git_checkedout:

gvars_built:
cp -r sources build
cd build && export CPATH=../../TooN/include && ./configure --without-ffmpeg --without-dc1394v1 --without-dc1394v2 --with-lapack
cd build && export CPATH=../../TooN/include && make -j4 -l4
cd build && if [ "`arch`" == "armv7l" ]; then sed -i 's/CXX=@CXX@/CXX=@CXX@ -fPIC/g' Makefile.in; fi
cd build && export CPATH=../../TooN/include && ./configure --without-ffmpeg --without-dc1394v1 --without-dc1394v2 --with-lapack --with-pic=no && make -j4 -l4
mkdir -p include
mkdir -p lib
cp build/*.so* lib
Expand Down
2 changes: 1 addition & 1 deletion ptam/thirdparty/libcvd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ git_checkedout:

libcvd_built:
cp -r sources build
cd build && export CPATH=../../TooN/include && ./configure --without-ffmpeg --without-dc1394v1 --without-dc1394v2 --with-toon --with-lapack
cd build && export CPATH=../../TooN/include && if [ "`arch`" == "armv7l" ]; then export CXXFLAGS="-mfpu=neon"; fi && ./configure --without-ffmpeg --without-dc1394v1 --without-dc1394v2 --with-toon --with-lapack
cd build && export CPATH=../../TooN/include && make -j4 -l4
mkdir -p include
mkdir -p lib
Expand Down

0 comments on commit ffcfc5d

Please sign in to comment.