On 2009-08-13 13:39-0700 Alan W. Irwin wrote:

> On 2009-08-13 09:06+0200 Werner Smekal wrote:
>
>> Hi,
>>
>> I'm just trying to make a D compiler run on Mac OS X with cmake and
>> plplot and encountered some problems. One of them is, that in the call
>> to build the D bindings library, there are several Qt flags and one of
>> them doesn't work with the dmd compiler (the /F flag for frameworks).
>> Using "make VERBOSE=1" I found out, that actually all C/C++ files are
>> compiled with these flags, which is definitely far from perfect
>> (although it doesn't harm obviously).
>
> Builds of PLplot components that are not related to Qt should not be
> contaminated with Qt flags. Such extra flags slow down the build and
> actively interfere with some component builds on some platforms (as you have
> just found out).
>
> I confirm the Qt build flag contamination problem on Linux.  (For example,
> on my build with downloaded QT4 SDK, the
> -I/home/software/qtsdk-2009.02/qt/include option is used even for C language
> compiles.) I currently don't understand what could possibly be causing this
> contamination of build flags, but I will look deeper into it and attempt to
> fix it.

Hi Werner:

The problem is that the Qt4 version of QT_USE_FILE uses the CMake commands,
add_definitions and include_directories to set up the Qt4 build environment.
Those commands contaminate all PLplot component builds with qt flags if the
include(${QT_USE_FILE}) CMake command is executed implicitly for the
top-level directory (via cmake/modules/qt.cmake) since every subdirectory
inherits the results of the add_definitions and include_directories
commands.  The solution is to remove the include(${QT_USE_FILE}) command
from cmake/modules/qt.cmake and only use it in those subdirectories where it
is needed (revision 10247).  I have tested the result for ENABLE_qt OFF and
ON, and ENABLE_DYNDRIVERS OFF and ON, and it seems to work.

Please let me know if this fix solves the specific problem you found on
Mac OS X.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to