jdegenstein / jmwright-CQ-Editor

Forked from jmwright/CQ-Editor
Apache License 2.0
30 stars 7 forks source link

static build with newer libstdc++? #5

Closed cyberhuman closed 1 year ago

cyberhuman commented 1 year ago

Hi! Thank you for providing the static builds of the CQ-Editor. I have an issue however. On my Arch system, it starts but won't render anything. I see the following in the console:

libGL error: MESA-LOADER: failed to open i965: /opt/CQ-editor/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /usr/lib/dri/i965_dri.so) (search paths /usr/lib/dri, suffix _dri)
libGL error: failed to load driver: i965
libGL error: MESA-LOADER: failed to open swrast: /opt/CQ-editor/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/swrast_dri.so) (search paths /usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast

apparently the latest build provides libstdc++ 3.4.28. Can the later/latest version be provided instead?

jdegenstein commented 1 year ago

I spent a few weeks working on this issue, but I was unable to come to a one-size-fits-all solution. If I build for newer libstdc++ then it breaks compatibility with older linux releases. For now I have decided to stick with Ubuntu-20.04 as the build environment. For users of newer linux releases I recommend you follow the pip installation instructions (which ideally should be done in a fresh conda/mamba/poetry/etc environment so as not to affect your system).

pip install git+https://github.com/jdegenstein/jmwright-CQ-Editor
pip install --pre git+https://github.com/cadquery/cadquery

Thanks for your interest in these builds, and if there are other ways of solving this issue I am definitely open and eager to fix this.

cyberhuman commented 1 year ago

Thanks for the reply! I was actually able to launch it by pre-loading the system library instead of the bundled one. It segfaults on exit, but at least it runs. It is good enough.