Results 1 to 3 of 3

Thread: Port Shared Library from Linux to Windows

  1. #1
    Join Date
    Aug 2009
    Posts
    4
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Port Shared Library from Linux to Windows

    Hello,
    I have created a shared library and an application that uses the shared library on Red Hat ES 4. I am now trying to port both the library and app over to Windows Xp. I can get hte library to compile into a .dll and the app to compile into a .exe, but when I try to run the app, I get:

    The procedure entry point not be located X in the dynamic link library Y.

    The X and Y depend on how I compile the app.

    Here is my shared library .pro file:
    Qt Code:
    1. QT += svg \
    2. xml
    3. TARGET = SimplifiedGraphicViewer
    4. TEMPLATE = lib
    5. DEFINES += SGV_LIBRARY
    6. HEADERS += Header Files
    7. SOURCES += Source Files
    To copy to clipboard, switch view to plain text mode 

    Here is my application .pro file:
    Qt Code:
    1. QT += xml svg
    2. FORMS += Window.ui
    3. SOURCES += Source Files
    4. HEADERS += Header Files
    5. TEMPLATE = app
    6. LIBS += -LC:\Shared_Lib -lSimplifiedGraphicViewer
    To copy to clipboard, switch view to plain text mode 

    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    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: Port Shared Library from Linux to Windows

    Do you have the necessary export macros in your classes?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    calh1578 (28th September 2009)

  4. #3
    Join Date
    Aug 2009
    Posts
    4
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Port Shared Library from Linux to Windows

    I have added them and that did the trick. In the linux version, I just need them main header file, but for Windows, I needed them in all the headers.

    Problem Solved.

Similar Threads

  1. Linux -> Windows port issue (signals)
    By robertogoberto in forum Qt Programming
    Replies: 2
    Last Post: 21st September 2009, 07:44
  2. Linking to a static library on Windows
    By rexi in forum Qt Programming
    Replies: 9
    Last Post: 27th July 2009, 19:54
  3. Deployment Procedure On Windows On Linux and Windows
    By Harshith J.V. in forum Installation and Deployment
    Replies: 4
    Last Post: 9th July 2009, 11:27
  4. Replies: 5
    Last Post: 15th January 2009, 09:03
  5. Please Help-->have few doubts with Static build in Windows !
    By Krish in forum Installation and Deployment
    Replies: 1
    Last Post: 17th March 2008, 14:37

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.