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.
  • Dan3460D Offline
    Dan3460D Offline
    Dan3460
    wrote on 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
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on 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

      Dan3460D 1 Reply Last reply
      0
      • VRoninV Offline
        VRoninV Offline
        VRonin
        wrote on 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

        Dan3460D 1 Reply Last reply
        2
        • dheerendraD dheerendra

          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?

          Dan3460D Offline
          Dan3460D Offline
          Dan3460
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0
          • VRoninV VRonin

            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
            Dan3460D Offline
            Dan3460D Offline
            Dan3460
            wrote on 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?

            VRoninV 1 Reply Last reply
            0
            • dheerendraD Offline
              dheerendraD Offline
              dheerendra
              Qt Champions 2022
              wrote on 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

              Dan3460D 1 Reply Last reply
              0
              • Dan3460D Dan3460

                @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?

                VRoninV Offline
                VRoninV Offline
                VRonin
                wrote on 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

                Dan3460D 1 Reply Last reply
                2
                • dheerendraD dheerendra

                  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 ?

                  Dan3460D Offline
                  Dan3460D Offline
                  Dan3460
                  wrote on 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
                  • VRoninV VRonin

                    @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

                    Dan3460D Offline
                    Dan3460D Offline
                    Dan3460
                    wrote on 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

                    VRoninV 1 Reply Last reply
                    0
                    • Dan3460D Dan3460

                      @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

                      VRoninV Offline
                      VRoninV Offline
                      VRonin
                      wrote on 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

                      • Login

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