mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	 f5a4862da5
			
		
	
	
		f5a4862da5
		
	
	
	
	
		
			
			including following changes: - Linux build scripts from SuperSlicer project; - Update BuildLinux dev dependencies, remove unused bits; - Update BuildLinuxImage to use nproc for cpus; - CMake: render BuildLinuxImage and build_appimage templates; - Fix "DSO missing" linking problems; - Add Podman Containerfile for building; - Update BuildLinux.sh to work better in container build; - fixes to create AppImage inside container; - add env to build environment; - Update build instructions in Containerfile; Change-Id: I73e30ab488cda8c1b0886cd34858e125596f282b (cherry picked from commit 83fc26670ca592c91c7af1d4033a04b587cfd4cd)
		
			
				
	
	
		
			44 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			Docker
		
	
	
	
	
	
| # Build Bambu Slicer in a container
 | |
| #
 | |
| # Build an AppImage:
 | |
| # rm -rf build; sudo podman build .. -t bambu-studio  &&  sudo podman run --rm localhost/bambu-studio /bin/bash -c 'tar -c $(find build | grep ubu64.AppImage | head -1)' | tar -xv
 | |
| #
 | |
| # Troubleshooting:
 | |
| # sudo podman run -it localhost/bambu-studio /bin/bash
 | |
| 
 | |
| FROM docker.io/ubuntu:kinetic
 | |
| LABEL maintainer "DeftDawg <DeftDawg@gmail.com>"
 | |
| 
 | |
| # Add a deb-src
 | |
| RUN echo deb-src http://archive.ubuntu.com/ubuntu \
 | |
|     $(cat /etc/*release | grep VERSION_CODENAME | cut -d= -f2) main universe>> /etc/apt/sources.list 
 | |
| 
 | |
| RUN apt-get update && apt-get install  -y \
 | |
|     git \
 | |
|     build-essential \
 | |
|     autoconf \
 | |
|     cmake \
 | |
|     libglu1-mesa-dev \
 | |
|     libgtk-3-dev \
 | |
|     libdbus-1-dev \
 | |
|     curl \
 | |
|     wget \
 | |
|     sudo
 | |
| 
 | |
| COPY ../BambuStudio BambuStudio
 | |
| 
 | |
| WORKDIR BambuStudio
 | |
| 
 | |
| # These can run together, but we run them seperate for podman caching
 | |
| # Update System dependencies
 | |
| RUN ./BuildLinux.sh -u
 | |
| 
 | |
| # Build dependencies in ./deps
 | |
| RUN ./BuildLinux.sh -d
 | |
| 
 | |
| # Build slic3r
 | |
| RUN ./BuildLinux.sh -s
 | |
| 
 | |
| # Build AppImage
 | |
| ENV container podman
 | |
| RUN ./BuildLinux.sh -i
 |