Skip to content

Instantly share code, notes, and snippets.

@jvcleave
Last active March 1, 2023 10:10
Show Gist options
  • Save jvcleave/e49c0b52085d040a5cd8a3385121cb91 to your computer and use it in GitHub Desktop.
Save jvcleave/e49c0b52085d040a5cd8a3385121cb91 to your computer and use it in GitHub Desktop.
openframeworks jetson nano instructions
Nightly required - get link from the bottom of this page (e.g. https://openframeworks.cc/ci_server/versions/nightly/of_v20190324_linuxarmv7l_nightly.tar.gz)
https://openframeworks.cc/download/
Download OF and unpack:
wget https://openframeworks.cc/ci_server/versions/nightly/of_v20190324_linuxarmv7l_nightly.tar.gz
tar -zxvf of_v20190324_linuxarmv7l_nightly.tar.gz
mv of_v20190324_linuxarmv7l_nightly openFrameworks
Edit openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/config.shared.mk
Change line:
else ifeq ($(PLATFORM_ARCH),armv7l)
to:
else ifeq ($(PLATFORM_ARCH),aarch64)
Edit openFrameworks/libs/openFrameworksCompiled/project/linuxarmv7l/config.linuxarmv7l.default.mk
#PLATFORM_CFLAGS += -march=armv7
#PLATFORM_CFLAGS += -mtune=cortex-a8
#PLATFORM_CFLAGS += -mfpu=neon
#PLATFORM_CFLAGS += -mfloat-abi=hard
#PLATFORM_PKG_CONFIG_LIBRARIES += glesv1_cm
#PLATFORM_PKG_CONFIG_LIBRARIES += glesv2
#PLATFORM_PKG_CONFIG_LIBRARIES += egl
Download apothecary to recompile kiss and tess2:
git clone https://github.com/openframeworks/apothecary.git
cd apothecary/
./apothecary -t linux download kiss
./apothecary -t linux prepare kiss
./apothecary -t linux build kiss
./apothecary -t linux download tess2
./apothecary -t linux prepare tess2
./apothecary -t linux build tess2
Copy
apothecary/apothecary/build/kiss/lib/linux/libkiss.a
to
openFrameworks/libs/kiss/lib/linuxarmv7l/libkiss.a
Copy
apothecary/apothecary/build/tess2_patched/build/libtess2.a
to
openFrameworks/libs/tess2/lib/linuxarmv7l/libtess2.a
@batchku
Copy link

batchku commented Apr 17, 2019

Hi Jason!
Exciting.
Did you ever get OF working on a Jetson TX2?

@jvcleave
Copy link
Author

@pierrextardif
Copy link

AMAZING.

Worked for me too.

Thanks

@jvcleave
Copy link
Author

jvcleave commented Jun 2, 2019

@patriciogonzalezvivo comment it out (see the above #'s in line 24-31)

@patriciogonzalezvivo
Copy link

@jvcleave Thanks I realize just after asking! thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment