Skip to content

OSX 10.13 build failed #2

@truatpasteurdotfr

Description

@truatpasteurdotfr

Operating Systems

macmini:~ tru$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.13.2
BuildVersion: 17C205

Barrier Version

git version: 33b8174
barrier: 1.9.0-snapshot.b1-33b81742

Steps to reproduce bug

#!/bin/sh
export Qt5_DIR=/usr/local//Cellar/qt/5.10.0_1
cd "$(dirname $0)" || exit 1
rm -rf build
mkdir build || exit 1
cd build || exit 1
cmake -D CMAKE_BUILD_TYPE=Debug \
-DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk \
      -DCMAKE_OSX_DEPLOYMENT_TARGET=10.13 \
      -DCMAKE_OSX_ARCHITECTURES=x86_64 ..  || exit 1
make -j 4 || exit 1
echo "Build completed successfully"

Other info

  • When did the problem start to occur? run the script
  • Is there a way to work around it? Not yet
  • Does this bug prevent you from using Barrier entirely? Yes

errors:

[ 78%] Linking CXX executable ../../bin/barrier
Undefined symbols for architecture x86_64:
  "_AXIsProcessTrusted", referenced from:
      checkMacAssistiveDevices() in main.cpp.o
  "_AXIsProcessTrustedWithOptions", referenced from:
      checkMacAssistiveDevices() in main.cpp.o
  "_CFDictionaryCreate", referenced from:
      checkMacAssistiveDevices() in main.cpp.o
  "_CFRelease", referenced from:
      checkMacAssistiveDevices() in main.cpp.o
  "_GetCurrentProcess", referenced from:
      MainWindow::setVisible(bool) in MainWindow.cpp.o
  "_TransformProcessType", referenced from:
      MainWindow::setVisible(bool) in MainWindow.cpp.o
  "_kAXTrustedCheckOptionPrompt", referenced from:
      checkMacAssistiveDevices() in main.cpp.o
  "_kCFBooleanTrue", referenced from:
      checkMacAssistiveDevices() in main.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [bin/barrier] Error 1
make[1]: *** [src/gui/CMakeFiles/barrier.dir/all] Error 2
make: *** [all] Error 2
macmini:build tru$ 

Metadata

Metadata

Assignees

Labels

build-infraBuild infrastructure bugs/PRsmacOSRelated to macOSneeds testingNeeds further testing before merging

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions