bambulab / BambuStudio

PC Software for BambuLab and other 3D printers
GNU Affero General Public License v3.0
2.18k stars 292 forks source link

‘wxMediaState’ does not name a type; did you mean ‘wxMouseState’ and other errors #2763

Closed astrolemonade closed 1 year ago

astrolemonade commented 1 year ago

Bambu Studio Version

1.7.7.89

Where is the application from?

Built from source by yourself or others

OS version

Solus 4.4

Additional system information

CPU: Intel core i7 11th gen RAM: 16GB DDR4 GPU: Nvidia GTX 1650

Printer

Bambu A1 Mini

How to reproduce

Hey! I am trying to package this slicer on Solus Linux https://getsol.us/blog since the app images provided on the GitHub releases do not work with my machine and also the docker container version doesn't work correctly. I am doing the following steps to build it:

sudo eopkg up
sudo eopkg it -c system.devel
sudo eopkg it git
git clone https://github.com/bambulab/BambuStudio.git
mkdir BambuStudio_dep
cd BambuStudio/deps
mkdir build; cd build
sudo eopkg it mesalib-devel extra-cmake-modules glew-devel wayland-devel wayland-protocols-devel libxkbcommon-devel libx11-devel libgtk-3-devel
cmake ../ -DDESTDIR="/home/vm/BambuStudio_dep" -DCMAKE_BUILD_TYPE=Release -DDEP_WX_GTK3=1
make -j10
cd ../..
mkdir install_dir
mkdir build;cd build
sudo eopkg it gstreamer-1.0-devel 
cmake .. -DSLIC3R_STATIC=ON -DSLIC3R_GTK=3 -DBBL_RELEASE_TO_PUBLIC=1 -DCMAKE_PREFIX_PATH="/home/vm/BambuStudio_dep/usr/local" -DCMAKE_INSTALL_PREFIX="../install_dir" -DCMAKE_BUILD_TYPE=Release
cmake --build . --target install --config Release -j10

Actual results

The last steps does not finish successfuly cmake --build . --target install --config Release -j10. I receive the following errors:

      |         ~~^~~~~~~~~~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/Widgets/ComboBox.cpp: In member function ‘virtual int ComboBox::DoInsertItems(const wxArrayStringsAdapter&, unsigned int, void**, wxClientDataType)’:
