debauchee / barrier

Open-source KVM software
Other
27.25k stars 1.5k forks source link

Cannot compile for mac OSX 10.7 (Lion) ? #921

Open hcampan opened 3 years ago

hcampan commented 3 years ago

Hi all,

I'm trying to compile barrier for a low-end Mac on OSX 10.7 (Lion) to use it as client. Compiling starts, but hangs with several CMakeLists.txt errors. I'm maybe trying something impossible. If so, tell me. Debugging compiling is way above my abilities.

Here are versions of tools I have:

MacPorts 2.6.3

$ cmake --version

cmake version 3.18.4
CMake suite maintained and supported by Kitware (kitware.com/cmake).

$ g++ --version

i686-apple-darwin11-llvm-g++-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Copyright (C) 2007 Free Software Foundation, Inc.

$ gcc --version

i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Copyright (C) 2007 Free Software Foundation, Inc.

Here is what I get:

$ ./clean_build.sh

Modifying environment for Barrier build...
/opt/local/bin/port
Detected Macports
done
Starting Barrier Debug build...
-- The C compiler identification is AppleClang 4.2.0.4250028
-- The CXX compiler identification is AppleClang 4.2.0.4250028
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Full Barrier version string is '2.3.3-release-release'
-- Found PkgConfig: /opt/local/bin/pkg-config (found version "0.29.2") 
-- Looking for C++ include istream
-- Looking for C++ include istream - found
-- Looking for C++ include ostream
-- Looking for C++ include ostream - found
-- Looking for C++ include sstream
-- Looking for C++ include sstream - found
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Looking for include file locale.h
-- Looking for include file locale.h - found
-- Looking for include file memory.h
-- Looking for include file memory.h - found
-- Looking for include file stdlib.h
-- Looking for include file stdlib.h - found
-- Looking for include file strings.h
-- Looking for include file strings.h - found
-- Looking for include file string.h
-- Looking for include file string.h - found
-- Looking for include file sys/select.h
-- Looking for include file sys/select.h - found
-- Looking for include file sys/socket.h
-- Looking for include file sys/socket.h - found
-- Looking for include file sys/stat.h
-- Looking for include file sys/stat.h - found
-- Looking for include file sys/time.h
-- Looking for include file sys/time.h - found
-- Looking for include file sys/utsname.h
-- Looking for include file sys/utsname.h - found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for include file wchar.h
-- Looking for include file wchar.h - found
-- Looking for getpwuid_r
-- Looking for getpwuid_r - found
-- Looking for gmtime_r
-- Looking for gmtime_r - found
-- Looking for nanosleep
-- Looking for nanosleep - found
-- Looking for poll
-- Looking for poll - found
-- Looking for sigwait
-- Looking for sigwait - found
-- Looking for strftime
-- Looking for strftime - found
-- Looking for vsnprintf
-- Looking for vsnprintf - found
-- Looking for inet_aton
-- Looking for inet_aton - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of char
-- Check size of char - done
-- Check size of int
-- Check size of int - done
-- Check size of long
-- Check size of long - done
-- Check size of short
-- Check size of short - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Found CURL: /opt/local/lib/libcurl.dylib (found version "7.72.0")  
-- Configuring directory /Users/head/Downloads/barrier/build/bundle
-- Copying file Barrier.app/Contents/PkgInfo
-- Copying file Barrier.app/Contents/Resources/Barrier.icns
-- Copying file reref_dylibs.sh
-- Configuring file Barrier.app/Contents/Info.plist
-- Configuring file build_dist.sh
-- Configuring file build_installer.sh
-- Configuring done
CMake Error in src/lib/arch/CMakeLists.txt:
  Target "arch" requires the language dialect "CXX14" , but CMake does not
  know the compile flags to use to enable it.

CMake Error in src/lib/base/CMakeLists.txt:
  Target "base" requires the language dialect "CXX14" , but CMake does not
  know the compile flags to use to enable it.

CMake Error in src/lib/client/CMakeLists.txt:
  Target "client" requires the language dialect "CXX14" , but CMake does not
  know the compile flags to use to enable it.

CMake Error in src/lib/common/CMakeLists.txt:
  Target "common" requires the language dialect "CXX14" , but CMake does not
  know the compile flags to use to enable it.

CMake Error in src/lib/io/CMakeLists.txt:
  Target "io" requires the language dialect "CXX14" , but CMake does not know
  the compile flags to use to enable it.

CMake Error in src/lib/ipc/CMakeLists.txt:
  Target "ipc" requires the language dialect "CXX14" , but CMake does not
  know the compile flags to use to enable it.

CMake Error in src/lib/mt/CMakeLists.txt:
  Target "mt" requires the language dialect "CXX14" , but CMake does not know
  the compile flags to use to enable it.

CMake Error in src/lib/net/CMakeLists.txt:
  Target "net" requires the language dialect "CXX14" , but CMake does not
  know the compile flags to use to enable it.

CMake Error in src/lib/platform/CMakeLists.txt:
  Target "platform" requires the language dialect "CXX14" , but CMake does
  not know the compile flags to use to enable it.

CMake Error in src/lib/server/CMakeLists.txt:
  Target "server" requires the language dialect "CXX14" , but CMake does not
  know the compile flags to use to enable it.

CMake Error in src/lib/barrier/CMakeLists.txt:
  Target "synlib" requires the language dialect "CXX14" , but CMake does not
  know the compile flags to use to enable it.

CMake Error in src/cmd/barrierc/CMakeLists.txt:
  Target "barrierc" requires the language dialect "CXX14" , but CMake does
  not know the compile flags to use to enable it.

CMake Error in src/cmd/barriers/CMakeLists.txt:
  Target "barriers" requires the language dialect "CXX14" , but CMake does
  not know the compile flags to use to enable it.

CMake Error in src/test/CMakeLists.txt:
  Target "gmock" requires the language dialect "CXX14" , but CMake does not
  know the compile flags to use to enable it.

CMake Error in src/test/CMakeLists.txt:
  Target "gtest" requires the language dialect "CXX14" , but CMake does not
  know the compile flags to use to enable it.

CMake Error in src/test/integtests/CMakeLists.txt:
  Target "integtests" requires the language dialect "CXX14" , but CMake does
  not know the compile flags to use to enable it.

CMake Error in src/test/unittests/CMakeLists.txt:
  Target "unittests" requires the language dialect "CXX14" , but CMake does
  not know the compile flags to use to enable it.

CMake Error in src/gui/CMakeLists.txt:
  Target "barrier" requires the language dialect "CXX14" , but CMake does not
  know the compile flags to use to enable it.

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.
p12tic commented 3 years ago

@hcampan The only alternative I can think of is to use another mac and compile for an older SDK. IIRC Xcode 8.0 supports going back to OSX 10.6 by manually installing that SDK within Xcode bundle.

hcampan commented 3 years ago

Hi, thanks @p12tic for your input. Too complex for my abilities. I've put this project aside for now. Cheers.