Struggling to build the Hello AI World

Hi all!

I just got a Nano and I’m kicking the tyres. So I am not having much luck building the Hello AI World project, as described on the Jetson Zoo page. There were multiple issues I was able to work around, but now I am stuck. First there was a missing GL/glew.h which I mended by installing the libglewmx-dev package, but now it fails claiming it misses the GLEW so files:

[ 35%] Linking CXX shared library …/aarch64/lib/libjetson-utils.so
/usr/bin/ld: cannot find -lGLEW
collect2: error: ld returned 1 exit status
utils/CMakeFiles/jetson-utils.dir/build.make:741: recipe for target ‘aarch64/lib/libjetson-utils.so’ failed
make[2]: *** [aarch64/lib/libjetson-utils.so] Error 1
CMakeFiles/Makefile2:927: recipe for target ‘utils/CMakeFiles/jetson-utils.dir/all’ failed
make[1]: *** [utils/CMakeFiles/jetson-utils.dir/all] Error 2
Makefile:129: recipe for target ‘all’ failed
make: *** [all] Error 2

Cmake briefly complains about the missing libglew-dev, but can’t install it:

gn:4 file:/var/visionworks-tracking-repo InRelease
Get:5 file:/var/cuda-repo-10-0-local-10.0.326 Release [574 B]
Get:6 file:/var/visionworks-repo Release [1 999 B]
Get:7 file:/var/visionworks-sfm-repo Release [2 003 B]
Get:8 file:/var/visionworks-tracking-repo Release [2 008 B]
Get:5 file:/var/cuda-repo-10-0-local-10.0.326 Release [574 B]
Get:6 file:/var/visionworks-repo Release [1 999 B]
Hit:9 http://ports.ubuntu.com/ubuntu-ports bionic InRelease
Hit:10 http://international.download.nvidia.com/jetson/repos/common r32 InRelease
Get:7 file:/var/visionworks-sfm-repo Release [2 003 B]
Get:8 file:/var/visionworks-tracking-repo Release [2 008 B]
Hit:11 http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease
Hit:12 http://international.download.nvidia.com/jetson/repos/t210 r32 InRelease
Hit:13 http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease
Hit:14 http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease
Reading package lists…
Reading package lists…
Building dependency tree…
Reading state information…
dialog is already the newest version (1.3-20171209-1).
The following packages were automatically installed and are no longer required:
apt-clone archdetect-deb bogl-bterm busybox-static cryptsetup-bin
dpkg-repack gir1.2-timezonemap-1.0 gir1.2-xkl-1.0 grub-common
kde-window-manager kinit kio kpackagetool5 kwayland-data kwin-common
kwin-data kwin-x11 libdebian-installer4 libkdecorations2-5v5
libkdecorations2private5v5 libkf5activities5 libkf5attica5
libkf5completion-data libkf5completion5 libkf5declarative-data
libkf5declarative5 libkf5doctools5 libkf5globalaccel-data libkf5globalaccel5
libkf5globalaccelprivate5 libkf5idletime5 libkf5jobwidgets-data
libkf5jobwidgets5 libkf5kcmutils-data libkf5kcmutils5 libkf5kiocore5
libkf5kiontlm5 libkf5kiowidgets5 libkf5newstuff-data libkf5newstuff5
libkf5newstuffcore5 libkf5package-data libkf5package5 libkf5plasma5
libkf5quickaddons5 libkf5solid5 libkf5solid5-data libkf5sonnet5-data
libkf5sonnetcore5 libkf5sonnetui5 libkf5textwidgets-data libkf5textwidgets5
libkf5waylandclient5 libkf5waylandserver5 libkf5xmlgui-bin libkf5xmlgui-data
libkf5xmlgui5 libkscreenlocker5 libkwin4-effect-builtins1 libkwineffects11
libkwinglutils11 libkwinxrenderutils11 libqgsttools-p1 libqt5designer5
libqt5help5 libqt5multimedia5 libqt5multimedia5-plugins
libqt5multimediaquick-p5 libqt5multimediawidgets5 libqt5positioning5
libqt5qml5 libqt5quick5 libqt5quickwidgets5 libqt5sensors5 libqt5webchannel5
libqt5webkit5 libxcb-composite0 libxcb-cursor0 libxcb-damage0 os-prober
python3-dbus.mainloop.pyqt5 python3-icu python3-pam python3-pyqt5
python3-pyqt5.qtsvg python3-pyqt5.qtwebkit python3-sip
qml-module-org-kde-kquickcontrolsaddons qml-module-qtmultimedia
qml-module-qtquick2 rdate tasksel tasksel-data
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists…
Building dependency tree…
Reading state information…
Package libglew-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package ‘libglew-dev’ has no installation candidate
E: Unable to locate package glew-utils
Reading package lists…

I have run sudo apt-get update but the result is the same. Any help appreciated!

Thanks!

Hi,

Here is the quick start of Hello AI World:
https://github.com/dusty-nv/jetson-inference/blob/master/docs/building-repo-2.md#quick-reference

All the requirement packages should be installed when running cmake.
Could you follow the instructions and try it again?

Thanks.

I flashed the SD card over again and then it worked without issues. I think the mistake I made was letting Ubuntu update itself.