|
From: | Benjamin Lindner |
Subject: | Re: fltk-config for windows gives -mwindows flag (was octave-3.3.50 built by mingw-gcc-4.4.0 cannot be executed.) |
Date: | Tue, 29 Sep 2009 20:55:32 +0200 |
User-agent: | Thunderbird 2.0.0.22 (Windows/20090605) |
Tatsuro MATSUOKA wrote:
Hello --- Tatsuro MATSUOKA wrote:Yes it work if I remove '-mwindows' flag from fltk-config. (Howeever, eigs.cc test causes segfault! in the yesterday run).It is also case for wxWidget case for gnuplot. I discussed one of the wxWidget developer. Iproposed that -mwindows flag is to be removed from wx-config. However, my proposal is rejected because mostusers use native windows application.Tweaking wx-config is easy but the tweaking without careful consideration is better to be avoided. I'm afraid that it may cause unwanted results when I use wxWidget libraries for other applications. In the case of fltk and octave, I think it would better to modify configure setting of octave than to modify fltk-config. That is because fltk is not only used for octave. So that change of defaultsetting should be avoided if possible.How do other people think about this case ?
For the mingw binaries, since I need to build fltk from source, I can remove the -mwindows flag there from fltk-config, so I would't need to have it dealt with in octave's configure script.
Does this problem also occur on cygwin?If we deal with this in octave's configure script, then I'd suggest it be done only for mingw (and cygwn?) platform.
I have considered the patch --- configure.in.orig 2009-09-12 19:52:06 +0900 +++ configure.in 2009-09-29 16:56:09 +0900 @@ -845,7 +845,7 @@ warn_fltk_config="FLTK config script not found. Native graphics will be disabled." else FLTK_CFLAGS="`$FLTK_CONFIG $fltkconf_args --use-gl --cflags`" - FLTK_LDFLAGS="`$FLTK_CONFIG $fltkconf_args --use-gl --ldflags`" + FLTK_LDFLAGS="`$FLTK_CONFIG $fltkconf_args --use-gl --ldflags | sed -e 's/ -mwindows//'`"
I'd suggest sed -e "+s-mwindows++g" to be more robust.
[Prev in Thread] | Current Thread | [Next in Thread] |