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

errors related to libslic3r_gui #5279

Closed
ogiwolf opened this issue Nov 26, 2020 · 16 comments
Closed

errors related to libslic3r_gui #5279

ogiwolf opened this issue Nov 26, 2020 · 16 comments

Comments

@ogiwolf
Copy link

ogiwolf commented Nov 26, 2020

Version

master

Operating system type

Windows 10

Behavior

I follow the step from "Noob guide (step by step)"
if works totally fine until i press the Start Without debugging button
it have 1357 errors, and it all related to the file "libslic3r_gui"

I have no idea how to fix this problem.
Is that i miss installing something?

@ogiwolf
Copy link
Author

ogiwolf commented Nov 26, 2020

See here for hints:

Thanks for replying
I have tried the batch filed u supply in #5039
while i am running the first batch file, it run out lots of error related to the libslic3r_gui

such as :

"C:\Users\James\Desktop\PSlicer\PrusaSlicer\build\PrusaSlicer.sln" (rebuild 目標) (1) ->
"C:\Users\James\Desktop\PSlicer\PrusaSlicer\build\ALL_BUILD.vcxproj.metaproj" (Rebuild 目標) (4) ->
"C:\Users\James\Desktop\PSlicer\PrusaSlicer\build\src\slic3r\libslic3r_gui.vcxproj.metaproj" (Rebuild 目標) (25) -
>
"C:\Users\James\Desktop\PSlicer\PrusaSlicer\build\src\slic3r\libslic3r_gui.vcxproj" (Rebuild 目標) (71) ->
(ClCompile 目標) ->
C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\GUI_App.hpp(90,22): error C2001: 常數中包含新行字元 (正在編譯原始程式
檔 C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\AboutDialog.cpp) [C:\Users\James\Desktop\PSlicer\Pru
saSlicer\build\src\slic3r\libslic3r_gui.vcxproj]
C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\GUI_App.hpp(98,7): error C2062: 未預期的類型 'Slic3r::GUI:
:GUI_App' (正在編譯原始程式檔 C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\AboutDialog.cpp) [C:\Users\James
Desktop\PSlicer\PrusaSlicer\build\src\slic3r\libslic3r_gui.vcxproj]
C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\GUI_App.hpp(90,22): error C2001: 常數中包含新行字元 (正在編譯原始程式
檔 C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\ConfigSnapshotDialog.cpp) [C:\Users\James\Desktop\PS
licer\PrusaSlicer\build\src\slic3r\libslic3r_gui.vcxproj]
C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\GUI_App.hpp(99,1): error C2143: 語法錯誤: 遺漏 ';' (在 '{'
之前) (正在編譯原始程式檔 C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\AboutDialog.cpp) [C:\Users\James\Deskto
p\PSlicer\PrusaSlicer\build\src\slic3r\libslic3r_gui.vcxproj]
C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\GUI_App.hpp(90,22): error C2001: 常數中包含新行字元 (正在編譯原始程式
檔 C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\KBShortcutsDialog.cpp) [C:\Users\James\Desktop\PSlic
er\PrusaSlicer\build\src\slic3r\libslic3r_gui.vcxproj]
C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\GUI_App.hpp(98,7): error C2062: 未預期的類型 'Slic3r::GUI:
:GUI_App' (正在編譯原始程式檔 C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\ConfigSnapshotDialog.cpp) [C:\Use
rs\James\Desktop\PSlicer\PrusaSlicer\build\src\slic3r\libslic3r_gui.vcxproj]
C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\GUI_App.hpp(99,1): error C2143: 語法錯誤: 遺漏 ')' (在 ';'
之前) (正在編譯原始程式檔 C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\AboutDialog.cpp) [C:\Users\James\Deskto
p\PSlicer\PrusaSlicer\build\src\slic3r\libslic3r_gui.vcxproj]
C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\GUI_App.hpp(98,7): error C2062: 未預期的類型 'Slic3r::GUI:
:GUI_App' (正在編譯原始程式檔 C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\KBShortcutsDialog.cpp) [C:\Users
James\Desktop\PSlicer\PrusaSlicer\build\src\slic3r\libslic3r_gui.vcxproj]
C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\GUI_App.hpp(99,1): error C2143: 語法錯誤: 遺漏 ';' (在 '{'
之前) (正在編譯原始程式檔 C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\ConfigSnapshotDialog.cpp) [C:\Users\Jam
es\Desktop\PSlicer\PrusaSlicer\build\src\slic3r\libslic3r_gui.vcxproj]
C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\GUI_App.hpp(99,1): error C2447: '{': 遺漏函式標頭 (舊樣式型式清單
?) (正在編譯原始程式檔 C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\AboutDialog.cpp) [C:\Users\James\Desktop
\PSlicer\PrusaSlicer\build\src\slic3r\libslic3r_gui.vcxproj]
C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\GUI_App.hpp(99,1): error C2143: 語法錯誤: 遺漏 ';' (在 '{'
之前) (正在編譯原始程式檔 C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\KBShortcutsDialog.cpp) [C:\Users\James
Desktop\PSlicer\PrusaSlicer\build\src\slic3r\libslic3r_gui.vcxproj]
C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\GUI_App.hpp(90,22): error C2001: 常數中包含新行字元 (正在編譯原始程式
檔 C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\3DScene.cpp) [C:\Users\James\Desktop\PSlicer\PrusaSl
icer\build\src\slic3r\libslic3r_gui.vcxproj]
C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\GUI_App.hpp(99,1): error C2143: 語法錯誤: 遺漏 ')' (在 ';'
之前) (正在編譯原始程式檔 C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\ConfigSnapshotDialog.cpp) [C:\Users\Jam
es\Desktop\PSlicer\PrusaSlicer\build\src\slic3r\libslic3r_gui.vcxproj]
C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\GUI_App.hpp(304,1): error C2143: 語法錯誤: 遺漏 ';' (在 '&'
之前) (正在編譯原始程式檔 C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\AboutDialog.cpp) [C:\Users\James\Deskt
op\PSlicer\PrusaSlicer\build\src\slic3r\libslic3r_gui.vcxproj]
C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\GUI_App.hpp(90,22): error C2001: 常數中包含新行字元 (正在編譯原始程式
檔 C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\GLShadersManager.cpp) [C:\Users\James\Desktop\PSlice
r\PrusaSlicer\build\src\slic3r\libslic3r_gui.vcxproj]
C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\GUI_App.hpp(99,1): error C2143: 語法錯誤: 遺漏 ')' (在 ';'
之前) (正在編譯原始程式檔 C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\KBShortcutsDialog.cpp) [C:\Users\James
Desktop\PSlicer\PrusaSlicer\build\src\slic3r\libslic3r_gui.vcxproj]
C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\GUI_App.hpp(90,22): error C2001: 常數中包含新行字元 (正在編譯原始程式
檔 C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\BackgroundSlicingProcess.cpp) [C:\Users\James\Deskto
p\PSlicer\PrusaSlicer\build\src\slic3r\libslic3r_gui.vcxproj]
C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\GUI_App.hpp(90,22): error C2001: 常數中包含新行字元 (正在編譯原始程式
檔 C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\SysInfoDialog.cpp) [C:\Users\James\Desktop\PSlicer\P
rusaSlicer\build\src\slic3r\libslic3r_gui.vcxproj]
C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\GUI_App.hpp(98,7): error C2062: 未預期的類型 'Slic3r::GUI:
:GUI_App' (正在編譯原始程式檔 C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\3DScene.cpp) [C:\Users\James\Desk
top\PSlicer\PrusaSlicer\build\src\slic3r\libslic3r_gui.vcxproj]
C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\GUI_App.hpp(99,1): error C2447: '{': 遺漏函式標頭 (舊樣式型式清單
?) (正在編譯原始程式檔 C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\ConfigSnapshotDialog.cpp) [C:\Users\Jame
s\Desktop\PSlicer\PrusaSlicer\build\src\slic3r\libslic3r_gui.vcxproj]
C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\GUI_App.hpp(304,1): error C4430: 遺漏類型規範 - 假設為 int。注意
: C++ 不支援 default-int (正在編譯原始程式檔 C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\AboutDialog.cpp) [C:
Users\James\Desktop\PSlicer\PrusaSlicer\build\src\slic3r\libslic3r_gui.vcxproj]
C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\GUI_App.hpp(98,7): error C2062: 未預期的類型 'Slic3r::GUI:
:GUI_App' (正在編譯原始程式檔 C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\GLShadersManager.cpp) [C:\Users\J
ames\Desktop\PSlicer\PrusaSlicer\build\src\slic3r\libslic3r_gui.vcxproj]
C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\GUI_App.hpp(99,1): error C2447: '{': 遺漏函式標頭 (舊樣式型式清單
?) (正在編譯原始程式檔 C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\KBShortcutsDialog.cpp) [C:\Users\James\D
esktop\PSlicer\PrusaSlicer\build\src\slic3r\libslic3r_gui.vcxproj]
C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\GUI_App.hpp(98,7): error C2062: 未預期的類型 'Slic3r::GUI:
:GUI_App' (正在編譯原始程式檔 C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\BackgroundSlicingProcess.cpp) [C:
\Users\James\Desktop\PSlicer\PrusaSlicer\build\src\slic3r\libslic3r_gui.vcxproj]
C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\GUI_App.hpp(98,7): error C2062: 未預期的類型 'Slic3r::GUI:
:GUI_App' (正在編譯原始程式檔 C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\SysInfoDialog.cpp) [C:\Users\Jame
s\Desktop\PSlicer\PrusaSlicer\build\src\slic3r\libslic3r_gui.vcxproj]
C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\GUI_App.hpp(99,1): error C2143: 語法錯誤: 遺漏 ';' (在 '{'
之前) (正在編譯原始程式檔 C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\3DScene.cpp) [C:\Users\James\Desktop\PS
licer\PrusaSlicer\build\src\slic3r\libslic3r_gui.vcxproj]
C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\GUI_App.hpp(304,1): error C2143: 語法錯誤: 遺漏 ';' (在 '&'
之前) (正在編譯原始程式檔 C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\ConfigSnapshotDialog.cpp) [C:\Users\Ja
mes\Desktop\PSlicer\PrusaSlicer\build\src\slic3r\libslic3r_gui.vcxproj]
C:\Users\James\Desktop\PSlicer\PrusaSlicer\src\slic3r\GUI\AboutDialog.cpp(40,16): error C2664: 'Slic3r::GUI::D
PIAware::DPIAware(wxWindow *,wxWindowID,const wxString &,const wxPoint &,const wxSize &,long,const wxS
tring &)': 無法將引數 1 從 'wxStandardID' 轉換為 'wxWindow *' [C:\Users\James\Desktop\PSlicer\PrusaSlicer\build\src\slic3
r\libslic3r_gui.vcxproj]

