[GiNaC-list] Suceeded!!!! <== I cannot build ginac 1.4.1 on mingw

Tatsuro MATSUOKA tmacchant4 at yahoo.co.jp
Tue Feb 26 11:15:17 CET 2008


Hello

I have succeeded.
I have mistaken to use the pkg-config.exe.

The pkg-config.exe has been gotten from the gimp tool kit.
So it does not understand the msys path.

Then I revise 
cln.pc
prefix=C:/Programs/msys/1.0/local/cln-1.2.0 

The libdl obtained from 
dlfcn-win32
http://code.google.com/p/dlfcn-win32/downloads/list

mktemp 
from libgw32c in GnuWin32

and add
export LIB='-lgw32c -lcln -lgmp'

This makes me Ginac-1.4.1 build successful.

Alexandar!! Thanks for your advises.

Regards

Tatsuro 

*******************************************************
gmp-4.2.2
./configure --prefix=/usr/local/gmp-4.2.2
make
make check   #required
make install-strip

cln-1.2.0
export LDFLAGS='-L/mingw/lib -L/usr/local/gmp-4.2.2/lib'
export CPPFLAGS='-I/mingw/include -I/usr/local/gmp-4.2.2/include'
./configure --prefix=/usr/local/cln-1.2.0
make
make check
make install

libdl
dlfcn-win32
http://code.google.com/p/dlfcn-win32/downloads/list


ginac-1.4.1
export PKG_CONFIG='C:/Programs/MinGW/bin/pkg-config.exe'
export PKG_CONFIG_PATH='C:/Programs/msys/1.0/local/cln-1.2.0/lib/pkgconfig'
export LDFLAGS='-L/mingw/lib -L/GnuWin32/lib  -L/usr/local/gmp-4.2.2/lib -L/usr/local/cln-1.2.0/lib
-LC:/Programs/dlfcn-win32/lib'
export CPPFLAGS='-I/mingw/include -I/GnuWin32/include -I/usr/local/gmp-4.2.2/include
-I/usr/local/cln-1.2.0/include -IC:/Programs/dlfcn-win32/include'
export LIB='-lgw32c -lcln -lgmp'
./configure --prefix=/usr/local/ginac-1.4.1


cln.pc
prefix=C:/Programs/msys/1.0/local/cln-1.2.0   #here is modified to windows PATH
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: cln
Description: Class Library for Numbers
Version: 1.2.0
Libs: -L${libdir} -lcln
Libs.private:  -lgmp
Cflags: -I${includedir}



excompiler.cpp
added

#ifdef __MINGW32__
extern "C"{
 char *mktemp (char *__template) ;
}
#endif


--------------------------------------
Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar
http://pr.mail.yahoo.co.jp/toolbar/


More information about the GiNaC-list mailing list