davidsansome / pyqtc

Python browsing and code completion for Qt Creator
27 stars 11 forks source link

Compiling issues #2

Open choyos opened 7 years ago

choyos commented 7 years ago

Hello there, First of all, I must thank you for your effort developing this tool. I am trying to compile it in my laptop, but I can't make it works. I am working on Ubuntu 16.04 I have done the following:

  1. Get protobuf: sudo apt-get install protobuf-compiler
  2. Get Qt creator source code in /usr/src/: sudo git clone https://github.com/qtproject/qt-creator.git
  3. Get pyqtc code in /usr/src/: sudo git clone https://github.com/davidsansome/pyqtc.git
  4. Give both folders user privilegies: sudo chown -R cesar:cesar pyqtc qt-creator
  5. Go inside pyqtc folder and follow steps in README.md:
    mkdir bin
    cd bin
    cmake .. -DQTC_SOURCE=/path/to/qtcreator/source \
         -DQTC_BINARY=/path/to/qtcreator/installation
    
  6. I am not going with make and make install because cmake runs with errors, returning me:
    CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
    Please set them or make sure they are set and tested correctly in the CMake files:
    QTC_AGGREGATION_LIB
    linked by target "pyqtc" in directory /usr/src/pyqtc/plugin
    QTC_BOTAN_LIB
    linked by target "pyqtc" in directory /usr/src/pyqtc/plugin
    QTC_CORE_LIB
    linked by target "pyqtc" in directory /usr/src/pyqtc/plugin
    QTC_CPLUSPLUS_LIB
    linked by target "pyqtc" in directory /usr/src/pyqtc/plugin
    QTC_EXTENSION_SYSTEM_LIB
    linked by target "pyqtc" in directory /usr/src/pyqtc/plugin
    QTC_LOCATOR_LIB
    linked by target "pyqtc" in directory /usr/src/pyqtc/plugin
    QTC_PROJECT_EXPLORER_LIB
    linked by target "pyqtc" in directory /usr/src/pyqtc/plugin
    QTC_UTILS_LIB
    linked by target "pyqtc" in directory /usr/src/pyqtc/plugin

-- Configuring incomplete, errors occurred! See also "/usr/src/pyqtc/bin/CMakeFiles/CMakeOutput.log". See also "/usr/src/pyqtc/bin/CMakeFiles/CMakeError.log".

I am not sure to miss anything. What should I do? Thanks for your answer.

k-maheshkumar commented 7 years ago

I am also facing same issues. Please help me.

yarolig commented 6 years ago

I am porting pyqtc to new versions of QtCreator. Changes are quick and dirty but it works already. https://github.com/yarolig/pyqtc