Hi:
I followed “NVIDIA_Tegra_Linux_MultiMediaAPIReference” step by step,just want to cross compile
tegra_multimedia_api’s samples on host PC(X86,ubuntu16.04).but I get an error:
ml@ml:~/work/tegra_multimedia_api$ make all
Make in samples/00_video_decode
make[1]: Entering directory ‘/home/ml/work/tegra_multimedia_api/samples/00_video_decode’
Linking: video_decode
/opt/toolchain/bin/…/lib/gcc/aarch64-unknown-linux-gnu/4.8.5/…/…/…/…/aarch64-unknown-linux-gnu/bin/ld: cannot find /home/ml/jetson/usr/lib/crt1.o: Permission denied
/opt/toolchain/bin/…/lib/gcc/aarch64-unknown-linux-gnu/4.8.5/…/…/…/…/aarch64-unknown-linux-gnu/bin/ld: cannot find /home/ml/jetson/usr/lib/crti.o: Permission denied
/opt/toolchain/bin/…/lib/gcc/aarch64-unknown-linux-gnu/4.8.5/…/…/…/…/aarch64-unknown-linux-gnu/bin/ld: cannot find /lib/aarch64-linux-gnu/libpthread.so.0 inside /home/ml/jetson
collect2: error: ld returned 1 exit status
Makefile:52: recipe for target ‘video_decode’ failed
make[1]: *** [video_decode] Error 1
make[1]: Leaving directory ‘/home/ml/work/tegra_multimedia_api/samples/00_video_decode’
Makefile:53: recipe for target ‘all’ failed
make: *** [all] Error 1
It seems something wrong with crt1.o’s privilege.and it comfused me some days.
After followed “Build and Running”,now I can compile multimedia_api’samples on tx2 board,but why can’t
cross compile it.
when I read samba’s config file in “Cross-Compile Support”,I found a bug:It should be
“valid users”,not “valid user”. (this bug can be test use “testparm -v”)
the end of /etc/samba/smb.conf on target board is:
[root]
comment = Rootfs for Tegra
path = /
browseable = yes
read only = yes
valid users = root
the end of ~/.bashrc on host PC(X86) is:
export PATH=/opt/toolchain/bin:$PATH
export ARCH=arm64
export CROSS_COMPILE=aarch64-unknown-linux-gnu-
export TEGRA_KERNEL_OUT=/home/ml/kernel-out/kernel
export TARGET_ROOTFS=$HOME/jetson
after “sudo mount -t cifs -o “username=root,password=nvidia” //192.168.0.115/root $HOME/jetson”.
ml@ml:~/jetson/usr/lib$ cat /home/ml/jetson/usr/lib/crt1.o
cat: /home/ml/jetson/usr/lib/crt1.o: Permission denied
ml@ml:~/jetson/usr/lib$ ls -al /home/ml/jetson/usr/lib/crt*
-rwxr-xr-x 1 root root 1672 Jun 17 2017 /home/ml/jetson/usr/lib/crt1.o
-rwxr-xr-x 1 root root 1440 Jun 17 2017 /home/ml/jetson/usr/lib/crti.o
-rwxr-xr-x 1 root root 1016 Jun 17 2017 /home/ml/jetson/usr/lib/crtn.o
Do any one had solve this problem?