Quantcast

Compiling PCL from source on the NVIDIA Jetson TX1

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Compiling PCL from source on the NVIDIA Jetson TX1

sbaysting
This post has NOT been accepted by the mailing list yet.
Hi all,

I'm a new user to PCL and I'm doing some embedded system work. I have an NVIDIA Jetson TX1 with a quad-core ARM Cortex-a57 processor. I changed the cmake flags in [PCL_SOURCE_DIR]/cmake/pcl_find_sse.cmake to the following as per another post I saw online:

--            SET(SSE_FLAGS "${SSE_FLAGS} -march=native")
++            SET(SSE_FLAGS "${SSE_FLAGS} -march=armv8-a -mtune=cortex-a57 -mfpu=neon-vfpv4")

I get to around 24% in the compilation process and I get this error (this was after I tried to hit make -j2 again):

[  1%] Built target pcl_octree
[  1%] Built target pcl_io_ply
[  1%] Built target pcl_pcd_convert_NaN_nan
[  1%] Built target pcl_ply2obj
[  6%] Built target pcl_common
[  6%] Built target pcl_ply2ply
[  7%] Built target pcl_plyheader
[  7%] Built target pcl_ply2raw
[  8%] Built target pcl_people
[  9%] Built target pcl_kdtree
[ 13%] Built target pcl_sample_consensus
[ 15%] Built target pcl_search
Linking CXX shared library ../lib/libpcl_io.so
/usr/bin/ld: /usr/local/lib/libboost_iostreams-mt.a(mapped_file.o): relocation R_ARM_THM_MOVW_ABS_NC against `_ZNSbIwSt11char_traitsIwESaIwEE4_Rep20_S_empty_rep_storageE' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libboost_iostreams-mt.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libpcl_io.so.1.7.2] Error 1
make[1]: *** [io/CMakeFiles/pcl_io.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 24%] Built target pcl_filters
make: *** [all] Error 2

Any ideas on what might be happening?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compiling PCL from source on the NVIDIA Jetson TX1

CodingJack
Did you compile boost statically? Try recompiling it shared
Loading...