Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. can't install KD Reports
Forum Updated to NodeBB v4.3 + New Features

can't install KD Reports

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 4 Posters 2.3k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • AmrCoderA Offline
    AmrCoderA Offline
    AmrCoder
    wrote on last edited by
    #1

    Hello
    I want to make a report in Qt and when searching I found KD Reports to create reports in Qt I download it from GitHub, extract the file and go to the install.txt that comes with the app which using python 2 to make the installation
    which is this cmd written in the path of the KD report

    python autogen.py -shared -release
    

    when I run this command I get this error

    -- Using source directory: D:\Build\KDreport\KDReports-master
    Error: Not a valid SVN or Git repository: D:\Build\KDreport\KDReports-master
    

    so what I did wrong cause this error. if anyone has any idea or use KD report before can help
    OS: Windows 10
    Qt: Qt 5.9.1 Mingw32
    Thanks in advance

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      You need to clone the repository not download it.

      Given the nature of your question, however, I'd suggest you download CMake and use the much easier instructions inside INSTALL-cmake.txt

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      0
      • AmrCoderA Offline
        AmrCoderA Offline
        AmrCoder
        wrote on last edited by AmrCoder
        #3

        @VRonin when I try to install it using Cmake I got this error here
        I tried to give the directory for the Qt5Core_DIR
        but every time I change it to my Qt dir. it gives me this error in the image and write Qt5Core_DIR-NOTFOUND again

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Script22
          wrote on last edited by
          #4

          @AmrCoder said in can't install KD Reports:

          Not a valid SVN or Git repository

          I faced this error and I solved it in a naive way
          just open this file
          "KDReports/autogen/autogen.py"
          and edit these lines

          print( "Error: Not a valid SVN or Git repository: {0}".format( sourceDirectory ) )
          sys.exit( 1 )
          

          by commenting out

          sys.exit(1)
          

          This will keep the installation going despite the warning.

          1 Reply Last reply
          1
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi,

            You need to use -DCMAKE_PREFIX_PATH=/Path/to/Qt5/lib/cmake so Qt might be correctly found.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            2
            • VRoninV Offline
              VRoninV Offline
              VRonin
              wrote on last edited by VRonin
              #6

              Never take anything for granted... I thought it was obvious you should type the instructions in the Qt developer console and not just open CMake and hope.

              • run cmd
              • from the console, run qtenv2.bat from your Qt directory
              • from the console, run any other thing qtenv2 will tell you to run (for MSVC compilers it's vcvarsall.bat)
              • cd to your project directory where CMakeLists.txt is
              • call mkdir build and cd build
              • call cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=C:/kdreports ..
              • call nmake
              • call nmake install
              • call cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=C:/kdreports ..
              • call nmake
              • call nmake install

              The library will be "installed" in C:/kdreports

              if you are not using MSVC change the part "NMake Makefiles" with the correct generator for your compiler and nmake with your compiler make tool (make, mingw32-make, etc.)

              "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
              ~Napoleon Bonaparte

              On a crusade to banish setIndexWidget() from the holy land of Qt

              1 Reply Last reply
              3

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved