[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #47571] Problem entering umlaut in command lin
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #47571] Problem entering umlaut in command line |
Date: |
Tue, 4 Apr 2017 16:49:29 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:53.0) Gecko/20100101 Firefox/53.0 |
Follow-up Comment #30, bug #47571 (project octave):
If I understand correctly, Windows converts keystrokes and the paste bin fro
the console to "ANSI" unless you compile with UNICODE and _UNICODE defined and
link with -municode. [1]
I tried to do that by changing default-octave.mk in MXE Octave:
diff -r ce6c155a45ba src/default-octave.mk
--- a/src/default-octave.mk Wed Mar 29 07:54:36 2017 -0400
+++ b/src/default-octave.mk Tue Apr 04 22:15:01 2017 +0200
@@ -115,7 +115,9 @@
else
$(PKG)_PREFIX := '$(HOST_PREFIX)'
$(PKG)_EXTRA_CONFIGURE_OPTIONS := \
- LDFLAGS='-Wl,-rpath-link,$(HOST_LIBDIR) -L$(HOST_LIBDIR)
-L$($(PKG)_QTDIR)/lib'
+ LDFLAGS='-Wl,-rpath-link,$(HOST_LIBDIR) -L$(HOST_LIBDIR)
-L$($(PKG)_QTDIR)/lib -municode' \
+ CFLAGS='-DUNICODE -D_UNICODE' \
+ CXXFLAGS='-DUNICODE -D_UNICODE'
endif
ifeq ($(MXE_SYSTEM),mingw)
However, trying to build with that change fails at configure with the
following error:
configure:6593: x86_64-w64-mingw32-gcc -DUNICODE -D_UNICODE
-I/path_to_mxe_octave/usr/x86_64-w64-mingw32/include
-Wl,-rpath-link,/path_to_mxe_octave/usr/x86_64-w64-mingw32/lib
-L/path_to_mxe_octave/usr/x86_64-w64-mingw32/lib
-L/path_to_mxe_octave/usr/x86_64-w64-mingw32/lib -municode conftest.c >&5
/path_to_mxe_octave/usr/x86_64-w64-mingw32/lib/libmingw32.a(lib64_libmingw32_a-crt0_w.o):
In function `wmain':
/path_to_mxe_octave/tmp-build-gcc/gcc-4.9.4/mingw-w64-v4.0.6/mingw-w64-crt/crt/crt0_w.c:23:
undefined reference to `wWinMain'
collect2: error: ld returned 1 exit status
configure:6597: $? = 1
configure:6635: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU Octave"
| #define PACKAGE_TARNAME "octave"
| #define PACKAGE_VERSION "4.3.0+"
| #define PACKAGE_STRING "GNU Octave 4.3.0+"
| #define PACKAGE_BUGREPORT "http://octave.org/bugs.html"
| #define PACKAGE_URL "http://www.gnu.org/software/octave/"
| #define PACKAGE "octave"
| #define VERSION "4.3.0+"
| #define OCTAVE_SOURCE 1
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:6640: error: in
`/path_to_mxe_octave/tmp-default-octave/octave-4.3.0+/.build':
configure:6642: error: C compiler cannot create executables
This is probably because with that switches the expected entry point is
"wmain()".
I might have a patch for "main.in.cc", but cannot test (since configure
fails).
Is there a way to pass linker switches only for the step when the octave
executable is finally linked (but not during configure)? Where would I have to
add those flags?
Adding John D to CC because he seems to know his way around in MXE Octave.
[1] https://sourceforge.net/p/mingw-w64/wiki2/Unicode%20apps/
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?47571>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #47571] Problem entering umlaut in command line,
Markus Mützel <=