Comments (5)
it is indeed possible to use your Crosscompiler build with CMake (and I thanks you a lot for sharing)
I have to disable the CMake's implicit directory feature by injecting the following lines into my toolchain file
unset(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES)
unset(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES)
I was unsure if its a bug (or a feature) of CMake or if it's a lake of configuration on your side.
Now I'm fixed :-)
Thanks for the quick reply, thanks for the explanation, and thanks again for all this wonderful work.
from raspberry-pi-cross-compilers.
@avilleret Can share the GCC 8.1.0
link that you tried from archlinux repo?
from raspberry-pi-cross-compilers.
it's in AUR repo : https://aur.archlinux.org/packages/arm-linux-gnueabihf-gcc/
from raspberry-pi-cross-compilers.
@avilleret I thought you're using custom Cross-Compiler similar this repo. ,
The main reason behind this bug/error is that the Official Cross Compiler install files directly to the default system root directory, i.e /usr/
or /usr/local/
and Cmake is made explicitly to work with these paths/configurations only and not with custom paths/configurations, to prevent any broken binding. Therefore any custom Cross-Compiler(like provided here) fails to work in this scenario as its default installation path is /opt/
normally, not the root directory.
So, unfortunately, if you want to use GCC 8.2.0 Cross-Compiler with Cmake on your system, you yourself have compiled & installed it from source to the root directory of your machine.
from raspberry-pi-cross-compilers.
@avilleret They're working on a fix here(in progress): https://gitlab.kitware.com/cmake/cmake/merge_requests/2716
from raspberry-pi-cross-compilers.
Related Issues (20)
- Broken adress_sanitizer in gcc10.3 (+durty patch) HOT 1
- rm *.tar.* makes the builder to stop HOT 1
- rsync: [sender] link_stat "/opt/vc" failed: No such file or directory in Raspberry Pi HOT 1
- cannot find crt1.o: No such file or directory HOT 12
- cmake can't find RT library HOT 4
- Pi Zero 2 W HOT 1
- Multiple cross-compilers HOT 1
- crt1.o: No such file or directory. HOT 1
- problem configure QT build HOT 1
- Qt Creator Configuration
- Raspberry Pi 4 B - Configuration and Build Issue HOT 2
- Raspberry Pi GCC Cross-Compiler Toolchains (Bookworm) HOT 4
- Bookworm (Debian 12) Compatibity HOT 1
- Sysroot of this toolchain is incompatible to sysroot in official Raspbian images HOT 1
- qmake built for x86 HOT 12
- Why cross-compilers are needed? HOT 1
- RTBuilder_32b -g 10.2.0 -r 0-1 -o bullseye HOT 1
- Deploy compiled code HOT 1
- Cross compile error with Raspberry Pi OS Lite Bullseye HOT 2
- Cross compile error with Raspberry Pi4 OS Bullseye HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raspberry-pi-cross-compilers.