Skip to content

Ubuntu install_dependencies: liblapack-dev and libblas-dev (ofxOpenCv on arm64) - #8603

Merged
danoli3 merged 1 commit into
openframeworks:masterfrom
danoli3:ofxopencv-aarch64-blas
Oct 25, 2026
Merged

danoli3 merged 1 commit into
openframeworks:masterfrom
danoli3:ofxopencv-aarch64-blas

Conversation

@danoli3

@danoli3 danoli3 commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

On Ubuntu arm64, every app using ofxOpenCv fails to link:

/usr/bin/ld: cannot find -llapack: No such file or directory
collect2: error: ld returned 1 exit status

The linuxaarch64 section of addons/ofxOpenCv/addon_config.mk links -lblas -llapack (added in #7928 for the Raspberry Pi). scripts/linux/debian/install_dependencies.sh installs liblapack-dev libblas-dev for that, but scripts/linux/ubuntu/install_dependencies.sh didn't. This adds both to the Ubuntu list, next to libopencv-dev. They're small, and harmless on other architectures.

I kept the flags in addon_config.mk. A native link doesn't need them, since OpenCV's shared libraries already depend on BLAS/LAPACK, but cross-compiling against a sysroot (the Raspberry Pi CI) may, so installing the packages is the safer fix.

Tested on Ubuntu 24.04 aarch64 with openFrameworks master: ofxCv's example-contours-basic failed with cannot find -llapack. With the two packages installed, it links, with ofxOpenCv's config unchanged.

… on aarch64

ofxOpenCv's linuxaarch64 section links -lblas -llapack (added in openframeworks#7928 for the Raspberry Pi), and the Debian script installs liblapack-dev and libblas-dev, but the Ubuntu one didn't: on Ubuntu arm64 every ofxOpenCv app failed with 'cannot find -llapack / -lblas'. Installs both like the Debian script (harmless elsewhere).

Tested on Ubuntu 24.04 aarch64: ofxCv's example-contours-basic links with ofxOpenCv's config unchanged.
@danoli3
danoli3 merged commit 6f06f73 into openframeworks:master Oct 25, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant