Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    Installing FastCgiQt

    Installation and Deployment
    2
    5
    2806
    Loading More Posts
    • 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.
    • B
      BitMaster last edited by

      I'm trying to install FastCgiQt but i ran into some problems.

      I downloaded the source tree from: http://gitorious.org/fastcgiqt/ and copied the "lib" and "include" directory to "C:\Qt\2010.05\qt".
      In my project I have included the nescessary header files and the editor detects them correctly.

      But when I compile a bunch of linking errors show up, stating that the functions in the FastCgiQt header files are not implemented:

      @C:\Qt\2010.05\webtest2-build-desktop/debug/main.o:: In function Z5qMainiPPc': C:\Qt\2010.05\webtest2-build-desktop/../webtest2/main.cpp:11: error: undefined reference to FastCgiQt::Manager::Manager(QObject*)'
      C:\Qt\2010.05\webtest2-build-desktop/../webtest2/main.cpp:23: error: undefined reference to FastCgiQt::Manager::~Manager()' C:\Qt\2010.05\webtest2-build-desktop/../webtest2/main.cpp:23: error: undefined reference to FastCgiQt::Manager::~Manager()'
      :: error: collect2: ld returned 1 exit status@

      Do i have to add some additional references to some kind of makefile or the .pro file?

      1 Reply Last reply Reply Quote 0
      • D
        dialingo last edited by

        Did you build the FastCgiQt library?
        Did you specify in the .pro file of your application the name and location of the FastCgiQt library?
        The error message suggests, that the linker has a problem. The compiler is doing ok.

        1 Reply Last reply Reply Quote 0
        • B
          BitMaster last edited by

          How do i specify the FastCgiQt library in the .pro file?

          I know it's a linker problem, but can't I just include the sources in the Qt directory and compile them on the fly. My question is: Why doesn't Qt know that the .cpp implementation of the .h file in the include folder is located in \qt\lib?

          1 Reply Last reply Reply Quote 0
          • D
            dialingo last edited by

            add in .pro:
            LIBS += -L /path/to/lib -lFastCgiQt

            1 Reply Last reply Reply Quote 0
            • B
              BitMaster last edited by

              Thanks! Will try this as soon as possible :)

              1 Reply Last reply Reply Quote 0
              • First post
                Last post