GithubHelp home page GithubHelp logo

Comments (5)

pilfs avatar pilfs commented on June 30, 2024 1

Here's a simple sed if all you want to do is compile userland natively on the Pi:
sed -i 's/if (DEFINED CMAKE_TOOLCHAIN_FILE)/if (NOT DEFINED CMAKE_TOOLCHAIN_FILE)/g' makefiles/cmake/arm-linux.cmake

Now you can just build and ignore the toolchain stuff like so:
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
make install

from userland.

popcornmix avatar popcornmix commented on June 30, 2024

Never tried building it on the Pi, but should be trivial to create a .cmake configuration. Patches / Pull Requests welcome.

from userland.

 avatar commented on June 30, 2024

Ah! Not quite as straight forward as I first thought. You do need another .cmake config file, I copied the original one and changed the cmake compilers to the vanilla gcc and g++ ones. However this does not work, cmake document explains why here: (see: http://www.cmake.org/Wiki/CMake_Useful_Variables). So the next step is to copy the buildme script to build_on_pi and I added the settings of the cmake compiler vars onto the cmake command:

cmake -D CMAKE_C_COMPILER=gcc -D CMAKE_CXX_COMPILER=g++ -DCMAKE_TOOLCHAIN_FILE=..

I'm still coming up to speed with 'git' as I am an 'svn' user :) ... so not sure if I can send a patch yet. But this should be enough info for a wiki or similar to help others out.

from userland.

zanco avatar zanco commented on June 30, 2024

@pilfs
Thank you ! After hours of searching your solution was the easyiest to get the userland installed on my Pi.

from userland.

dmopalmer avatar dmopalmer commented on June 30, 2024

Pull request #81, now in the main branch, changes the buildme script so it compiles properly on the Pi.

from userland.

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.