Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [solved] mingw32-make install doesn't work

[solved] mingw32-make install doesn't work

Scheduled Pinned Locked Moved Installation and Deployment
17 Posts 2 Posters 20.3k Views 1 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.
  • G Offline
    G Offline
    goetz
    wrote on last edited by
    #8

    Ah, sorry, the snippet was not complete. This is the correct one (spot the "-L" before the path!):

    @
    LIBS += -LC:/kqoauth-kqoauth/lib -lkqoauthd0
    @

    http://www.catb.org/~esr/faqs/smart-questions.html

    1 Reply Last reply
    0
    • H Offline
      H Offline
      Hedge
      wrote on last edited by
      #9

      The problem remains

      @c:/qt/qtcreator-2.1.84/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cannot find -lkqoauth@

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goetz
        wrote on last edited by
        #10

        You should change the second one to

        @
        -lkqoauthd0
        @

        The general rule is: If you have a file libxblurb.a then you must specify -lxblurb to the linker.

        http://www.catb.org/~esr/faqs/smart-questions.html

        1 Reply Last reply
        0
        • H Offline
          H Offline
          Hedge
          wrote on last edited by
          #11

          I found out the LINKAGE-entries in the kqoauth.prf lead to that problem.
          The relevant part is this:

          @# else, link normally
          isEmpty(LINKAGE) {
          exists($$PWD/kqoauth.pro): INCLUDEPATH += $$KQOAUTH_INCDIR
          else: INCLUDEPATH += $$KQOAUTH_INCDIR/QtKOAuth
          LIBS += -L$$KQOAUTH_LIBDIR
          LINKAGE = -libkqoauthd0
          CONFIG(debug, debug|release) {
          windows:LINKAGE = -libkqoauthd0
          mac:LINKAGE = -lkqoauth_debug
          }
          }@

          After I changed -lkqoauth to -libkqoauthd0 as you can see I get this error now:

          @c:/qt/qtcreator-2.1.84/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cannot find -libkqoauthd0@

          1 Reply Last reply
          0
          • G Offline
            G Offline
            goetz
            wrote on last edited by
            #12

            I would guess, this still puts wrong paths into the library search path.

            I would recommend to copy the twitter sample application into a separate directory, do not include the .prf files and adjust the .pro file of the sample as mentioned above. I do not have a running MinGW environment at the moment an so cannot test.

            http://www.catb.org/~esr/faqs/smart-questions.html

            1 Reply Last reply
            0
            • H Offline
              H Offline
              Hedge
              wrote on last edited by
              #13

              I did what you said. It compiles now.
              The problem however is that it doesn't display any output. It just ends.

              According to the main-function it should call showHelp() which should give some output. So I guess something went wrong again. Any ideas?

              Here's the main-function:

              @int main(int argc, char *argv[])
              {
              QCoreApplication app(argc, argv);
              QCoreApplication::setOrganizationName("kQOAuth");
              QCoreApplication::setApplicationName("TwitterCLI");

              QStringList args = QCoreApplication::arguments();
              
              TwitterCLI tAuth;
              if(args.contains("-t")) {
                  if(args.last() != "-t") {
                      tAuth.sendTweet(args.last());
                  }
               } else if( args.contains("-a")){
                  tAuth.getAccess();
              } else if (args.contains("-x")) {
                  tAuth.xauth();
              } else {
                  tAuth.showHelp();
                  return 0;
              }
              
              return app.exec();
              

              }@

              and here's showHelp

              @void TwitterCLI::showHelp() {
              QTextStream qout(stdout);
              qout << "TwitterCLI, version 0.95. Author: Johan Paul johan.paul@d-pointer.com\n"
              << "\n"
              << "Usage: twittercli -[at] <tweet>\n"
              << " -a Request for access tokens.\n"
              << " -x Use Twitter xAuth to retrieve access tokens.\n"
              << " -t '<tweet>' Send <tweet> to Twitter after retrieving access tokens\n"
              << "\n";
              }@

              1 Reply Last reply
              0
              • G Offline
                G Offline
                goetz
                wrote on last edited by
                #14

                Did you step through the debugger? It works for me there.

                And watch out: It's a console application, you will not get a window with the message :-)

                http://www.catb.org/~esr/faqs/smart-questions.html

                1 Reply Last reply
                0
                • H Offline
                  H Offline
                  Hedge
                  wrote on last edited by
                  #15

                  I just tried it. btw. I'm using Qt Creator.
                  While stepping through it it shows the output (showHelp) but if I simply run it, it shows nothing (not even a qDebug() I set at the beginning of the main-function.

                  Its the same when I start it from the cmd-window -> no output

                  congrats to your 2.4k-th post :)

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    goetz
                    wrote on last edited by
                    #16

                    Ah... damn! the stdout trap on windows! As far as I know you do not have this in the cmd shell of windows, so you'll have to stick to Qt Creator to see this (or just make it a small gui, shouldn't be too hard to make a button for each option and a QTextBrowser for the output)

                    EDIT: Oh, and thanks for the congrats of course.

                    http://www.catb.org/~esr/faqs/smart-questions.html

                    1 Reply Last reply
                    0
                    • H Offline
                      H Offline
                      Hedge
                      wrote on last edited by
                      #17

                      No, that's all I needed.
                      I'll implement it straight in my program.
                      It's working beautiful.

                      1 Reply Last reply
                      0

                      • Login

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