Skip to content
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

Why does the compilation fail when I follow the documentation How to build - Windows.md#Noob guide (step by step)? Is there another configuration? #5096

Closed
sorrowfeng opened this issue Nov 6, 2020 · 23 comments

Comments

@sorrowfeng
Copy link

No description provided.

@foreachthing
Copy link

Try this: #5039 (comment)

@sorrowfeng
Copy link
Author

Try this: #5039 (comment)

Why does slic3r\Release\libslic3r_gui.lib not compile, and the folder is empty?

@foreachthing
Copy link

Please provide your build log, as far as it goes.

@sorrowfeng
Copy link
Author

Please provide your build log, as far as it goes.

Here's the build of the PrusaSlicer.

msbuild -ds -nologo PrusaSlicer.sln -t:rebuild -m -p:Configuration=Release -verbosity:normal

log of prusaslicer

Here's the build of the deps.

msbuild /m ALL_BUILD.vcxproj

log of deps

@foreachthing
Copy link

Ok .. so, if I compare your log (left) to mine (right), I can see one clear difference:
image

"C:\dev\PrusaSlicer\PrusaSlicer\build\PrusaSlicer.sln" -> you
"C:\dev\PrusaSlicer\build\PrusaSlicer.sln" -> me

You're building in one directory too deep. My guess is, that my script then fails because it assumes C:\dev\PrusaSlicer\build\. Try to fix that and post your results again.

@sorrowfeng
Copy link
Author

Ok .. so, if I compare your log (left) to mine (right), I can see one clear difference:
image

"C:\dev\PrusaSlicer\PrusaSlicer\build\PrusaSlicer.sln" -> you
"C:\dev\PrusaSlicer\build\PrusaSlicer.sln" -> me

You're building in one directory too deep. My guess is, that my script then fails because it assumes C:\dev\PrusaSlicer\build\. Try to fix that and post your results again.

I recompiled it, and in C:\dev\PrusaSlicer, here is the log output for the PrusaSlicer compilation.

log output

Can you provide me with a configuration file for visual studio installer? I'll see if there is a problem with my installation, thanks.

@sorrowfeng
Copy link
Author

Ok .. so, if I compare your log (left) to mine (right), I can see one clear difference:
image

"C:\dev\PrusaSlicer\PrusaSlicer\build\PrusaSlicer.sln" -> you
"C:\dev\PrusaSlicer\build\PrusaSlicer.sln" -> me

You're building in one directory too deep. My guess is, that my script then fails because it assumes C:\dev\PrusaSlicer\build\. Try to fix that and post your results again.

Can you use google drive to provide me with a compiled archive, bro?

@foreachthing
Copy link

foreachthing commented Nov 10, 2020

Can you use google drive to provide me with a compiled archive, bro?

Commit #70b19d2
https://gofile.io/d/eDPV79
File expires on: Mon Nov 16 2020 00:00:00 GMT+0100

@sorrowfeng
Copy link
Author

Can you use google drive to provide me with a compiled archive, bro?

Commit #70b19d2
https://gofile.io/d/eDPV79
File expires on: Mon Nov 16 2020 00:00:00 GMT+0100

I've finished the file, but it's not what I wanted.
I want that big file that's 10+ GB after compilation.

Can you give me your log output file, I'd like to compare it myself.
Here is the full log output file after my bat file is executed.
log output

@foreachthing
Copy link

Here's my build log. I hope this helps!
PS-Build-Log.log

@lukasmatena
Copy link
Collaborator

Guys, I will close this. As far as I can tell, this is not an issue with PrusaSlicer and probably not even with its cmake build scripts.
You can of course discuss all you want, but the issue should be closed, so it does not clutter the list of open ones. I hope that's fine.

@sorrowfeng
Copy link
Author

sorrowfeng commented Nov 11, 2020

Here's my build log. I hope this helps!
PS-Build-Log.log

Do you have a log of the compiled deps and cmake?

@foreachthing
Copy link

No, not anymore.
I would have to recompile the while pile from scratch... when I get to do it, I'll let you know.

@sorrowfeng
Copy link
Author

No, not anymore.
I would have to recompile the while pile from scratch... when I get to do it, I'll let you know.

Thank you so much.

@foreachthing
Copy link

I'm rebuilding right now... meanwhile: did you run that batch in cmd or "Developer PowerShell"?

@foreachthing
Copy link

Here's the full log! It's about 15 MB in size ... 😮
fulllog.zip

@sorrowfeng
Copy link
Author

I'm rebuilding right now... meanwhile: did you run that batch in cmd or "Developer PowerShell"?

I used Developer PowerShell.

@sorrowfeng
Copy link
Author

Here's the full log! It's about 15 MB in size ... 😮
fulllog.zip

I've reinstalled the system and compiled it in a clean environment, but it still fails in the project libslic3r_gui, can you give me some advice?

image

image

@foreachthing
Copy link

Well, to honest, I have no clue why this would not compile!
Then again, I don't use VS directly. I compile from command line (should not matter, I guess).

Have you tried a clean new computer? I use virtual computers (VirtualBox) for all my dev work, that way I could reset a machine without loosing all my data (which is in a directory mapped to the virtual computer).
There is something odd on your computer...

@sorrowfeng
Copy link
Author

好吧,说实话,我不知道为什么不编译!
再说一次,我不直接使用VS。我从命令行编译(我想应该没关系)。

您尝试过一台干净的新计算机吗?我在所有开发工作中都使用虚拟计算机(VirtualBox),这样我就可以重置计算机而不会丢失所有数据(位于映射到虚拟计算机的目录中)。
您的计算机上有些奇怪的东西...

I reinstalled my laptop and tried installing only VS2019 and git, but still get the same error.

I also use command line compilation, and use VS just to help me locate the error location.

Did I miss some components when I installed VS, can you share with me the components you installed?

@foreachthing
Copy link

I have the Pro version ... I don't know how much help this would be. And, I don't thing you need everything I have.

image

Have you tried to set your OS language to English (if not already)?

@sorrowfeng
Copy link
Author

I reinstalled an English version of windows and it solved the problem, is it the coding?
Thank you very much for your help.

@foreachthing
Copy link

.. it solved the problem, is it the coding?

Must be it!! Glad you got it working!
:-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants