Code: Select all
#include<iostream>
using namespace std;
int main()
{
cout << "Hello from an ARMHF architecture\n";
}
Code: Select all
arm-linux-gnueabihf-g++ test.cpp -o test
Code: Select all
sudo aptitude install qemu-user-static
/lib/ld-linux-armhf.so.3: No such file or directory
A search on my machine indicates the file is located here:
/usr/arm-linux-gnueabihf/lib/ld-linux-armhf.so.3
So... I created a symbolic link:
Code: Select all
sudo ln -s /usr/arm-linux-gnueabihf/lib/ld-linux-armhf.so.3 ld-linux-armhf.so.3
Code: Select all
./test: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
/usr/arm-linux-gnueabihf/lib/libstdc++.so.6
...but unlike the previous error, this one doesn't tell me WHERE it was looking that it couldn't find it. My question is... Is there a way to find out where it thinks this file should be?
Cheers