#241: Have Qmake honor CXX and adjust its parameters according to the compiler's
abilities
----------------------+-----------------------------------------------------
Reporter: levill_r | Owner: Olena Team
Type: defect | Status: new
Priority: major | Milestone:
Component: Olena | Version: 1.0
Keywords: |
----------------------+-----------------------------------------------------
Context: qmake is used by `configure` to set flags like `QT_CXXFLAGS`,
`QT_LDFLAGS`, etc. (thanks to `autotroll.m4`).
Qmake does not set compiler/linker flags based on tests on the tools
themselves; instead, it queries the environment and sets variables
according to some recipe (the « `spec` »).
This is annoying on Mac OS X, since the `spec` detected and used by Qmake
on this OS (`macx-g++`) adds Apple-specific flags to `QT_CXXFLAGS`,
`QT_LDFLAGS`, etc., namely « `-arch x86_64 -Xarch_x86_64` » on Intel64
hosts. This prevents Qt-dependent components from being built with a non
Apple compiler (e.g., `g++` 4.5 from the !MacPorts).
We cannot really solve this problem entirely because it implies patching
qmake. We can however write some workaround in `autotroll.m4` for known
cases (like this one).
In the current case, if non-standard flags `-arch` and/or `-Xarch` are
detected in the `Makefile` generated by qmake, we should try to run `make`
in the `conftest.dir` directory with CXX set to the value found ealier by
`configure`. If this fails, try again with `-arch` and/or `-Xarch`
removed from `QT_CXXFLAGS`, `QT_LDFLAGS`, etc.
--
Ticket URL: <https://trac.lrde.org/olena/ticket/241>
Olena <http://olena.lrde.epita.fr>
Olena, a generic and efficient C++ image processing library.
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Olena, a generic and efficient image processing platform".
The branch next-build-test has been updated
via 3d16fd32fef9d30de88637605ed81a83c0d2f778 (commit)
via 4183f619f4bc24a7c292421508affe58e08c3270 (commit)
from d58738a0e23770f8795a83ca5912d167fcd541af (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
3d16fd3 mln/io/magick/save.hh: Fix a crash when using GraphicsMagick instead of ImageMagick.
4183f61 Fix encoding issues in xml_transform.
-----------------------------------------------------------------------
Summary of changes:
milena/ChangeLog | 5 +++++
milena/mln/io/magick/save.hh | 15 ++++++++++++---
scribo/sandbox/ChangeLog | 7 +++++++
scribo/sandbox/arthur/xml_transform/image_crop.cc | 2 ++
scribo/sandbox/arthur/xml_transform/loader.cc | 2 ++
5 files changed, 28 insertions(+), 3 deletions(-)
hooks/post-receive
--
Olena, a generic and efficient image processing platform
---
milena/ChangeLog | 5 +++++
milena/mln/io/magick/save.hh | 15 ++++++++++++---
2 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index f853179..8e43f9f 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,3 +1,8 @@
+2010-11-25 Guillaume Lazzara <z(a)lrde.epita.fr>
+
+ * mln/io/magick/save.hh: Fix a crash when using GraphicsMagick
+ instead of ImageMagick.
+
2010-11-19 Guillaume Lazzara <z(a)lrde.epita.fr>
Add a fastest implementation in io::magick.
diff --git a/milena/mln/io/magick/save.hh b/milena/mln/io/magick/save.hh
index 7282414..2ea2957 100644
--- a/milena/mln/io/magick/save.hh
+++ b/milena/mln/io/magick/save.hh
@@ -158,12 +158,21 @@ namespace mln
ncols = geom::ncols(ima),
nrows = geom::nrows(ima);
-
- Magick::Image magick_ima;
// In the construction of a Geometry object, the width (i.e.
// `ncols') comes first, then the height (i.e. `nrows')
// follows.
- magick_ima.size(Magick::Geometry(ncols, nrows));
+ //
+ // FIXME: Default pixel value is set to "white". If the image is
+ // declared with the default constructor, without specifying a
+ // default value, no data seems to be allocated and the Pixel view
+ // declared further fails and segfault...
+ Magick::Image magick_ima(Magick::Geometry(ncols, nrows), "white");
+
+ magick_ima.type(Magick::TrueColorType);
+
+ // Ensure that there is only one reference to underlying image
+ // If this is not done, then image pixels will not be modified.
+ magick_ima.modifyImage();
Magick::Pixels view(magick_ima);
// As above, `ncols' is passed before `nrows'.
--
1.5.6.5
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Olena, a generic and efficient image processing platform".
The branch fix-ostream-use has been deleted
was 7186af46bed3e9755e7c319178fdf677b42efdce
-----------------------------------------------------------------------
7186af46bed3e9755e7c319178fdf677b42efdce Fix output streams uses.
-----------------------------------------------------------------------
hooks/post-receive
--
Olena, a generic and efficient image processing platform
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Olena, a generic and efficient image processing platform".
The branch next has been updated
via 7186af46bed3e9755e7c319178fdf677b42efdce (commit)
via 0be53fd662d3b5ae1c7d3740e07710df4a95c0a6 (commit)
from 0d8813e68ce7b27f4e0af6ee0a6004d0564b5945 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
No new revisions were added by this update.
-----------------------------------------------------------------------
Summary of changes:
AUTHORS | 6 ++--
ChangeLog | 4 +++
milena/ChangeLog | 17 ++++++++++++++
milena/mln/core/concept/value_set.hh | 5 ++-
milena/mln/morpho/tree/data.hh | 5 ++-
milena/mln/trace/warning.hh | 10 ++++----
milena/mln/util/fibonacci_heap.hh | 40 +++++++++++++++++-----------------
7 files changed, 55 insertions(+), 32 deletions(-)
hooks/post-receive
--
Olena, a generic and efficient image processing platform