[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Mingw-cross-env-list] tryiing to compile Octave
From: |
Tony Theodore |
Subject: |
Re: [Mingw-cross-env-list] tryiing to compile Octave |
Date: |
Sat, 20 Apr 2013 14:15:12 +1000 |
On 19/04/2013, at 11:19 PM, Alois Schloegl <address@hidden> wrote:
>
> Yes, it is possible. It seems compilation works fine, but there is a
> huge number of "undefined references" when trying to link (the log file
> has 356493 lines, only the first 7283 lines are related to configuration
> and compilation,
There are some minor issues with the configure stage that you want to clean up:
- checking for X... libraries /usr/lib, headers /usr/include
- checking for
/home/schloegl/src/mxe.github.schloegl/usr/i686-pc-mingw32/bin/pcre-config... no
- configure: WARNING: You used --enable-dl but not --enable-shared.
- configure: WARNING: cURL library not found. The ftp objects, urlread and
urlwrite functions will be disabled.
- configure: WARNING: You used the EXPERIMENTAL --enable-openmp option.
Apart from --enable-dl, none of these are likely to be significant, but it
doesn't hurt to remove the warnings until you get a successful build.
> the remaining lines concern "undefined references").
> The start and end of that section is shown below. The full log is
> available here : http://pub.ist.ac.at/~schloegl/download/octave.log.txt.gz
>
> Sometimes the order of the linked libraries is important. Do you think
> that might be the case here, too?
>
> /bin/bash ../libtool --tag=CC --mode=link i686-pc-mingw32-gcc -g -O2
The vast majority of undefined references [1] seem to be c++ related (e.g.
'std::', 'operator', '__cxa'). The above should be invoked as
i686-pc-mingw32-g++.
Cheers,
Tony
[1] grep 'undefined reference' octave.log | gsed -n 's,.*undefined reference to
\(.*\),\1,p' | sort | uniq