ossia / libossia

A modern C++, cross-environment distributed object model for creative coding and interaction scoring
https://ossia.io
GNU Lesser General Public License v3.0
208 stars 34 forks source link

[ossia-max] build-ossia-max.sh for OSX fails #668

Closed maybites closed 3 years ago

maybites commented 3 years ago
USER@USERsMBP172 tools % ./build-ossia-max.sh 
+ export LANG=en_US.UTF-8
+ LANG=en_US.UTF-8
+ command -v brew
+ command -v greadlink
+ command -v ninja
+ OSSIA_BUILD_TYPE=debug
+++ greadlink -f ./build-ossia-max.sh
++ dirname /Users/USER/Arbeiten/02_code/library/ossia/libossia/tools/build-ossia-max.sh
+ SCRIPT_FOLDER=/Users/USER/Arbeiten/02_code/library/ossia/libossia/tools
+ REPO_ROOT=/Users/USER/Arbeiten/02_code/library/ossia/libossia/tools/../
+ OSSIA_BUILD_FOLDER=/Users/USER/Arbeiten/02_code/library/ossia/libossia/tools/..//build-ossia-max
+ [[ -n '' ]]
+ mkdir -p /Users/USER/Arbeiten/02_code/library/ossia/libossia/tools/..//build-ossia-max
+ cd /Users/USER/Arbeiten/02_code/library/ossia/libossia/tools/..//build-ossia-max
+ cmake -GNinja /Users/USER/Arbeiten/02_code/library/ossia/libossia/tools/../ -DCMAKE_BUILD_TYPE=debug '-DOSSIA_MAX_INSTALL_FOLDER=/Users/USER/Documents/Max 8/Packages/ossia' -DOSSIA_MAX_ONLY=1 -DCMAKE_OSX_DEPLOYMENT_TARGET=10.13
CMake Warning at /usr/local/Cellar/cmake/3.18.4/share/cmake/Modules/Platform/Darwin-Initialize.cmake:286 (message):
  Ignoring CMAKE_OSX_SYSROOT value:

   /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk

  because the directory does not exist.
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.18.4/share/cmake/Modules/CMakeSystemSpecificInitialize.cmake:21 (include)
  CMakeLists.txt:20 (project)

CMake Warning (dev) at CMakeLists.txt:38 (set):
  implicitly converting '' to 'STRING' type.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found ZeroConf in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/usr/include;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/System/Library/Frameworks/System.framework
-- Build against git revision : 5c7acaf78, last commit on 2020-12-17
--  Files.h have been found here : /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers
-- libossia - Build Type: debug
-- libossia - Static: 1
-- libossia - Coverage: OFF
-- libossia - Examples: OFF
-- libossia - Benchmarks: 
-- libossia - Tests: OFF
-- libossia - CI: OFF
-- libossia - Framework: OFF
-- libossia - Dataflow: OFF
-- libossia - Editor: OFF
-- libossia - Protocols: OSC;Minuit;OSCQuery
-- libossia - Zeroconf: 1
-- libossia - OSX Architectures: 1
-- libossia - OSX Retrocompatibility: OFF

-- libossia - bindings ----------
-- libossia - PureData: OFF
-- libossia - Max: 1
-- libossia - Python: 0
-- libossia - Unity3d: 0
-- libossia - Java: 0
-- libossia - Qt: 0
-- libossia - C: 0
-- libossia - CPP: 0
-- Jack_INCLUDE_DIR : 
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/USER/Arbeiten/02_code/library/ossia/libossia/build-ossia-max
+ ninja
ninja: error: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/System/Library/Frameworks/System.framework', needed by 'src/ossia-max/libossia-max.dylib', missing and no known rule to make it
avilleret commented 3 years ago

could you try 51e8b72c ? but you might need to sync submodule before :

git submodule sync
maybites commented 3 years ago

I still get

avilleret commented 3 years ago

I can't reproduce it either after upgrading XCode or on a fresh new macos 10.15 install. Did you upgrade your XCode since the last time you ran the script ? Did you try to delete the build folder and run the script again ?

maybites commented 3 years ago

removing the build folder fixes it. 👍