×

Discussion Board

Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23
  1. #16
    Nokia Developer Moderator
    Join Date
    Oct 2009
    Location
    Finland
    Posts
    327

    Re: maemo Dependency C++

    No, no, you don't need to export LD_LIBRARY_PATH, just start your application the way I put it

    LD_LIBRARY_PATH=/opt/appname/lib /opt/appname/bin/appexecutable

    really, that's it, that specifies the environment var for that application, it will not (and should not !) appear anywhere else (as you should not interfere with the paths for other applications). No postinsts, no exports, just the above at the exact place you're starting your app.

    On a side note - don't forget that Maemo has busybox and not full bash by default so a few shell things might not work as expected if you take bash for granted.

  2. #17
    Registered User
    Join Date
    Jan 2009
    Posts
    172

    Angry Re: maemo Dependency C++

    Quote Originally Posted by achipa View Post
    No, no, you don't need to export LD_LIBRARY_PATH, just start your application the way I put it

    LD_LIBRARY_PATH=/opt/appname/lib /opt/appname/bin/appexecutable

    really, that's it, that specifies the environment var for that application, it will not (and should not !) appear anywhere else (as you should not interfere with the paths for other applications). No postinsts, no exports, just the above at the exact place you're starting your app.

    On a side note - don't forget that Maemo has busybox and not full bash by default so a few shell things might not work as expected if you take bash for granted.
    YES Right
    we have done that from esbox and we added symbol LD_LIBRARY_PATH=/opt/appname/bin/

    but it has no effect
    please check attached image

  3. #18
    Nokia Developer Moderator
    Join Date
    Oct 2009
    Location
    Finland
    Posts
    327

    Re: maemo Dependency C++

    I'm not sure we're talking about the same thing here. Where exactly have you added LD_LIBRARY_PATH ? You have not put in in front of ldd so it does not find the libs - as expected.

  4. #19
    Registered User
    Join Date
    Jan 2009
    Posts
    172

    Re: maemo Dependency C++

    Dear achipa
    Thank you alot for your help ,support and patient
    Yes You are right yesterday i was focus less


    Thanks alot

  5. #20
    Nokia Developer Moderator
    Join Date
    Oct 2009
    Location
    Finland
    Posts
    327

    Re: maemo Dependency C++

    You're welcome... in fact, I might make a wiki page out of this with ready-made files so it's a bit easier to follow through.

  6. #21
    Registered User
    Join Date
    Jan 2009
    Posts
    172

    Re: maemo Dependency C++

    Quote Originally Posted by achipa View Post
    You're welcome... in fact, I might make a wiki page out of this with ready-made files so it's a bit easier to follow through.
    would be a good idea
    I can help with that and prepare all right cases have made and go though i can send it to you if you are intersted

    Regards
    Wael

  7. #22
    Registered User
    Join Date
    Jan 2009
    Posts
    172

    Re: maemo Dependency C++

    Dear achipa,
    please update your article
    alternative solution that we can compile the application by modifying project config file or project make file
    and configure LDFLAGS like this
    LDFLAGS='-Wl,-rpath,/opt/appname/lib:/usr/lib'
    this will let application be launched without LD_LIBRARY_PATH option

    Regards
    Wael

  8. #23
    Nokia Developer Moderator
    Join Date
    Oct 2009
    Location
    Finland
    Posts
    327

    Re: maemo Dependency C++

    Hey, never said it was ready But yes, rpath is certainly an option, probably even better than the LD_LIBRARY_PATH for this particular usage.

Similar Threads

  1. Replies: 5
    Last Post: 2010-09-20, 06:27
  2. Replies: 3
    Last Post: 2010-07-27, 07:41
  3. How to CaptureKeyUpAndDowns depends on home/app
    By stephen.cheung in forum Symbian
    Replies: 3
    Last Post: 2010-05-14, 03:47
  4. The link for download is fix or depends on events?
    By sliawatimena in forum Automatic Feedback Channel
    Replies: 2
    Last Post: 2009-12-06, 11:27
  5. Problem http connection depends on carrier
    By medienhof in forum Symbian Networking & Messaging (Closed)
    Replies: 4
    Last Post: 2005-02-16, 14:53

Posting Permissions

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