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

Trying to build on Linux Mint 20.3 #174

Open GORobert opened 4 months ago

GORobert commented 4 months ago

Did "cmake .." and when trying to run "make huestacean" it gets to 100% and throws eror:


[100%] Building C object thirdparty/mbedtls/library/CMakeFiles/mbedtls.dir/ssl_tls.c.o
/home/robert/Dokumenty/HA/huestacean/test/huestacean/thirdparty/mbedtls/library/ssl_tls.c:1432:67: warning: argument 2 of type ‘unsigned char[36]’ with mismatched bound [-Warray-parameter=]
 1432 | ssl_calc_verify_tls( mbedtls_ssl_context *ssl, unsigned char hash[36] )
      |                                                ~~~~~~~~~~~~~~^~~~~~~~

/home/robert/Dokumenty/HA/huestacean/test/huestacean/thirdparty/mbedtls/library/ssl_tls.c:687:57: note: previously declared as ‘unsigned char *’
  687 | static void ssl_calc_verify_tls( mbedtls_ssl_context *, unsigned char * );
      |                                                         ^~~~~~~~~~~~~~~
/home/robert/Dokumenty/HA/huestacean/test/huestacean/thirdparty/mbedtls/library/ssl_tls.c:1460:74: warning: argument 2 of type ‘unsigned char[32]’ with mismatched bound [-Warray-parameter=]
 1460 | c_verify_tls_sha256( mbedtls_ssl_context *ssl, unsigned char hash[32] )
      |                                                ~~~~~~~~~~~~~~^~~~~~~~

/home/robert/Dokumenty/HA/huestacean/test/huestacean/thirdparty/mbedtls/library/ssl_tls.c:694:63: note: previously declared as ‘unsigned char *’
  694 | atic void ssl_calc_verify_tls_sha256( mbedtls_ssl_context *,unsigned char * );
      |                                                             ^~~~~~~~~~~~~~~

/home/robert/Dokumenty/HA/huestacean/test/huestacean/thirdparty/mbedtls/library/ssl_tls.c:1503:74: warning: argument 2 of type ‘unsigned char[48]’ with mismatched bound [-Warray-parameter=]
 1503 | c_verify_tls_sha384( mbedtls_ssl_context *ssl, unsigned char hash[48] )
      |                                                ~~~~~~~~~~~~~~^~~~~~~~

/home/robert/Dokumenty/HA/huestacean/test/huestacean/thirdparty/mbedtls/library/ssl_tls.c:700:64: note: previously declared as ‘unsigned char *’
  700 | tic void ssl_calc_verify_tls_sha384( mbedtls_ssl_context *, unsigned char * );
      |                                                             ^~~~~~~~~~~~~~~

/home/robert/Dokumenty/HA/huestacean/test/huestacean/thirdparty/mbedtls/library/ssl_tls.c: In function ‘ssl_calc_verify_tls_sha384’:
/home/robert/Dokumenty/HA/huestacean/test/huestacean/thirdparty/mbedtls/library/ssl_tls.c:1534:5: warning: ‘mbedtls_sha512_finish_ret’ accessing 64 bytes in a region of size 48 [-Wstringop-overflow=]
 1534 |     mbedtls_sha512_finish_ret( &sha512, hash );
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/robert/Dokumenty/HA/huestacean/test/huestacean/thirdparty/mbedtls/library/ssl_tls.c:1534:5: note: referencing argument 2 of type ‘unsigned char[64]’
In file included from /home/robert/Dokumenty/HA/huestacean/test/huestacean/thirdparty/mbedtls/include/mbedtls/ssl_internal.h:53,
                 from /home/robert/Dokumenty/HA/huestacean/test/huestacean/thirdparty/mbedtls/library/ssl_tls.c:48:
/home/robert/Dokumenty/HA/huestacean/test/huestacean/thirdparty/mbedtls/include/mbedtls/sha512.h:141:5: note: in a call to function ‘mbedtls_sha512_finish_ret’
  141 | int mbedtls_sha512_finish_ret( mbedtls_sha512_context *ctx,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/robert/Dokumenty/HA/huestacean/test/huestacean/thirdparty/mbedtls/library/ssl_tls.c: In function ‘ssl_calc_finished_tls_sha384’:
/home/robert/Dokumenty/HA/huestacean/test/huestacean/thirdparty/mbedtls/library/ssl_tls.c:6875:5: warning: ‘mbedtls_sha512_finish_ret’ accessing 64 bytes in a region of size 48 [-Wstringop-overflow=]
 6875 |     mbedtls_sha512_finish_ret( &sha512, padbuf );
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/robert/Dokumenty/HA/huestacean/test/huestacean/thirdparty/mbedtls/library/ssl_tls.c:6875:5: note: referencing argument 2 of type ‘unsigned char[64]’
/home/robert/Dokumenty/HA/huestacean/test/huestacean/thirdparty/mbedtls/include/mbedtls/sha512.h:141:5: note: in a call to function ‘mbedtls_sha512_finish_ret’
  141 | int mbedtls_sha512_finish_ret( mbedtls_sha512_context *ctx,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~
[100%] Linking CXX static library libmbedtls.a
[100%] Built target mbedtls
Scanning dependencies of target huestacean_autogen
[100%] Automatic MOC for target huestacean
[100%] Built target huestacean_autogen
Scanning dependencies of target huestacean
[100%] Building CXX object CMakeFiles/huestacean.dir/huestacean_autogen/mocs_compilation.cpp.o
[100%] Linking CXX executable huestacean
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x24): undefined reference to `main'
collect2: error: ld returned 1 exit status
make[3]: *** [CMakeFiles/huestacean.dir/build.make:94: huestacean] Błąd 1
make[2]: *** [CMakeFiles/Makefile2:784: CMakeFiles/huestacean.dir/all] Błąd 2
make[1]: *** [CMakeFiles/Makefile2:791: CMakeFiles/huestacean.dir/rule] Błąd 2
make: *** [Makefile:188: huestacean] Błąd 2