Jump to content

How to install Cura on Raspberry Pi ?


aurock

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

      • S-Line Firmware 8.3.0 was released Nov. 20th on the "Latest" firmware branch.
        (Sorry, was out of office when this released)

        This update is for...
        All UltiMaker S series  
        New features
         
        Temperature status. During print preparation, the temperatures of the print cores and build plate will be shown on the display. This gives a better indication of the progress and remaining wait time. Save log files in paused state. It is now possible to save the printer's log files to USB if the currently active print job is paused. Previously, the Dump logs to USB option was only enabled if the printer was in idle state. Confirm print removal via Digital Factory. If the printer is connected to the Digital Factory, it is now possible to confirm the removal of a previous print job via the Digital Factory interface. This is useful in situations where the build plate is clear, but the operator forgot to select Confirm removal on the printer’s display. Visit this page for more information about this feature.
          • Like
        • 0 replies
      • Ultimaker Cura 5.6 stable released
        Cura now supports Method series printers!
         
        A year after the merger of Ultimaker and MakerBotQQ, we have unlocked the ability for users of our Method series printers to slice files using UltiMaker Cura. As of this release, users can find profiles for our Method and Method XL printers, as well as material profiles for ABS-R, ABS-CF, and RapidRinse. Meaning it’s now possible to use either Cura or the existing cloud-slicing software CloudPrint when printing with these printers or materials
        • 6 replies
    ×
    ×
    • Create New...