FreeRDP: bundle-mac-os.sh fails: ninja: build stopped: subcommand failed.

Describe the bug When I try to build the native macOS client, im getting the following error:

ninja: build stopped: subcommand failed.

The error happens during this step:

cmake -GNinja -Bfreerdp -S"$SCRIPT_PATH/.." \
	$CMAKE_ARGS \
	-DWITH_PLATFORM_SERVER=OFF \
	-DWITH_NEON=ON \
	-DWITH_SSE=ON \
	-DWITH_FFMPEG=OFF \
	-DWITH_SWSCALE=ON \
	-DWITH_OPUS=ON \
	-DWITH_WEBVIEW=OFF \
	-DWITH_FAAD2=ON \
	-DWITH_FAAC=ON \
	-DWITH_INTERNAL_RC4=ON \
	-DWITH_INTERNAL_MD4=ON \
	-DWITH_INTERNAL_MD5=ON
cmake --build freerdp
cmake --install freerdp

I’ve used commit hash 073f1ee642827a97d549d7760dfaf14501b72235

To Reproduce Steps to reproduce the behavior:

  1. clone the repo
  2. navigate to scripts directory
  3. run ./bundle-mac-os.sh
  4. See error

Expected behavior build works

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS: macOS
  • Version/Distribution: 15.0
  • Architecture: arm

Additional context I’ve attached the whole log.txt.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 22 (7 by maintainers)

Most upvoted comments

there seem to be some include paths messing with your build:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DFREERDP_EXPORTS -DUSE_EXECINFO -DUSE_UNWIND -DWINPR_CRITICAL_SECTION_DISABLE_SPINCOUNT -          DWINPR_EXPORTS -DWINPR_TIMEZONE_FILE=\"/var/db/zoneinfo\" -DWITH_JSONC -DWITH_OPENSSL -DWITH_PKCS11 -DWITH_SMARTCARD_EMULATE -DWITH_SMARTCARD_PCSC -DWITH_TIMEZONE_COMPILED -                 DWITH_URIPARSER -DWITH_VERBOSE_WINPR_ASSERT -D_DARWIN_C_SOURCE -D_POSIX_C_SOURCE=200809L -Dwinpr_EXPORTS -I/Users/alexanderhoerl/Developer/FreeRDP/winpr/include -I/Users/alexanderhoerl/     Developer/FreeRDP/scripts/build/freerdp/winpr/include -I/Users/alexanderhoerl/Developer/FreeRDP/winpr/libwinpr/utils -I/opt/homebrew/Cellar/json-c/0.17/include/json-c -I/Users/              alexanderhoerl/Developer/FreeRDP/winpr/libwinpr/utils/. -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks -      isystem /Users/alexanderhoerl/Developer/FreeRDP/scripts/install/MacFreeRDP.app/Contents/include -Weverything -Wall -Wpedantic -Wno-padded -Wno-switch-enum -Wno-cast-align -Wno-declaration-  after-statement -Wno-unsafe-buffer-usage -Wno-reserved-identifier -Wno-covered-switch-default -Wno-c11-extensions -Wno-gnu -fno-omit-frame-pointer -DWINPR_DLL -O3 -DNDEBUG -std=gnu11 -arch  x86_64 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -mmacosx-version-min=12 -fPIC -MD -MT winpr/libwinpr/         CMakeFiles/winpr.dir/utils/json/json.c.o -MF winpr/libwinpr/CMakeFiles/winpr.dir/utils/json/json.c.o.d -o winpr/libwinpr/CMakeFiles/winpr.dir/utils/json/json.c.o -c /Users/alexanderhoerl/   Developer/FreeRDP/winpr/libwinpr/utils/json/json.c
 /Users/alexanderhoerl/Developer/FreeRDP/winpr/libwinpr/utils/json/json.c:30:10: fatal error: 'json-c/json.h' file not found
 #include <json-c/json.h> 
          ^~~~~~~~~~~~~~~
          ```