Results 1 to 3 of 3

Thread: Qt application with a C "sub" application - compilation

  1. #1
    Join Date
    Jul 2007
    Posts
    26
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Qt application with a C "sub" application - compilation

    I have a subdir based Qt project entirely written in C++ Qt4.
    But now I would like to include a application into this project that is written in C. How would I do it? If I define it in the main .pro file it searches for the sub-projects .pro which doesn't exist.
    Looking for lots of help with my project.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Qt application with a C "sub" application - compilation

    Quote Originally Posted by Tux-Slack View Post
    If I define it in the main .pro file it searches for the sub-projects .pro which doesn't exist.
    Why don't you create one with "qmake -project"? qmake is a flexible makefile generator not restricted to Qt projects only.
    J-P Nurmi

  3. #3
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Qt application with a C "sub" application - compilation

    In addition to what jpn posted, if you are working on linux and KDE, I warmly recommend to use KDevelop, it will take you two minutes to add this subproject.
    I don't know for sure, but probably QDevelop, Edyuk and Monkeystudio will manage it easy too.
    (This is the same as what jpn said, it only will be done with a nice GUI, which will generate the pro file for your subproject)
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

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
  •  
Qt is a trademark of The Qt Company.