Quantcast
Channel: arm - openFrameworks
Viewing all articles
Browse latest Browse all 147

Jetson Nano link D435 lib to addon

$
0
0

@pierre_tardif00 wrote:

Hi,

I’m trying to link the librealsense library installed on my Jetson Nano to the ofxRealsense addon with the 2.2.22 version.

I have tried to create a pkg file for the system to pick it up, but I must be missing something else, because it doesn’t seem to find it.

I have tried to removed the code from the lib folder, and link it from the addon_config without success…

The addon_config.mk :

meta:
	ADDON_NAME = ofxRealsense2
	ADDON_DESCRIPTION = Addon for Intel librealsense2 (supports D400 series depth camera)
	ADDON_AUTHOR = Hiroshi Matoba
	ADDON_TAGS = "device"
	ADDON_URL = http://github.com/hiroMTB/ofxRealsense2

common:

	#ADDON_INCLUDES =  libs/realsense2/include/

linux64:
	# linux only, any library that should be included in the project using
	# pkg-config

linuxarmv7l:	
	ADDON_PKG_CONFIG_LIBRARIES = librealsense cuda-10.0 cudart-10.0 libusb-1.0 #OpenCL
	ADDON_LDFLAGS = -L/usr/local/lib/ -L/usr/local/cuda/lib64 -lcuda -lcudart

Then in the exampleLiveCamera here is my config.make : (project linker flags line)
PROJECT_LDFLAGS=-I/usr/local/include/ -I/usr/local/lib/ -L/usr/local/include/ -L/usr/local/lib/ -L/usr/local/cuda/lib64 -lcuda -lcudart

I get the error :

/usr/bin/ld: cannot find -librealsense

i have tried changing the librealsense flag for librealsense-2.21.0,and the error becomes :

Package librealsense-2.22.0 was not found in the pkg-config search path.

The lib was installed following this tutorial , so the lib is installed at this place :

#The library is installed in /usr/local/lib
#The header files are in /usr/local/include
#The demos and tools are located in /usr/local/bin

So my librealsense.pc looks like this :


# Package Information for pkg-config

prefix=/usr/local
includedir=${prefix}/include
exec_prefix=${prefix}/bin
libdir=${prefix}/lib

Name: librealsense
Description: Intel RealSense D435i Library
Version: 2.21.0
Cflags: -I${includedir}/librealsense2
Libs: -L${libdir}
Libs.private: -ldl -lm -lpthread -lrt

Sorry it’s v long.

Hope someone can help me figure this out.

++

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 147

Trending Articles