Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix macOS deps build issues #2541

Merged
merged 2 commits into from
Nov 17, 2023

Conversation

Ocraftyone
Copy link
Contributor

Fixes the issues with macOS dependency builds via GitHub Actions.

@@ -133,6 +133,7 @@ else()
${_gen}
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX:STRING=${DESTDIR}/usr/local
-DCMAKE_PREFIX_PATH:STRING=${DESTDIR}/usr/local
Copy link
Contributor Author

@Ocraftyone Ocraftyone Oct 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CMAKE_PREFIX_PATH is what tells cmake where to search for packages. On cross compiled apple devices this was not being set and would allow cmake to find dependencies elsewhere on the system. This specifically caused issues when cmake used version 3 of OpenSSL rather than version 1 needed by Orca and may have caused other issues after that.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice catch!

@@ -30,7 +30,8 @@ else ()
URL_HASH SHA256=cf4f4b2d80abb79e820e78c8077b6725bbbb4e8f41896783c899087be0e94068
DOWNLOAD_DIR ${DEP_DOWNLOAD_DIR}/MPFR
BUILD_IN_SOURCE ON
CONFIGURE_COMMAND env "CFLAGS=${_gmp_ccflags}" "CXXFLAGS=${_gmp_ccflags}" ./configure ${_cross_compile_arg} --prefix=${DESTDIR}/usr/local --enable-shared=no --enable-static=yes --with-gmp=${DESTDIR}/usr/local ${_gmp_build_tgt}
CONFIGURE_COMMAND autoreconf -f -i &&
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add autoreconf command to prevent issue while configuring MPFR where the configure command fails because it thinks it is out of date

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tried it before but for some reason it didn't work. Maybe I missed something that time

@SoftFever
Copy link
Owner

That's awesome.
I will take a look after 1.8 releasing.

@agravelot
Copy link
Contributor

agravelot commented Oct 30, 2023

Maybe not in the scope of this PR, will this fix this error after upgrading to Sonoma?

-- Falling back to MODULE search for TBB...
CMake Error at /opt/homebrew/Cellar/cmake/3.27.7/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  TBB library cannot be found.  Consider set TBBROOT environment variable.
  (missing: TBB_INCLUDE_DIRS TBB_LIBRARIES)
Call Stack (most recent call first):
  /opt/homebrew/Cellar/cmake/3.27.7/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  cmake/modules/FindTBB.cmake.in:286 (find_package_handle_standard_args)
  cmake/modules/FindTBB.cmake:19 (include)
  CMakeLists.txt:418 (find_package)


-- Configuring incomplete, errors occurred!
make: Makefile: No such file or directory
make: *** No rule to make target `Makefile'.  Stop.
building slicer...
CMake Error:
  Xcode 1.5 not supported.


CMake Error: Could not create named generator Xcode

Generators
* Unix Makefiles               = Generates standard UNIX makefiles.
  Ninja                        = Generates build.ninja files.
  Ninja Multi-Config           = Generates build-<Config>.ninja files.
  Watcom WMake                 = Generates Watcom WMake makefiles.
  Xcode                        = Generate Xcode project files.
  CodeBlocks - Ninja           = Generates CodeBlocks project files
                                 (deprecated).
  CodeBlocks - Unix Makefiles  = Generates CodeBlocks project files
                                 (deprecated).
  CodeLite - Ninja             = Generates CodeLite project files
                                 (deprecated).
  CodeLite - Unix Makefiles    = Generates CodeLite project files
                                 (deprecated).
  Eclipse CDT4 - Ninja         = Generates Eclipse CDT 4.0 project files
                                 (deprecated).
  Eclipse CDT4 - Unix Makefiles= Generates Eclipse CDT 4.0 project files
                                 (deprecated).
  Kate - Ninja                 = Generates Kate project files (deprecated).
  Kate - Ninja Multi-Config    = Generates Kate project files (deprecated).
  Kate - Unix Makefiles        = Generates Kate project files (deprecated).
  Sublime Text 2 - Ninja       = Generates Sublime Text 2 project files
                                 (deprecated).
  Sublime Text 2 - Unix Makefiles
                               = Generates Sublime Text 2 project files
                                 (deprecated).

make: Makefile: No such file or directory
make: *** No rule to make target `Makefile'.  Stop.
/Users/agravelot/lab/OrcaSlicer-organic
rm: ./OrcaSlicer.app: No such file or directory
cp: ../src/Release/OrcaSlicer.app: No such file or directory
rm: ./OrcaSlicer.app/Contents/Resources: No such file or directory
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-aclpSsvXx] source_file target_file
       cp [-R [-H | -L | -P]] [-fi | -n] [-aclpSsvXx] source_file ... target_directory
find: ./OrcaSlicer.app/: No such file or directory

@Ocraftyone
Copy link
Contributor Author

Ocraftyone commented Oct 30, 2023 via email

@agravelot
Copy link
Contributor

No, dependancies seems to be unsync for latest macos release.

Had to install tbb automake but still no luck, missing CURL, curlpp does not seems to work.

./build_release_macos.sh
Arch: arm64
BUILD_TARGET:
/opt/homebrew/opt/libiconv
/opt/homebrew/opt/zstd
./build_release_macos.sh: line 52: cd: /Users/agravelot/lab/OrcaSlicer-organic/deps: No such file or directory
building deps...
cmake ../ -DDESTDIR=/Users/agravelot/lab/OrcaSlicer-organic/build_arm64/OrcaSlicer_dep_arm64 -DOPENSSL_ARCH=darwin64-arm64-cc -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES:STRING=arm64
-- SLIC3R_ASAN: OFF
-- SLIC3R_BUILD_SANDBOXES: OFF
-- SLIC3R_BUILD_TESTS: OFF
-- SLIC3R_DESKTOP_INTEGRATION: ON
-- SLIC3R_FHS: OFF
-- SLIC3R_GTK: 2
-- SLIC3R_GUI: ON
-- SLIC3R_MSVC_COMPILE_PARALLEL: ON
-- SLIC3R_MSVC_PDB: ON
-- SLIC3R_PCH: ON
-- SLIC3R_PERL_XS: OFF
-- SLIC3R_PROFILE: OFF
-- SLIC3R_STATIC: ON
-- SLIC3R_WX_STABLE: OFF
-- SLIC3R_STATIC: ON
-- CMAKE_PREFIX_PATH: (default)
-- PROJECT_SOURCE_DIR: /Users/agravelot/lab/OrcaSlicer-organic
-- CMAKE_MODULE_PATH: /Users/agravelot/lab/OrcaSlicer-organic/cmake/modules/
OS X SDK Path: /Users/agravelot/Downloads/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk
OS X Deployment Target: 11.3
-- LIBDIR: /Users/agravelot/lab/OrcaSlicer-organic/src
-- LIBDIR_BIN: /Users/agravelot/lab/OrcaSlicer-organic/build_arm64/src
-- Boost::boost exists
-- TBB found in /opt/homebrew/lib/cmake/TBB
CMake Error at CMakeLists.txt:430 (find_package):
  Could not find a package configuration file provided by "CURL" with any of
  the following names:

    CURLConfig.cmake
    curl-config.cmake

  Add the installation prefix of "CURL" to CMAKE_PREFIX_PATH or set
  "CURL_DIR" to a directory containing one of the above files.  If "CURL"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!
make: Makefile: No such file or directory
make: *** No rule to make target `Makefile'.  Stop.
building slicer...
CMake Error: Error: generator : Xcode
Does not match the generator used previously: Unix Makefiles
Either remove the CMakeCache.txt file and CMakeFiles directory or choose a different binary directory.
make: Makefile: No such file or directory
make: *** No rule to make target `Makefile'.  Stop.
/Users/agravelot/lab/OrcaSlicer-organic
rm: ./OrcaSlicer.app: No such file or directory
cp: ../src/Release/OrcaSlicer.app: No such file or directory
rm: ./OrcaSlicer.app/Contents/Resources: No such file or directory
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-aclpSsvXx] source_file target_file
       cp [-R [-H | -L | -P]] [-fi | -n] [-aclpSsvXx] source_file ... target_directory
find: ./OrcaSlicer.app/: No such file or directory

@Ocraftyone
Copy link
Contributor Author

Based on the log provided, this PR should fix the issue you are having. The PR adds this line to the Cmake file for the main project. The link describes it's function too, but tldr, it tells Cmake where to find the built dependencies. Your log shows it is trying to use packages from elsewhere on the system.

@agravelot
Copy link
Contributor

I think i messed up something, build succeeded from a brand new clone.

There is still quite a few warnings about outdated dependancies, but not related to your pr.

