Author Topic: Cannot compile keyhotee  (Read 9235 times)

0 Members and 1 Guest are viewing this topic.

Offline vit0

  • Newbie
  • *
  • Posts: 2
    • View Profile
Hi I have a problem with make.
I use:
Code: [Select]
QTDIR=/home/vit0/Qt5.2.0/5.2.0/gcc_64/  cmake -DCMAKE_INSTALL_PREFIX:PATH=$HOME -DBoost_INCLUDE_DIR:PATH=/usr/include -DBoost_LIBRARY_DIR:PATH=/usr/lib/ .to cmake and everything works but after I execute make, 73% is done and I get errors:

Code: [Select]
[ 73%] Building CXX object CMakeFiles/Keyhotee.dir/KeyhoteeMainWindow.cpp.o
In file included from /home/vit0/Dokumenty/keyhotee/KeyhoteeMainWindow.cpp:1:0:
/home/vit0/Dokumenty/keyhotee/KeyhoteeMainWindow.hpp: In constructor ‘ContactGui::ContactGui(QTreeWidgetItem*, ContactView*)’:
/home/vit0/Dokumenty/keyhotee/KeyhoteeMainWindow.hpp:41:20: warning: ‘ContactGui::_view’ will be initialized after [-Wreorder]
   ContactView*     _view;
                    ^
/home/vit0/Dokumenty/keyhotee/KeyhoteeMainWindow.hpp:39:20: warning:   ‘unsigned int ContactGui::_unread_msg_count’ [-Wreorder]
   unsigned int     _unread_msg_count;
                    ^
/home/vit0/Dokumenty/keyhotee/KeyhoteeMainWindow.hpp:45:3: warning:   when initialized here [-Wreorder]
   ContactGui(QTreeWidgetItem* tree_item, ContactView* view)
   ^
/home/vit0/Dokumenty/keyhotee/KeyhoteeMainWindow.cpp: In constructor ‘KeyhoteeMainWindow::KeyhoteeMainWindow(const TKeyhoteeApplication&)’:
/home/vit0/Dokumenty/keyhotee/KeyhoteeMainWindow.cpp:204:18: error: ‘ItemNeverHasChildren’ is not a member of ‘Qt’
   space_flags |= Qt::ItemNeverHasChildren;
                  ^
make[2]: *** [CMakeFiles/Keyhotee.dir/KeyhoteeMainWindow.cpp.o] Błąd 1
make[1]: *** [CMakeFiles/Keyhotee.dir/all] Error 2
make: *** [all] Error 2

Can anyone help me with that? :)

Quote
[Xubuntu 13.10 x64]
« Last Edit: January 11, 2014, 02:49:11 pm by vit0 »
PccwLF1mR1dd8VfVhmigD1qZxc2KcHjL4H

Offline AJ_

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
Thank you, I have it working
Protoshares- PiiX21df7kfDAhLzmSBdbuc7kwjFaki79L
Keyhotee-5QdZUBn6BLpc7xqTkZ6nVwh83k8GbsaRMvy5kdEczgfV2tcaQr
Hello, world.

Offline arcke

  • Full Member
  • ***
  • Posts: 115
    • View Profile
    • Diaspora
Try

Code: [Select]
set ( CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ";/usr/local/Cellar/qt5/5.2.0/lib/cmake;" )

Or try this

I have installed qt from https://qt-project.org/downloads. Choose Qt Online Installer for Linux 32 or 64 bit and install to user directory /home/<user>. Then you can compile after

Code: [Select]
QTDIR=/home/<user>/<Qt5.2.0>/5.2.0/gcc_64/  cmake -DCMAKE_INSTALL_PREFIX:PATH=$HOME -DBoost_INCLUDE_DIR:PATH=/home/<user>/include -DBoost_LIBRARY_DIR:PATH=/home/<user>/lib .
Note: Modify 64 to 32 if you have a 32 bit system.

OpenPGP: 0x22d7e9cc35375665
PTS - PawnbhoiXhmkrKJEPAsCiwkpP81nRXJGTD
Diaspora profile - https://pod.orkz.net/u/arcke

Offline toast

  • Hero Member
  • *****
  • Posts: 4001
    • View Profile
  • BitShares: nikolai
Try

Code: [Select]
set ( CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ";/usr/local/Cellar/qt5/5.2.0/lib/cmake;" )
Do not use this post as information for making any important decisions. The only agreements I ever make are informal and non-binding. Take the same precautions as when dealing with a compromised account, scammer, sockpuppet, etc.

Offline AJ_

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
Now I get:
CMake Warning at CMakeLists.txt:27 (find_package):
  By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5Core", but
  CMake did not find one.

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

    Qt5CoreConfig.cmake
    qt5core-config.cmake

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


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

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

    Qt5WebKitWidgetsConfig.cmake
    qt5webkitwidgets-config.cmake

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


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

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

    Qt5PrintSupportConfig.cmake
    qt5printsupport-config.cmake

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


