dkire13
Posts: 5
Joined: Sun Apr 19, 2015 2:51 am

Cmake ERROR: requires Qt 4.x

Thu Mar 17, 2016 9:45 pm

Alright, I don't get whats causing this. I can never get CMake to work (even though people say it is simple) and I need it to compile a program.

Here's the program: http://famitracker.com/forum/posts.php? ... 568&sort=1

Here's the error
CMake Error at /usr/share/cmake-3.0/Modules/FindQt4.cmake:1316 (message):
Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x
Call Stack (most recent call first):
src/qt-gui/CMakeLists.txt:66 (find_package)

Any help is appreciated.

User avatar
PeterO
Posts: 5951
Joined: Sun Jul 22, 2012 4:14 pm

Re: Cmake ERROR: requires Qt 4.x

Thu Mar 17, 2016 9:56 pm

Are you using preview 3 ?

Have you even tried to understand the error message ? It clearly tells you what the problem is .

Your PI is missing the QT4 development package. Probably libqt4-dev.

PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

dkire13
Posts: 5
Joined: Sun Apr 19, 2015 2:51 am

Re: Cmake ERROR: requires Qt 4.x

Thu Mar 17, 2016 10:02 pm

PeterO wrote:As far as I can see that error message could not come from the code you have linked to . The error message refers to "src/qt-gui/CMakeLists.txt", which is not from the tar balls for that program.

What exactly have you done ?

PeterO
Well, I used an SSH Client to stick the source file into the target folder (I tried both the source and binary too, btw), then I opened the terminal (through another SSH client) and used the "Cmake ." command. I'm actually not sure if I did this right, (kinda new to linux and all.)

Here's the full log:
$ cmake .
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)
-- Boost version: 1.55.0
-- Found the following Boost libraries:
-- thread
-- Boost version: 1.55.0
-- Found the following Boost libraries:
-- system
-- Boost version: 1.55.0
-- Found the following Boost libraries:
-- thread
-- Boost version: 1.55.0
-- Found the following Boost libraries:
-- system
-- Boost version: 1.55.0
-- Found the following Boost libraries:
-- thread
-- Boost version: 1.55.0
-- Found the following Boost libraries:
-- system
-- Found ALSA: /usr/lib/arm-linux-gnueabihf/libasound.so (found version "1.0.28")
-- Found Jack: /usr/lib/arm-linux-gnueabihf/libjack.so
-- Boost version: 1.55.0
-- Found the following Boost libraries:
-- thread
-- Boost version: 1.55.0
-- Found the following Boost libraries:
-- system
CMake Error at /usr/share/cmake-3.0/Modules/FindQt4.cmake:1316 (message):
Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x
Call Stack (most recent call first):
src/qt-gui/CMakeLists.txt:66 (find_package)


-- Configuring incomplete, errors occurred!

User avatar
PeterO
Posts: 5951
Joined: Sun Jul 22, 2012 4:14 pm

Re: Cmake ERROR: requires Qt 4.x

Thu Mar 17, 2016 10:04 pm

You replied between me posting and finding the version you are trying to build that does include qt.... See my modified reply above.
PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

Return to “Troubleshooting”