Announcement

Collapse
No announcement yet.

Is there anyone about that can help me compile a program?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Is there anyone about that can help me compile a program?

    A very vague question, I know. But I'm at my wits end and could really do with some help.

    The back story is this:
    I am running Kubuntu 24.04LTS (Info Center | About at the end) and I want to run a 3D Slicing Program (Bambu Studio).
    However, the two available packages (AppImage & Flatpak) are performing abysmally (taking over 60seconds to load).
    I don't think that it is the program or packaging problem because I do not see this behavior on a new 24.04 VM. Thus my suspicion is the configuration on my workstation.

    So in an attempt to debug the problem, the first step (after asking the authors for help!) is to simplify. So I would like to compile the application from the provided source code.
    But herein is my lack of knowledge showing up.

    Problem One.
    The Linux Compile Guide starts with this advice:

    Install Following tools before building:

    sudo apt-get install cmake clang git g++ build-essential libgl1-mesa-dev m4 libwayland-dev libxkbcommon-dev wayland-protocols extra-cmake-modules pkgconf libglu1-mesa-dev libcairo2-dev libgtk-3-dev libsoup2.4-dev libwebkit2gtk-4.0-dev libgstreamer1.0-dev libgstreamer-plugins-good1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-plugins-bad libosmesa6-dev nasm yasm libx264-dev

    gstreamer1.0-plugins-bad will provide the h264 decoder in gstreamer for liveview​


    ​Now as I understand it 24.04 uses libwebkit2gtk-4.1-dev and can't run alongside libwebkit2gtk-4.0-dev. How do I get past this point?

    Regards, Martin

    Operating System: Kubuntu 24.04
    KDE Plasma Version: 5.27.12
    KDE Frameworks Version: 5.115.0
    Qt Version: 5.15.13
    Kernel Version: 6.14.0-36-generic (64-bit)
    Graphics Platform: X11
    Processors: 32 × 13th Gen Intel® Core™ i9-13900
    Memory: 31.1 GiB of RAM
    Graphics Processor: Mesa Intel® Graphics
    Manufacturer: ASUS​

    #2
    Welcome to KFN.

    See https://forum.bambulab.com/t/bambu-s...-linux/78092/7 for a possible solution.
    Windows no longer obstruct my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      Thank you very much for the suggestion.
      However, unfortunately that doesn't hep.
      I think the AppImage and the Flatpak built for 24.04 ARE built with libwebkit2gtk-4.1-dev dependency.

      It is the source code and the instructions to compile that are still stuck at libwebkit2gtk-4.0-dev. ... and no one is fixing them!

      Regards, M.
      PS - New to this forum. Should I get an email when I get a reply to a post. I have had a hunt about but cant find a subscribe button.

      Comment


        #4
        When you have a minimum of three posts you will have access to your Profile and User Settings. In User Settings > NOTIFICATIONS turn Email Notifications On.
        Windows no longer obstruct my view.
        Using Kubuntu Linux since March 23, 2007.
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #5
          So, have you tried just using libwebkit2gtk-4.1-dev?

          The docs probably just weren't fully updated or missed this version bump in 24.04.

          There might be others in the list that also be similarly outdated, but most -dev packages if you notice here don't have overly specific version numbers.​

          Comment


            #6
            Also, if you read the install docs, you can use their build script in the downloaded sources for the current release/ It has a switch to install the deps. Which does pull in the libwebkit2gtk-4.1-dev package, as well as some others not mention in the list in the docs.

            The build command will build a binary as well las an appimage. if you don't want the appimage, just leave off the "i"

            https://github.com/bambulab/BambuStu...ntu-and-fedora

            Once you do this sort of thing, you will find that docs are not always up to date.


            Also, building from source will be a B**ch. There will be errors everywhere, and their github issues tracker will be unhelpful, as far as I can tell so far.
            Ubuntu 24.04 has a cmake version that is too old, or rather the script thinks it is too old (it isn't).

            I have given up on this one.


            .......until I remembered that I am running KDE neon, which just happens to upgrade cmake, and confuses the install script.
            Going to my Kubuntu 24.04 PC, the build script is working. It is building.

            If it complains about not enough ram, add an "r" to skip the ram check, my ~10 Gb free was not enough on my main PC.
            Last edited by claydoh; Nov 29, 2025, 08:17 PM.

            Comment


              #7
              Annnnnd it is still building, at step 327 of 609. But it is on an i5-7500T (35 -watt version) with 4 cores.

              But this does mean that using the build script to install; the dependencies and build this should work.

              Comment


                #8
                Hi,

                How's it going? Has it finished?

                Regards, M.

                Comment


                  #9
                  Ya, it took 45 mins I think on my Ryzen 5 5600GT.
                  It loads and runs fine. Of course, I don't have a printer, so I have nothing to compare it to.

                  You didn't try?

                  Comment


                    #10
                    Yes I have but I didn't want to overload you with questions. One at a time okay?

                    I use the two scripts: "./BuildLinux.sh -u" and "./BuildLinux.sh -dsi" and piped the output to files. I think "-u" has worked but "-dsi" has not?
                    Could you have a look and maybe offer a suggestion or two? I'm afraid it all "noise" to me!

                    Attached Files

                    Comment


                      #11
                      I have zero clue what happened there.

                      One thing I did not ask, is what version did you download? The latest code pulled from git, or the current official release?

                      It looks like I didn't think, and pulled the latest git, then ran the two scripts on my 24.04 system, which didn't have any of the deps previously installed.

                      So: install git if you don't have it --or just download the zip.
                      Click image for larger version

Name:	Screenshot_20251201_193606.png
Views:	29
Size:	88.6 KB
ID:	689520

                      So go to wherever you want to download this to -- it does not matter at all.
                      Hit f4 in Dolphin

                      Code:
                      git clone https://github.com/bambulab/BambuStudio.git
                      Then go inside the folder you get, and run the commands. The first is probably unnecessary, but won't hurt.


                      Another thing to try with your current download is to either nuke the
                      BambuStudio/deps​/build directory you created, or (my preference here) nuke the whole thing, re-extract the files from the zip or tar file, and start with a completely clean slate.

                      My am not near my 24.04 box atm, and I don't have ssh or anything else set up there to access it remotely, so I can't see what happens using the official release.

                      Comment

                      Users Viewing This Topic

                      Collapse

                      There are 0 users viewing this topic.

                      Working...
                      X