Closed derEremit closed 6 years ago
I am also experiencing this issue on both the master branch and rework branch.
I have successfully built this on Ubuntu 18.04 LTS. I'll make a fork and add a pull request with the changes I had to make to the code base in order to generate a successful build.
In addition, only Qt 5.9.5 is available in the Ubuntu repositories, so I downloaded and installed 5.11.0 from the website and built it successfully with that. This is critical as 5.9.5 does not provide QtQuick.controls 2.3
Please let me know if I can be of any assistance.
Please refer to #90 for the pull request that includes my proposed changes that allows for successful building on Linux. As stated in the pull request, I have not tested this on other platforms (i.e. Windows, Mac), so I suggest that these changes are tested prior to merging.
Thanks @Und3rf10w , pulled that in. It shouldn't be building on the other platforms either without that, ergh.
Really sorry to reopen this, but I get the similar error (Ubuntu 16.06.1 LTS):
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/nu-hin/Work/huestacean/screen_capture_lite/src/ScreenCapture.cpp:3:0:
/home/nu-hin/Work/huestacean/screen_capture_lite/include/ThreadManager.h: In function ‘bool SL::Screen_Capture::TryCaptureMouse(const F&, E ...)’:
/home/nu-hin/Work/huestacean/screen_capture_lite/include/ThreadManager.h:45:16: error: expected ‘(’ before ‘constexpr’
if constexpr (sizeof...(args) == 1) {
^
/home/nu-hin/Work/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:127: 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:82: 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
Maybe, your c++ compiler is not compatible with c++-17. What is the version of /usr/bin/c++ ?
I had a similar problem on my ubuntu 16.
Now my problem is QtQuick2.9.
~> /usr/bin/c++ --version
c++ (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I think we found the problem. Try to install last version of g++ :)
~> /usr/bin/c++ --version
c++ (Ubuntu 6.4.0-17ubuntu1~16.04) 6.4.0 20180424
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Still, same error. :(
Ah, that's not the latest version. My bad. Gimme a second, I will try again.
@tguillemot It works now! Thanks a lot! Maybe the lowest version of gcc is worth mentioning in the README, what do you think?
Good news !!!
Indeed, it could be nice to add it in the README.
which version did you end up using now? Running into the same issue (I'm on c++ 8.3)
got errors in cmake and make:
cmake then continues, I don't know if that's important
it then fails in build huestacean