Thanks again for helping me

@foreachthing
Copy link

Your Windows is in english?
Why I ask? See this reply from @sorrowfeng:

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

@ogiwolf
Copy link
Author

ogiwolf commented Nov 26, 2020

Your Windows is in english?
Why I ask? See this reply from @sorrowfeng:

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

My windows is in Chinese...
So i have to reinstall windows to english?
Is there another way to solve it?

Thanks for the quick reply

@sorrowfeng
Copy link

您的Windows是英文的吗?
我为什么要问?看到来自@sorrowfeng的回复:

我重新安装了英文版的Windows,它解决了这个问题,是编码吗?
非常感谢您的帮助。

我的窗户是中文的...
所以我必须将窗户重新安装成英文吗?
还有另一种解决方法吗?

感谢您的快速答复

重装中文版的Windows都没用, 装英文版的Windows 再 加上稳定的科学上网网速, 运行bat文件就可以了

@ogiwolf
Copy link
Author

ogiwolf commented Nov 26, 2020

您的Windows是英文的吗?
我为什么要问?看到来自@sorrowfeng的回复:

我重新安装了英文版的Windows,它解决了这个问题,是编码吗?
非常感谢您的帮助。

我的窗户是中文的...
所以我必须将窗户重新安装成英文吗?
还有另一种解决方法吗?
感谢您的快速答复

