New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libgmp-10.dll and libmpfr-4.dll missing when compiling PrusaSlicer #3743
Comments
Hi @martijnschouten ! Did you try to do a cmake configure and build from scratch by deleting cmake cache? |
I am not sure that I understand what you are asking. My logbook of that day says I did the following (which is pretty much what is in the noob guide in the installation instructions). mkdir build cd build cmake .. -G "Visual Studio 16 2019" -DDESTDIR="c:\PrusaSlicer\PrusaSlicer-master" msbuild /m ALL_BUILD.vcxproj cd c:\PrusaSlicer\PrusaSlicer-master\ mkdir build cd build cmake .. -G "Visual Studio 16 2019" -DCMAKE_PREFIX_PATH="c:\PrusaSlicer\PrusaSlicer-master\usr\local" install visual c++ for developers by running the visual studio installer again (was configured for c#) Open->Project/Solution or File->Open->Project/Solution click on c:\PrusaSlicer\PrusaSlicer-master\build\PrusaSlicer.sln copy libgmp-10.dll and libmpfr-4.dll from a standard build zip build by clicking on the debug button in visual studio |
Do you have |
I have the identical issue and have also tried with |
I seem to have the same issue. The program fails to start with "PrusaSlicer.dll was not loaded" after building it. |
Same issue here - followed each step - also tried the static option. Can anyone here give some advise ? |
We took them from the Windows CGAL installer. Just copy the files manually from our PrusaSlicer binary distro. st 14. 10. 2020 v 23:48 odesílatel Richie76 <notifications@github.com> napsal:
…
Same issue here - followed each step - also tried the static option. Can anyone here give some advise ? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#3743 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABMPSI2NS3CMXDQUX7PHF5TSKYMDZANCNFSM4K66DAMA> .
|
I managed it to get it running without copying the dll. I followed the noob instructions. after loading the SLN-file into visual studio 19 i changed the "version" from Debug to Release and used Build > Build solution and let this run. Then i went to the folder "D:\PrusaSlicer\PrusaSlicer-master\build\src\Release" (drive letter and folders might be different) ... and there are many files including the dll´s and the prusaslicer.exe which i started and used. Hope this works for you as well. |
To get me startet on different machines, I wrote this small batch (basically the "noob instructions") file (assumed you're using VS2019 x64): Make sure you start this batch in @echo off ECHO I'm going to CLONE the PrusaSlicer repository - ready? ECHO Best, if you're curently in c:\dev (or similar short path) ECHO Also make sure you got at least 15 GB of free disk space available ECHO. ECHO Press CTRL+BREAK if you want to cancel. PAUSE ECHO Are you sure??? Shall I continue? PAUSE git clone https://github.com/prusa3d/PrusaSlicer.git --recursive cd PrusaSlicer SET "thisPATH=%CD%" echo Building in %thisPATH% cd deps mkdir build cd build cmake .. -G "Visual Studio 16 2019" -DDESTDIR="%thisPATH%" REM This will take a loooong time! Go get some coffee... msbuild /m ALL_BUILD.vcxproj cd "%thisPATH%" mkdir build cd build cmake .. -G "Visual Studio 16 2019" -DCMAKE_PREFIX_PATH="%thisPATH%\usr\local" -Wno-dev -Wno-error=deprecated msbuild -ds -nologo PrusaSlicer.sln -t:rebuild -m -p:Configuration=Release -verbosity:normal Now you could add this as well: Use at your onw risk ;-) |
Fixing up Visual Studio 2019 build steps as they were missing a few steps that caused issues during building. Ref: prusa3d#3743. Also moved the current step-by-step instructions to the top of the page and left the older/outdated instructions for reference purposes at the bottom as they still contain some useful details.
I created a PR that should address this issue (added Build->Rebuild Solution among many other things). |
Merged, closing. Thanks for your contribution. |
Version
Using master branch at 21:31 at 29-02-2020 (version 2.2.0 RC)
Operating system type + version
I'm running and up to date version of windows 10 pro.
Behavior
I have compiled the dependencies and run cmake for building PrusaSlicer, as described here:
However I did get a "PrusaSlicer.dll was not loaded" error, similar to the issue 2584. After inspection with Dependecy Walker a lot of files are missing. The usual suspects such as API-MS-xxx.dll, EXT-MS-xxx.dll, EMCLIENT.dll, hvsifiletrust.dll and IEShims.dll. But also libgmp-10.dll and libmpfr-4.dll. I had to copy these last two files from the 2.2.0-RC relase zip and place them next to my build/src/debug folder for the PrusaSlicer debug configuration to to run.
The text was updated successfully, but these errors were encountered: