-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
arm cross-compile fail #549
Comments
Can you please explain why you closed this issue? I'm stuck here as well, if you have a solution please tell us. |
You just need a C++11 compiler. |
I call "cmake -DCMAKE_C_FLAGS="-O3 -mfpu=neon -fprofile-use -DENABLE_NEON" -DNEON=ON -DCMAKE_C_COMPILER=/usr/bin/arm-linux-gnueabi-gcc -DCMAKE_CXX_COMPILER=/usr/bin/arm-linux-gnueabi-g++ -DCMAKE_CXX_FLAGS="-std=c++11" --build --config Release ..". But I keep getting this error. |
I figured out I had to use arm-linux-gnueabihf-gcc and arm-linux-gnueabihf-g++ |
I try to build for armv7: Thanks and best regards |
Ok. Now I can build it successfully. and Any script / procedures to install on target ARM platform? Thanks and best regards |
@davisking @padmalcom @heweiSing Hello, I have successfully cross-compiled dlib for arm-architecture. However i am getting an error like:
My command line arguments are: I have installed libX11-dev and it is present in /usr/lib folder. I am wondering is it because my libX11 is not for arm. Please help me with this. Waiting of your replies. |
I have solved the above error by using libX11 for arm-architecture. However i am getting another error while trying to compile the reference example:
Please take a look at this. |
I'm having the same |
hello,
I tried to port dlib to our armv7 platform, but got a problem when compling, see below:
[ 8%] Building CXX object dlib/CMakeFiles/dlib.dir/linker/linker_kernel_1.cpp.o
In file included from /home/gangm/arm-linux/dlib/dlib/bsp/../sockets/../threads.h:22:0,
from /home/gangm/arm-linux/dlib/dlib/bsp/../sockets/sockets_kernel_2.h:33,
from /home/gangm/arm-linux/dlib/dlib/bsp/../sockets/posix.h:4,
from /home/gangm/arm-linux/dlib/dlib/bsp/../sockets.h:14,
from /home/gangm/arm-linux/dlib/dlib/bsp/bsp.h:7,
from /home/gangm/arm-linux/dlib/dlib/bsp/bsp.cpp:6:
/home/gangm/arm-linux/dlib/dlib/bsp/../sockets/../threads/thread_pool_extension.h:456:21: error: 'exception_ptr' in namespace 'std' does not name a type
seems our arm compiler don't support std::exception_ptr, does anyone got the same problem? which arm compiler support this c++11 fature? thanks~
the version of our arm compiler is:
arm-none-linux-gnueabi-g++ (Sourcery CodeBench Lite 2013.05-24) 4.7.3
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
i also tried 4.8.3, but no work yet...
The text was updated successfully, but these errors were encountered: