CauldronDevelopmentLLC / CAMotics

Open-Source Simulation & Computer Aided Machining - A 3-axis CNC GCode simulator
Other
622 stars 143 forks source link

Debian 12 libssl and v8_compress_pointers (Embedder-vs-V8 build configuration mismatch) #405

Open sbeaugrand opened 1 year ago

sbeaugrand commented 1 year ago

To fix libssl and v8_compress_pointers on debian 12 bookworm, i have to do this :

Build with docker

docker build -t camotics .
docker run -v $PWD:/pwd camotics cp CAMotics/camotics_1.3.0_amd64.deb /pwd/

sudo apt install ./camotics_1.3.0_amd64.deb
docker container prune
docker rmi camotics
docker rmi debian:stable-slim

Build without docker

sudo apt install equivs
equivs-build camotics-control
sudo apt install ./camotics-build-deps_1.0_all.deb

git clone https://github.com/CauldronDevelopmentLLC/cbang
git clone https://github.com/CauldronDevelopmentLLC/CAMotics
scons -C cbang v8_compress_pointers=false
export CBANG_HOME=$PWD/cbang
cd CAMotics
sed -i 's/libssl1.1/libssl3/' SConstruct
scons
scons package

sudo apt install ./camotics_1.3.0_amd64.deb
sudo apt remove camotics-build-deps
sudo apt autoremove

Dockerfile

FROM debian:stable-slim

RUN apt-get update\
 && apt-get -y install\
 scons\
 build-essential\
 libqt5websockets5-dev\
 libqt5opengl5-dev\
 libnode-dev\
 libglu1-mesa-dev\
 pkgconf\
 git\
 python3-six\
 python3-setuptools\
 qttools5-dev-tools\
 && git clone https://github.com/CauldronDevelopmentLLC/cbang\
 && git clone https://github.com/CauldronDevelopmentLLC/CAMotics\
 && scons -C cbang v8_compress_pointers=false\
 && export CBANG_HOME=$PWD/cbang\
 && cd CAMotics\
 && sed -i 's/libssl1.1/libssl3/' SConstruct\
 && scons\
 && scons package

camotics-control file

Package: camotics-build-deps
Depends: scons, build-essential, libqt5websockets5-dev, libqt5opengl5-dev, libnode-dev, libglu1-mesa-dev, pkgconf, git, qttools5-dev-tools
atorrey commented 8 months ago

I tried using the above directions on my Debian Trixie machine, and was successful - but had some issues, below are my notes on what I encountered - my notes begin w/ ":" :STARTED in ~/CAMotics

sudo apt install equivs equivs-build camotics-control :Would not run - no such file error - did "touch camotics-control" in ~/CAMotics, it then worked, but w/ message: : :Attention, the package has been created in the current directory, not in ".." as indicated by the message above!

sudo apt install ./camotics-build-deps_1.0_all.deb :got error: E: Unsupported file ./camotics-build-deps_1.0_all.deb given on commandline

git clone https://github.com/CauldronDevelopmentLLC/cbang git clone https://github.com/CauldronDevelopmentLLC/CAMotics :SKIPPED - as did a few hours ago...

:Switched to ~/cbang

scons -C cbang v8_compress_pointers=false :ran w/o errors

:Note, must do this in ~ - if done in /CAMotics or /cbang, CAMotics compile will fail to find cbang

export CBANG_HOME=$PWD/cbang :should be ~/cbang (or whatever the cbang directory is) cd CAMotics sed -i 's/libssl1.1/libssl3/' SConstruct scons scons package

This resulted in a successful install that opened from my KDE menu.

Lubensius commented 1 month ago

Thx. Compiled it under Ubuntu 24.04.1LTS with change to libssl3 and disabled V8 and it seems to work, I skipped

sudo apt install equivs
equivs-build camotics-control
sudo apt install ./camotics-build-deps_1.0_all.deb

as I don't think it is needed here.