/home/user/keyhotee/BitShares
Using invictus root: ./
statusCompiling on UNIX
-- Boost version: 1.55.0
-- Found the following Boost libraries:
--   thread
--   date_time
--   system
--   filesystem
--   program_options
--   signals
--   serialization
--   chrono
--   unit_test_framework
--   context
--   coroutine
statusCompiling on UNIX
-- Boost version: 1.55.0
-- Found the following Boost libraries:
--   thread
--   date_time
--   system
--   filesystem
--   program_options
--   signals
--   serialization
--   chrono
--   unit_test_framework
--   context
--   coroutine
-- Boost version: 1.55.0
-- Found the following Boost libraries:
--   thread
--   date_time
--   system
--   filesystem
--   program_options
--   signals
--   serialization
--   chrono
--   unit_test_framework
--   context
CMake Error at CMakeLists.txt:121 (qt5_wrap_ui):
  Unknown CMake command "qt5_wrap_ui".


-- Configuring incomplete, errors occurred!
Protoshares- PiiX21df7kfDAhLzmSBdbuc7kwjFaki79L
Keyhotee-5QdZUBn6BLpc7xqTkZ6nVwh83k8GbsaRMvy5kdEczgfV2tcaQr
Hello, world.

Offline arcke

  • Full Member
  • ***
  • Posts: 115
    • View Profile
    • Diaspora
You have to install the libboost-all-dev package. This is what it is called on Debian and Ubuntu.

Modify: It seems that just like on Debian the boost library is older than what Keyhotee is using. You can install boost yourself (http://www.boost.org/). This is what I did. I installed it into my own user directory and compile Keyhotee with
Code: [Select]
cmake -DBoost_INCLUDE_DIR:PATH=/home/<user>/include -DBoost_LIBRARY_DIR:PATH=/home/<user>/lib .
make
« Last Edit: January 05, 2014, 07:24:11 pm by arcke »
OpenPGP: 0x22d7e9cc35375665
PTS - PawnbhoiXhmkrKJEPAsCiwkpP81nRXJGTD
Diaspora profile - https://pod.orkz.net/u/arcke

Offline AJ_

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
I followed the directions at https://bitsharestalk.org/index.php?topic=1672.msg19078#msg19078, using Qt 5.2.0, and am receiving the following

-- The C compiler identification is GNU 4.8.1
-- The CXX compiler identification is GNU 4.8.1
-- 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
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.0.1e")
CMake Warning at CMakeLists.txt:24 (find_package):
  By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5Core", but
  CMake did not find one.

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

    Qt5CoreConfig.cmake
    qt5core-config.cmake

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


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

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

    Qt5WebKitWidgetsConfig.cmake
    qt5webkitwidgets-config.cmake

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


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

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

    Qt5PrintSupportConfig.cmake
    qt5printsupport-config.cmake

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


/home/aj/apps/keyhotee/keyhotee/BitShares
Using invictus root: ./
statusCompiling on UNIX
CMake Error at /usr/share/cmake-2.8/Modules/FindBoost.cmake:1126 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.53.0

  Boost include path: /usr/include

  The following Boost libraries could not be found:

          boost_signals
          boost_unit_test_framework
          boost_context
          boost_coroutine

  Some (but not all) of the required Boost libraries were found.  You may
  need to install these additional Boost libraries.  Alternatively, set
  BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
  to the location of Boost.
Call Stack (most recent call first):
  CMakeLists.txt:83 (FIND_PACKAGE)


statusCompiling on UNIX
CMake Error at /usr/share/cmake-2.8/Modules/FindBoost.cmake:1126 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.53.0

  Boost include path: /usr/include

  The following Boost libraries could not be found:

          boost_signals
          boost_unit_test_framework
          boost_context
          boost_coroutine

  Some (but not all) of the required Boost libraries were found.  You may
  need to install these additional Boost libraries.  Alternatively, set
  BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
  to the location of Boost.
Call Stack (most recent call first):
  BitShares/CMakeLists.txt:57 (FIND_PACKAGE)


-- Could NOT find Boost
** for a debug build: cmake -DCMAKE_BUILD_TYPE=Debug ..
CMake Error at CMakeLists.txt:118 (qt5_wrap_ui):
  Unknown CMake command "qt5_wrap_ui".


-- Configuring incomplete, errors occurred!

I am using linux mint 15
Protoshares- PiiX21df7kfDAhLzmSBdbuc7kwjFaki79L
Keyhotee-5QdZUBn6BLpc7xqTkZ6nVwh83k8GbsaRMvy5kdEczgfV2tcaQr
Hello, world.