Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to use a project as a library in another project
QtWS25 Last Chance

How to use a project as a library in another project

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sliver_twist
    wrote on last edited by
    #1

    Hello

    I have here the ocsync project that i have already compiled it on qt . I am asking about how can i use it as a library in my project .
    Generally the question is how to use a project as library in another project in Qt [my Qt is Qt Creator 2.5.0 Based on Qt 4.8.1 (64 bit)] and my Os is openSUSE

    Cheers

    1 Reply Last reply
    0
    • raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      "Not that hard to find":http://lmgtfy.com/?q=qt+create+library... even the first 3 results should help you

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sliver_twist
        wrote on last edited by
        #3

        thanks it wasn't enough clear to me i only needed to fin this line In linux, MinGW will output .so, .so.1, .so.1.0 and .so.1.0.0 – .lib

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sliver_twist
          wrote on last edited by
          #4

          Hello again , well i added the .so file to my project that is located externally but when i try to include it it says that the file does not exists #include<csync.h> "no such file or directory"

          1 Reply Last reply
          0
          • raven-worxR Offline
            raven-worxR Offline
            raven-worx
            Moderators
            wrote on last edited by
            #5

            did add the include path to the header file to your PRO file?

            --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
            If you have a question please use the forum so others can benefit from the solution in the future

            1 Reply Last reply
            0
            • S Offline
              S Offline
              sliver_twist
              wrote on last edited by
              #6

              apparently the problem was fixed by doing this #include <ocsync/csync.h> sorry for disturbing you and thanks a lot

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved