Perhaps this is due to mix of the msys (inside octave) and msys2 (outside octave).
Sorry for not mentioning this but actually I'm using the msys2 shell for now. I tried doing this from octave shell but it neither has 'pacman' nor I could get a few things to work. So, for the time being I thought to try out MSYS2 only.
Second workaround is to add also LDFLAGS like
CPPFLAGS='-IE:/octave_dev/include/octave-4.1.0+ -IE:/octave_dev/include/octave-4.1.0+/octave' \
LDFLAGS='-L/e/ocgtave_dev/lib' \
./configure --with-octave=/e/octave_dev
(It may be required other -L<some lib dir> flag in LDFLAGS.)
I tried that too. It doesn't seem to be a problem of library path though. somehow grep and sed are finding it in some weird directory.
Well, I did the configure with the following:
$ CPPFLAGS='-I/e/octave_dev/include/octave-4.1.0+ -I/e/octave_dev/include/octave-4.1.0+/octave' LDFLAGS=-L/e/octave_dev/lib/octave/4.1.0+ ./configure --with-octave=/e/octave_dev
Also, after that the compiling part is okay done. But linking still fails. I tried all sorts of things in the 'Makefile' created by configure. But, nothing seems to work. And I am too inexperienced with makefile to do much.
Following is the ouput of make:
------------------------------
$ make
make all-am
make[1]: Entering directory '/e/My_Repos/pytave'
/bin/sh ./libtool --tag=CXX --mode=link g++ -std=gnu++11 -g -O2 -module -LE:\octave_dev\lib\octave\4.1.0+ -L/e/octave_dev/lib/octave/4.1.0+ -o _
pytave.la -rpath /../invalidpath _pytave_la-pytave.lo
libpytave.la -lboost_python -loctinterp -loctave
libtool: warning: library 'E:\octave_dev\lib\octave\4.1.0+/
liboctinterp.la' was moved.
/usr/bin/grep: /usr/lib/octave/4.1.0+/
liboctave.la: No such file or directory
/usr/bin/sed: can't read /usr/lib/octave/4.1.0+/
liboctave.la: No such file or directory
libtool: error: '/usr/lib/octave/4.1.0+/
liboctave.la' is not a valid libtool archive
make[1]: *** [Makefile:576: _
pytave.la] Error 1
make[1]: Leaving directory '/e/My_Repos/pytave'
make: *** [Makefile:476: all] Error 2
-------------------------------
Probably Mike could help (Assuming that the Makefile part of pytave was written by him).. Why are grep and sed being called at the linker stage? At what place in the Makefile.am (or any other m4 file) are they called? What are they supposed to do? Any suggestion to overwrite the directory they are searching in?
.
Abhinav