重装中文版的Windows都没用, 装英文版的Windows 再 加上稳定的科学上网网速, 运行bat文件就可以了

看到中文格外親切XD
想問一下那我之後安裝英文版的windows 可以包成執行檔給其他非中文的windows上面運行嗎

不好意思,我是新手 所以問題很多QQ

@sorrowfeng
Copy link

您的Windows是英文的吗?
我为什么要问?看到来自@sorrowfeng的回复:

我重新安装了英文版的Windows,它解决了这个问题,是编码吗?
非常感谢您的帮助。

我的窗户是中文的...
所以我必须将窗户重新安装成英文吗?
还有另一种解决方法吗?
感谢您的快速答复

重装中文版的Windows都没用, 装英文版的Windows 再 加上稳定的科学上网网速, 运行bat文件就可以了

看到中文格外親切XD
想問一下那我之後安裝英文版的windows 可以包成執行檔給其他非中文的windows上面運行嗎

不好意思,我是新手 所以問題很多QQ

可以的, 只是编译环境需要, 我觉得是编译出文件的编码问题

@ogiwolf
Copy link
Author

ogiwolf commented Nov 26, 2020

您的Windows是英文的吗?
我为什么要问?看到来自@sorrowfeng的回复:

我重新安装了英文版的Windows,它解决了这个问题,是编码吗?
非常感谢您的帮助。

