mkoctfile does not understand "-fopenmp" from ImageMagick

Alex Lancaster alexl at users.sourceforge.net
Wed Jan 7 02:21:49 CST 2009


>>>>> "SH" == Søren Hauberg  writes:

[...]

SH> Yes, that is the correct list. It's a semi-open list (i.e. with a
SH> moderator) so you can send mails there even if you're not
SH> subscribed.

SH> Anyway, I'm not planning on fixing this bug. Yeah, I know that is
SH> a terrible thing to say, but let me explain...

SH> 'imread' and 'imwrite' are the functions in the image package that
SH> uses ImageMagick. These have been rewritten and moved to the
SH> development version of Octave. So Octave 3.2 will have these
SH> functions. Currently, we are not planning on having a release of
SH> Octave-Forge until Octave 3.2 is released (seemed like a good
SH> decision at the time). So, the 'imread' and 'imwrite' functions
SH> are no longer in Octave-Forge SVN, which makes it more tedious to
SH> fix this issue.

SH> Hmm, perhaps the no-octave-forge-release-until-3.2-is-out idea
SH> needs to be re-discussed.

SH> As to your problem, I'd recommend just changing the Makefile in
SH> the image package to accommodate your needs. I know that is more
SH> work for you, and I'm sorry, but I think it's the best I can do
SH> for you at the moment :-(

I understand that you might drop the ImageMagick requirement which
would make this issue moot.  Meanwhile I developed a patch (attached)
which allows octave-forge to build on Fedora.  Perhaps it could be
applied now, then it will be fixed if you end up generating an interim
octave-forge-2009MMDD release?

The problem turned out to be the pre-processor flag
(i.e. "-Wp,-fopenmp" works), not the linker flag, so to ensure all
flags get passed correctly, my patch escapes both using "-Wp," and
"-Wl," respectively.  So the patch should make the compilation of the
module more robust on all systems.

Alex

-------------- next part --------------
A non-text attachment was scrubbed...
Name: octave-forge-image-1.0.8-build.patch
Type: text/x-patch
Size: 505 bytes
Desc: not available
Url : https://www-old.cae.wisc.edu/pipermail/bug-octave/attachments/20090107/ffa4641f/attachment.bin 


More information about the Bug-octave mailing list