Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Create Library

Create Library

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
4 Posts 3 Posters 617 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.
  • T Offline
    T Offline
    Tiecker
    wrote on last edited by
    #1

    Hi,

    I'm a computer science student, and I start to learn C, now I want to create a Library with a function, that I can include it in another project, but no kit appears, as shown in the attached image.0_1540425671818_Captura de Tela 2018-10-24 às 21.00.37.png

    aha_1980A 1 Reply Last reply
    0
    • T Tiecker

      Hi,

      I'm a computer science student, and I start to learn C, now I want to create a Library with a function, that I can include it in another project, but no kit appears, as shown in the attached image.0_1540425671818_Captura de Tela 2018-10-24 às 21.00.37.png

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      hi @Tiecker, welcome.

      How did you install Qt and Creator? which version?

      Do you have Xcode on your machine?

      Qt has to stay free or it will die.

      1 Reply Last reply
      3
      • T Offline
        T Offline
        Tiecker
        wrote on last edited by
        #3

        My version is QtCreator 4.8.0-beta1 (v4.7.82), and I have Xcode in my machine, for C projects, I can run the programs, but, creating a library a can't use the same kit.

        1 Reply Last reply
        0
        • R Offline
          R Offline
          rmam
          wrote on last edited by
          #4

          @Tiecker perhaps its better if you start off by creating a library project by hand, or in the very least by configuring a build automation script without the help of an IDE.

          I'm afraid Qt Developer's support for C is not exactly there in spite of supporting C compilers, and you'll end up either using qmake or cmake, which always require some level of manual configuration.

          Here's a link to a stack overflow question that includes detailed answers on how to setup a cmake build for a shared library project. Most answers follow cmake's modern target-based style, which includes some degree of hand-holding, but it's very effective in getting a minimal working example.

          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