Ultimaker / Cura

3D printer / slicing GUI built on top of the Uranium framework
GNU Lesser General Public License v3.0
6.17k stars 2.07k forks source link

Here is a working build recipe on Elementary OS (Ubuntu) #18785

Open ixd704 opened 7 months ago

ixd704 commented 7 months ago
          Here is a working build recipe on Elementary OS (Ubuntu based) that I got to compile and run last night.  When you run it the first time, it will take a very long time to load as there are many hundreds of warning and error pages written to the terminal.  It will eventually load and run.  I have been successful in slicing a number of projects with this build.

You will note that I had to update to a newer version of cmake mid build which was not in the Ubuntu Jammy repository, so built and installed from source. I had to adjust my PATH to include conan as it installed in a new directory.

My history is as follows (cleaned up to only include the required packages I needed to install):

1887 pip install conan==1.60.2 1888 conan config install https://github.com/ultimaker/conan-config.git 1889 ls /home/idouglas/.local/bin 1893 export PATH=/home/idouglas/.local/bin:/home/idouglas/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin 1894 conan config install https://github.com/ultimaker/conan-config.git 1895 conan profile new default --detect --force 1896 conan profile update settings.compiler.libcxx=libstdc++11 default 1897 cd ~/Development/ 1898 git clone https://github.com/Ultimaker/Cura.git 1899 cd Cura/ 1901 conan install . --build=missing --update -o cura:devtools=True -g VirtualPythonEnv 1903 sudo apt install libx11-xcb1 1904 sudo apt install libx11-xcb-dev 1907 sudo apt install libfontenc-dev 1909 sudo apt install libxaw7-dev 1911 sudo apt install pkg-config libx11-dev libxkbfile-dev libsecret-1-dev 1913 sudo apt install libxmuu-dev 1915 sudo apt install libxcb-xkb-dev 1918 sudo apt install libxcb-icccm4-dev 1937 pip3 install sip

// loading all of the libxcb dev libraries 1945 sudo apt install libxcb-*-dev

1948 conan config install https://github.com/ultimaker/conan-config.git 1949 conan profile new default --detect --force 1950 conan profile update settings.compiler.libcxx=libstdc++11 default 1951 conan install . --build=missing --update -o cura:devtools=True -g VirtualPythonEnv

// get a newer version of cmake so it will continue. 1957 tar -xvzf cmake-3.28.4.tar.gz 1958 cd cmake-3.28.4/ 1960 mkdir build 1961 cd build/ 1962 cmake .. 1964 make -j8 1965 sudo make install 1967 cmake --version 1968 /usr/local/bin/cmake --version // remove old version of cmake 1966 sudo apt remove cmake

1969 cd ../.. 1970 cd Cura/ 1971 history 1972 conan install . --build=missing --update -o cura:devtools=True -g VirtualPythonEnv 1973 source venv/bin/activate 1974 python cura_app.py

**Note it will spit out debug info to the terminal for almost a minute and a half on a slower machine before it is up and running.

Originally posted by @ixd704 in https://github.com/Ultimaker/Cura/issues/18561#issuecomment-2029688401

Hal9999 commented 6 months ago

Nice, here is my recipe on ubuntu desktop 23.10 (I installed miniconda to choose the python version):

conda create --name curaenv python=3.10
conda activate curaenv
pip install conan==1.60.2
conan config install https://github.com/ultimaker/conan-config.git
conan profile new default --detect --force
git clone https://github.com/Ultimaker/Cura.git
cd Cura/
conan install . --build=missing --update -o cura:devtools=True -g VirtualPythonEnv

sudo apt-get install libx11-dev libx11-xcb-dev libfontenc-dev libice-dev libsm-dev libxau-dev libxaw7-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxi-dev libxinerama-dev libxkbfile-dev libxmu-dev libxmuu-dev libxpm-dev libxrandr-dev libxrender-dev libxres-dev libxss-dev libxt-dev libxtst-dev libxv-dev libxxf86vm-dev libxcb-glx0-dev libxcb-render0-dev libxcb-render-util0-dev libxcb-xkb-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb-xinerama0-dev libxcb-dri3-dev uuid-dev libxcb-cursor-dev libxcb-dri2-0-dev libxcb-dri3-dev libxcb-present-dev libxcb-composite0-dev libxcb-ewmh-dev libxcb-res0-dev libxcb-util-dev pkgconf

pip install sip>=5.6.0

conan install . --build=missing --update -o cura:devtools=True -g VirtualPythonEnv
source venv/bin/activate
python cura_app.py