GithubHelp home page GithubHelp logo

Comments (5)

avilleret avatar avilleret commented on May 20, 2024 1

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.

abhiTronix avatar abhiTronix commented on May 20, 2024

@avilleret Can share the GCC 8.1.0 link that you tried from archlinux repo?

from raspberry-pi-cross-compilers.

avilleret avatar avilleret commented on May 20, 2024

it's in AUR repo : https://aur.archlinux.org/packages/arm-linux-gnueabihf-gcc/

from raspberry-pi-cross-compilers.

abhiTronix avatar abhiTronix commented on May 20, 2024

@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.

abhiTronix avatar abhiTronix commented on May 20, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.