/home/vm/BambuStudio/src/slic3r/GUI/Widgets/ComboBox.cpp:214:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
  214 |     for (int i = 0; i < items.GetCount(); ++i) {
      |                     ~~^~~~~~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/Widgets/ComboBox.cpp: In member function ‘void ComboBox::keyDown(wxKeyEvent&)’:
/home/vm/BambuStudio/src/slic3r/GUI/Widgets/ComboBox.cpp:280:114: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<wxString>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  280 |             } else if ((event.GetKeyCode() == WXK_DOWN || event.GetKeyCode() == WXK_RIGHT) && GetSelection() + 1 < texts.size()) {
      |                                                                                               ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
In file included from /home/vm/BambuStudio/src/slic3r/GUI/MonitorBasePanel.h:37,
                 from /home/vm/BambuStudio/src/slic3r/GUI/CameraPopup.hpp:4,
                 from /home/vm/BambuStudio/src/slic3r/GUI/DeviceManager.hpp:14,
                 from /home/vm/BambuStudio/src/slic3r/GUI/Widgets/../GUI_App.hpp:11,
                 from /home/vm/BambuStudio/src/slic3r/GUI/Widgets/ProgressDialog.cpp:19:
/home/vm/BambuStudio/src/slic3r/GUI/wxMediaCtrl2.h:56:1: error: expected class-name before ‘{’ token
   56 | {
      | ^
/home/vm/BambuStudio/src/slic3r/GUI/wxMediaCtrl2.h:73:12: error: ‘wxSize wxMediaCtrl2::DoGetBestSize() const’ marked ‘override’, but does not override
   73 |     wxSize DoGetBestSize() const override;
      |            ^~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/wxMediaCtrl2.h:75:10: error: ‘void wxMediaCtrl2::DoSetSize(int, int, int, int, int)’ marked ‘override’, but does not override
   75 |     void DoSetSize(int x, int y, int width, int height, int sizeFlags) override;
      |          ^~~~~~~~~
In file included from /home/vm/BambuStudio/src/slic3r/GUI/MonitorBasePanel.h:38:
/home/vm/BambuStudio/src/slic3r/GUI/MediaPlayCtrl.h:44:25: error: ‘wxMediaEvent’ has not been declared
   44 |     void onStateChanged(wxMediaEvent & event);
      |                         ^~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/MediaPlayCtrl.h:64:22: error: ‘wxMediaState’ does not name a type; did you mean ‘wxMouseState’?
   64 |     static constexpr wxMediaState MEDIASTATE_IDLE = (wxMediaState) 3;
      |                      ^~~~~~~~~~~~
      |                      wxMouseState
/home/vm/BambuStudio/src/slic3r/GUI/MediaPlayCtrl.h:65:22: error: ‘wxMediaState’ does not name a type; did you mean ‘wxMouseState’?
   65 |     static constexpr wxMediaState MEDIASTATE_INITIALIZING = (wxMediaState) 4;
      |                      ^~~~~~~~~~~~
      |                      wxMouseState
/home/vm/BambuStudio/src/slic3r/GUI/MediaPlayCtrl.h:66:22: error: ‘wxMediaState’ does not name a type; did you mean ‘wxMouseState’?
   66 |     static constexpr wxMediaState MEDIASTATE_LOADING = (wxMediaState) 5;
      |                      ^~~~~~~~~~~~
      |                      wxMouseState
/home/vm/BambuStudio/src/slic3r/GUI/MediaPlayCtrl.h:67:22: error: ‘wxMediaState’ does not name a type; did you mean ‘wxMouseState’?
   67 |     static constexpr wxMediaState MEDIASTATE_BUFFERING = (wxMediaState) 6;
      |                      ^~~~~~~~~~~~
      |                      wxMouseState
/home/vm/BambuStudio/src/slic3r/GUI/MediaPlayCtrl.h:70:5: error: ‘wxMediaState’ does not name a type; did you mean ‘wxMouseState’?
   70 |     wxMediaState m_last_state = MEDIASTATE_IDLE;
      |     ^~~~~~~~~~~~
      |     wxMouseState
In file included from /home/vm/BambuStudio/src/slic3r/GUI/Widgets/../GUI_App.hpp:13:
/home/vm/BambuStudio/src/slic3r/GUI/WebViewDialog.hpp:51:30: error: ‘wxWebViewEvent’ has not been declared
   51 |     void OnNavigationRequest(wxWebViewEvent& evt);
      |                              ^~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/WebViewDialog.hpp:52:31: error: ‘wxWebViewEvent’ has not been declared
   52 |     void OnNavigationComplete(wxWebViewEvent& evt);
      |                               ^~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/WebViewDialog.hpp:53:27: error: ‘wxWebViewEvent’ has not been declared
   53 |     void OnDocumentLoaded(wxWebViewEvent& evt);
      |                           ^~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/WebViewDialog.hpp:54:25: error: ‘wxWebViewEvent’ has not been declared
   54 |     void OnTitleChanged(wxWebViewEvent &evt);
      |                         ^~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/WebViewDialog.hpp:55:22: error: ‘wxWebViewEvent’ has not been declared
   55 |     void OnNewWindow(wxWebViewEvent& evt);
      |                      ^~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/WebViewDialog.hpp:56:26: error: ‘wxWebViewEvent’ has not been declared
   56 |     void OnScriptMessage(wxWebViewEvent& evt);
      |                          ^~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/WebViewDialog.hpp:61:18: error: ‘wxWebViewEvent’ has not been declared
   61 |     void OnError(wxWebViewEvent& evt);
      |                  ^~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/WebViewDialog.hpp:108:5: error: ‘wxWebView’ does not name a type
  108 |     wxWebView* m_browser;
      |     ^~~~~~~~~
In file included from /home/vm/BambuStudio/src/slic3r/GUI/Widgets/../GUI_App.hpp:14:
/home/vm/BambuStudio/src/slic3r/GUI/WebUserLoginDialog.hpp:46:30: error: ‘wxWebViewEvent’ has not been declared
   46 |     void OnNavigationRequest(wxWebViewEvent &evt);
      |                              ^~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/WebUserLoginDialog.hpp:47:31: error: ‘wxWebViewEvent’ has not been declared
   47 |     void OnNavigationComplete(wxWebViewEvent &evt);
      |                               ^~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/WebUserLoginDialog.hpp:48:27: error: ‘wxWebViewEvent’ has not been declared
   48 |     void OnDocumentLoaded(wxWebViewEvent &evt);
      |                           ^~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/WebUserLoginDialog.hpp:49:22: error: ‘wxWebViewEvent’ has not been declared
   49 |     void OnNewWindow(wxWebViewEvent &evt);
      |                      ^~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/WebUserLoginDialog.hpp:50:18: error: ‘wxWebViewEvent’ has not been declared
   50 |     void OnError(wxWebViewEvent &evt);
      |                  ^~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/WebUserLoginDialog.hpp:51:25: error: ‘wxWebViewEvent’ has not been declared
   51 |     void OnTitleChanged(wxWebViewEvent &evt);
      |                         ^~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/WebUserLoginDialog.hpp:52:30: error: ‘wxWebViewEvent’ has not been declared
   52 |     void OnFullScreenChanged(wxWebViewEvent &evt);
      |                              ^~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/WebUserLoginDialog.hpp:53:26: error: ‘wxWebViewEvent’ has not been declared
   53 |     void OnScriptMessage(wxWebViewEvent &evt);
      |                          ^~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/WebUserLoginDialog.hpp:70:5: error: ‘wxWebView’ does not name a type
   70 |     wxWebView *m_browser;
      |     ^~~~~~~~~
[ 53%] Building CXX object src/slic3r/CMakeFiles/libslic3r_gui.dir/GUI/Widgets/SideMenuPopup.cpp.o
/home/vm/BambuStudio/src/slic3r/GUI/Widgets/ProgressDialog.cpp: In member function ‘wxString Slic3r::GUI::ProgressDialog::FormatString(wxString)’:
/home/vm/BambuStudio/src/slic3r/GUI/Widgets/ProgressDialog.cpp:95:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
   95 |         for (int i = 0; i < title.length(); i++) {
      |                         ~~^~~~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/Printer/PrinterFileSystem.cpp: In member function ‘void PrinterFileSystem::ToggleSelect(size_t)’:
/home/vm/BambuStudio/src/slic3r/GUI/Printer/PrinterFileSystem.cpp:381:33: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
  381 |             for (int i = beg; i < end; ++i) {
      |                               ~~^~~~~
/home/vm/BambuStudio/src/slic3r/GUI/Printer/PrinterFileSystem.cpp:389:33: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
  389 |             for (int i = beg; i < end; ++i) {
      |                               ~~^~~~~
/home/vm/BambuStudio/src/slic3r/GUI/Printer/PrinterFileSystem.cpp: In member function ‘void PrinterFileSystem::UpdateGroupSelect()’:
/home/vm/BambuStudio/src/slic3r/GUI/Printer/PrinterFileSystem.cpp:546:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<PrinterFileSystem::File>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  546 |         for (int i = 0; i < m_file_list.size(); ++i) {
      |                         ~~^~~~~~~~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/Printer/PrinterFileSystem.cpp:540:9: warning: unused variable ‘beg’ [-Wunused-variable]
  540 |     int beg = 0;
      |         ^~~
/home/vm/BambuStudio/src/slic3r/GUI/Printer/PrinterFileSystem.cpp: In lambda function:
/home/vm/BambuStudio/src/slic3r/GUI/Printer/PrinterFileSystem.cpp:943:54: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  943 |                     if (iter2 == group.end() ? index == total - 1 : *iter2 == index + 1) {
      |                                                ~~~~~~^~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/Printer/PrinterFileSystem.cpp: In member function ‘void PrinterFileSystem::FileRemoved(std::pair<FileType, std::__cxx11::basic_string<char> >, size_t, const std::string&, bool)’:
/home/vm/BambuStudio/src/slic3r/GUI/Printer/PrinterFileSystem.cpp:958:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<long unsigned int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  958 |             if (index3 < m_group_year.size()) {
      |                 ~~~~~~~^~~~~~~~~~~~~~~~~~~~~
[ 53%] Building CXX object src/slic3r/CMakeFiles/libslic3r_gui.dir/GUI/Widgets/DropDown.cpp.o
[ 53%] Building CXX object src/slic3r/CMakeFiles/libslic3r_gui.dir/GUI/Widgets/PopupWindow.cpp.o
[ 53%] Building CXX object src/slic3r/CMakeFiles/libslic3r_gui.dir/GUI/Widgets/Label.cpp.o
[ 54%] Building CXX object src/slic3r/CMakeFiles/libslic3r_gui.dir/GUI/Widgets/Scrollbar.cpp.o
/home/vm/BambuStudio/src/slic3r/GUI/Widgets/Scrollbar.cpp:1:9: warning: #pragma once in main file
    1 | #pragma once
      |         ^~~~
[ 54%] Building CXX object src/slic3r/CMakeFiles/libslic3r_gui.dir/GUI/Widgets/ScrolledWindow.cpp.o
/home/vm/BambuStudio/src/slic3r/GUI/Widgets/ScrolledWindow.cpp:2:9: warning: #pragma once in main file
    2 | #pragma once
      |         ^~~~
[ 54%] Building CXX object src/slic3r/CMakeFiles/libslic3r_gui.dir/GUI/Widgets/StaticBox.cpp.o
/home/vm/BambuStudio/src/slic3r/GUI/Widgets/DropDown.cpp: In member function ‘void DropDown::render(wxDC&)’:
/home/vm/BambuStudio/src/slic3r/GUI/Widgets/DropDown.cpp:253:34: warning: comparison of integer expressions of different signedness: ‘std::vector<wxString>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  253 |     if (rowSize.y * texts.size() > size.y) {
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/Widgets/DropDown.cpp:280:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<wxString>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  280 |     for (int i = 0; i < texts.size(); ++i) {
      |                     ~~^~~~~~~~~~~~~~
[ 54%] Building CXX object src/slic3r/CMakeFiles/libslic3r_gui.dir/GUI/Widgets/ImageSwitchButton.cpp.o
/home/vm/BambuStudio/src/slic3r/GUI/Widgets/ImageSwitchButton.cpp: In member function ‘void ImageSwitchButton::render(wxDC&)’:
/home/vm/BambuStudio/src/slic3r/GUI/Widgets/ImageSwitchButton.cpp:130:28: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
  130 |         for (auto i = 0; i < fina_txt.length(); i++) {
      |                          ~~^~~~~~~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/Widgets/ImageSwitchButton.cpp:110:16: warning: variable ‘szContent’ set but not used [-Wunused-but-set-variable]
  110 |         wxSize szContent = textSize;
      |                ^~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/Widgets/ImageSwitchButton.cpp: In member function ‘void FanSwitchButton::render(wxDC&)’:
/home/vm/BambuStudio/src/slic3r/GUI/Widgets/ImageSwitchButton.cpp:288:28: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
  288 |         for (auto i = 0; i < fina_txt.length(); i++) {
      |                          ~~^~~~~~~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/Widgets/ImageSwitchButton.cpp:270:12: warning: variable ‘szContent’ set but not used [-Wunused-but-set-variable]
  270 |     wxSize szContent = textSize;
      |            ^~~~~~~~~
In file included from /home/vm/BambuStudio/src/slic3r/GUI/MonitorBasePanel.h:37,
                 from /home/vm/BambuStudio/src/slic3r/GUI/CameraPopup.hpp:4,
                 from /home/vm/BambuStudio/src/slic3r/GUI/DeviceManager.hpp:14,
                 from /home/vm/BambuStudio/src/slic3r/GUI/Widgets/../GUI_App.hpp:11,
                 from /home/vm/BambuStudio/src/slic3r/GUI/Widgets/SideMenuPopup.cpp:5:
/home/vm/BambuStudio/src/slic3r/GUI/wxMediaCtrl2.h:56:1: error: expected class-name before ‘{’ token
   56 | {
      | ^
/home/vm/BambuStudio/src/slic3r/GUI/wxMediaCtrl2.h:73:12: error: ‘wxSize wxMediaCtrl2::DoGetBestSize() const’ marked ‘override’, but does not override
   73 |     wxSize DoGetBestSize() const override;
      |            ^~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/wxMediaCtrl2.h:75:10: error: ‘void wxMediaCtrl2::DoSetSize(int, int, int, int, int)’ marked ‘override’, but does not override
   75 |     void DoSetSize(int x, int y, int width, int height, int sizeFlags) override;
      |          ^~~~~~~~~
In file included from /home/vm/BambuStudio/src/slic3r/GUI/MonitorBasePanel.h:38:
/home/vm/BambuStudio/src/slic3r/GUI/MediaPlayCtrl.h:44:25: error: ‘wxMediaEvent’ has not been declared
   44 |     void onStateChanged(wxMediaEvent & event);
      |                         ^~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/MediaPlayCtrl.h:64:22: error: ‘wxMediaState’ does not name a type; did you mean ‘wxMouseState’?
   64 |     static constexpr wxMediaState MEDIASTATE_IDLE = (wxMediaState) 3;
      |                      ^~~~~~~~~~~~
      |                      wxMouseState
/home/vm/BambuStudio/src/slic3r/GUI/MediaPlayCtrl.h:65:22: error: ‘wxMediaState’ does not name a type; did you mean ‘wxMouseState’?
   65 |     static constexpr wxMediaState MEDIASTATE_INITIALIZING = (wxMediaState) 4;
      |                      ^~~~~~~~~~~~
      |                      wxMouseState
/home/vm/BambuStudio/src/slic3r/GUI/MediaPlayCtrl.h:66:22: error: ‘wxMediaState’ does not name a type; did you mean ‘wxMouseState’?
   66 |     static constexpr wxMediaState MEDIASTATE_LOADING = (wxMediaState) 5;
      |                      ^~~~~~~~~~~~
      |                      wxMouseState
/home/vm/BambuStudio/src/slic3r/GUI/MediaPlayCtrl.h:67:22: error: ‘wxMediaState’ does not name a type; did you mean ‘wxMouseState’?
   67 |     static constexpr wxMediaState MEDIASTATE_BUFFERING = (wxMediaState) 6;
      |                      ^~~~~~~~~~~~
      |                      wxMouseState
/home/vm/BambuStudio/src/slic3r/GUI/MediaPlayCtrl.h:70:5: error: ‘wxMediaState’ does not name a type; did you mean ‘wxMouseState’?
   70 |     wxMediaState m_last_state = MEDIASTATE_IDLE;
      |     ^~~~~~~~~~~~
      |     wxMouseState
In file included from /home/vm/BambuStudio/src/slic3r/GUI/Widgets/../GUI_App.hpp:13:
/home/vm/BambuStudio/src/slic3r/GUI/WebViewDialog.hpp:51:30: error: ‘wxWebViewEvent’ has not been declared
   51 |     void OnNavigationRequest(wxWebViewEvent& evt);
      |                              ^~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/WebViewDialog.hpp:52:31: error: ‘wxWebViewEvent’ has not been declared
   52 |     void OnNavigationComplete(wxWebViewEvent& evt);
      |                               ^~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/WebViewDialog.hpp:53:27: error: ‘wxWebViewEvent’ has not been declared
   53 |     void OnDocumentLoaded(wxWebViewEvent& evt);
      |                           ^~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/WebViewDialog.hpp:54:25: error: ‘wxWebViewEvent’ has not been declared
   54 |     void OnTitleChanged(wxWebViewEvent &evt);
      |                         ^~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/WebViewDialog.hpp:55:22: error: ‘wxWebViewEvent’ has not been declared
   55 |     void OnNewWindow(wxWebViewEvent& evt);
      |                      ^~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/WebViewDialog.hpp:56:26: error: ‘wxWebViewEvent’ has not been declared
   56 |     void OnScriptMessage(wxWebViewEvent& evt);
      |                          ^~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/WebViewDialog.hpp:61:18: error: ‘wxWebViewEvent’ has not been declared
   61 |     void OnError(wxWebViewEvent& evt);
      |                  ^~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/WebViewDialog.hpp:108:5: error: ‘wxWebView’ does not name a type
  108 |     wxWebView* m_browser;
      |     ^~~~~~~~~
In file included from /home/vm/BambuStudio/src/slic3r/GUI/Widgets/../GUI_App.hpp:14:
/home/vm/BambuStudio/src/slic3r/GUI/WebUserLoginDialog.hpp:46:30: error: ‘wxWebViewEvent’ has not been declared
   46 |     void OnNavigationRequest(wxWebViewEvent &evt);
      |                              ^~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/WebUserLoginDialog.hpp:47:31: error: ‘wxWebViewEvent’ has not been declared
   47 |     void OnNavigationComplete(wxWebViewEvent &evt);
      |                               ^~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/WebUserLoginDialog.hpp:48:27: error: ‘wxWebViewEvent’ has not been declared
   48 |     void OnDocumentLoaded(wxWebViewEvent &evt);
      |                           ^~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/WebUserLoginDialog.hpp:49:22: error: ‘wxWebViewEvent’ has not been declared
   49 |     void OnNewWindow(wxWebViewEvent &evt);
      |                      ^~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/WebUserLoginDialog.hpp:50:18: error: ‘wxWebViewEvent’ has not been declared
   50 |     void OnError(wxWebViewEvent &evt);
      |                  ^~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/WebUserLoginDialog.hpp:51:25: error: ‘wxWebViewEvent’ has not been declared
   51 |     void OnTitleChanged(wxWebViewEvent &evt);
      |                         ^~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/WebUserLoginDialog.hpp:52:30: error: ‘wxWebViewEvent’ has not been declared
   52 |     void OnFullScreenChanged(wxWebViewEvent &evt);
      |                              ^~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/WebUserLoginDialog.hpp:53:26: error: ‘wxWebViewEvent’ has not been declared
   53 |     void OnScriptMessage(wxWebViewEvent &evt);
      |                          ^~~~~~~~~~~~~~
/home/vm/BambuStudio/src/slic3r/GUI/WebUserLoginDialog.hpp:70:5: error: ‘wxWebView’ does not name a type
   70 |     wxWebView *m_browser;
      |     ^~~~~~~~~
[ 54%] Building CXX object src/slic3r/CMakeFiles/libslic3r_gui.dir/GUI/Widgets/SwitchButton.cpp.o
In file included from /home/vm/BambuStudio/src/slic3r/GUI/Widgets/../ConfigWizard.hpp:8,
                 from /home/vm/BambuStudio/src/slic3r/GUI/Widgets/../GUI_App.hpp:7:
/home/vm/BambuStudio/src/slic3r/GUI/Widgets/../GUI_Utils.hpp: At global scope:
/home/vm/BambuStudio/src/slic3r/GUI/Widgets/../GUI_Utils.hpp:42:29: warning: ‘std::array<float, 4> Slic3r::GUI::decode_color_to_float_array(std::string)’ defined but not used [-Wunused-function]
   42 | static std::array<float, 4> decode_color_to_float_array(const std::string color)
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
gmake[2]: *** [src/slic3r/CMakeFiles/libslic3r_gui.dir/build.make:204: src/slic3r/CMakeFiles/libslic3r_gui.dir/GUI/Widgets/ProgressDialog.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
[ 55%] Building CXX object src/slic3r/CMakeFiles/libslic3r_gui.dir/GUI/Widgets/SpinInput.cpp.o
/home/vm/BambuStudio/src/slic3r/GUI/Widgets/SpinInput.cpp: In member function ‘void SpinInput::messureSize()’:
/home/vm/BambuStudio/src/slic3r/GUI/Widgets/SpinInput.cpp:208:12: warning: variable ‘minSize’ set but not used [-Wunused-but-set-variable]
  208 |     wxSize minSize = size;
      |            ^~~~~~~
In file included from /home/vm/BambuStudio/src/slic3r/GUI/Widgets/../ConfigWizard.hpp:8,
                 from /home/vm/BambuStudio/src/slic3r/GUI/Widgets/../GUI_App.hpp:7:
/home/vm/BambuStudio/src/slic3r/GUI/Widgets/../GUI_Utils.hpp:42:29: warning: ‘std::array<float, 4> Slic3r::GUI::decode_color_to_float_array(std::string)’ defined but not used [-Wunused-function]
   42 | static std::array<float, 4> decode_color_to_float_array(const std::string color)
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
gmake[2]: *** [src/slic3r/CMakeFiles/libslic3r_gui.dir/build.make:268: src/slic3r/CMakeFiles/libslic3r_gui.dir/GUI/Widgets/SideMenuPopup.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:1158: src/slic3r/CMakeFiles/libslic3r_gui.dir/all] Error 2

Expected results

The build should be successful since there is an actual wxWidgets in the deps directory and they are built successfully.

Project file & Debug log uploads

None

Checklist of files to include

astrolemonade commented 1 year ago

I was missing some dependencies:

sudo eopkg it -c system.devel
sudo eopkg it git llvm-clang libglvnd-devel  wayland-devel libxkbcommon-devel wayland-protocols-devel extra-cmake-modules libcairo-devel libgtk-3-devel libsoup-devel libwebkit-gtk-devel  gstreamer-1.0-devel gstreamer-1.0-plugins-base-devel gstreamer-1.0-plugins-good gstreamer-1.0-plugins-bad gstreamer-1.0-plugins-bad-devel mesalib-devel libx11-devel glew-devel curl-devel
astrolemonade commented 1 year ago

@lanewei120 can you add these install instructions on the wiki for Solus Linux https://getsol.us ?

lanewei120 commented 1 year ago

sudo eopkg it -c system.devel

sure, we can do it as I don't have a Solus Linux on hand could you help to give the full installation list on solus here?

astrolemonade commented 1 year ago

This is the full installatiom list: It's similar to what you'll do on Ubuntu or Fedora, only the installation of the dependencies is different.

sudo eopkg it -c system.devel
sudo eopkg it git llvm-clang libglvnd-devel  wayland-devel libxkbcommon-devel wayland-protocols-devel extra-cmake-modules libcairo-devel libgtk-3-devel libsoup-devel libwebkit-gtk-devel  gstreamer-1.0-devel gstreamer-1.0-plugins-base-devel gstreamer-1.0-plugins-good gstreamer-1.0-plugins-bad gstreamer-1.0-plugins-bad-devel mesalib-devel libx11-devel glew-devel curl-devel
git clone https://github.com/bambulab/BambuStudio.git
mkdir BambuStudio_dep
cd BambuStudio/deps
mkdir build; cd build
cmake ../ -DDESTDIR="/home/vm/BambuStudio_dep" -DCMAKE_BUILD_TYPE=Release -DDEP_WX_GTK3=1
make -j10
cd ../..
mkdir install_dir
mkdir build; cd build
cmake .. -DSLIC3R_STATIC=ON -DSLIC3R_GTK=3 -DBBL_RELEASE_TO_PUBLIC=1 -DCMAKE_PREFIX_PATH="/home/vm/BambuStudio_dep/usr/local" -DCMAKE_INSTALL_PREFIX="../install_dir" -DCMAKE_BUILD_TYPE=Release
cmake --build . --target install --config Release -j10
lanewei120 commented 1 year ago

done

astrolemonade commented 1 year ago

Thank you