Re: [Plplot-devel] QT flags in all compile/links calls

2009-08-14 Thread Werner Smekal

Hi Alan,


In addition after I configure PLplot with cmake and run make, cmake  
is run again due Re-run cmake: build system dependency is  
missing (see make.out). It might have something to do with a  
misconfigured bindings, since when I turn all bindings off, this  
doesn't happen. I think the re-run should also not happen. I try to  
find out, which bindings causes this.


I found out what causes the rerun. I have to disable f77 and f95  
bindings at the command line, then a make call doesn't lead to an  
rerun of cmake. I attached both outputs of cmake. The command line was


cmake -DBUILD_TEST=ON ../plplot  cmake.out  cmake.out
cmake -DBUILD_TEST=ON -DENABLE_f77=OFF -DENABLE_f95=OFF ../plplot   
cmake_wo_fortran.out


The difference between these files is

 -- The Fortran compiler identification is unknown
 -- Configuring done
 -- Generating done
 -- Build files have been written to: /Users/smekal/Development/ 
plbuild/language_tests/Fortran

 -- The Fortran compiler identification is unknown
 -- WARNING: no working Fortran compiler so disabling Fortran  
bindings and examples.

 -- CMAKE_GENERATOR = Unix Makefiles

Is this behavior reproducible on Linux (where no working Fortran  
compiler is available)?


Let me know if you need further information.

Regards,
Werner





cmake.out
Description: Binary data


cmake_wo_fortran.out
Description: Binary data






Regards,
Werner


cmake.outmake.out




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



--
Dr. Werner Smekal
Institut fuer Allgemeine Physik
Technische Universitaet Wien
Wiedner Hauptstr 8-10
A-1040 Wien
Austria
DVR-Nr: 0005886

email: sme...@iap.tuwien.ac.at
web:   http://www.iap.tuwien.ac.at/~smekal
phone: +43-(0)1-58801-13463 (office)
  +43-(0)1-58801-13469 (laboratory)
fax:   +43-(0)1-58801-13499

--
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



--
Dr. Werner Smekal
Institut fuer Allgemeine Physik
Technische Universitaet Wien
Wiedner Hauptstr 8-10
A-1040 Wien
Austria
DVR-Nr: 0005886

email: sme...@iap.tuwien.ac.at
web:   http://www.iap.tuwien.ac.at/~smekal
phone: +43-(0)1-58801-13463 (office)
   +43-(0)1-58801-13469 (laboratory)
fax:   +43-(0)1-58801-13499

--
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


Re: [Plplot-devel] QT flags in all compile/links calls

2009-08-13 Thread Alan W. Irwin
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.

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


Re: [Plplot-devel] QT flags in all compile/links calls

2009-08-13 Thread Alan W. Irwin
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