Results 1 to 5 of 5

Thread: Getting qextserial to work

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2010
    Posts
    39
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Getting qextserial to work

    I tried by coping over the lib files to the executable folder and also /usr/lib. however when I run the executables, the program crashes. Under Debug screen I got tons of warnings.

    Starting /home/EVA/Desktop/Project/c-examples/mul_form/mul_form...

    warning: .dynamic section for "/lib/libpthread.so.0" is not at the expected address
    .dynamic section for "/lib/libpthread.so.0" is not at the expected address

    warning: difference appears to be caused by prelink, adjusting expectations
    difference appears to be caused by prelink, adjusting expectations

    warning: .dynamic section for "/lib/libm.so.6" is not at the expected address

    warning: difference appears to be caused by prelink, adjusting expectations

    warning: .dynamic section for "/lib/librt.so.1" is not at the expected address

    warning: difference appears to be caused by prelink, adjusting expectations

    warning: .dynamic section for "/lib/libglib-2.0.so.0" is not at the expected address

    warning: difference appears to be caused by prelink, adjusting expectations

    ...

    Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/85/b6149a8377a357541e89471eb7ee92474cc8de.debug
    /home/EVA/Desktop/Project/c-examples/mul_form/mul_form exited with code 0

    there are tons of it. Any idea how to resolve this. thanks.

  2. #2
    Join Date
    Feb 2008
    Posts
    491
    Thanks
    12
    Thanked 142 Times in 135 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: Getting qextserial to work

    Once upon a time I had this problem. I know of three ways to fix it, two of which high_flyer mentioned above. They are:

    1. LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/qextserialport.so.1/ (somewhat frowned upon - see how-to referenced below)
    2. cp qextserialpport.so.1 /executable/directory/
    3. as root - add "/path/to/qextserialport.so.1/" to ld.so.conf and run ldconfig (man ldconfig & man ld.so)


    Here is a good read on shared libraries FYI.

  3. #3
    Join Date
    Jan 2010
    Posts
    39
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Getting qextserial to work

    yup I manage to get it to work. its actually my mistake. I forgot to alloc memory to the variable. thanks

Similar Threads

  1. QT QSS ui work
    By davejh in forum Jobs
    Replies: 2
    Last Post: 12th May 2010, 16:31
  2. Why does this not work?
    By lnxusr in forum Newbie
    Replies: 8
    Last Post: 18th December 2009, 18:53
  3. Replies: 2
    Last Post: 13th December 2009, 20:27
  4. Replies: 3
    Last Post: 15th January 2008, 12:11
  5. problem while compiling qextserial port
    By jjbabu in forum Qt Programming
    Replies: 1
    Last Post: 15th September 2007, 13:01

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.