Menu

#25 Missing files

1.0
closed
nobody
None
2014-12-16
2014-12-10
Juan Manuel
No

I can't compile in windows: QtCreator 3.2.2 -> Qt 5.3.2. Compiler can't find the files: "CommonClasses.h", "chart.h" and "Barcode.h".

Thanks in advance

Discussion

  • aliks-os

    aliks-os - 2014-12-11

    Please download CommonFiles.zip

     
  • aliks-os

    aliks-os - 2014-12-11
    • status: open --> closed
     
  • Juan Manuel

    Juan Manuel - 2014-12-11

    I just download and change the headers to:

    include <commonfiles commonclasses.h=""></commonfiles>

    include <commonfiles chart.h=""></commonfiles>

    include "CommonFiles/Barcode/Barcode.h"

    And I had a new error in qzint.h: #include "zint.h" so I changed to: #include "CommonFiles/Barcode/backend/zint.h"

    Now I have a lot of lost references. It's necesary compile and install the library to compile the project??

    In the wiki only says that we need put the include in .pro file.

    Thanks

     

    Last edit: Juan Manuel 2014-12-11
    • aliks-os

      aliks-os - 2014-12-12

      Do you use version from SVN or downloaded it as ZIP file ?

       
  • Juan Manuel

    Juan Manuel - 2014-12-15

    Sorry for delay. I downloaded the zip file from here (SourceForge) I guess that need compile but I haven't enough experience compiling libraries. Please say me where I'm wrong:

    1. I unzip the CommonFiles (I used the root.. C:)

    2. Run in cmd in C:\CommonFiles: qmake.exe -spec win32-g++ CONFIG+=debug -o Makefile CommonFiles.pro (Just like MakeFile says)

    3. In this point I get an error: Cannot find file: CommonFiles.pro.

    4. Changing the CommonFiles.pro to CommonFiles_QtRpt.pri (In MakeFile) to generate the MakeFiles.

    5. Run mingw32-make -f MakeFile.Debug, in this step fails because cannot find some include files, I added (In Makefile.Debug file):
      -I"..\Qt\5.3\mingw482_32\include\QtWidgets"
      -I"..\Qt\5.3\mingw482_32\include\QtXml"

    6. Run again mingw32-make -f MakeFile.Debug but in the end get this error:

    collect2.exe: error: ld returned 1 exit status
    MakeFile.Debug:148: recipe for target 'debug\CommonFiles_
    mingw32-make: *** [debug\CommonFiles_QtRpt.exe] Error 1

    Thanks in advance, I hope you can help me [ and sorry for mi bad English ;) ]

     
    • aliks-os

      aliks-os - 2014-12-16

      The CommonFiles is not a library and you dont need build it separetly. It is a part of QtRPT project.

      Please note that today I have just upload new version 1.4.5. All needed files in one folder. Please take a look at readme file. All instruction how to use QtRPT inside it.

      If you have any question you are welcome.

       
  • Juan Manuel

    Juan Manuel - 2014-12-16

    Ok, thanks a lot. I downloaded the version 1.4.5 and I'll take a look the readme file. Greetings

     
  • Juan Manuel

    Juan Manuel - 2014-12-16

    Hi It's me again, I downloaded the binaries and the source code. I check the same structure of directories.

    I use this directory structure:

    \Qt\my_project\my_proyect\
    \Qt\my_project\build\debug\
    \Qt\my_project\build\release\

    So i put the QtRPTProject in the same path

    \Qt\QtRptProject\QtRPT\
    \Qt\QtRptProject\QtRPT\bin\
    \Qt\QtRptProject\QtRPT\CommonFiles\
    etc..

    I add "include(../../QtRptProject\QtRPT/QtRPT.pri)" in my_project.pro, and I add -#include "qtrpt.h"- but when I run it, the project it crashes.

     
    • aliks-os

      aliks-os - 2014-12-17

      For easy using of QtRPT, you project folder's structure must be as following

      Some folder
      | ---you project folder
      | ---QtRPT folder
      | ---CommonFiles folder

      Before usnig you must run qmake and the build you project

       

      Last edit: aliks-os 2014-12-17
      • Juan Manuel

        Juan Manuel - 2014-12-17

        With this structure (Only CommonFiles and QtRPT directories) I get this error

        -> Error: qzint.h: No such file or directory #include <qzint.h></qzint.h>

        In: CommonFiles_QtRpt.pri the INCLUDEPATH indicates that I need add the zint-2.4.4 in the directory structure so I copied in my proyect's directory. Also indicates that needs the -lQtZint Library in $$DEST_DIRECTORY/lib I have been trying put the lib directory (With libQtZint.a and QtZint.dll) in the build, debug and release directories but can't compile.

        I guess I must build the Zint library (In documentation isn't mandatary).

        This is my current directory structure:
        -build/
        -CommonFiles/
        -QtRPT/
        -My_Project/
        -zint-2.4.4/

        I have been trying with:
        -My_Project/build/lib/
        -My_Project/build/debug/lib/ (In debug mode)
        -My_Project/build/release/lib/ (In Release mode)

        What path it's $$DEST_DIRECTORY? Or it's necesary build zint?

        Greetings

         
        • aliks-os

          aliks-os - 2014-12-18

          yes you are right, I forgot about zint-2.4.4. Structure must be
          | ---you project folder
          | ---QtRPT folder
          | ---CommonFiles folder
          | ---zint-2.4.4

          If you going to keep you binary files in folder "build", before building you must open config.pri and edit as follow

          CONFIG(debug, debug|release) {
          DEST_DIRECTORY = $$PWD/../build/debug
          }
          CONFIG(release, debug|release) {
          DEST_DIRECTORY = $$PWD/../build/release
          }

          you are again, I forgot to indicate in Readme that before building the you must have already building zint library. You may build by opening QtRptProject and run qmake and then rebuild. After process of building, you can see in your folder "build" following:
          build - debug - QtZint.dll
          build - debug - lib - QtZint.dll
          build - debug - lib - libQtZint.a

          When you will have the above, you may build your own project.

          The version 1.4.5 is the first version where I use a library, sorry for some mistakes, I will try to fix it and make more useable

          If you will have any other question or need help, you may call me in skype, my id is aliks-os

           
          • Juan Manuel

            Juan Manuel - 2014-12-18

            That's what I was missing. Now I can build my test project.

            I will add you, but I think time differences could difficult a Skype meeting (I'm from Mexico).

            BTW I would like to cooperate with your (great) project supporting like spanish translator.

            Thanks a lot and we are in touch!!

             
            • aliks-os

              aliks-os - 2014-12-19

              OK I will add a spanish language to the project

               

Log in to post a comment.

MongoDB Logo MongoDB