BradyBrenot / huestacean

Philips Hue control app for desktop with screen syncing. C++ with Qt Quick GUI.
http://huestacean.com
Apache License 2.0
564 stars 54 forks source link

Error when building on linux (make Error) #139

Closed megapearl closed 4 years ago

megapearl commented 4 years ago

Hi,

root@cinema-streambox:/home/plexmediaplayer/huestacean/build# uname -a
Linux cinema-streambox 4.15.0-65-generic #74~16.04.1-Ubuntu SMP Wed Sep 18 09:51:44 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
root@cinema-streambox:/home/plexmediaplayer/huestacean/build#
root@cinema-streambox:/home/plexmediaplayer/huestacean/build# cmake ..
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found PythonInterp: /usr/bin/python (found version "2.7.12")
-- Found Perl: /usr/bin/perl (found version "5.22.1")
CMake Warning (dev) at thirdparty/mbedtls/programs/ssl/CMakeLists.txt:37 (target_sources):
  Policy CMP0076 is not set: target_sources() command converts relative paths
  to absolute.  Run "cmake --help-policy CMP0076" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

  An interface source of target "ssl_client2" has a relative path.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at thirdparty/mbedtls/programs/ssl/CMakeLists.txt:44 (target_sources):
  Policy CMP0076 is not set: target_sources() command converts relative paths
  to absolute.  Run "cmake --help-policy CMP0076" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

  An interface source of target "ssl_server2" has a relative path.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at thirdparty/mbedtls/programs/test/CMakeLists.txt:34 (target_sources):
  Policy CMP0076 is not set: target_sources() command converts relative paths
  to absolute.  Run "cmake --help-policy CMP0076" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

  An interface source of target "query_compile_time_config" has a relative
  path.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
X11_Xtst_LIB (ADVANCED)
    linked by target "screen_capture_example" in directory /home/plexmediaplayer/huestacean/thirdparty/screen_capture_lite/Example

-- Configuring incomplete, errors occurred!
See also "/home/plexmediaplayer/huestacean/build/CMakeFiles/CMakeOutput.log".
See also "/home/plexmediaplayer/huestacean/build/CMakeFiles/CMakeError.log".
root@cinema-streambox:/home/plexmediaplayer/huestacean/build#

How to debug?

megapearl commented 4 years ago

I had to do an additional: apt install libxtst-dev

But still not building:

root@cinema-streambox:/home/plexmediaplayer/huestacean/build# cmake ..
CMake Warning (dev) at thirdparty/mbedtls/programs/ssl/CMakeLists.txt:37 (target_sources):
  Policy CMP0076 is not set: target_sources() command converts relative paths
  to absolute.  Run "cmake --help-policy CMP0076" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

  An interface source of target "ssl_client2" has a relative path.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at thirdparty/mbedtls/programs/ssl/CMakeLists.txt:44 (target_sources):
  Policy CMP0076 is not set: target_sources() command converts relative paths
  to absolute.  Run "cmake --help-policy CMP0076" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

  An interface source of target "ssl_server2" has a relative path.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at thirdparty/mbedtls/programs/test/CMakeLists.txt:34 (target_sources):
  Policy CMP0076 is not set: target_sources() command converts relative paths
  to absolute.  Run "cmake --help-policy CMP0076" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

  An interface source of target "query_compile_time_config" has a relative
  path.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /home/plexmediaplayer/huestacean/build
root@cinema-streambox:/home/plexmediaplayer/huestacean/build# make huestacean
Scanning dependencies of target mbedcrypto_autogen
[  0%] Automatic MOC for target mbedcrypto
[  0%] Built target mbedcrypto_autogen
Scanning dependencies of target mbedcrypto
[  0%] Building CXX object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/mbedcrypto_autogen/mocs_compilation.cpp.o
[  7%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/aes.c.o
[  7%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/aesni.c.o
[  7%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/arc4.c.o
[  7%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/aria.c.o
[  7%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/asn1parse.c.o
[  7%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/asn1write.c.o
[  7%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/base64.c.o
[ 14%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/bignum.c.o
[ 14%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/blowfish.c.o
[ 14%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/camellia.c.o
[ 14%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/ccm.c.o
[ 14%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/chacha20.c.o
[ 14%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/chachapoly.c.o
[ 14%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/cipher.c.o
[ 21%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/cipher_wrap.c.o
[ 21%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/cmac.c.o
[ 21%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/ctr_drbg.c.o
[ 21%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/des.c.o
[ 21%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/dhm.c.o
[ 21%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/ecdh.c.o
[ 21%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/ecdsa.c.o
[ 28%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/ecjpake.c.o
[ 28%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/ecp.c.o
[ 28%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/ecp_curves.c.o
[ 28%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/entropy.c.o
[ 28%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/entropy_poll.c.o
[ 28%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/error.c.o
[ 28%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/gcm.c.o
[ 35%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/havege.c.o
[ 35%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/hkdf.c.o
[ 35%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/hmac_drbg.c.o
[ 35%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/md.c.o
[ 35%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/md2.c.o
[ 35%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/md4.c.o
[ 35%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/md5.c.o
[ 42%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/md_wrap.c.o
[ 42%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/memory_buffer_alloc.c.o
[ 42%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/nist_kw.c.o
[ 42%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/oid.c.o
[ 42%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/padlock.c.o
[ 42%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/pem.c.o
[ 42%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/pk.c.o
[ 50%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/pk_wrap.c.o
[ 50%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/pkcs12.c.o
[ 50%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/pkcs5.c.o
[ 50%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/pkparse.c.o
[ 50%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/pkwrite.c.o
[ 50%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/platform.c.o
[ 50%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/platform_util.c.o
[ 57%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/poly1305.c.o
[ 57%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/ripemd160.c.o
[ 57%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/rsa.c.o
[ 57%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/rsa_internal.c.o
[ 57%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/sha1.c.o
[ 57%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/sha256.c.o
[ 57%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/sha512.c.o
[ 64%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/threading.c.o
[ 64%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/timing.c.o
[ 64%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/version.c.o
[ 64%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/version_features.c.o
[ 64%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedcrypto.dir/xtea.c.o
[ 64%] Linking CXX static library libmbedcrypto.a
[ 64%] Built target mbedcrypto
Scanning dependencies of target mbedx509_autogen
[ 64%] Automatic MOC for target mbedx509
[ 64%] Built target mbedx509_autogen
Scanning dependencies of target mbedx509
[ 64%] Building CXX object thirdparty/mbedtls/library/CMakeFiles/mbedx509.dir/mbedx509_autogen/mocs_compilation.cpp.o
[ 64%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedx509.dir/certs.c.o
[ 71%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedx509.dir/pkcs11.c.o
[ 71%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedx509.dir/x509.c.o
[ 71%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedx509.dir/x509_create.c.o
[ 71%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedx509.dir/x509_crl.c.o
[ 71%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedx509.dir/x509_crt.c.o
[ 71%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedx509.dir/x509_csr.c.o
[ 71%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedx509.dir/x509write_crt.c.o
[ 78%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedx509.dir/x509write_csr.c.o
[ 78%] Linking CXX static library libmbedx509.a
[ 78%] Built target mbedx509
Scanning dependencies of target mbedtls_autogen
[ 78%] Automatic MOC for target mbedtls
[ 78%] Built target mbedtls_autogen
Scanning dependencies of target mbedtls
[ 85%] Building CXX object thirdparty/mbedtls/library/CMakeFiles/mbedtls.dir/mbedtls_autogen/mocs_compilation.cpp.o
[ 85%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedtls.dir/debug.c.o
[ 85%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedtls.dir/net_sockets.c.o
[ 85%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedtls.dir/ssl_cache.c.o
[ 85%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedtls.dir/ssl_ciphersuites.c.o
[ 85%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedtls.dir/ssl_cli.c.o
[ 85%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedtls.dir/ssl_cookie.c.o
[ 92%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedtls.dir/ssl_srv.c.o
[ 92%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedtls.dir/ssl_ticket.c.o
[ 92%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedtls.dir/ssl_tls.c.o
[ 92%] Linking CXX static library libmbedtls.a
[ 92%] Built target mbedtls
Scanning dependencies of target screen_capture_lite_autogen
[ 92%] Automatic MOC for target screen_capture_lite
[ 92%] Built target screen_capture_lite_autogen
Scanning dependencies of target screen_capture_lite
[ 92%] Building CXX object thirdparty/screen_capture_lite/CMakeFiles/screen_capture_lite.dir/screen_capture_lite_autogen/mocs_compilation.cpp.o
[ 92%] Building CXX object thirdparty/screen_capture_lite/CMakeFiles/screen_capture_lite.dir/src/ScreenCapture.cpp.o
In file included from /home/plexmediaplayer/huestacean/thirdparty/screen_capture_lite/src/ScreenCapture.cpp:3:0:
/home/plexmediaplayer/huestacean/thirdparty/screen_capture_lite/include/ThreadManager.h: In function ‘bool SL::Screen_Capture::TryCaptureMouse(const F&, E ...)’:
/home/plexmediaplayer/huestacean/thirdparty/screen_capture_lite/include/ThreadManager.h:45:16: error: expected ‘(’ before ‘constexpr’
             if constexpr (sizeof...(args) == 1) {
                ^
/home/plexmediaplayer/huestacean/thirdparty/screen_capture_lite/include/ThreadManager.h:48:13: error: ‘else’ without a previous ‘if’
             else {
             ^
thirdparty/screen_capture_lite/CMakeFiles/screen_capture_lite.dir/build.make:75: recipe for target 'thirdparty/screen_capture_lite/CMakeFiles/screen_capture_lite.dir/src/ScreenCapture.cpp.o' failed
make[3]: *** [thirdparty/screen_capture_lite/CMakeFiles/screen_capture_lite.dir/src/ScreenCapture.cpp.o] Error 1
CMakeFiles/Makefile2:245: recipe for target 'thirdparty/screen_capture_lite/CMakeFiles/screen_capture_lite.dir/all' failed
make[2]: *** [thirdparty/screen_capture_lite/CMakeFiles/screen_capture_lite.dir/all] Error 2
CMakeFiles/Makefile2:129: recipe for target 'CMakeFiles/huestacean.dir/rule' failed
make[1]: *** [CMakeFiles/huestacean.dir/rule] Error 2
Makefile:188: recipe for target 'huestacean' failed
make: *** [huestacean] Error 2
root@cinema-streambox:/home/plexmediaplayer/huestacean/build#
DeastinY commented 4 years ago

I had to do an additional: apt install libxtst-dev

That fixed it for me :tada: Ubuntu 19.04 here :)

The overall process was like that:

Installed latest Qt from their website. sudo apt install libxtst-dev git clone -b v2.6 --depth 1 --recursive https://github.com/BradyBrenot/huestacean mkdir build && cd build cmake -DCMAKE_PREFIX_PATH=$HOME/Qt5.13.2/5.13.2/gcc_64/ .. make huestacean

iamsyq commented 4 years ago

cmake -DCMAKE_PREFIX_PATH=$HOME/Qt5.13.2/5.13.2/gcc_64/ ..

Can't open perl script "/home/mo/Downloads/momo/huestacean/scripts/config.pl": Datei oder Verzeichnis nicht gefunden CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: X11_Xinerama_LIB (ADVANCED) linked by target "screen_capture_example" in directory /home/mo/Downloads/momo/huestacean/screen_capture_lite/Example

megapearl commented 4 years ago

Still not building here:

root@cinema-streambox:/home/plexmediaplayer/huestacean/build# make huestacean
Scanning dependencies of target mbedcrypto
[  0%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/aes.c.o
[  0%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/aesni.c.o
[  0%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/arc4.c.o
[  3%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/asn1parse.c.o
[  3%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/asn1write.c.o
[  3%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/base64.c.o
[  3%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/bignum.c.o
[  7%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/blowfish.c.o
[  7%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/camellia.c.o
[  7%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/ccm.c.o
[ 11%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/cipher.c.o
[ 11%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/cipher_wrap.c.o
[ 11%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/cmac.c.o
[ 11%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/ctr_drbg.c.o
[ 14%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/des.c.o
[ 14%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/dhm.c.o
[ 14%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/ecdh.c.o
[ 14%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/ecdsa.c.o
[ 18%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/ecjpake.c.o
[ 18%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/ecp.c.o
[ 18%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/ecp_curves.c.o
[ 18%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/entropy.c.o
[ 22%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/entropy_poll.c.o
[ 22%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/error.c.o
[ 22%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/gcm.c.o
[ 22%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/havege.c.o
[ 25%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/hmac_drbg.c.o
[ 25%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/md.c.o
[ 25%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/md2.c.o
[ 25%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/md4.c.o
[ 29%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/md5.c.o
[ 29%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/md_wrap.c.o
[ 29%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/memory_buffer_alloc.c.o
[ 29%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/oid.c.o
[ 33%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/padlock.c.o
[ 33%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/pem.c.o
[ 33%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/pk.c.o
[ 37%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/pk_wrap.c.o
[ 37%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/pkcs12.c.o
[ 37%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/pkcs5.c.o
[ 37%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/pkparse.c.o
[ 40%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/pkwrite.c.o
[ 40%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/platform.c.o
[ 40%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/ripemd160.c.o
[ 40%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/rsa.c.o
[ 44%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/rsa_internal.c.o
[ 44%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/sha1.c.o
[ 44%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/sha256.c.o
[ 44%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/sha512.c.o
[ 48%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/threading.c.o
[ 48%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/timing.c.o
[ 48%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/version.c.o
[ 48%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/version_features.c.o
[ 51%] Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/xtea.c.o
[ 51%] Linking C static library libmbedcrypto.a
[ 51%] Built target mbedcrypto
Scanning dependencies of target mbedx509
[ 51%] Building C object mbedtls/library/CMakeFiles/mbedx509.dir/certs.c.o
[ 51%] Building C object mbedtls/library/CMakeFiles/mbedx509.dir/pkcs11.c.o
[ 51%] Building C object mbedtls/library/CMakeFiles/mbedx509.dir/x509.c.o
[ 55%] Building C object mbedtls/library/CMakeFiles/mbedx509.dir/x509_create.c.o
[ 55%] Building C object mbedtls/library/CMakeFiles/mbedx509.dir/x509_crl.c.o
[ 55%] Building C object mbedtls/library/CMakeFiles/mbedx509.dir/x509_crt.c.o
[ 55%] Building C object mbedtls/library/CMakeFiles/mbedx509.dir/x509_csr.c.o
[ 59%] Building C object mbedtls/library/CMakeFiles/mbedx509.dir/x509write_crt.c.o
[ 59%] Building C object mbedtls/library/CMakeFiles/mbedx509.dir/x509write_csr.c.o
[ 59%] Linking C static library libmbedx509.a
[ 59%] Built target mbedx509
Scanning dependencies of target mbedtls
[ 59%] Building C object mbedtls/library/CMakeFiles/mbedtls.dir/debug.c.o
[ 59%] Building C object mbedtls/library/CMakeFiles/mbedtls.dir/net_sockets.c.o
[ 62%] Building C object mbedtls/library/CMakeFiles/mbedtls.dir/ssl_cache.c.o
[ 62%] Building C object mbedtls/library/CMakeFiles/mbedtls.dir/ssl_ciphersuites.c.o
[ 62%] Building C object mbedtls/library/CMakeFiles/mbedtls.dir/ssl_cli.c.o
[ 62%] Building C object mbedtls/library/CMakeFiles/mbedtls.dir/ssl_cookie.c.o
[ 66%] Building C object mbedtls/library/CMakeFiles/mbedtls.dir/ssl_srv.c.o
[ 66%] Building C object mbedtls/library/CMakeFiles/mbedtls.dir/ssl_ticket.c.o
[ 66%] Building C object mbedtls/library/CMakeFiles/mbedtls.dir/ssl_tls.c.o
[ 70%] Linking C static library libmbedtls.a
[ 70%] Built target mbedtls
Scanning dependencies of target screen_capture_lite
[ 70%] Building CXX object screen_capture_lite/CMakeFiles/screen_capture_lite.dir/src/ScreenCapture.cpp.o
In file included from /home/plexmediaplayer/huestacean/screen_capture_lite/src/ScreenCapture.cpp:3:0:
/home/plexmediaplayer/huestacean/screen_capture_lite/include/ThreadManager.h: In function ‘bool SL::Screen_Capture::TryCaptureMouse(const F&, E ...)’:
/home/plexmediaplayer/huestacean/screen_capture_lite/include/ThreadManager.h:45:16: error: expected ‘(’ before ‘constexpr’
             if constexpr (sizeof...(args) == 1) {
                ^
/home/plexmediaplayer/huestacean/screen_capture_lite/include/ThreadManager.h:48:13: error: ‘else’ without a previous ‘if’
             else {
             ^
screen_capture_lite/CMakeFiles/screen_capture_lite.dir/build.make:62: recipe for target 'screen_capture_lite/CMakeFiles/screen_capture_lite.dir/src/ScreenCapture.cpp.o' failed
make[3]: *** [screen_capture_lite/CMakeFiles/screen_capture_lite.dir/src/ScreenCapture.cpp.o] Error 1
CMakeFiles/Makefile2:132: recipe for target 'screen_capture_lite/CMakeFiles/screen_capture_lite.dir/all' failed
make[2]: *** [screen_capture_lite/CMakeFiles/screen_capture_lite.dir/all] Error 2
CMakeFiles/Makefile2:87: recipe for target 'CMakeFiles/huestacean.dir/rule' failed
make[1]: *** [CMakeFiles/huestacean.dir/rule] Error 2
Makefile:164: recipe for target 'huestacean' failed
make: *** [huestacean] Error 2
root@cinema-streambox:/home/plexmediaplayer/huestacean/build#
megapearl commented 4 years ago

Finally there:

Commented out below code in /home/plexmediaplayer/huestacean/screen_capture_lite/include/ThreadManager.h line 45

            // i want to use if const expr here but apple is slow to update their compiler so I have to use this
            //if constexpr (sizeof...(args) == 1)) {
            //    timer = std::atomic_load(&data->WindowCaptureData.MouseTimer);
            //}
            //else {
             {
                timer = std::atomic_load(&data->ScreenCaptureData.MouseTimer);
             }

The normal master branch didn't work out, I used git clone -b v2.6 --depth 1 --recursive https://github.com/BradyBrenot/huestacean like @DeastinY did.

root@cinema-streambox:/home/plexmediaplayer/huestacean/build# make huestacean
[ 51%] Built target mbedcrypto
[ 59%] Built target mbedx509
[ 70%] Built target mbedtls
Scanning dependencies of target screen_capture_lite
[ 70%] Building CXX object screen_capture_lite/CMakeFiles/screen_capture_lite.dir/src/ScreenCapture.cpp.o
[ 70%] Building CXX object screen_capture_lite/CMakeFiles/screen_capture_lite.dir/src/SCCommon.cpp.o
[ 70%] Building CXX object screen_capture_lite/CMakeFiles/screen_capture_lite.dir/src/ThreadManager.cpp.o
[ 74%] Building CXX object screen_capture_lite/CMakeFiles/screen_capture_lite.dir/src/linux/X11MouseProcessor.cpp.o
[ 74%] Building CXX object screen_capture_lite/CMakeFiles/screen_capture_lite.dir/src/linux/X11FrameProcessor.cpp.o
[ 74%] Building CXX object screen_capture_lite/CMakeFiles/screen_capture_lite.dir/src/linux/GetMonitors.cpp.o
[ 77%] Building CXX object screen_capture_lite/CMakeFiles/screen_capture_lite.dir/src/linux/GetWindows.cpp.o
[ 77%] Building CXX object screen_capture_lite/CMakeFiles/screen_capture_lite.dir/src/linux/ThreadRunner.cpp.o
[ 77%] Linking CXX static library libscreen_capture_lite.a
[ 77%] Built target screen_capture_lite
[ 81%] Automatic RCC for qml.qrc
[ 81%] Generating include/moc_bridgediscovery.cpp
[ 81%] Generating include/moc_entertainment.cpp
[ 85%] Generating include/moc_huebridge.cpp
[ 85%] Generating include/moc_huestacean.cpp
[ 85%] Generating include/moc_objectmodel.cpp
[ 85%] Generating include/moc_utility.cpp
/home/plexmediaplayer/huestacean/include/utility.h:0: Note: No relevant classes found. No output generated.
Scanning dependencies of target huestacean
[ 85%] Building CXX object CMakeFiles/huestacean.dir/src/bridgediscovery.cpp.o
[ 85%] Building CXX object CMakeFiles/huestacean.dir/src/entertainment.cpp.o
[ 85%] Building CXX object CMakeFiles/huestacean.dir/src/huebridge.cpp.o
[ 88%] Building CXX object CMakeFiles/huestacean.dir/src/huestacean.cpp.o
[ 88%] Building CXX object CMakeFiles/huestacean.dir/src/main.cpp.o
[ 88%] Building CXX object CMakeFiles/huestacean.dir/src/objectmodel.cpp.o
[ 92%] Building CXX object CMakeFiles/huestacean.dir/src/utility.cpp.o
[ 92%] Building CXX object CMakeFiles/huestacean.dir/include/moc_bridgediscovery.cpp.o
[ 92%] Building CXX object CMakeFiles/huestacean.dir/include/moc_entertainment.cpp.o
[ 92%] Building CXX object CMakeFiles/huestacean.dir/include/moc_huebridge.cpp.o
[ 96%] Building CXX object CMakeFiles/huestacean.dir/include/moc_huestacean.cpp.o
[ 96%] Building CXX object CMakeFiles/huestacean.dir/include/moc_objectmodel.cpp.o
[ 96%] Building CXX object CMakeFiles/huestacean.dir/include/moc_utility.cpp.o
[ 96%] Building CXX object CMakeFiles/huestacean.dir/huestacean_autogen/EWIEGA46WW/qrc_qml.cpp.o
[100%] Linking CXX executable huestacean
[100%] Built target huestacean
root@cinema-streambox:/home/plexmediaplayer/huestacean/build#
64n35h4 commented 4 years ago

@megapearl Hi, i'm having an issue in make process too..

[100%] Automatic MOC for target huestacean
[100%] Built target huestacean_autogen
[100%] Linking CXX executable huestacean
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
CMakeFiles/huestacean.dir/build.make:111: recipe for target 'huestacean' failed
make[3]: *** [huestacean] Error 1
CMakeFiles/Makefile2:800: recipe for target 'CMakeFiles/huestacean.dir/all' failed
make[2]: *** [CMakeFiles/huestacean.dir/all] Error 2
CMakeFiles/Makefile2:807: recipe for target 'CMakeFiles/huestacean.dir/rule' failed
make[1]: *** [CMakeFiles/huestacean.dir/rule] Error 2
Makefile:205: recipe for target 'huestacean' failed
make: *** [huestacean] Error 2

It looks like it could be a GCC issue, but i'm not sure.. Running Ubuntu 18.04 Any ideas what might be a solution?

megapearl commented 4 years ago

I have no idea, I switched to a nvidia shield (android tv) with the free 'Hue Stream' app on it which does the same.