Compiling Caffe SSD on Jetson TX1 (Ubuntu 16.04)

The error I get:

/usr/bin/ld: cannot find -lopenblas
collect2: error: ld returned 1 exit status
Makefile:568: recipe for target ‘.build_release/lib/’ failed

The changes I made:


#INCLUDE_DIRS := (PYTHON_INCLUDE) /usr/local/include #LIBRARY_DIRS := (PYTHON_LIB) /usr/local/lib /usr/lib

INCLUDE_DIRS := (PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/ LIBRARY_DIRS := (PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/aarch64-linux-gnu/hdf5/serial/


#LIBRARIES += glog gflags protobuf boost_system boost_filesystem boost_regex m hdf5_hl hdf5
LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_serial_hl hdf5_serial

NVCCFLAGS += -ccbin=(CXX) -Xcompiler -fPIC (COMMON_FLAGS)


Any leads will be appreciated.


/usr/bin/ld: cannot find -lopenblas

Looks for linking, the linker fails to find

Do you have openblas installed ?

sudo apt search openblas |grep installed

should tell you if you have a version installed.

If not, you have to install openblas first :

sudo apt-get install libopenblas-base

When or if already installed, you have to find in which folder is installed
If is in standard /usr/lib, you can skip this step.
Otherwise, add this path to to environment variable LD_LIBRARY_PATH.
For example, if is in folder /opt/openblas/lib, in your shell type

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/openblas/lib

for adding this path into the dynamic libs folders.

Then retry make.

i have same problem on jetson tx2
i tried the this solution but it still have the same error

as it
/usr/bin/ld/:cannot find -lopenblas

Hi ehabo333,

Please file your issue into TX2 board -