ld: warning: object file (/Users/agravelot/lab/test-build-orca/deps/build_arm64/OrcaSlicer_dep_arm64/usr/local/lib/libcrypto.a[617](v3_cpols.o)) was built for newer 'macOS' version (14.0) than being linked (11.3)

Copy link
Owner

@SoftFever SoftFever left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.
Thank you very much!

@SoftFever SoftFever merged commit c0386d7 into SoftFever:main Nov 17, 2023
8 checks passed
hliebscher pushed a commit to hliebscher/OrcaSlicer-SoftFever that referenced this pull request Nov 17, 2023
update deps/CMakeLists.txt and MPFR.cmake
@superfloh247
Copy link

cd ~/VSCode
rm -rf OrcaSlicer
git clone --depth=1 https://github.com/SoftFever/OrcaSlicer.git
cd OrcaSlicer
git fetch origin pull/2541/head:pr2541
git checkout pr2541
bash -x build_release_macos.sh

fails:

building slicer...

  • cmake .. -GXcode -DBBL_RELEASE_TO_PUBLIC=1 -DCMAKE_PREFIX_PATH=/Users/lindner/VSCode/OrcaSlicer/deps/build_arm64/OrcaSlicer_dep_arm64/usr/local -DCMAKE_INSTALL_PREFIX=/Users/lindner/VSCode/OrcaSlicer/build_arm64/OrcaSlicer -DCMAKE_BUILD_TYPE=Release -DCMAKE_MACOSX_RPATH=ON -DCMAKE_INSTALL_RPATH=/Users/lindner/VSCode/OrcaSlicer/deps/build_arm64/OrcaSlicer_dep_arm64/usr/local -DCMAKE_MACOSX_BUNDLE=ON -DCMAKE_OSX_ARCHITECTURES=arm64
    -- The C compiler identification is AppleClang 15.0.0.15000040
    -- The CXX compiler identification is AppleClang 15.0.0.15000040
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - skipped
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- SLIC3R_ASAN: OFF
    -- SLIC3R_BUILD_SANDBOXES: OFF
    -- SLIC3R_BUILD_TESTS: OFF
    -- SLIC3R_DESKTOP_INTEGRATION: ON
    -- SLIC3R_FHS: OFF
    -- SLIC3R_GTK: 2
    -- SLIC3R_GUI: ON
    -- SLIC3R_MSVC_COMPILE_PARALLEL: ON
    -- SLIC3R_MSVC_PDB: ON
    -- SLIC3R_PCH: ON
    -- SLIC3R_PERL_XS: OFF
    -- SLIC3R_PROFILE: OFF
    -- SLIC3R_STATIC: ON
    -- SLIC3R_WX_STABLE: OFF
    -- SLIC3R_STATIC: ON
    -- CMAKE_PREFIX_PATH: /Users/lindner/VSCode/OrcaSlicer/deps/build_arm64/OrcaSlicer_dep_arm64/usr/local (from cache or command line)
    -- PROJECT_SOURCE_DIR: /Users/lindner/VSCode/OrcaSlicer
    -- CMAKE_MODULE_PATH: /Users/lindner/VSCode/OrcaSlicer/cmake/modules/
    OS X SDK Path: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk
    OS X Deployment Target: 11.3
    -- LIBDIR: /Users/lindner/VSCode/OrcaSlicer/src
    -- LIBDIR_BIN: /Users/lindner/VSCode/OrcaSlicer/build_arm64/src
    -- Found Boost: /Users/lindner/VSCode/OrcaSlicer/deps/build_arm64/OrcaSlicer_dep_arm64/usr/local/lib/cmake/Boost-1.75.0/BoostConfig.cmake (found suitable version "1.75.0", minimum required is "1.66.0") found components: system filesystem thread log locale regex chrono atomic date_time iostreams
    -- Boost::boost exists
    -- TBB found in /Users/lindner/VSCode/OrcaSlicer/deps/build_arm64/OrcaSlicer_dep_arm64/usr/local/lib/cmake/TBB
    -- Found OpenSSL: /opt/homebrew/Cellar/openssl@3/3.1.4/lib/libcrypto.dylib (found version "3.1.4")
    CMake Error at CMakeLists.txt:430 (find_package):
    Could not find a package configuration file provided by "CURL" with any of
    the following names:

    CURLConfig.cmake
    curl-config.cmake

    Add the installation prefix of "CURL" to CMAKE_PREFIX_PATH or set
    "CURL_DIR" to a directory containing one of the above files. If "CURL"
    provides a separate development package or SDK, be sure it has been
    installed.

