Jump to content
Ultimaker Community of 3D Printing Experts

How to install Cura on Raspberry Pi ?


Recommended Posts

Posted · How to install Cura on Raspberry Pi ?

I have Octoprint running on a Raspberry Pi to control my printer. I'd like to enable the Cura integration features to be able to slice via the octoprint interface, but I haven't found any instructions for installing Cura on a Pi. I see debian packages for i386 and amd64 on the download page, but no mention of an ARM version.

What do I need to do to install cura under raspbian?

 

  • Link to post
    Share on other sites
    Posted · How to install Cura on Raspberry Pi ?

    I think you need to compile it your self.

    Look here for instructions

    https://github.com/daid/Cura#debian-and-ubuntu-linux

    One problem I see is that it's for i386 or amd64, a raspberry pi is ARMv6, so I think you need to edit package.sh and add ARMv6 support.

    I the top add this to the list of build targets


    #BUILD_TARGET=debian_armv6

    And then after this add a new build target


    #############################
    # Debian 64bit .deb
    #############################
    if [ "$BUILD_TARGET" = "debian_amd64" ]; then
    export CXX="g++ -m64"
    A LOT CODE REMOVED HERE FOR BETTER VIEW
    #############################
    # Rest
    #############################

    Add the new build target before ^^^ #REST

    with this code:


    #############################
    # Debian armv6 .deb
    #############################
    if [ "$BUILD_TARGET" = "debian_armv6" ]; then
    export CXX="g++ -march=armv6 -mfpu=vfp -mfloat-abi=hard"
    if [ ! -d "Power" ]; then
    git clone https://github.com/GreatFruitOmsk/Power
    else
    cd Power
    git pull
    cd ..
    fi
    rm -rf CuraEngine
    git clone ${CURA_ENGINE_REPO}
    if [ $? != 0 ]; then echo "Failed to clone CuraEngine"; exit 1; fi
    make -C CuraEngine
    if [ $? != 0 ]; then echo "Failed to build CuraEngine"; exit 1; fi
    rm -rf scripts/linux/${BUILD_TARGET}/usr/share/cura
    mkdir -p scripts/linux/${BUILD_TARGET}/usr/share/cura
    cp -a Cura scripts/linux/${BUILD_TARGET}/usr/share/cura/
    cp -a resources scripts/linux/${BUILD_TARGET}/usr/share/cura/
    cp -a plugins scripts/linux/${BUILD_TARGET}/usr/share/cura/
    cp -a CuraEngine/CuraEngine scripts/linux/${BUILD_TARGET}/usr/share/cura/
    cp scripts/linux/cura.py scripts/linux/${BUILD_TARGET}/usr/share/cura/
    cp -a Power/power scripts/linux/${BUILD_TARGET}/usr/share/cura/
    echo $BUILD_NAME > scripts/linux/${BUILD_TARGET}/usr/share/cura/Cura/version
    sudo chown root:root scripts/linux/${BUILD_TARGET} -R
    sudo chmod 755 scripts/linux/${BUILD_TARGET}/usr -R
    sudo chmod 755 scripts/linux/${BUILD_TARGET}/DEBIAN -R
    cd scripts/linux
    dpkg-deb --build ${BUILD_TARGET} $(dirname ${TARGET_DIR})/cura_${BUILD_NAME}-${BUILD_TARGET}.deb
    sudo chown `id -un`:`id -gn` ${BUILD_TARGET} -R
    exit
    fi

    Now build the package and hope for the best with


    sudo ./package.sh debian_armv6
    sudo dpkg -i ./scripts/linux/cura*.deb

    Jesper

     

  • Link to post
    Share on other sites
    Posted · How to install Cura on Raspberry Pi ?

    Create a buildscript by yourself. We're to swamped in work to create a buildscript for the rasp-pi. If you do create such a script, we would be more than happy to add it to Cura.

     

  • Link to post
    Share on other sites
    Posted · How to install Cura on Raspberry Pi ?

    @Kenzu Thanks for the detailed suggestion. I looked at that yesterday, but I don't know anything about the different requirements to build a package for arm vs x86. Fortunately, based on Daid's post, it looks like I probably don't need to go through that, and can just go with Cura Engine instead.

    @nallath I appreciate the reply, but I am certainly not the person you would want to write a build script, I haven't the understanding or skill set to do it right. I came here asking for help simply because I have seen many people mention using Cura on a pi (with or without octoprint), but didn't see any documentation for how to do so. I was hoping that I was either overlooking the documentation I needed, or that an experienced user who uses Cura on Pi would be able to point me in the right direction. I didn't expect you to drop everything to add support for another platform, of course.

    @Daid That is good to know. I've seen mention of cura engine a couple of places in relation to octoprint, but it appeared as an option - i.e. ". . . with Cura or Cura Engine" - so I hadn't looked into it any further. Hopefully knowing the correct software to use will enable me to figure things out.

    Thanks everyone for the responses, it's always good to get a reply, even if it's just something that might point someone in the right direction.

     

  • Link to post
    Share on other sites
    Posted · How to install Cura on Raspberry Pi ?

    While the Raspberry Pi lacks the processing power of your typical pc, its hardware-accelerated OpenGL does appear to be sufficient-enough to run a plausibly adequate implementation of Cura.

    The sticking-point is that GUI part of its Linux-Debian distribution doesn't like OpenGL (without Wayland; which is another topic altogether), making any windowed OpenGL application is nearly impossible to implement in its current state.

    One possible work-around, would be if Cura could be written to render to an dynamic HTML-5 panel, and displayed through an html-5 compatible browser (in beta last I checked).

     

  • Link to post
    Share on other sites
    Posted · How to install Cura on Raspberry Pi ?

    Or you only run the slicing on the rasp-pi. There is no real reason to also run the GUI on the rasp - pi right?

     

  • Link to post
    Share on other sites
    Posted · How to install Cura on Raspberry Pi ?

    Did you manage to get this to work in the end?

     

  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    • Our picks

      • Startups, apply for the Forward AM Innovation Award!
        Are you a startup using 3D printing? Perhaps you should continue reading... 
         
        Together with BASF we are launching the Forward AM Innovation Award - the very first global contest for startups developing new applications with 3D printing!
         
        Why apply?
        The winning startup will receive €100,000 in goods and services*, along with coaching and marketing exposure from top-notch leaders in the industry.
         

         
        Who can apply?
        Your startup creates products using Additive Manufacturing, is less than 5 years old, and has less than 50 employees. We are looking for 3D printing applications with a strong focus on innovation, sustainability and scalability.
         
        Dental aligners, shoes, tools, automotive parts, music instruments, industrial tooling and molding, medical implants, sports equipment, toys, architecture, fashion, construction... all are welcome to join!
         
        Do you have an innovative, sustainable and scalable idea that leverages the unique possibilities of 3D printing? Then it is time to apply!
        More information can be found here.
         
        Applications close on March 28th, 2021
        * What does "in goods and services" mean?
        The winner will be able to pick any item from the overall product and service portfolio of the sponsors, e.g. printers, materials, consulting, software... Choose whatever you need to accelerate your startup.
         
          • Like
        • 0 replies
      • New here? Register your Ultimaker for free 3D printer onboarding course
        Hi,
         
        Often getting started is the most difficult part of any process. A good start sets you up for success and saves you time and energy that could be spent elsewhere. That is why we have a onboarding course ready for
        Ultimaker S5 Pro Bundle, Ultimaker S5, Ultimaker S3 Ultimaker 2+ Connect.   
        They're ready for you on the Ultimaker Academy platform. All you need to do to gain access is to register your product to gain free access. 
        Ready? Register your product here in just 60 seconds.
          • Like
        • 0 replies
    ×
    ×
    • Create New...