Results 1 to 3 of 3

Thread: qt creator and linux ubuntu

  1. #1
    Join Date
    Nov 2012
    Posts
    38
    Thanks
    3

    Default qt creator and linux ubuntu

    hello.
    I would migrate from win 7 visual studio 2012 to linux qt creator.
    I would create a library first and for that i'm used to create subproject that are .dll under win 7 and for each project i have post build event that copies all the .h from the dir of the subproject to a common include folder.
    And the dlls are creates in a specific folder
    Then when I writing the project i must import the .dll files and include the include directory with all the .h.
    There is some documentation for create a makefile(i think that this is all that i need)?
    and for the dll and the equivalent under linux, .lib files and g++ compiler what i should read?
    I need to some information on linux for writing c++ projects .
    there is a book or some other documentation online or better , a tutorial?
    thanks.
    Last edited by giugio; 20th August 2013 at 20:07.

  2. #2
    Join Date
    Feb 2012
    Location
    Armenia/Yerevan
    Posts
    400
    Thanks
    15
    Thanked 16 Times in 15 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: qt creator and linux ubuntu

    You need to write those dll files again with .h and .cpp files. However, if you are sure about the functions compatibility, create a .so library and add it to your project under Ubuntu.
    Working with qt is quite straight forward, just go for new project, choose a GUI project and that's all, start adding your classes to it.
    Try to google your questions as well, this way you can find some short articles which guide you through the process.
    Should you need more information, we would guide you more.

  3. #3
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: qt creator and linux ubuntu

    Quote Originally Posted by giugio View Post
    hello.
    I would create a library first and for that i'm used to create subproject that are .dll under win 7 and for each project i have post build event that copies all the .h from the dir of the subproject to a common include folder.

    And the dlls are creates in a specific folder
    Then when I writing the project i must import the .dll files and include the include directory with all the .h.
    You can do the same with Qt project files.

    Quote Originally Posted by giugio View Post
    There is some documentation for create a makefile(i think that this is all that i need)?
    Makefiles are generated from simple project description files using a tool called qmake.
    It takes a .pro file as its input and generated platform specific makefiles or IDE project files (e.g. for Visual Studio)

    The Qt documentation has a tutorial on qmake and additional documentation on its capabilities.


    Quote Originally Posted by giugio View Post
    and for the dll and the equivalent under linux, .lib files
    No, the equivalent to .dll files are .so files (dynamic libraries)
    .lib files are the Windows equivalent to Unix .a files (static libraries)

    Quote Originally Posted by giugio View Post
    I need to some information on linux for writing c++ projects .
    With Qt that is the same on every platform: you create the header and sources files, add them to a .pro file, let qmake generate makefiles and then build the project.
    QtCreator can obviously do all those internally.

    Cheers,
    _

Similar Threads

  1. Replies: 5
    Last Post: 25th April 2012, 11:34
  2. Replies: 1
    Last Post: 17th October 2011, 09:53
  3. QT Creator 2.2.0 Ubuntu cannot run
    By marc2050 in forum Installation and Deployment
    Replies: 3
    Last Post: 18th June 2011, 00:54
  4. Replies: 1
    Last Post: 11th June 2011, 22:02
  5. Qt Creator Problem on Ubuntu 10.10
    By Furkan in forum Qt Tools
    Replies: 4
    Last Post: 16th October 2010, 17:42

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.