I'm trying build based on the source for Linux-Ubuntu|Arm64 (Jetson-nano). Is it close to glnxa64? or change the Makefile to produce the binary for ARM64 (Linux)?

Asked by jinming.ge

The aarch64 is not listed as a 'supported' arch in the Makefile;

I'm using Jetson-nano with Ubuntu|ARM64.

If try make ARCH=glnxa64 (closest to aarch64), the make process stop and complaining unrecongnized "-m64"

Any instructions I can follow to build the Ubuntu|ARM64 (aarch64) binary from the source code?

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu vlfeat Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#3

Please provide more details, e.g. at least the output of

uname -a
lsb_release -crid
dpkg --print-architecture

and the context (a handfull of lines before and after) of this 'unrecongnized "-m64"' message to identify where it comes from.

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

It seems that you haven't applied the patches required for Ubuntu (in vlfeat_(version).debian.tar.xz)

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#7

See my previous comment:
You have to apply all patches in https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/vlfeat/0.9.20+dfsg0-2/vlfeat_0.9.20+dfsg0-2.debian.tar.xz (or whatever the correct file is that fits to your source).

From where did you get the source?

If you want to build the same version as in Ubuntu, you can use the command
apt source vlfeat

Revision history for this message
Manfred Hampl (m-hampl) said :
#9

The source that you are using is not the original one, but the one for Debian.
The original source is there: http://www.vlfeat.org/download/vlfeat-0.9.21-bin.tar.gz

What exactly is your target?

If you want to have vlfeat version 0.9.21 on Ubuntu 18.04 arm64, then you should try downloading and manually installing the version for Ubuntu 19.04. I do not see any unmatched dependency.

something like
wget https://launchpad.net/ubuntu/+archive/primary/+files/libvlfeat1_0.9.21+dfsg0-3build1_arm64.deb
wget https://launchpad.net/ubuntu/+archive/primary/+files/libvlfeat-dev_0.9.21+dfsg0-3build1_arm64.deb
sudo dpkg --install libvlfeat*.deb

Revision history for this message
jinming.ge (jinming-ge) said :
#10

Hi Manfred,

I have applied the patch:
 https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/vlfeat/0.9.20+dfsg0-2/vlfeat_0.9.20+dfsg0-2.debian.tar.xz

and itpass the build on both my X64 (inntel) Linux box and the Arm 64 (Jetson-nano Linux).

Butsome behavior differs:
in X64: run ./test_host, it print out teh info corretly;
on Arm64: run ./tst_host, it printout:
          free(): invalid pointer
Aborted (core dumped)

Revision history for this message
jinming.ge (jinming-ge) said :
#11

Thanks Manfred Hampl, that solved my question.