Closed buzzdev closed 1 year ago
It's all self-contained, including miniupnpc. It'd be helpful, if you could
git clone http://github.com/sighthoundinc/SighthoundVideo
cd SighthoundVideo
./buildSV.sh
If still failing, please attach the entire log (clone to end). I've just verified the above sequence works here, but there could always be a different of environment.
UPDATE: just in case there is one, please let me know what you're using. Here I have:
$ cmake --version
cmake version 3.19.5
CMake suite maintained and supported by Kitware (kitware.com/cmake).
$ clang --version
Apple clang version 14.0.0 (clang-1400.0.29.202)
Target: x86_64-apple-darwin21.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
@w3sip thank you for help.
$ cmake --version
cmake version 3.26.3
CMake suite maintained and supported by Kitware (kitware.com/cmake).
$ clang --version
Apple clang version 13.0.0 (clang-1300.0.29.30)
Target: x86_64-apple-darwin20.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Full build log:
******@Martins-MacBook-Pro:/Users/******/Documents/PRIVATE/DEV$ rm -fR SighthoundVideo/
******@Martins-MacBook-Pro:/Users/******/Documents/PRIVATE/DEV$ git clone http://github.com/sighthoundinc/SighthoundVideo
Cloning into 'SighthoundVideo'...
warning: redirecting to https://github.com/sighthoundinc/SighthoundVideo/
remote: Enumerating objects: 615, done.
remote: Counting objects: 100% (615/615), done.
remote: Compressing objects: 100% (539/539), done.
remote: Total 615 (delta 67), reused 611 (delta 66), pack-reused 0
Receiving objects: 100% (615/615), 1.34 MiB | 2.25 MiB/s, done.
Resolving deltas: 100% (67/67), done.
******@Martins-MacBook-Pro:/Users/******/Documents/PRIVATE/DEV$ cd SighthoundVideo/
******@Martins-MacBook-Pro:/Users/******/Documents/PRIVATE/DEV/SighthoundVideo$ ll
total 152
-rw-r--r-- 1 ****** staff 3102 May 3 22:16 Alt_Keymap.txt
-rw-r--r-- 1 ****** staff 1046 May 3 22:16 COPYING
-rw-r--r-- 1 ****** staff 721 May 3 22:16 CodeResources.plist
-rw-r--r-- 1 ****** staff 4479 May 3 22:16 DEBUGGING
-rwxr-xr-x 1 ****** staff 7611 May 3 22:16 FrontEndLaunchpad.py
-rw-r--r-- 1 ****** staff 2367 May 3 22:16 Makefile
drwxr-xr-x 6 ****** staff 192 May 3 22:16 Microsoft.VC90.CRT.x86_64
-rwxr-xr-x 1 ****** staff 17020 May 3 22:16 PackageSources.py
-rw-r--r-- 1 ****** staff 3270 May 3 22:16 README.md
-rwxr-xr-x 1 ****** staff 3283 May 3 22:16 app
drwxr-xr-x 12 ****** staff 384 May 3 22:16 appCommon
drwxr-xr-x 33 ****** staff 1056 May 3 22:16 backEnd
-rwxr-xr-x 1 ****** staff 4010 May 3 22:16 buildSV.sh
drwxr-xr-x 4 ****** staff 128 May 3 22:16 config
drwxr-xr-x 4 ****** staff 128 May 3 22:16 fonts
drwxr-xr-x 64 ****** staff 2048 May 3 22:16 frontEnd
drwxr-xr-x 6 ****** staff 192 May 3 22:16 icons
drwxr-xr-x 10 ****** staff 320 May 3 22:16 launch
drwxr-xr-x 4 ****** staff 128 May 3 22:16 mac
-rwxr-xr-x 1 ****** staff 2041 May 3 22:16 run
drwxr-xr-x 13 ****** staff 416 May 3 22:16 scripts
-rwxr-xr-x 1 ****** staff 5268 May 3 22:16 setupEnvironment
drwxr-xr-x 20 ****** staff 640 May 3 22:16 vitaToolbox
drwxr-xr-x 4 ****** staff 128 May 3 22:16 win
drwxr-xr-x 13 ****** staff 416 May 3 22:16 xnat
******@Martins-MacBook-Pro:/Users/******/Documents/PRIVATE/DEV/SighthoundVideo$ ./buildSV.sh
tar: Error opening archive: Unrecognized archive format
tar: Error opening archive: Unrecognized archive format
xattr: No such file: /var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T//tools/svpython//Python.framework
SV3RDPARTYDIR=/var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T//libs
Building launch from /Users/******/Documents/PRIVATE/DEV/SighthoundVideo/launch into /var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T//install
/var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/launch/.build ~/Documents/PRIVATE/DEV/SighthoundVideo
Building /Users/******/Documents/PRIVATE/DEV/SighthoundVideo/launch for Mac
-- The C compiler identification is AppleClang 13.0.0.13000029
-- The CXX compiler identification is AppleClang 13.0.0.13000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - 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: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done (0.7s)
-- Generating done (0.0s)
-- Build files have been written to: /var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/launch/.build
/usr/local/Cellar/cmake/3.26.3/bin/cmake -S/Users/******/Documents/PRIVATE/DEV/SighthoundVideo/launch -B/var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/launch/.build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/local/Cellar/cmake/3.26.3/bin/cmake -E cmake_progress_start /var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/launch/.build/CMakeFiles /var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/launch/.build//CMakeFiles/progress.marks
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/Makefile2 all
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/SighthoundVideoLauncher.dir/build.make CMakeFiles/SighthoundVideoLauncher.dir/depend
[ 11%] =================== Generating /var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/launch/.build/shlaunch_build.h ...
/Users/******/Documents/PRIVATE/DEV/SighthoundVideo/launch/../scripts/generateShsudoHeader.sh /var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/launch/.build/shlaunch_build.h
Current script dir /Users/******/Documents/PRIVATE/DEV/SighthoundVideo/scripts
~/Documents/PRIVATE/DEV/SighthoundVideo/scripts /var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/launch/.build
/var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/launch/.build
Rev is 12345
cd /var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/launch/.build && /usr/local/Cellar/cmake/3.26.3/bin/cmake -E cmake_depends "Unix Makefiles" /Users/******/Documents/PRIVATE/DEV/SighthoundVideo/launch /Users/******/Documents/PRIVATE/DEV/SighthoundVideo/launch /var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/launch/.build /var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/launch/.build /var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/launch/.build/CMakeFiles/SighthoundVideoLauncher.dir/DependInfo.cmake --color=
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/SighthoundVideoLauncher.dir/build.make CMakeFiles/SighthoundVideoLauncher.dir/build
[ 22%] Building C object CMakeFiles/SighthoundVideoLauncher.dir/shsudoMac/shsudoMac/shsudoMac/shsudo.m.o
/Library/Developer/CommandLineTools/usr/bin/cc -I/var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/launch/.build -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk -mmacosx-version-min=10.11 -MD -MT CMakeFiles/SighthoundVideoLauncher.dir/shsudoMac/shsudoMac/shsudoMac/shsudo.m.o -MF CMakeFiles/SighthoundVideoLauncher.dir/shsudoMac/shsudoMac/shsudoMac/shsudo.m.o.d -o CMakeFiles/SighthoundVideoLauncher.dir/shsudoMac/shsudoMac/shsudoMac/shsudo.m.o -c /Users/******/Documents/PRIVATE/DEV/SighthoundVideo/launch/shsudoMac/shsudoMac/shsudoMac/shsudo.m
/Users/******/Documents/PRIVATE/DEV/SighthoundVideo/launch/shsudoMac/shsudoMac/shsudoMac/shsudo.m:80:13: warning: 'AuthorizationExecuteWithPrivileges' is deprecated: first deprecated in macOS 10.7 [-Wdeprecated-declarations]
ostat = AuthorizationExecuteWithPrivileges(
^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Security.framework/Headers/Authorization.h:428:10: note: 'AuthorizationExecuteWithPrivileges' has been explicitly marked deprecated here
OSStatus AuthorizationExecuteWithPrivileges(AuthorizationRef authorization,
^
1 warning generated.
[ 33%] Linking C executable SighthoundVideoLauncher
/usr/local/Cellar/cmake/3.26.3/bin/cmake -E cmake_link_script CMakeFiles/SighthoundVideoLauncher.dir/link.txt --verbose=1
/Library/Developer/CommandLineTools/usr/bin/cc -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk -mmacosx-version-min=10.11 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -lobjc CMakeFiles/SighthoundVideoLauncher.dir/shsudoMac/shsudoMac/shsudoMac/shsudo.m.o -o SighthoundVideoLauncher -framework Foundation -framework Security
[ 33%] Built target SighthoundVideoLauncher
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/launch.dir/build.make CMakeFiles/launch.dir/depend
cd /var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/launch/.build && /usr/local/Cellar/cmake/3.26.3/bin/cmake -E cmake_depends "Unix Makefiles" /Users/******/Documents/PRIVATE/DEV/SighthoundVideo/launch /Users/******/Documents/PRIVATE/DEV/SighthoundVideo/launch /var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/launch/.build /var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/launch/.build /var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/launch/.build/CMakeFiles/launch.dir/DependInfo.cmake --color=
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/launch.dir/build.make CMakeFiles/launch.dir/build
[ 44%] Building C object CMakeFiles/launch.dir/launch.c.o
/Library/Developer/CommandLineTools/usr/bin/cc -Dlaunch_EXPORTS -I/Users/******/Documents/PRIVATE/DEV/SighthoundVideo/launch/shlaunchMac/shlaunchMac -I/var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/launch/.build -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk -mmacosx-version-min=10.11 -fPIC -MD -MT CMakeFiles/launch.dir/launch.c.o -MF CMakeFiles/launch.dir/launch.c.o.d -o CMakeFiles/launch.dir/launch.c.o -c /Users/******/Documents/PRIVATE/DEV/SighthoundVideo/launch/launch.c
[ 55%] Linking C shared library liblaunch.dylib
/usr/local/Cellar/cmake/3.26.3/bin/cmake -E cmake_link_script CMakeFiles/launch.dir/link.txt --verbose=1
/Library/Developer/CommandLineTools/usr/bin/cc -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk -mmacosx-version-min=10.11 -dynamiclib -Wl,-headerpad_max_install_names -o liblaunch.dylib -install_name @rpath/liblaunch.dylib CMakeFiles/launch.dir/launch.c.o -liconv
[ 66%] Built target launch
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/shlaunch.dir/build.make CMakeFiles/shlaunch.dir/depend
cd /var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/launch/.build && /usr/local/Cellar/cmake/3.26.3/bin/cmake -E cmake_depends "Unix Makefiles" /Users/******/Documents/PRIVATE/DEV/SighthoundVideo/launch /Users/******/Documents/PRIVATE/DEV/SighthoundVideo/launch /var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/launch/.build /var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/launch/.build /var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/launch/.build/CMakeFiles/shlaunch.dir/DependInfo.cmake --color=
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/shlaunch.dir/build.make CMakeFiles/shlaunch.dir/build
[ 77%] Building C object CMakeFiles/shlaunch.dir/shlaunchMac/shlaunchMac/shlaunch.c.o
/Library/Developer/CommandLineTools/usr/bin/cc -I/Users/******/Documents/PRIVATE/DEV/SighthoundVideo/launch/shlaunchMac/shlaunchMac -I/var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/launch/.build -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk -mmacosx-version-min=10.11 -MD -MT CMakeFiles/shlaunch.dir/shlaunchMac/shlaunchMac/shlaunch.c.o -MF CMakeFiles/shlaunch.dir/shlaunchMac/shlaunchMac/shlaunch.c.o.d -o CMakeFiles/shlaunch.dir/shlaunchMac/shlaunchMac/shlaunch.c.o -c /Users/******/Documents/PRIVATE/DEV/SighthoundVideo/launch/shlaunchMac/shlaunchMac/shlaunch.c
[ 88%] Linking C executable shlaunch
/usr/local/Cellar/cmake/3.26.3/bin/cmake -E cmake_link_script CMakeFiles/shlaunch.dir/link.txt --verbose=1
/Library/Developer/CommandLineTools/usr/bin/cc -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk -mmacosx-version-min=10.11 -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/shlaunch.dir/shlaunchMac/shlaunchMac/shlaunch.c.o -o shlaunch -liconv
[100%] Built target shlaunch
/usr/local/Cellar/cmake/3.26.3/bin/cmake -E cmake_progress_start /var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/launch/.build/CMakeFiles 0
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/Makefile2 preinstall
make[1]: Nothing to be done for `preinstall'.
Install the project...
/usr/local/Cellar/cmake/3.26.3/bin/cmake -P cmake_install.cmake
-- Install configuration: ""
-- Installing: /var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/install/bin/shlaunch
-- Installing: /var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/install/lib/liblaunch.dylib
-- Installing: /var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/install/bin/SighthoundVideoLauncher
Building launch from /Users/******/Documents/PRIVATE/DEV/SighthoundVideo/launch into /var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T//install - done
~/Documents/PRIVATE/DEV/SighthoundVideo
Building xnat from /Users/******/Documents/PRIVATE/DEV/SighthoundVideo/xnat into /var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T//install
/var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/xnat/.build ~/Documents/PRIVATE/DEV/SighthoundVideo
Building /Users/******/Documents/PRIVATE/DEV/SighthoundVideo/xnat for Mac
-- The C compiler identification is AppleClang 13.0.0.13000029
-- The CXX compiler identification is AppleClang 13.0.0.13000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - 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: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done (0.7s)
-- Generating done (0.0s)
-- Build files have been written to: /var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/xnat/.build
/usr/local/Cellar/cmake/3.26.3/bin/cmake -S/Users/******/Documents/PRIVATE/DEV/SighthoundVideo/xnat -B/var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/xnat/.build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/local/Cellar/cmake/3.26.3/bin/cmake -E cmake_progress_start /var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/xnat/.build/CMakeFiles /var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/xnat/.build//CMakeFiles/progress.marks
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/Makefile2 all
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/xnat.dir/build.make CMakeFiles/xnat.dir/depend
cd /var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/xnat/.build && /usr/local/Cellar/cmake/3.26.3/bin/cmake -E cmake_depends "Unix Makefiles" /Users/******/Documents/PRIVATE/DEV/SighthoundVideo/xnat /Users/******/Documents/PRIVATE/DEV/SighthoundVideo/xnat /var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/xnat/.build /var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/xnat/.build /var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/xnat/.build/CMakeFiles/xnat.dir/DependInfo.cmake --color=
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/xnat.dir/build.make CMakeFiles/xnat.dir/build
[ 50%] Building C object CMakeFiles/xnat.dir/xnat.c.o
/Library/Developer/CommandLineTools/usr/bin/cc -DMINIUPNP_STATICLIB=1 -DNATPMP_STATICLIB=1 -D__XNAT_DYLIB -Dxnat_EXPORTS -I/var/folders/r9/6t2rn1rd4tl3r_t0xtjws7v00000gn/T/libs/include -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk -mmacosx-version-min=10.11 -fPIC -MD -MT CMakeFiles/xnat.dir/xnat.c.o -MF CMakeFiles/xnat.dir/xnat.c.o.d -o CMakeFiles/xnat.dir/xnat.c.o -c /Users/******/Documents/PRIVATE/DEV/SighthoundVideo/xnat/xnat.c
/Users/******/Documents/PRIVATE/DEV/SighthoundVideo/xnat/xnat.c:54:10: fatal error: 'miniupnpc/miniupnpc.h' file not found
#include <miniupnpc/miniupnpc.h>
^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/xnat.dir/xnat.c.o] Error 1
make[1]: *** [CMakeFiles/xnat.dir/all] Error 2
make: *** [all] Error 2
Failed to build /Users/******/Documents/PRIVATE/DEV/SighthoundVideo/xnat (make)
@w3sip i've just noticed this right at the beginning:
$ ./buildSV.sh
tar: Error opening archive: Unrecognized archive format
tar: Error opening archive: Unrecognized archive format
...
I have these libs in the source tree:
$ find . -type f -name '*.tgz'
./win/tools.tgz
./win/libs.tgz
./mac/tools.tgz
./mac/libs.tgz
however trying to extract i'm getting:
$ tar zxvf mac/libs.tgz
tar: Error opening archive: Unrecognized archive format
$ tar xvf mac/tools.tgz
tar: Error opening archive: Unrecognized archive format
It seems to me as the format of those .tgz files is incorrect:
$ file mac/libs.tgz
mac/libs.tgz: ASCII text
@w3sip downloading those 2 archives from github manually and replacing cloned files fixes the file type and i was able to unpack the sources and continue the build.
@buzzdev glad you got it. These files are git-lfs
objects. I believe with the version of git I have (git version 2.37.1 (Apple Git-137.1)
) LFS objects are pulled automatically on clone, but with an older version you may have to manually run git lfs pull
after cloning
Missing dependencies 'miniupnpc'. Build failing on Mac.
Where do i get the missing 'miniupnpc' source code from?