Results 1 to 4 of 4

Thread: Qt3 library in Qt4 app

  1. #1
    Join Date
    Jan 2006
    Location
    Moscow, Russia
    Posts
    23
    Thanks
    1
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Qt3 library in Qt4 app

    Hello!

    I have some plugin (Qt3) and some Application(Qt4). When I try to load plugin I have a message in my stderr "Segmentation Faild". I'm entirely sure that when I creat QLibrary instance I set filename correctly. It's work properly under Windows, but in Linux does not.

    Qt Code:
    1. hLib = new QLibrary("classif");
    2. hLib->load(); // <--segmination failure
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt3 library in Qt4 app

    Check if hLib!=0. And then use a debugger to check what exactly causes the load() method to fail.

  3. #3
    Join Date
    Jan 2006
    Location
    Moscow, Russia
    Posts
    23
    Thanks
    1
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt3 library in Qt4 app

    I checked - hLib != 0. How can I debug QLibrary::load() method?

  4. #4
    Join Date
    Jan 2006
    Location
    Moscow, Russia
    Posts
    23
    Thanks
    1
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt3 library in Qt4 app

    I just ask another question - is it possible at all, the library I created in Qt3 use in Qt4. Anyone did it? (under Linux)

Similar Threads

  1. import library linking
    By bruce1007 in forum Qt Programming
    Replies: 6
    Last Post: 19th May 2006, 10:27
  2. Howto: Use exported dll library functions in Qt
    By pedros09 in forum Qt Programming
    Replies: 2
    Last Post: 14th April 2006, 15:05
  3. Using Qt to write Cross Platform Library
    By ball in forum Qt Programming
    Replies: 2
    Last Post: 3rd April 2006, 09:58
  4. MinGW Windows Library Search Path
    By zztop in forum Qt Programming
    Replies: 4
    Last Post: 26th March 2006, 15:18
  5. use interesting QWT Library with QT3.X
    By raphaelf in forum Qwt
    Replies: 2
    Last Post: 23rd January 2006, 11:24

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.