bambulab / BambuStudio

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

Liveview broken when building from source #3279

Open hadess opened 10 months ago

hadess commented 10 months ago

Bambu Studio Version

git

Where is the application from?

Built from source by yourself or others

OS version

Linux

Additional system information

No response

Printer

N/A

How to reproduce

Build BambuStudio with the gst-plugins-bad headers installed

Actual results

Liveview not working

Expected results

Liveview working

Project file & Debug log uploads

The problem is that the liveview code (in src/slic3r/GUI/wxMediaCtrl2.cpp) in BambuStudio expects to be able to access the m_playbin object member which is only available when wxWidgets is built with GStreamer support but not GstPlayer support.

You should be able to reproduce the problem with AppImage by installing libgstreamer-plugins-bad1.0-dev in the container, then wxWidgets will be built with the GstPlayer backend (in src/unix/mediactrl_gstplayer.cpp) rather than the playbin-based backend (in src/unix/mediactrl.cpp). Only the latter works with BambuStudio.

The liveview code in BambuStudio should be adapted to work with both backends.

In the meantime, the Flatpak build will forcefully disable the GstPlayer-backend by removed set(wxUSE_GSTREAMER_PLAYER ON) from build/cmake/init.cmake in wxWidgets.

Checklist of files to include

bambu123 commented 10 months ago

Okay removed set (wxUSE_GSTREAMER_PLAYER ON). I think that's the only thing we can do in the near future.

BambulabRobot commented 3 months ago

This issue has been marked as inactive due to no response for 90 days.

hadess commented 3 months ago

Poke