Results 1 to 5 of 5

Thread: doesn't the makefile generate according to the .pro ?

  1. #1
    Join Date
    Apr 2016
    Posts
    16
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default doesn't the makefile generate according to the .pro ?

    I'm trying to build a project that I found on sourgeforge call Volbx. Obviously you need a proper environment with boost, Qt 4 QuaZip and Qwt but anyway I just want to make it run with Qt5. First Quazip should be build under Qt4 so I change the .pro to get rid of it. I muted some classes which own Quazip lib and tried to make it build as far as I can. But for any good reason when I do qmake, in my makefile I still get classes that I mute in .pro. shouldn't the .pro who manage the generation of makefile ? Doesn't exist any tips and tricks to pass around some missing lib to compile a project ?

    Thanks in advance for any advice which light my path to a better knowledge of Qt world

  2. #2
    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: doesn't the makefile generate according to the .pro ?

    When you remove source files from the .pro then these won't be compiled.
    When you remove headers files from the .pro then these won't be used as input for moc. However they can still be included by source files or other headers which are still being built.

    Cheers,
    _

  3. #3
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: doesn't the makefile generate according to the .pro ?

    Doesn't exist any tips and tricks to pass around some missing lib to compile a project ?
    If a library is required for linking, then you either have to compile the library yourself or find a pre-compiled version that is compatible with your environment so you can link to it. Without that, your project will not link to create an executable file. You could create a dummy library that contains dummy versions of the classes and functions required to satisfy the link dependencies, but you almost certainly won't get a program that will run correctly.

    So if your project depends on Quazip, then you need to build Quazip.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  4. #4
    Join Date
    Apr 2016
    Posts
    16
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: doesn't the makefile generate according to the .pro ?

    Thanks Anda_skoa and d_stranz. So If I understand even if I mute some classes in .pro and I have some other classes which call them after all I still get them in the makefile. About quazip in the readme they say that it could be only build under Qt 4. Can I build it with Qt 5 even though can't I?

  5. #5
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: doesn't the makefile generate according to the .pro ?

    Can I build it with Qt 5 even though can't I?
    According to the Quazip web site:

    Platforms supported

    QuaZIP has been currently tested on the following platforms:

    linux-g++ (Ubuntu 11.10, Qt 4.7.4)
    freebsd-g++ (Qt 4.0.0
    hpux-acc (HP-UX 11.11)
    hpux-g++ (HP-UX 11.11)
    win32-g++ (MinGW)
    win32-msvc2010 (MS VS 2010 Express, Qt 4.8.4)
    win32-msvc2010 (Qt Creator, Qt 5.0.1)
    win32-msvc2012 (Qt Creator, Qt 5.2.0)
    some Symbian version, reportedly

    Requirements

    Just zlib and Qt 4/5. Well, Qt 4 depends on zlib anyway, but you will need zlib headers to compile QuaZIP. With Qt5 sometimes you need the zlib library as well (on Windows, for example).
    So it appears to be compatible with both Qt 4 and 5; you may have to edit your Qt Creator configuration so it finds the right locations for include files. The Quazip site does have a "Building, testing, and installing" section with some guidelines.

    It's an open-source project, so you should expect to have to do some additional work to get it built and usable.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Replies: 0
    Last Post: 23rd October 2014, 20:08
  2. Replies: 1
    Last Post: 31st March 2011, 19:38
  3. Generate makefile
    By kaszewczyk in forum Newbie
    Replies: 2
    Last Post: 22nd March 2010, 19:12
  4. [qmake] Generate Makefile with include $(ORACLE_HOME)/precomp/env_precomp.mk
    By paulocarvalho_br_2009 in forum Qt Programming
    Replies: 10
    Last Post: 21st May 2009, 17:52
  5. Generate a correct makefile
    By SteM in forum Installation and Deployment
    Replies: 13
    Last Post: 22nd October 2007, 09:58

Tags for this Thread

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.