macchina-io / macchina.io

macchina.io EDGE is a powerful C++ and JavaScript SDK for edge devices, multi-service IoT gateways and connected embedded systems.
https://macchina.io
GNU General Public License v3.0
512 stars 152 forks source link

Cannot make on Jetson TX2, Ubuntu 16.04 #89

Closed Miroslav1993 closed 5 years ago

Miroslav1993 commented 5 years ago

Following the steps from the Readme file, the make process fails on a recently flashed Jetson TX2 board running Ubuntu 16.04 with the following error:

Makefile:63: Unknown target architecture. Stop. Makefile:271: recipe for target 'JS/V8-libexec' failed make[1]: [JS/V8-libexec] Error 2 make[1]: Waiting for unfinished jobs.... Makefile:76: recipe for target 'clean' failed make: [clean] Error 2

I have not found any info on a similar error online.

obiltschnig commented 5 years ago

Looks like an issue with passing the correct build parameters to the V8 build system.

Could you provide more information? Specifically, output of uname -a and how you did the build (native or cross-compile).

Miroslav1993 commented 5 years ago

Here's the output of uname -a:

Linux tegra-ubuntu 4.4.38-tegra #1 SMP PREEMPT Thu May 17 00:15:19 PDT 2018 aarch64 aarch64 aarch64 GNU/Linux

I followed these steps to install:

$ git clone https://github.com/macchina-io/macchina.io.git $ cd macchina.io $ git checkout master $ make -s -j8 DEFAULT_TARGET=shared_release

Also tried to checkout to development branch to make, same error, and tried adding the V8_NOSNAPSHOT=1 argument (I saw these in previous issues solutions).

obiltschnig commented 5 years ago

Could you try current develop branch. I have just added some code to detect aarch64 and pass the proper (hopefully) flags to V8 build system.

Miroslav1993 commented 5 years ago

Tried making with your latest commit, at first it failed but it just needed sudo, and then it passed.

Unfortunately, upon trying to start macchina, the following error occurs:

bin/Linux/aarch64/macchina: error while loading shared libraries: libPocoOSP.so.2: cannot open shared object file: No such file or directory

The LD_LIBRARY_PATH is set correctly to /macchina.io/server/platform/lib/Linux/aarch64, and the libPocoOSP.so.2 is there.

Should I make a new issue about this?

obiltschnig commented 5 years ago

Hm, it should not be necessary to build macchina.io with sudo. So it could be a permissions issue. I'd recommend cleaning everything and rebuilding from scratch, without sudo. Also, verify that LD_LIBRARY_PATH is really set and exported correctly.

Miroslav1993 commented 5 years ago

Cleaning and rebuilding from scratch worked! Thank you for the assistance.