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. Need fast helps with Deploying Project on Linux!!!

Need fast helps with Deploying Project on Linux!!!

Scheduled Pinned Locked Moved General and Desktop
8 Posts 4 Posters 3.0k 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.
  • S Offline
    S Offline
    scroverty
    wrote on last edited by
    #1

    Good day Everyone!

    Today, I have finished a small project of mine, and now I can finally package it and ship it to my boss!

    But things is, I'm still green with Qt, so please guide me with this task! I own everyone who give me answer my life!!

    I got about 5 hours left, before I need to go out -and buy me a hanging rope..-

    I'm on Debian (linuxmint).

    My application Used QtMobility's multimedia API, and it run perfectly fine now.

    So, after reading some "document":http://qt-project.org/doc/qt-5.0/deployment-x11.html, and searching around, I still stuck with making the "plugins" directory for my project?...

    I thought that my project will need QtMobility's plugins, since the project use QMediaRecorder and QMediaPlayer, but after doing:

    @
    make clean
    qmake -config release
    make
    @

    I see no plugins dir inside the application's dir.

    There're only moc and ui.h files.

    This is my first issues, please help me solve it.

    This is how my .pro files looked like:

    @TARGET = myTask

    TEMPLATE = app

    INCLUDEPATH += ../../src/multimedia ../../src/multimedia/audio

    CONFIG += console

    CONFIG += mobility

    MOBILITY = multimedia

    QMAKE_RPATHDIR += $$DESTDIR

    HEADERS = \

    myTask.h
    

    SOURCES = \

    main.cxx \
    
    myTask.cxx
    

    RESOURCES +=

    FORMS += \

    myTask.ui \
    

    OTHER_FILES +=
    @

    Lots of thanks and best regard for those who give me respond and answer!!

    Alvis Ar'Berkeley Andrew.
    Pleased to meet you!

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      make will build your project, it does not package it up for you. You will need to do that yourself.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        scroverty
        wrote on last edited by
        #3

        Does that mean I just need to toss inside where the binary's folder is every .so file it needed, then the app will run on other debian Linux computer ?..

        I thought Beside from the library, there will be a need of plugins?... or did I miss-understand something?..

        Alvis Ar'Berkeley Andrew.
        Pleased to meet you!

        1 Reply Last reply
        0
        • A Offline
          A Offline
          AppsPat
          wrote on last edited by
          #4

          Have you read http://doc.qt.nokia.com/4.7-snapshot/deployment-x11.html ???

          Stay Hungry. Stay Foolish.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            scroverty
            wrote on last edited by
            #5

            In my first post, I have stated that I've already read it, AppsPat.

            What I really want to know now, is Will my application execute on other Debian Linux if I just toss the binary file with every other .so file that lld tell me?

            I just need to confirm the above one. Since, I think I'm missing the Multimedia Plugins???

            Alvis Ar'Berkeley Andrew.
            Pleased to meet you!

            1 Reply Last reply
            0
            • D Offline
              D Offline
              DerManu
              wrote on last edited by
              #6

              [quote author="A.A.B.A" date="1346343666"]I got about 5 hours left, before I need to go out -and buy me a hanging rope..-[/quote]
              Don't you have a rope somewhere in the house? Cables should do pretty well, too.

              About your second Issue: The link provided by AppsPat that you've supposedly read already explains when it is possible to just put all .so files in the same directory as the executable. That is when the dynamic linker has explicitly gotten the instruction to look in that directory. E.g. via "LD_LIBRARY_PATH=." in a launch-script.

              In general: Deploying on unix is a b***h, if you want to support many distributions. And to be honest, even just supporting one distribution is a pain in the neck. The Linux/Unix community has done a very bad job there, unfortunately. Be prepared to spend quite some time to handle it.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                scroverty
                wrote on last edited by
                #7

                DerManu: hm, maybe I should try it with an internet cables sometimes..

                I'm having trouble with that launch-script right now... I copy it inside the binary's dir, execute it, but nothing happen??

                Alvis Ar'Berkeley Andrew.
                Pleased to meet you!

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  DerManu
                  wrote on last edited by
                  #8

                  So what did you try to find out what's going on?

                  Looked at the console output?

                  Analyzed what the script is doing by echoing information here and there?

                  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