[GiNaC-list] GiNaC on MinGW
Alexei Sheplyakov
varg at theor.jinr.ru
Tue Feb 26 17:16:06 CET 2008
Hi,
On Tue, Feb 26, 2008 at 07:15:17PM +0900, Tatsuro MATSUOKA wrote:
> This makes me Ginac-1.4.1 build successful.
I'm sorry to confuse you, but as a matter of fact none of this tricks
is necessary to build GiNaC on windows. I'll elaborate in a moment.
> The pkg-config.exe has been gotten from the gimp tool kit.
> So it does not understand the msys path.
So one need to set PKG_CONFIG_PATH using windows paths, i.e.
export PKG_CONFIG_PATH="C:/Programs/msys/1.0/local/cln-1.2.0/lib/pkgconfig"
> Then I revise
> cln.pc
> prefix=C:/Programs/msys/1.0/local/cln-1.2.0
Windows version of pkg-config overrides the `prefix' variable with
the actuall installation directory anyway, so this is not necessary.
> The libdl obtained from
> dlfcn-win32
> http://code.google.com/p/dlfcn-win32/downloads/list
This is not necessary. compile_ex won't work on Windows anyway. (Hint:
the ginac-excompiler script is Linux specific). And libgw32c already has
dlopen and friends.
> mktemp
> from libgw32c in GnuWin32
Likewise. It does *nothing* useful and confuses the configure script:
configure:24479: checking for dlopen in -ldl
configure:24514: g++ -o conftest.exe -g -O2 -I/mingw/include -I/usr/local/octave-3.0.0/include -I/GnuWin32/include -L/mingw/lib -L/usr/local/octave-3.0.0/lib -L/GnuWin32/lib -L/GnuWin32/bin conftest.cpp -ldl -lgw32c >&5
configure:24520: $? = 0
The configure scripts detects dlopen in libgw32c.dll and enables compile_ex,
which is the WRONG thing.
> and add
> export LIB='-lgw32c -lcln -lgmp'
You don't need pkg-config if you set the compiler and linker flags manually.
Or the other way around: you don't need to set the compiler and linker flags
manually if you use pkg-config.
Best regards,
Alexei
--
All science is either physics or stamp collecting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: Digital signature
Url : http://www.cebix.net/pipermail/ginac-list/attachments/20080226/fedb14bc/attachment.sig
More information about the GiNaC-list
mailing list