Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to compile Cmake cannot find qt5 #25

Open
djmcg opened this issue Feb 1, 2018 · 5 comments
Open

Unable to compile Cmake cannot find qt5 #25

djmcg opened this issue Feb 1, 2018 · 5 comments

Comments

@djmcg
Copy link

djmcg commented Feb 1, 2018

HI I try to build wallet on Linux
but I have this error

cryptonotewallet/build# cmake ..
CMake Error at CMakeLists.txt:5 (project):
project PROJECT called with incorrect number of arguments

CMake Error at CMakeLists.txt:19 (find_package):
By not providing "FindQt5Gui.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Qt5Gui", but
CMake did not find one.

Could not find a package configuration file provided by "Qt5Gui" with any
of the following names:

Qt5GuiConfig.cmake
qt5gui-config.cmake

Add the installation prefix of "Qt5Gui" to CMAKE_PREFIX_PATH or set
"Qt5Gui_DIR" to a directory containing one of the above files. If "Qt5Gui"
provides a separate development package or SDK, be sure it has been
installed.

-- Configuring incomplete, errors occurred!

Could You advice what to do?

@ghost
Copy link

ghost commented Feb 6, 2018

hello, for the first error change line 5 to:
project(${CN_PROJECT_NAME})
for the second error install qt5 , on ubuntu : sudo apt install qt5-default
Good luck!

@djmcg
Copy link
Author

djmcg commented Feb 8, 2018

Noting happen .

cryptonotewallet/build# cmake ..
CMake Error at CryptoNoteWallet.cmake:2 (project):
project PROJECT called with incorrect number of arguments
Call Stack (most recent call first):
CMakeLists.txt:3 (include)

CMake Error at CMakeLists.txt:5 (project):
project PROJECT called with incorrect number of arguments

CMake Error at CMakeLists.txt:19 (find_package):
By not providing "FindQt5Gui.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Qt5Gui", but
CMake did not find one.

Could not find a package configuration file provided by "Qt5Gui" with any
of the following names:

Qt5GuiConfig.cmake
qt5gui-config.cmake

Add the installation prefix of "Qt5Gui" to CMAKE_PREFIX_PATH or set
"Qt5Gui_DIR" to a directory containing one of the above files. If "Qt5Gui"
provides a separate development package or SDK, be sure it has been
installed.

-- Configuring incomplete, errors occurred!
root@aruba:~/wallettest/cryptonotewallet/build#

@ghost
Copy link

ghost commented Feb 9, 2018

delete old cloned cryptonotewallet and clone it once again then add this line to CMakeLists.txt (one line upper of find_package(Qt5Gui REQUIRED) ) :
set(Qt5Gui_DIR "/usr/lib/x86_64-linux-gnu/cmake/Qt5Gui")
then compile again.
(the qt5gui directory which i mentioned is the default for ubuntu 16.04)

@djmcg
Copy link
Author

djmcg commented Feb 9, 2018

I update information what You wrote error:

Parse error. Function missing ending ")". End of file reached.
CMake Error at CMakeLists.txt:3 (include):
include could not find load file:

CryptoNoteWallet.cmake

CMake Error at CMakeLists.txt:5 (project):
project PROJECT called with incorrect number of arguments

CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake:127 (add_library):
ADD_LIBRARY called with SHARED option but the target platform does not
support dynamic linking. Building a STATIC library instead. This may lead
to problems.
Call Stack (most recent call first):
/usr/lib/x86_64-linux-gnu/cmake/Qt5Gui/Qt5GuiConfig.cmake:100 (find_package)
CMakeLists.txt:19 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/lib/x86_64-linux-gnu/cmake/Qt5Gui/Qt5GuiConfig.cmake:127 (add_library):
ADD_LIBRARY called with SHARED option but the target platform does not
support dynamic linking. Building a STATIC library instead. This may lead
to problems.
Call Stack (most recent call first):
CMakeLists.txt:19 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_PREFIXES
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_FIND_LIBRARY_SUFFIXES
CMake Error at CMakeLists.txt:20 (find_package):
By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"Qt5Widgets", but CMake did not find one.

Could not find a package configuration file provided by "Qt5Widgets" with
any of the following names:

Qt5WidgetsConfig.cmake
qt5widgets-config.cmake

Add the installation prefix of "Qt5Widgets" to CMAKE_PREFIX_PATH or set
"Qt5Widgets_DIR" to a directory containing one of the above files. If
"Qt5Widgets" provides a separate development package or SDK, be sure it has
been installed.

-- Configuring incomplete, errors occurred!

@ParsiCoin
Copy link

add set(Qt5Widgets_DIR "C:/Qt/Qt5.8.0/5.8/msvc2015_64/lib/cmake/Qt5Widgets") as you added Qt5Gui on your cmakelists.txt
Questions :
what is your linux distro you try to build on ?
did you installed cmake from your package manager or compiled your self ?
did you do : git submodule add https://github.com/addressofcoin/yourebuildingwalletfor.git cryptonote ?

aivve added a commit to aivve/KarbowanecWallet that referenced this issue Jan 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants