octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fltk-config for windows gives -mwindows flag (was octave-3.3.50 buil


From: Tatsuro MATSUOKA
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 17:22:51 +0900 (JST)

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. I
> proposed
> that -mwindows flag is to be removed from wx-config.  However, my proposal is 
> rejected because
> most
> users 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 default
> setting should be avoided if possible. 
> 
> How do other people think about this case ?


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//'`"
   
   AC_MSG_CHECKING(for OpenGL support in FLTK)
   cat > conftest.cc <<EOF

******************************
By the patch

FLTK backend libs:    -L/c/Programs/OctaveBuild/lib -mwindows 
-Lc:/Programs/OctaveBuild/lib
-Lc:/Programs/WinDevTools/lib -Lc:/Programs/GnuWin32/lib -mno-cygwin 
-Wl,--enable-auto-import
-Wl,--enable-runtime-pseudo-reloc -lfltk_gl -lglu32-lopengl32 -lfltk -lpthread 
-lole32 -lcomctl32

  |
  |
  V

 FLTK backend libs:    -L/c/Programs/OctaveBuild/lib 
-Lc:/Programs/OctaveBuild/lib
-Lc:/Programs/WinDevTools/lib -Lc:/Programs/GnuWin32/lib -mno-cygwin 
-Wl,--enable-auto-import
-Wl,--enable-runtime-pseudo-reloc -lfltk_gl -lglu32 -lopengl32-lfltk -lpthread 
-lole32 -lcomctl32

Regards

Tatsuro

--------------------------------------
Yahoo! JAPAN - Internet Security for teenagers and parents.
http://pr.mail.yahoo.co.jp/security/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]