openFrameworks icon indicating copy to clipboard operation
openFrameworks copied to clipboard

[aarch64] Issues installing on Jetson Nano

Open JoseeMallah opened this issue 9 months ago • 12 comments

When running the dependencies installation script, I am getting:

Installing...

E: Unable to locate package nlohmann-json3-dev
E: Unable to locate package libssl3
Installing make
 Already installed
Installing nlohmann-json3-dev
E: Unable to locate package nlohmann-json3-dev
error installing nlohmann-json3-dev
Reading package lists... Building dependency tree... Reading state information...
this seems an error with your distribution repositories but you can also
report an issue in the openFrameworks github: https://github.com/openframeworks/openFrameworks/issues

Any advice is appreciated!

JoseeMallah avatar Mar 24 '25 15:03 JoseeMallah

Can you try:

sudo apt update
sudo apt install nlohmann-json-dev
sudo apt install libssl-dev

And see if that fixes it?

ofTheo avatar Mar 24 '25 18:03 ofTheo

Hi @JoseeMallah Did that work for you and were you using the nightly release or 0.12.0 ?

ofTheo avatar Mar 25 '25 16:03 ofTheo

I am using the nightly build (couldn't find the download files for 0.12.0). I tried the commands you suggested but it did not work.

I also tried getting the linuxarmv7l (0.11.2) and following this tutorial https://gist.github.com/madelinegannon/237733e6c114f156b31366f47c1f3d32 but the instruction to prepare kiss is failing because is requires gcc-14 while the installed version is 7.5.0.

JoseeMallah avatar Mar 26 '25 14:03 JoseeMallah

[UPDATE] I installed aarch64 0.12.0, and I got this when running the compile command:

Package glesv1_cm was not found in the pkg-config search path.
Perhaps you should add the directory containing `glesv1_cm.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glesv1_cm' found
Package glesv1_cm was not found in the pkg-config search path.
Perhaps you should add the directory containing `glesv1_cm.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glesv1_cm' found
makefileCommon/config.shared.mk:311: *** couldn't find glesv1_cm pkg-config package or it's dependencies, did you run the latest install_dependencies.sh?.  Stop.
there has been a problem compiling Debug OF library
please report this problem in the forums

JoseeMallah avatar Mar 26 '25 16:03 JoseeMallah

Sounds like you are getting close!

ChatGPT suggested:

sudo apt-get update
sudo apt-get install libgles1 libgles1-mesa-dev libgles-dev libegl1-mesa-dev

ofTheo avatar Mar 26 '25 17:03 ofTheo

I did use ChatGPT and try it! But it didn't work (: glesv1_cm.pc still couldn't be found, and ChatGPT suggested creating the file, which resulted in even more issues..

JoseeMallah avatar Mar 27 '25 19:03 JoseeMallah

Do you have X windowing or are you trying to setup headless?

You could also try: https://github.com/openframeworks/openFrameworks/releases/download/nightly/of_v20250327_linuxaarch64_release.tar.gz

And copy over the folder libs/json/ from 0.12.0 to the nightly

Sorry it's such a pain, we're getting into the RPI stuff now for 0.12.1 and this is helpful to have people testing.

cc @dimitre

ofTheo avatar Mar 27 '25 19:03 ofTheo

I will try and let you know, thanks for your responsiveness. I have a TightVNC connection, so not headless I assume.

JoseeMallah avatar Mar 27 '25 22:03 JoseeMallah

I tried today's nightly with 0.12.0's /json, still giving the error: E: Unable to locate package nlohmann-json3-dev E: Unable to locate package libssl3 Installing make Already installed Installing nlohmann-json3-dev E: Unable to locate package nlohmann-json3-dev error installing nlohmann-json3-dev Reading package lists... Building dependency tree... Reading state information... this seems an error with your distribution repositories but you can also report an issue in the openFrameworks github: https://github.com/openframeworks/openFrameworks/issues Apparently this package is not available for ubuntu 18.04. Do you think I can get an older version of OpenFrameworks that would work? Maybe the libraries (also kiss and tess2) from 2019 if still available anywhere so that I can follow this tutorial (https://gist.github.com/madelinegannon/237733e6c114f156b31366f47c1f3d32)?

JoseeMallah avatar Apr 01 '25 09:04 JoseeMallah

Thanks @JoseeMallah

Unable to locate package nlohmann-json3-dev

Doesn't matter if you grabbed the json folder from 0.12.0 - when it comes time to compile a project it should pick it up.

I would just try some variation of sudo apt install libssl-dev until you get the libssl package that is available on the nano.

ie:

sudo apt update 
sudo apt-cache search libssl 

Have you tried building the examples/templates/emptyExample project just as is?

Also do you know what OS and version your Jetson is running?

ofTheo avatar Apr 01 '25 15:04 ofTheo

Okay will try. It is running Ubuntu 18.04.

JoseeMallah avatar Apr 01 '25 18:04 JoseeMallah