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. cannot open input file 'CuteReport.lib'
Qt 6.11 is out! See what's new in the release blog

cannot open input file 'CuteReport.lib'

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 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

    I tried to use Cute Report in my Qt application. I follow the Doc pdf file that is on the website of the cute report on how can I use. it writes the following

    Embedded library
    There are some important steps to use CuteReport as embedded library in the custom
    application:
    • add all necessary data to your project fle (.pro);
    • add header fles of CuteReport to your cpp fle;
    • create and initialize report core;
    Add next lines to your .pro fle:
    INCLUDEPATH += path_to_CuteReport_headers
    DEPENDPATH += $$INCLUDEPATH
    LIBS += -Lpath_to_cutereport_shared_fles -lCuteReport -lCuteReportWidgets
    And add above headers to your code:
    #include "reportcore.h"
    #include "reportinterface.h
    

    but when I follow this and do this in my .pro file

    INCLUDEPATH += $$PWD/development/include/cutereport
    DEPENDPATH +=  $$INCLUDEPATH
    LIBS += -L$$PWD/development/development/ -lCuteReport -lCuteReportWidgets
    

    copied the development folder from my C drive which installed on it the project to my file path and uses $$PWD to get project path I got this error

    :-1: error: LNK1181: cannot open input file 'CuteReport.lib'
    

    and a second option to import them as a framework but I can't find the .pri file in the installed path of the Cute report
    if someone tried it before can help me or what makes this problem
    Thanks in advance

    1 Reply Last reply
    0
    • AlexA Offline
      AlexA Offline
      Alex
      wrote on last edited by
      #4

      As per our email conversation, the issue is solved.
      The problem caused the issue is an outdated documentation. Correct code to add to a .pro file is:

      INCLUDEPATH += $$PWD/cutereport/include/cutereport
      DEPENDPATH += $$INCLUDEPATH
      LIBS += -L$$PWD/cutereport -lCuteReportCore -lCuteReportWidgets
      

      This is valid for CuteReport "development" folder from a CuteReport installation placed inside a custom project
      structure as a "cutereport" folder.

      https://cute-report.com

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

        Hi,

        Did you check your installation ?
        Where exactly are the corresponding library files ?
        What about contacting the authors of that framework ?

        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
        0
        • AmrCoderA Offline
          AmrCoderA Offline
          AmrCoder
          wrote on last edited by AmrCoder
          #3
          • Yes and I thought there is a problem with my installation and to make sure I reinstall it to make sure.
          • it set up on C drive but I copied the development folder (which have all the libs and include) to my project path even if I set paths with c drive it gave me the same error
          • I will do that if there is no solution here I want the help if anyone tried this framework before or have the same problem to help me
          1 Reply Last reply
          0
          • AlexA Offline
            AlexA Offline
            Alex
            wrote on last edited by
            #4

            As per our email conversation, the issue is solved.
            The problem caused the issue is an outdated documentation. Correct code to add to a .pro file is:

            INCLUDEPATH += $$PWD/cutereport/include/cutereport
            DEPENDPATH += $$INCLUDEPATH
            LIBS += -L$$PWD/cutereport -lCuteReportCore -lCuteReportWidgets
            

            This is valid for CuteReport "development" folder from a CuteReport installation placed inside a custom project
            structure as a "cutereport" folder.

            https://cute-report.com

            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