Skip to content

Instantly share code, notes, and snippets.

@gtk2k
Created July 22, 2023 07:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gtk2k/85e7730c47732560925807e2a8b7b6af to your computer and use it in GitHub Desktop.
Save gtk2k/85e7730c47732560925807e2a8b7b6af to your computer and use it in GitHub Desktop.
XRGyroControls_OpenXR ./build.sh log
(base) tanakakenji@gtk2kmac ~ % ./build.sh
zsh: no such file or directory: ./build.sh
(base) tanakakenji@gtk2kmac ~ % cd XRGyroControls_OpenXR
(base) tanakakenji@gtk2kmac XRGyroControls_OpenXR % ./build.sh
Initialized empty Git repository in /Users/tanakakenji/XRGyroControls_OpenXR/libusb/.git/
remote: Enumerating objects: 160, done.
remote: Counting objects: 100% (160/160), done.
remote: Compressing objects: 100% (143/143), done.
remote: Total 160 (delta 35), reused 49 (delta 14), pack-reused 0
Receiving objects: 100% (160/160), 429.39 KiB | 10.22 MiB/s, done.
Resolving deltas: 100% (35/35), done.
From https://github.com/libusb/libusb
* branch 8450cc93f6c8747a36a9ee246708bf650bb762a8 -> FETCH_HEAD
Note: switching to 'FETCH_HEAD'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at 8450cc9 Revert "windows: Fix off-by-one error in HID backend for devices without report IDs"
../libusb.patch:283: trailing whitespace.
an "out of resources" error with certain USB devices the first time we run
warning: 1 line adds whitespace errors.
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: glibtoolize --copy --force
glibtoolize: putting auxiliary files in '.'.
glibtoolize: copying file './ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
glibtoolize: copying file 'm4/libtool.m4'
glibtoolize: copying file 'm4/ltoptions.m4'
glibtoolize: copying file 'm4/ltsugar.m4'
glibtoolize: copying file 'm4/ltversion.m4'
glibtoolize: copying file 'm4/lt~obsolete.m4'
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: aclocal --force -I m4
autoreconf: running: /opt/homebrew/Cellar/autoconf/2.71/bin/autoconf --force
autoreconf: running: /opt/homebrew/Cellar/autoconf/2.71/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:23: installing './compile'
configure.ac:27: installing './config.guess'
configure.ac:27: installing './config.sub'
configure.ac:26: installing './install-sh'
configure.ac:26: installing './missing'
Makefile.am: installing './INSTALL'
examples/Makefile.am: installing './depcomp'
autoreconf: Leaving directory '.'
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking for g++... g++
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking for inline... inline
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports the include directive... yes (GNU style)
checking whether make supports nested variables... yes
checking dependency style of gcc... gcc3
checking dependency style of g++... gcc3
checking build system type... aarch64-apple-darwin22.5.0
checking host system type... aarch64-apple-darwin22.5.0
checking how to print strings... printf
checking for a sed that does not truncate output... /opt/homebrew/bin/gsed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /Users/tanakakenji/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Users/tanakakenji/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 786432
checking how to convert aarch64-apple-darwin22.5.0 file names to aarch64-apple-darwin22.5.0 format... func_convert_file_noop
checking how to convert aarch64-apple-darwin22.5.0 file names to toolchain format... func_convert_file_noop
checking for /Users/tanakakenji/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r
checking for file... file
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... ld: warning: -single_module is obsolete
no
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/Users/tanakakenji/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin22.5.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /Users/tanakakenji/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Users/tanakakenji/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking whether the g++ linker (/Users/tanakakenji/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fno-common -DPIC
checking if g++ PIC flag -fno-common -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/Users/tanakakenji/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin22.5.0 dyld
checking how to hardcode library paths into programs... immediate
checking for windres... no
checking whether make supports nested variables... (cached) yes
checking if gcc supports -std=gnu11... yes
checking operating system... Darwin/Mac OS X
checking for nfds_t... yes
checking for pipe2... no
checking if gcc recognizes -pthread... yes
checking for library containing pthread_create... none required
checking whether __atomic_load_n is supported... yes
checking for pthread_threadid_np... yes
checking for IOKit/usb/IOUSBHostFamilyDefinitions.h... yes
checking for sys/time.h... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating libusb-1.0.pc
config.status: creating Makefile
config.status: creating libusb/Makefile
config.status: creating examples/Makefile
config.status: creating tests/Makefile
config.status: creating doc/Makefile
config.status: creating doc/doxygen.cfg
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
/Users/tanakakenji/Downloads/Xcode-beta.app/Contents/Developer/usr/bin/make all-recursive
Making all in libusb
CC core.lo
CC descriptor.lo
CC hotplug.lo
CC io.lo
CC strerror.lo
CC sync.lo
CC os/events_posix.lo
CC os/threads_posix.lo
CC os/darwin_usb.lo
os/darwin_usb.c:421:17: warning: unused variable 'factoryID' [-Wunused-variable]
CFUUIDRef factoryID;
^
1 warning generated.
CCLD libusb-1.0.la
make[2]: Nothing to be done for `all-am'.
OpenXR found with pkg-config
openxr_loader
-- Configuring done (0.1s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/tanakakenji/XRGyroControls_OpenXR/build
ninja: Entering directory `build'
[1/4] Building C object CMakeFiles/Sim...XR.dir/visionos_stereo_screenshots.m.o
FAILED: CMakeFiles/Sim2OpenXR.dir/visionos_stereo_screenshots.m.o
/Users/tanakakenji/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DSim2OpenXR_EXPORTS -I/Users/tanakakenji/XRGyroControls_OpenXR/external/glm/include -O2 -g -DNDEBUG -arch arm64 -isysroot /Users/tanakakenji/Downloads/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk -mmacosx-version-min=13.4 -fPIC -fmodules -fobjc-arc -isysroot "/Applications/Xcode-beta.app/Contents/Developer/Platforms/XRSimulator.platform/Developer/SDKs/XRSimulator1.0.sdk" -MD -MT CMakeFiles/Sim2OpenXR.dir/visionos_stereo_screenshots.m.o -MF CMakeFiles/Sim2OpenXR.dir/visionos_stereo_screenshots.m.o.d -o CMakeFiles/Sim2OpenXR.dir/visionos_stereo_screenshots.m.o -c /Users/tanakakenji/XRGyroControls_OpenXR/visionos_stereo_screenshots.m
clang: warning: using sysroot for 'XRSimulator' but targeting 'MacOSX' [-Wincompatible-sysroot]
/Users/tanakakenji/XRGyroControls_OpenXR/visionos_stereo_screenshots.m:232:29: error: incompatible types casting 'ar_pose_t _Nullable' (aka 'struct ar_pose_s *') to 'ar_pose_internal_t' (aka 'struct ar_pose_internal *') with a __bridge cast
ar_pose_internal_t pose = (__bridge ar_pose_internal_t)cp_drawable_get_ar_pose(retval);
^ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/tanakakenji/XRGyroControls_OpenXR/visionos_stereo_screenshots.m:799:52: warning: 'pose' used as the name of the previous parameter rather than as part of the selector [-Wmissing-selector-name]
- (void)getEyePose:(struct RSSimulatedHeadsetPose*)pose:(int)forEye;
^
/Users/tanakakenji/XRGyroControls_OpenXR/visionos_stereo_screenshots.m:799:52: note: introduce a parameter name to make 'pose' part of the selector
/Users/tanakakenji/XRGyroControls_OpenXR/visionos_stereo_screenshots.m:799:56: note: or insert whitespace before ':' to use 'pose' as parameter name and have an empty entry in the selector
- (void)getEyePose:(struct RSSimulatedHeadsetPose*)pose:(int)forEye;
^
/Users/tanakakenji/XRGyroControls_OpenXR/visionos_stereo_screenshots.m:800:51: warning: 'pose' used as the name of the previous parameter rather than as part of the selector [-Wmissing-selector-name]
- (void)setEyePose:(struct RSSimulatedHeadsetPose)pose:(int)forEye;
^
/Users/tanakakenji/XRGyroControls_OpenXR/visionos_stereo_screenshots.m:800:51: note: introduce a parameter name to make 'pose' part of the selector
/Users/tanakakenji/XRGyroControls_OpenXR/visionos_stereo_screenshots.m:800:55: note: or insert whitespace before ':' to use 'pose' as parameter name and have an empty entry in the selector
- (void)setEyePose:(struct RSSimulatedHeadsetPose)pose:(int)forEye;
^
2 warnings and 1 error generated.
[2/4] Building CXX object CMakeFiles/OpenXRCpp.dir/openxr_src/Main.cpp.o
/Users/tanakakenji/XRGyroControls_OpenXR/openxr_src/Main.cpp:99:32: warning: format specifies type 'unsigned int' but the argument has type 'ssize_t' (aka 'long') [-Wformat]
printf("Found %u devices\n", cnt);
~~ ^~~
%zd
1 warning generated.
ninja: build stopped: subcommand failed.
(base) tanakakenji@gtk2kmac XRGyroControls_OpenXR %
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment