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. Making Excel library - fail to run qmake
Forum Updated to NodeBB v4.3 + New Features

Making Excel library - fail to run qmake

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 3 Posters 1.3k Views
  • 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.
  • D Offline
    D Offline
    Dan3460
    wrote on 19 Nov 2018, 01:26 last edited by
    #1

    I know that many of the tools and libraries are meant for people with a lot more knowledge that i have. I don't think i have ever been able to use a library with out struggling for days.
    I'm trying to install a excel library QtXlsxWriter (i'm just trying to read an excel file, i don't know if this library will be able to do that but i'm testing), the instruccions are very simple:
    1- download in the directory.
    2- run qmake.
    3- run make.
    4-run make install.
    The writer of the instructions proudly announce that the "The library, the header files, and others will be installed to your system"

    so i got shutdown at step 2, could not find qmake. Try to call it via: $ C:/Qt/5.12.0/mingw73_64/bin/qmake.exe but got an error that could not run compiler g++. May have forgot to set up the environment?

    Thanks for the help,

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dheerendra
      Qt Champions 2022
      wrote on 19 Nov 2018, 01:40 last edited by dheerendra
      #2

      It is telling you that qmake not found. Did you install Qt ? Whic version have you installed ? Are you able to run any qt programs?

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      D 1 Reply Last reply 20 Nov 2018, 00:04
      0
      • V Offline
        V Offline
        VRonin
        wrote on 19 Nov 2018, 08:55 last edited by VRonin
        #3

        Where did you download the library from?
        That library uses Qt internals so it's prone to breaking the build often.

        • https://github.com/dbzhang800/QtXlsxWriter is broken and unmaintained.
        • https://github.com/VSRonin/QtXlsxWriter is unmantained but at least it compiles

        "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

        D 1 Reply Last reply 20 Nov 2018, 00:07
        2
        • D dheerendra
          19 Nov 2018, 01:40

          It is telling you that qmake not found. Did you install Qt ? Whic version have you installed ? Are you able to run any qt programs?

          D Offline
          D Offline
          Dan3460
          wrote on 20 Nov 2018, 00:04 last edited by
          #4

          @dheerendra I installed the last version 5.12. Yes i can compile and run programs.

          1 Reply Last reply
          0
          • V VRonin
            19 Nov 2018, 08:55

            Where did you download the library from?
            That library uses Qt internals so it's prone to breaking the build often.

            • https://github.com/dbzhang800/QtXlsxWriter is broken and unmaintained.
            • https://github.com/VSRonin/QtXlsxWriter is unmantained but at least it compiles
            D Offline
            D Offline
            Dan3460
            wrote on 20 Nov 2018, 00:07 last edited by
            #5

            @VRonin I download the VSRon library, but i don't think that is the problem as i cannot run qmake from the command prompt. BTW is there another library that i could use to read parts of an excel file?

            V 1 Reply Last reply 20 Nov 2018, 08:17
            0
            • D Offline
              D Offline
              dheerendra
              Qt Champions 2022
              wrote on 20 Nov 2018, 00:53 last edited by
              #6

              If you are able to run the qt program, can you open the qtxlsx.pro file in Qt Creator and try to compile.

              Do you have multiple versions of Qt on your system ?

              Dheerendra
              @Community Service
              Certified Qt Specialist
              http://www.pthinks.com

              D 1 Reply Last reply 20 Nov 2018, 19:45
              0
              • D Dan3460
                20 Nov 2018, 00:07

                @VRonin I download the VSRon library, but i don't think that is the problem as i cannot run qmake from the command prompt. BTW is there another library that i could use to read parts of an excel file?

                V Offline
                V Offline
                VRonin
                wrote on 20 Nov 2018, 08:17 last edited by
                #7

                @Dan3460 said in Making Excel library - fail to run qmake:

                i cannot run qmake from the command prompt

                If you are on windows, you need to run from your command prompt qtenv2.bat that you find in the Qt bin folder

                is there another library that i could use to read parts of an excel file?

                https://wiki.qt.io/Handling_Microsoft_Excel_file_format

                "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

                D 1 Reply Last reply 20 Nov 2018, 19:49
                2
                • D dheerendra
                  20 Nov 2018, 00:53

                  If you are able to run the qt program, can you open the qtxlsx.pro file in Qt Creator and try to compile.

                  Do you have multiple versions of Qt on your system ?

                  D Offline
                  D Offline
                  Dan3460
                  wrote on 20 Nov 2018, 19:45 last edited by
                  #8

                  @dheerendra No only one 5.12.

                  I tried to compile from QT creator, stopped right away with: :-1: error: [Makefile:34: sub-xlsx-qmake_all] Error 3

                  1 Reply Last reply
                  0
                  • V VRonin
                    20 Nov 2018, 08:17

                    @Dan3460 said in Making Excel library - fail to run qmake:

                    i cannot run qmake from the command prompt

                    If you are on windows, you need to run from your command prompt qtenv2.bat that you find in the Qt bin folder

                    is there another library that i could use to read parts of an excel file?

                    https://wiki.qt.io/Handling_Microsoft_Excel_file_format

                    D Offline
                    D Offline
                    Dan3460
                    wrote on 20 Nov 2018, 19:49 last edited by
                    #9

                    @VRonin I will try the bat command. In the Wiki is where i fund this library. I need to read Xlsx files, so some of the other libraries are out. The other one Libxl is commercial and is just too expensive for what i want to do.

                    Thanks for the help

                    V 1 Reply Last reply 21 Nov 2018, 08:20
                    0
                    • D Dan3460
                      20 Nov 2018, 19:49

                      @VRonin I will try the bat command. In the Wiki is where i fund this library. I need to read Xlsx files, so some of the other libraries are out. The other one Libxl is commercial and is just too expensive for what i want to do.

                      Thanks for the help

                      V Offline
                      V Offline
                      VRonin
                      wrote on 21 Nov 2018, 08:20 last edited by
                      #10

                      @Dan3460 said in Making Excel library - fail to run qmake:

                      I need to read Xlsx files

                      If you just need to read them, the section "Using ODBC" is the easiest to use and doesn't require any external library

                      "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
                      1

                      1/10

                      19 Nov 2018, 01:26

                      • Login

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