-- Configuring incomplete, errors occurred!

@SoftFever
Copy link
Owner

cd ~/VSCode rm -rf OrcaSlicer git clone --depth=1 https://github.com/SoftFever/OrcaSlicer.git cd OrcaSlicer git fetch origin pull/2541/head:pr2541 git checkout pr2541 bash -x build_release_macos.sh

fails:

building slicer...

  • cmake .. -GXcode -DBBL_RELEASE_TO_PUBLIC=1 -DCMAKE_PREFIX_PATH=/Users/lindner/VSCode/OrcaSlicer/deps/build_arm64/OrcaSlicer_dep_arm64/usr/local -DCMAKE_INSTALL_PREFIX=/Users/lindner/VSCode/OrcaSlicer/build_arm64/OrcaSlicer -DCMAKE_BUILD_TYPE=Release -DCMAKE_MACOSX_RPATH=ON -DCMAKE_INSTALL_RPATH=/Users/lindner/VSCode/OrcaSlicer/deps/build_arm64/OrcaSlicer_dep_arm64/usr/local -DCMAKE_MACOSX_BUNDLE=ON -DCMAKE_OSX_ARCHITECTURES=arm64
    -- The C compiler identification is AppleClang 15.0.0.15000040
    -- The CXX compiler identification is AppleClang 15.0.0.15000040
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - skipped
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- SLIC3R_ASAN: OFF
    -- SLIC3R_BUILD_SANDBOXES: OFF
    -- SLIC3R_BUILD_TESTS: OFF
    -- SLIC3R_DESKTOP_INTEGRATION: ON
    -- SLIC3R_FHS: OFF
    -- SLIC3R_GTK: 2
    -- SLIC3R_GUI: ON
    -- SLIC3R_MSVC_COMPILE_PARALLEL: ON
    -- SLIC3R_MSVC_PDB: ON
    -- SLIC3R_PCH: ON
    -- SLIC3R_PERL_XS: OFF
    -- SLIC3R_PROFILE: OFF
    -- SLIC3R_STATIC: ON
    -- SLIC3R_WX_STABLE: OFF
    -- SLIC3R_STATIC: ON
    -- CMAKE_PREFIX_PATH: /Users/lindner/VSCode/OrcaSlicer/deps/build_arm64/OrcaSlicer_dep_arm64/usr/local (from cache or command line)
    -- PROJECT_SOURCE_DIR: /Users/lindner/VSCode/OrcaSlicer
    -- CMAKE_MODULE_PATH: /Users/lindner/VSCode/OrcaSlicer/cmake/modules/
    OS X SDK Path: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk
    OS X Deployment Target: 11.3
    -- LIBDIR: /Users/lindner/VSCode/OrcaSlicer/src
    -- LIBDIR_BIN: /Users/lindner/VSCode/OrcaSlicer/build_arm64/src
    -- Found Boost: /Users/lindner/VSCode/OrcaSlicer/deps/build_arm64/OrcaSlicer_dep_arm64/usr/local/lib/cmake/Boost-1.75.0/BoostConfig.cmake (found suitable version "1.75.0", minimum required is "1.66.0") found components: system filesystem thread log locale regex chrono atomic date_time iostreams
    -- Boost::boost exists
    -- TBB found in /Users/lindner/VSCode/OrcaSlicer/deps/build_arm64/OrcaSlicer_dep_arm64/usr/local/lib/cmake/TBB
    -- Found OpenSSL: /opt/homebrew/Cellar/openssl@3/3.1.4/lib/libcrypto.dylib (found version "3.1.4")
    CMake Error at CMakeLists.txt:430 (find_package):
    Could not find a package configuration file provided by "CURL" with any of
    the following names:
    CURLConfig.cmake
    curl-config.cmake
    Add the installation prefix of "CURL" to CMAKE_PREFIX_PATH or set
    "CURL_DIR" to a directory containing one of the above files. If "CURL"
    provides a separate development package or SDK, be sure it has been
    installed.

-- Configuring incomplete, errors occurred!

You will need to build dependencies for the first time.
Try build_release_macos.sh -ds instead

@superfloh247
Copy link

superfloh247 commented Nov 22, 2023

bash -x build_release_macos.sh -ds
+ getopts :a:sdphn opt
+ case ${opt} in
+ export BUILD_TARGET=deps
+ BUILD_TARGET=deps
+ getopts :a:sdphn opt
+ case ${opt} in
+ export BUILD_TARGET=slicer
+ BUILD_TARGET=slicer
+ getopts :a:sdphn opt
+ '[' -z '' ']'
++ uname -m
+ export ARCH=arm64
+ ARCH=arm64
+ echo 'Arch: arm64'
Arch: arm64
+ echo 'BUILD_TARGET: slicer'
BUILD_TARGET: slicer
+ which -s brew
+ brew --prefix libiconv
/opt/homebrew/opt/libiconv
+ brew --prefix zstd
/opt/homebrew/opt/zstd
++ brew --prefix zstd
+ export LIBRARY_PATH=:/opt/homebrew/opt/zstd/lib/
+ LIBRARY_PATH=:/opt/homebrew/opt/zstd/lib/
+++ dirname build_release_macos.sh
++ cd .
++ pwd
+ WD=/Users/lindner/VSCode/OrcaSlicer
+ cd /Users/lindner/VSCode/OrcaSlicer/deps
+ mkdir -p build_arm64
+ cd build_arm64
+ DEPS=/Users/lindner/VSCode/OrcaSlicer/deps/build_arm64/OrcaSlicer_dep_arm64
+ mkdir -p /Users/lindner/VSCode/OrcaSlicer/deps/build_arm64/OrcaSlicer_dep_arm64
+ '[' slicer. '!=' slicer. ']'
+ '[' deps. == slicer. ']'
+ cd /Users/lindner/VSCode/OrcaSlicer
+ mkdir -p build_arm64
+ cd build_arm64
+ echo 'building slicer...'
building slicer...
+ cmake .. -GXcode -DBBL_RELEASE_TO_PUBLIC=1 -DCMAKE_PREFIX_PATH=/Users/lindner/VSCode/OrcaSlicer/deps/build_arm64/OrcaSlicer_dep_arm64/usr/local -DCMAKE_INSTALL_PREFIX=/Users/lindner/VSCode/OrcaSlicer/build_arm64/OrcaSlicer -DCMAKE_BUILD_TYPE=Release -DCMAKE_MACOSX_RPATH=ON -DCMAKE_INSTALL_RPATH=/Users/lindner/VSCode/OrcaSlicer/deps/build_arm64/OrcaSlicer_dep_arm64/usr/local -DCMAKE_MACOSX_BUNDLE=ON -DCMAKE_OSX_ARCHITECTURES=arm64
-- SLIC3R_ASAN: OFF
-- SLIC3R_BUILD_SANDBOXES: OFF
-- SLIC3R_BUILD_TESTS: OFF
-- SLIC3R_DESKTOP_INTEGRATION: ON
-- SLIC3R_FHS: OFF
-- SLIC3R_GTK: 2
-- SLIC3R_GUI: ON
-- SLIC3R_MSVC_COMPILE_PARALLEL: ON
-- SLIC3R_MSVC_PDB: ON
-- SLIC3R_PCH: ON
-- SLIC3R_PERL_XS: OFF
-- SLIC3R_PROFILE: OFF
-- SLIC3R_STATIC: ON
-- SLIC3R_WX_STABLE: OFF
-- SLIC3R_STATIC: ON
-- CMAKE_PREFIX_PATH: /Users/lindner/VSCode/OrcaSlicer/deps/build_arm64/OrcaSlicer_dep_arm64/usr/local (from cache or command line)
CMake Warning at CMakeLists.txt:143 (message):
  CMAKE_PREFIX_PATH element doesn't exist:
  /Users/lindner/VSCode/OrcaSlicer/deps/build_arm64/OrcaSlicer_dep_arm64/usr/local


-- PROJECT_SOURCE_DIR: /Users/lindner/VSCode/OrcaSlicer
-- CMAKE_MODULE_PATH: /Users/lindner/VSCode/OrcaSlicer/cmake/modules/
OS X SDK Path: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk
OS X Deployment Target: 11.3
-- LIBDIR: /Users/lindner/VSCode/OrcaSlicer/src
-- LIBDIR_BIN: /Users/lindner/VSCode/OrcaSlicer/build_arm64/src
-- Boost::boost exists
-- TBB found in /opt/homebrew/lib/cmake/TBB
CMake Error at CMakeLists.txt:430 (find_package):
  Could not find a package configuration file provided by "CURL" with any of
  the following names:

    CURLConfig.cmake
    curl-config.cmake

  Add the installation prefix of "CURL" to CMAKE_PREFIX_PATH or set
  "CURL_DIR" to a directory containing one of the above files.  If "CURL"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!
