Closed VanessaE closed 2 years ago
I have no problem building it with the BuildLinux.sh script on ubuntu 20.04.
./BuildLinux.sh -dsi
Did you move the source without clearing the build directory or cache?
On Sat, Aug 21, 2021, 9:53 AM Vanessa Dannenberg @.***> wrote:
Not here. When I re-clone and try to use that script, it dies almost immediately, because other scripts it calls aren't where it expects:
@.:~/RepRap/Slic3r$ ./BuildLinux.sh FOUND_GTK2=ii libgtk2.0-dev:amd64 2.24.33-2 amd64 development files for the GTK library) [1/9] Updating submodules... ~/RepRap/Slic3r/resources/profiles ~/RepRap/Slic3r Submodule 'resources/profiles' (https://github.com/slic3r/slic3r-profiles.git) registered for path './' Submodule 'src/ArcWelderLib' (https://github.com/FormerLurker/ArcWelderLib.git) registered for path '../../src/ArcWelderLib' Cloning into '/home/vanessa/RepRap/Slic3r/resources/profiles'... Cloning into '/home/vanessa/RepRap/Slic3r/src/ArcWelderLib'... Submodule path './': checked out '118aa919c16837eb2ff6ba97e2934fa4144ef806' Submodule path '../../src/ArcWelderLib': checked out 'fe18f18b4c005a2c4e4b69a5866d0d065bde82aa' ~/RepRap/Slic3r [2/9] Changing date in version... done chmod: cannot access '/home/vanessa/RepRap/Slic3r/build/src/BuildLinuxImage.sh': No such file or directory [9/9] Generating Linux app... ~/RepRap/Slic3r/build ~/RepRap/Slic3r ./BuildLinux.sh: line 150: /home/vanessa/RepRap/Slic3r/build/src/BuildLinuxImage.sh: No such file or directory done @.:~/RepRap/Slic3r$ find ./ |grep -i build |grep -i image ./src/platform/osx/BuildMacOSImage.sh.in ./src/platform/unix/build_appimage.sh.in ./src/platform/unix/BuildLinuxImage.sh.in
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/slic3r/Slic3r/issues/5098#issuecomment-903128384, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAHYCSHOHHUKYZPW5IVKE3T564W7ANCNFSM5CRRFBAA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .
Ignore that last comment, I missed the -dsi
switch. When I run the command properly :stuck_out_tongue: it.... works!
./BuildLinux.sh -dsi
built Slic3r without a single complaint, and it seems to run just fine.
But..that raises the question, why does that work, but my usual build script shown below does not?
#!/bin/bash
# make sure Slic3r repo is on the `merill-merge` branch
#export CFLAGS="-DDEBUG_SERIAL"
cd /home/vanessa/RepRap/Slic3r
make clean
rm -rf build
mkdir build
cd build
cmake .. -DSLIC3R_BUILD_TESTS=OFF -DSLIC3R_GTK=3
make -j8
As an aside, that problem with the window auto-raising itself all the time seems to have sorted itself out. I assume that's because the official build script employs its own Wx-related options, which mine does not.
Oh and to answer your question, @lordofhyphens (even though it's not valid now), I did not move it. I literally deleted the project, re-cloned and built.
It's a personal policy of mine that if I do have to move a project, and it fails to compile after being moved, to just delete, clone to the new location, and build again. Saves me a lot of headaches. :stuck_out_tongue:
But..that raises the question, why does that work, but my usual build script shown below does not?
Imo: Your build script doesn't build the deps. So it has to find them in your computer, and if they are not found or they have an incompatible version, the build will fail.
Describe the bug
I had to reinstall my OS today (for reasons unrelated to 3d printing), and when it came time to compile Slic3r, it made it to about 70%, then failed. I tried googling for the error (below), but came up empty. Nothing I found made any sense to me.
To reiterate, this is happening on a freshly-installed system.
The failure is shown below:
This is using Wx 3.1.4 from Codelite's repository, since Debian still only supplies 3.0.x (they still have no plans to update, because 3.1.x is development/unstable). I installed 3.1.4 thusly:
Desktop:
merill-merge
branch, commit f88f22445 (using that branch since that's where SuperSlicer is, more or less)SuperSlicer (master branch) and PrusaSlicer (master branch) also fail to compile, with the same error as above, which makes sense since they all share a common codebase (more or less).
All three were deleted entirely and re-cloned from scratch before trying to build, just to make sure there weren't any "leftovers" from before my reinstall that might be mucking things up.
I suspect the problem is actually in Codelite's packages, but I can't be sure.
Also, although I only gave it a cursory look, the official SuperSlicer 2.3.56.8 Appimage runs fine (since there do not appear to be any Slic3r "merill-merge" Appimages available).