mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-06-26 09:25:26 -06:00

* fixes and refactors linux build scripts
- build_linux.sh: fixes wrong AppImage build folder; refactors script; enhances help text
- harmonizes names: BuildLinux.sh and BuildLinuxImage.sh
- fixes file permissions: cmake inherits .in-file permission; removes chmod 755 in scripts
- linux.d/debian: removes false positive error message
- updates documentation
* enables ANSI-colored output for GNU or Clang
* build_linux.sh: adds -p flag to disable PCH for boosting ccache hit rate
* Allow compilation on distributions based on Ubuntu/Debian (#8625)
* build_linux.sh: takes over changes from BuildLinux.sh
* CMakeLists.txt: removes leftovers, enables ANSI-colored output
* CMakeLists.txt: fixes issue where FORCE_COLORED_OUTPUT was not respected form environment (introduces -C cli arg)
* merges 5df4275
: Make it easy to pass extra build args to deps and orca in BuildLinux.sh (#9648)
64 lines
1.6 KiB
Text
64 lines
1.6 KiB
Text
FOUND_GTK3=$(dpkg -l libgtk* | grep gtk-3 || echo '')
|
|
|
|
REQUIRED_DEV_PACKAGES=(
|
|
autoconf
|
|
build-essential
|
|
cmake
|
|
eglexternalplatform-dev
|
|
extra-cmake-modules
|
|
file
|
|
gettext
|
|
git
|
|
libcurl4-openssl-dev
|
|
libdbus-1-dev
|
|
libglew-dev
|
|
libgstreamerd-3-dev
|
|
libgtk-3-dev
|
|
libmspack-dev
|
|
libosmesa6-dev
|
|
libsecret-1-dev
|
|
libspnav-dev
|
|
libssl-dev
|
|
libtool
|
|
libudev-dev
|
|
ninja-build
|
|
texinfo
|
|
wget
|
|
)
|
|
|
|
if [[ -n "$UPDATE_LIB" ]]
|
|
then
|
|
source /etc/os-release
|
|
if [ "${ID}" == "ubuntu" ] && [ -n "${VERSION_ID}" ]; then
|
|
# It's ubuntu and we have a VERSION_ID like "24.04".
|
|
if dpkg --compare-versions "${VERSION_ID}" ge 22 && dpkg --compare-versions "${VERSION_ID}" lt 24 ;
|
|
then
|
|
# Some extra packages needed on Ubuntu 22.x and 23.x:
|
|
REQUIRED_DEV_PACKAGES+=(curl libfuse-dev libssl-dev libcurl4-openssl-dev m4)
|
|
fi
|
|
fi
|
|
|
|
if [[ -n "$BUILD_DEBUG" ]]
|
|
then
|
|
REQUIRED_DEV_PACKAGES+=(libssl-dev libcurl4-openssl-dev)
|
|
fi
|
|
|
|
# check which version of libwebkit2gtk is available
|
|
if [ "$(apt show --quiet libwebkit2gtk-4.0-dev 2>/dev/null)" != "" ]
|
|
then
|
|
REQUIRED_DEV_PACKAGES+=(libwebkit2gtk-4.0-dev)
|
|
else
|
|
REQUIRED_DEV_PACKAGES+=(libwebkit2gtk-4.1-dev)
|
|
fi
|
|
|
|
# TODO: optimize this by checking which, if any, packages are already installed
|
|
|
|
# install them all at once
|
|
sudo apt update
|
|
sudo apt install -y ${REQUIRED_DEV_PACKAGES[@]}
|
|
|
|
echo -e "done\n"
|
|
exit 0
|
|
fi
|
|
|
|
FOUND_GTK3_DEV=$(dpkg -l libgtk* | grep gtk-3-dev || echo '')
|