+ cmake --build . --config Release --target ALL_BUILD
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project OrcaSlicer.xcodeproj build -target ALL_BUILD -parallelizeTargets -configuration Release -hideShellScriptEnvironment

User defaults from command line:
    HideShellScriptEnvironment = YES
    IDEPackageSupportUseBuiltinSCM = YES

2023-11-22 09:39:57.711 xcodebuild[33329:8020308] Writing error result bundle to /var/folders/ck/973lln0j18gc19rk0c2j_bxr0000gp/T/ResultBundle_2023-22-11_09-39-0057.xcresult
xcodebuild: error: 'OrcaSlicer.xcodeproj' does not exist.
+ cd ..
+ ./run_gettext.sh
/Users/lindner/VSCode/OrcaSlicer
+ cd build_arm64
+ mkdir -p OrcaSlicer
+ cd OrcaSlicer
+ rm -r ./OrcaSlicer.app
rm: ./OrcaSlicer.app: No such file or directory
+ cp -pR ../src/Release/OrcaSlicer.app ./OrcaSlicer.app
cp: ../src/Release/OrcaSlicer.app: No such file or directory
++ readlink ./OrcaSlicer.app/Contents/Resources
+ resources_path=
+ rm ./OrcaSlicer.app/Contents/Resources
rm: ./OrcaSlicer.app/Contents/Resources: No such file or directory
+ cp -R ./OrcaSlicer.app/Contents/Resources
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-aclpSsvXx] source_file target_file
       cp [-R [-H | -L | -P]] [-fi | -n] [-aclpSsvXx] source_file ... target_directory
+ find ./OrcaSlicer.app/ -name .DS_Store -delete
find: ./OrcaSlicer.app/: No such file or directory

@SoftFever
Copy link
Owner

bash -x build_release_macos.sh -ds
+ getopts :a:sdphn opt
+ case ${opt} in
+ export BUILD_TARGET=deps
+ BUILD_TARGET=deps
+ getopts :a:sdphn opt
+ case ${opt} in
+ export BUILD_TARGET=slicer
+ BUILD_TARGET=slicer
+ getopts :a:sdphn opt
+ '[' -z '' ']'
++ uname -m
+ export ARCH=arm64
+ ARCH=arm64
+ echo 'Arch: arm64'
Arch: arm64
+ echo 'BUILD_TARGET: slicer'
BUILD_TARGET: slicer
+ which -s brew
+ brew --prefix libiconv
/opt/homebrew/opt/libiconv
+ brew --prefix zstd
/opt/homebrew/opt/zstd
++ brew --prefix zstd
+ export LIBRARY_PATH=:/opt/homebrew/opt/zstd/lib/
+ LIBRARY_PATH=:/opt/homebrew/opt/zstd/lib/
+++ dirname build_release_macos.sh
++ cd .
++ pwd
+ WD=/Users/lindner/VSCode/OrcaSlicer
+ cd /Users/lindner/VSCode/OrcaSlicer/deps
+ mkdir -p build_arm64
+ cd build_arm64
+ DEPS=/Users/lindner/VSCode/OrcaSlicer/deps/build_arm64/OrcaSlicer_dep_arm64
+ mkdir -p /Users/lindner/VSCode/OrcaSlicer/deps/build_arm64/OrcaSlicer_dep_arm64
+ '[' slicer. '!=' slicer. ']'
+ '[' deps. == slicer. ']'
+ cd /Users/lindner/VSCode/OrcaSlicer
+ mkdir -p build_arm64
+ cd build_arm64
+ echo 'building slicer...'
building slicer...
+ cmake .. -GXcode -DBBL_RELEASE_TO_PUBLIC=1 -DCMAKE_PREFIX_PATH=/Users/lindner/VSCode/OrcaSlicer/deps/build_arm64/OrcaSlicer_dep_arm64/usr/local -DCMAKE_INSTALL_PREFIX=/Users/lindner/VSCode/OrcaSlicer/build_arm64/OrcaSlicer -DCMAKE_BUILD_TYPE=Release -DCMAKE_MACOSX_RPATH=ON -DCMAKE_INSTALL_RPATH=/Users/lindner/VSCode/OrcaSlicer/deps/build_arm64/OrcaSlicer_dep_arm64/usr/local -DCMAKE_MACOSX_BUNDLE=ON -DCMAKE_OSX_ARCHITECTURES=arm64
-- SLIC3R_ASAN: OFF
-- SLIC3R_BUILD_SANDBOXES: OFF
-- SLIC3R_BUILD_TESTS: OFF
-- SLIC3R_DESKTOP_INTEGRATION: ON
-- SLIC3R_FHS: OFF
-- SLIC3R_GTK: 2
-- SLIC3R_GUI: ON
-- SLIC3R_MSVC_COMPILE_PARALLEL: ON
-- SLIC3R_MSVC_PDB: ON
-- SLIC3R_PCH: ON
-- SLIC3R_PERL_XS: OFF
-- SLIC3R_PROFILE: OFF
-- SLIC3R_STATIC: ON
-- SLIC3R_WX_STABLE: OFF
-- SLIC3R_STATIC: ON
-- CMAKE_PREFIX_PATH: /Users/lindner/VSCode/OrcaSlicer/deps/build_arm64/OrcaSlicer_dep_arm64/usr/local (from cache or command line)
CMake Warning at CMakeLists.txt:143 (message):
  CMAKE_PREFIX_PATH element doesn't exist:
  /Users/lindner/VSCode/OrcaSlicer/deps/build_arm64/OrcaSlicer_dep_arm64/usr/local


