×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 16

Thread: Shared Library

Hybrid View

  1. #1
    Registered User
    Join Date
    Oct 2012
    Posts
    21

    Shared Library

    Does anyone know how to get rid of this problem? I am using a Mac for developing for Maemo 5.

    Killing remote process(es)...
    Starting remote process...
    Remote process started.
    /opt/Blue/bin/Blue: error while loading shared libraries: libQtConnectivity.so.1: cannot open shared object file: No such file or directory
    Finished running remote process. Exit code was 127.

  2. #2
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    200

    Re: Shared Library

    It means that you don't have libQtConnectivity.so.1 library installed. It's found from package libqtm-12-connectivity or similar.

  3. #3
    Registered User
    Join Date
    Oct 2012
    Posts
    21

    Re: Shared Library

    My computer says:

    Package 'libqtm-12-connectivity' installed.

    I have followed the instructions here:
    http://www.developer.nokia.com/Commu...ation_on_Maemo

    I think my path is somehow wrong. I have done this too.
    http://doc.qt.digia.com/qtmobility/i...g-for-mac-os-x

    Making the libraries available on Unix
    The environment variable LD_LIBRARY_PATH should be extended to include: $TARGET_DIR/lib

    No luck yet.

  4. #4
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    200

    Re: Shared Library

    ok, WHERE do you get the error message? My understading was that the message was coming from the phone, which means library is missing from the phone.

  5. #5
    Registered User
    Join Date
    Oct 2012
    Posts
    21

    Re: Shared Library

    Yes, you're right I don't have the connectivity libs on the phone. I ran this:

    apt-get install libqtm-12

    and

    apt-get install libqtm-12-dev

    And it says that I have the latest package. I have a N900, is it possible to install the connectivity library on that? If so do you know how? I see that I have other libraries and I think they're the 1.1 QT mobility libraries. How can I get rid of them and make the 1.2 libraries visible? I get the error when deploying the SW to the phone.

    Thanks.

  6. #6
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    200

    Re: Shared Library

    Did you run the commands on your computer or on your phone (N900)?

    Libraries are installed exactly the same way on both. So you need to run "apt-get install libqtm-12" on your phone terminal. See here instuctions to use terminal on N900 http://wiki.maemo.org/Terminal. You need to be root to install packages, see instructions http://wiki.maemo.org/Root_access.

  7. #7
    Registered User
    Join Date
    Oct 2012
    Posts
    21

    Re: Shared Library

    Yes I ran this on the N900

    "sudo gainroot"
    "apt-get install libqtm-12"

    It says the latest package is installed.

    Looking in the app manager I do not see the connectivity or feedback packages, they look like the 1.1 packages to me.

    I also ran
    "apt-get update"
    "dpkg --configure -a"
    "apt-get -f install libqtm-12"

    running "apt-get -f install libqtm-*" gives me errors of broken and unmet dependencies

    Any ideas?

  8. #8
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    200

    Re: Shared Library

    You could check which version you really have installed "dpkg -l libqtm-12". Application manager shouldn't be showing libraries.

  9. #9
    Registered User
    Join Date
    Oct 2012
    Posts
    21

    Re: Shared Library

    It says I have "1:1.2.0+git201 Experimental QtMobility metapackage"

  10. #10
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    200

    Re: Shared Library

    I'm sorry I didn't realise that version is likely to be shown truncated. Correct command is "dpkg-query --show libqtm-12". Latest version is 1:1.2.0+git20111104-0nd~fremantle5.

    You are saying you think you have old libraries installed. What exactly makes you think that? What exact dependency errors are you seeing?

    If you install your application to your phone and start it from command line, do you get the same error?

  11. #11
    Registered User
    Join Date
    Oct 2012
    Posts
    21

    Re: Shared Library

    Yes, I have this version on the phone 1:1.2.0+git20111104-0nd~fremantle5. The app crashes on the phone, it opens waits a few seconds and then closes.

    It builds OK but when I click run, it gives the error

    Killing remote process(es)...
    Starting remote process...
    Remote process started.
    /opt/Blue/bin/Blue: error while loading shared libraries: libQtConnectivity.so.1: cannot open shared object file: No such file or directory
    Finished running remote process. Exit code was 127.

    And that is the only error.

    If I type

    "apt-get -f install libqtm-12*"

    I get the error

    The following packages have unmet dependencies:

    libqtm-11-declarative: depends libqtm-11-feedback but it is not installable

    and it depends on many libqtm-11 packages..

    Then

    libqtm-12: conflicts: libqtm-12-bearer
    conflicts: libqtm-12-connectivity
    and many more packages of libqtm-12-....

    and at the end

    E:Broken packages.

  12. #12
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    200

    Re: Shared Library

    Quote Originally Posted by mark090480 View Post
    The app crashes on the phone, it opens waits a few seconds and then closes.
    Did you start the application from command line "/opt/Blue/bin/Blue"? Basically you should get the same error message printed to terminal as when running from IDE.


    Quote Originally Posted by mark090480 View Post
    If I type

    "apt-get -f install libqtm-12*"

    I get the error

    The following packages have unmet dependencies:

    libqtm-11-declarative: depends libqtm-11-feedback but it is not installable

    and it depends on many libqtm-11 packages..

    Then

    libqtm-12: conflicts: libqtm-12-bearer
    conflicts: libqtm-12-connectivity
    and many more packages of libqtm-12-....

    and at the end

    E:Broken packages.
    Try to remove ALL libqtm-12 and libqtm-12-* (and libqtm-11* too) packages and then reinstall libqtm-12 only.

  13. #13
    Registered User
    Join Date
    Oct 2012
    Posts
    21

    Re: Shared Library

    How can I start the program from the command? from here and the name of the program:"/opt/Blue/bin/Blue" I get file not found although it is there if I use the file browser.

    I get an error message that I can't remove libqtm-11* because they don't exist. When I try to install with libqtm-12* I get the same error. Although I could uninstall the libqtm-12* package.

  14. #14
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    200

    Re: Shared Library

    If the application is installed properly, you should be able to start in from command line with /opt/Blue/bin/Blue (assuming this you your application's binary). You can check the contents of /opt/Blue/bin/ directory with "ls -l /opt/Blue/bin/".

    Could you send the whole output from "dpkg -l libqt*" (run on your phone), so we can see which qt packages you really have installed.

  15. #15
    Registered User
    Join Date
    Oct 2012
    Posts
    21

    Re: Shared Library

    Could the problem be on the Mac too?

    Here is the output:

    /home/user # dpkg -l libqt*
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
    ||/ Name Version Description
    +++-==============-==============-============================================
    ii libqt4-appdown 0.3.5 library for communication with maemo.org dow
    ii libqt4-bearer- 4.7.0~git20101 Qt 4 Bearer Hotfix
    ii libqt4-core 4.7.0~git20100 Qt 4 core module
    ii libqt4-dbus 4.7.0~git20100 Qt 4 D-Bus module
    ii libqt4-declara 4.7.0~git20100 Qt 4 declarative module
    un libqt4-dev <none> (no description available)
    ii libqt4-gui 4.7.0~git20100 Qt 4 GUI module
    ii libqt4-maemo5 4.7.0~git20100 Qt 4 Maemo5 module
    ii libqt4-multime 4.7.0~git20100 Qt 4 Multimedia Libraries
    ii libqt4-network 4.7.0~git20100 Qt 4 network module
    ii libqt4-opengl 4.7.0~git20100 Qt 4 OpenGL module
    ii libqt4-phonon 4.7.0~git20100 Qt 4 Phonon Libraries
    ii libqt4-script 4.7.0~git20100 Qt 4 script module
    ii libqt4-sql 4.7.0~git20100 Qt 4 SQL module
    ii libqt4-sql-sql 4.7.0~git20100 Qt 4 SQLite plugin
    ii libqt4-svg 4.7.0~git20100 Qt 4 SVG module
    ii libqt4-test 4.7.0~git20100 Qt 4 test module
    pn libqt4-transla <none> (no description available)
    ii libqt4-webkit 4.7.0~git20100 Qt 4 WebKit module
    ii libqt4-xml 4.7.0~git20100 Qt 4 XML module
    ii libqt4-xmlpatt 4.7.0~git20100 Qt 4 XML Patterns module
    un libqtcore4 <none> (no description available)
    un libqtgui4 <none> (no description available)
    ii libqtm-12 1:1.2.0+git201 Experimental QtMobility metapackage
    pn libqtm-12-bear <none> (no description available)
    rc libqtm-12-conn 1:1.2.0-0fn~fr Qt Mobility Connectivity module
    rc libqtm-12-cont 1:1.2.0-0fn~fr Qt Mobility contacts module
    pn libqtm-12-decl <none> (no description available)
    pn libqtm-12-dev <none> (no description available)
    rc libqtm-12-feed 1:1.2.0-0fn~fr Qt Mobility Feedback module
    rc libqtm-12-gall 1:1.2.0-0fn~fr Qt Mobility Document Gallery module
    rc libqtm-12-loca 1:1.2.0-0fn~fr Qt Mobility location module
    rc libqtm-12-mess 1:1.2.0-0fn~fr Qt Mobility messaging module
    rc libqtm-12-mult 1:1.2.0-0fn~fr Qt Mobility multimedia module
    rc libqtm-12-orga 1:1.2.0-0fn~fr Qt Mobility Organizer module
    rc libqtm-12-publ 1:1.2.0-0fn~fr Qt Mobility publish and subscribe module
    rc libqtm-12-sens 1:1.2.0-0fn~fr Qt Mobility service framework module
    rc libqtm-12-serv 1:1.2.0-0fn~fr Qt Mobility service framework module
    rc libqtm-12-syst 1:1.2.0-0fn~fr Qt Mobility system information module
    rc libqtm-12-vers 1:1.2.0-0fn~fr Qt Mobility versit module
    pn libqtm-bearer <none> (no description available)
    pn libqtm-contact <none> (no description available)
    un libqtm-dev <none> (no description available)
    un libqtm-example <none> (no description available)
    pn libqtm-locatio <none> (no description available)
    pn libqtm-messagi <none> (no description available)
    pn libqtm-multime <none> (no description available)
    pn libqtm-publish <none> (no description available)
    pn libqtm-sensors <none> (no description available)
    pn libqtm-service <none> (no description available)
    pn libqtm-systemi <none> (no description available)
    pn libqtm-versit <none> (no description available)
    /home/user #

Similar Threads

  1. Replies: 1
    Last Post: 2010-12-13, 16:47
  2. Deploying as shared library under windows
    By snehasishkumar in forum Qt
    Replies: 0
    Last Post: 2010-06-13, 14:35
  3. shared library in 3rd edition
    By can_bal99 in forum Symbian
    Replies: 2
    Last Post: 2007-11-20, 10:22

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×