我的窗户是中文的...
所以我必须将窗户重新安装成英文吗?
还有另一种解决方法吗?
感谢您的快速答复

重装中文版的Windows都没用, 装英文版的Windows 再 加上稳定的科学上网网速, 运行bat文件就可以了

看到中文格外親切XD
想問一下那我之後安裝英文版的windows 可以包成執行檔給其他非中文的windows上面運行嗎
不好意思,我是新手 所以問題很多QQ

可以的, 只是编译环境需要, 我觉得是编译出文件的编码问题

好的那我去測試看看,非常感謝你們拯救我這個小菜鳥>"<

@foreachthing
Copy link

foreachthing commented Nov 26, 2020

Use virtualbox and install a new windows on it - that's what I do.

@ogiwolf
Copy link
Author

ogiwolf commented Nov 26, 2020

Use virtualbox and install a new windows on it - that's what I do.
Thanks for the advice!

After i run through the two batch file you provide.
I open the PrusaSlicer.sln in visual studio 2019.
and then i click the start without debugging.

It shows :

System OpenGL library released
Loading MESA OpenGL library: C:\Users\ogiwo\Desktop\PSlicr\PrusaSlicer\build\src\Debug\mesa\opengl32.dll
MESA OpenGL library was not loaded
PrusaSlicer.dll was not loaded

C:\Users\ogiwo\Desktop\PSlicr\PrusaSlicer\build\src\Debug\prusa-slicer-console.exe (process 7996) exited with code -1.
Press any key to close this window . . .

@foreachthing
Copy link

Interesting!
I don't have a mesa folder in my debug?!
image

Maybe because I have CUDA SDK installed? I don't even have opengl32.dll in my PrusaSlicer folder anywhere. I don't think I can help you there - sorry!

@ogiwolf
Copy link
Author

ogiwolf commented Nov 27, 2020

Thanks anyway 👍
You already help a lot!

@ogiwolf
Copy link
Author

ogiwolf commented Nov 27, 2020

Interesting!
I don't have a mesa folder in my debug?!
image

Maybe because I have CUDA SDK installed? I don't even have opengl32.dll in my PrusaSlicer folder anywhere. I don't think I can help you there - sorry!

Sorry to bother you.
I reinstall it, and this time it didn't show PrusaSlicer.dll was not loaded
But still show PrusaSlicer.dll was not loaded

Do u know how to fix this problem?

@foreachthing
Copy link

foreachthing commented Nov 27, 2020

I actually never use VS directly to rebuild.
I do it via cmd line msbuild -ds -nologo PrusaSlicer.sln -t:rebuild -m -p:Configuration=Release -verbosity:normal.

VS is rebuilding (debug) right now, though....

Ok! Building with VS2019 Pro:

Loading MESA OpenGL library: C:\dev\PrusaSlicer\build\src\Debug\mesa\opengl32.dll
MESA OpenGL library was not loaded
PrusaSlicer.dll was not loaded

C:\dev\PrusaSlicer\build\src\Debug\prusa-slicer-console.exe (process 9320) exited with code -1.
To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
Press any key to close this window . . .

What's going on with VS???

@foreachthing
Copy link

Release works - sort of.
I get it to compile but it still complains about opengl32. Can't run it, because the VM has no real graphics card. Even with --sw_renderer it does not start. But, it works just fine on the host computer.

@ogiwolf
Copy link
Author

ogiwolf commented Nov 27, 2020

I actually never use VS directly to rebuild.
I do it via cmd line msbuild -ds -nologo PrusaSlicer.sln -t:rebuild -m -p:Configuration=Release -verbosity:normal.

VS is rebuilding (debug) right now, though....

Ok! Building with VS2019 Pro:

Loading MESA OpenGL library: C:\dev\PrusaSlicer\build\src\Debug\mesa\opengl32.dll
MESA OpenGL library was not loaded
PrusaSlicer.dll was not loaded

C:\dev\PrusaSlicer\build\src\Debug\prusa-slicer-console.exe (process 9320) exited with code -1.
To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
Press any key to close this window . . .
What's going on with VS???
`

Release works - sort of.
I get it to compile but it still complains about opengl32. Can't run it, because the VM has no real graphics card. Even with --sw_renderer it does not start. But, it works just fine on the host computer.

It finally works!
The opengl32 issue is due to the virtual machine.
And the PrusaSlicer.dll I klick the "rebuild solution" and it work!
Thank u very much for spending time to help me.
I am very appreciated.

@ogiwolf ogiwolf closed this as completed Nov 27, 2020
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