Page 2 of 2 FirstFirst 12
Results 21 to 23 of 23

Thread: adding a library to my project and..how to use it?

  1. #21
    Join Date
    Jan 2012
    Location
    Argentina
    Posts
    167
    Thanks
    33
    Thanked 10 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: adding a library to my project and..how to use it?

    All you say is correct, but you need to have the .dll file somewhere the application finds it. So as placing it where my .exe is located didnt work I have to add that path so that the application look there for the .dll files.

    Maybe my English is so bad you didnt understand me :P

  2. #22
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: adding a library to my project and..how to use it?

    @wysota: Qextserialport is not implemented as a plugin. It is a standard dynamic library, automatically linked at start-up (or optionally a static library).

    @Killgabio: Your English is understandable. Your description of exactly what is going on on your machine is probably not complete or accurate because your "solution" does not make technical sense. If we don't get to the bottom of this then you will be back in a while asking why you cannot get your program to run on another, non-development, machine.

    Can I suggest that your search your entire machine for copies of qextserialport.dll and qextserialportd.dll and remove all except the copy in your qextserialport build directory. Confirm that your program no longer runs. Then copy the DLL from the qextserialport build directory to the location that yourprogram.exe is in (this is probably not the same place as your source code). Confirm that your executable now runs.

    A deployed application (Windows) should ultimately look like:
    Qt Code:
    1. Program Files/
    2. My Program/
    3. myprogram.exe
    4. qextserialport.dll // your program's shared components (not plugins)
    5.  
    6. mingwm10.dll // for MingW GNU C++ programs
    7. libgcc_s_dw2-1.dll
    8.  
    9. qtcore4.dll // Your required Qt components
    10. qtgui4.dll
    11. ...
    12. sqldrivers/
    13. qsqlite4.dll
    14. ...
    15. imageformats/
    16. qjepg4.dll
    17. ...
    To copy to clipboard, switch view to plain text mode 
    On your dev machine the Qt and MingW components should be found without copying them, but your program's other shared components will not be found by default.

  3. #23
    Join Date
    Jan 2012
    Location
    Argentina
    Posts
    167
    Thanks
    33
    Thanked 10 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: adding a library to my project and..how to use it?

    now i don`t need to add the plugins path anymore. I was just confusing things sorry!

    Thanks a lot!


    PS: Actually all the .dll you mentioned i have allready placed them on me release folder because every two days im testing the advances of the application on another computer, untill today everything was fine but now i cannot understand how to use this other library i downloaded, it driving me crazy actually. If you can have a look (http://www.qtcentre.org/threads/47142-General-Advice)when you have time i ll be pleased think that is going to be one of my last problems :/ greetings!
    Last edited by KillGabio; 1st February 2012 at 22:05.

Similar Threads

  1. Adding glew library
    By Cucus in forum Newbie
    Replies: 3
    Last Post: 20th June 2011, 22:44
  2. Adding library in another project
    By Anshuman in forum Qt Programming
    Replies: 1
    Last Post: 26th April 2011, 16:13
  3. Replies: 4
    Last Post: 18th December 2009, 18:55
  4. Adding an external Library
    By afflictedd2 in forum Qt Programming
    Replies: 1
    Last Post: 13th December 2008, 05:51
  5. adding a qt-ui to a non-qt project, dll
    By TheKedge in forum Qt Programming
    Replies: 3
    Last Post: 28th February 2007, 17:08

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.