-- PROJECT_SOURCE_DIR: /Users/lindner/VSCode/OrcaSlicer
-- CMAKE_MODULE_PATH: /Users/lindner/VSCode/OrcaSlicer/cmake/modules/
OS X SDK Path: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk
OS X Deployment Target: 11.3
-- LIBDIR: /Users/lindner/VSCode/OrcaSlicer/src
-- LIBDIR_BIN: /Users/lindner/VSCode/OrcaSlicer/build_arm64/src
-- Boost::boost exists
-- TBB found in /opt/homebrew/lib/cmake/TBB
CMake Error at CMakeLists.txt:430 (find_package):
  Could not find a package configuration file provided by "CURL" with any of
  the following names:

    CURLConfig.cmake
    curl-config.cmake

  Add the installation prefix of "CURL" to CMAKE_PREFIX_PATH or set
  "CURL_DIR" to a directory containing one of the above files.  If "CURL"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!
+ cmake --build . --config Release --target ALL_BUILD
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project OrcaSlicer.xcodeproj build -target ALL_BUILD -parallelizeTargets -configuration Release -hideShellScriptEnvironment

User defaults from command line:
    HideShellScriptEnvironment = YES
    IDEPackageSupportUseBuiltinSCM = YES

2023-11-22 09:39:57.711 xcodebuild[33329:8020308] Writing error result bundle to /var/folders/ck/973lln0j18gc19rk0c2j_bxr0000gp/T/ResultBundle_2023-22-11_09-39-0057.xcresult
xcodebuild: error: 'OrcaSlicer.xcodeproj' does not exist.
+ cd ..
+ ./run_gettext.sh
/Users/lindner/VSCode/OrcaSlicer
+ cd build_arm64
+ mkdir -p OrcaSlicer
+ cd OrcaSlicer
+ rm -r ./OrcaSlicer.app
rm: ./OrcaSlicer.app: No such file or directory
+ cp -pR ../src/Release/OrcaSlicer.app ./OrcaSlicer.app
cp: ../src/Release/OrcaSlicer.app: No such file or directory
++ readlink ./OrcaSlicer.app/Contents/Resources
+ resources_path=
+ rm ./OrcaSlicer.app/Contents/Resources
rm: ./OrcaSlicer.app/Contents/Resources: No such file or directory
+ cp -R ./OrcaSlicer.app/Contents/Resources
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-aclpSsvXx] source_file target_file
       cp [-R [-H | -L | -P]] [-fi | -n] [-aclpSsvXx] source_file ... target_directory
+ find ./OrcaSlicer.app/ -name .DS_Store -delete
find: ./OrcaSlicer.app/: No such file or directory

I'm not sure.
Perhaps try using the default shell, ZSH?
Also, you could try building the dependencies only with build_release_macos.sh -d

Meanwhile, GitHub isn't the best place for this kind of help.
For further help/discussion, please move over to Discord server.

@Ocraftyone Ocraftyone deleted the patch-ghactions-mac-deps branch November 29, 2023 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants