New content are available at http://tis-method.org/. All articles from this site will be moved to the new location.

вторник, 21 сентября 2010 г.

HOWTO build CInt under Windows using cygwin and msvc9(msvc8, msvc7)

CInt site
 

Assume that:
CInt installed into "C:\cint\"
MSVC9 installed into "C:\Program Files"
Cygwin installed into "C:\cygwin"

1. Install cygwin. You may use cygwin default packages, but additionally, add /Devel/make package.

2. Get CInt sources from site or from project repository.

3. Add to file "C:\cygwin\Cygwin.bat" two lines «call "C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat"» and 
«SET CINTSYSDIR = "C:\cint"» befor line "bash --login -i"

4. Replace in file
"C:\cygwin\etc\profile" line «PATH=/usr/local/bin:/usr/bin:/bin:$PATH» to «PATH=/cygdrive/c/Program\ Files/Microsoft\ Visual\ Studio\ 9.0/VC/bin/:/usr/local/bin:/usr/bin:/bin:$PATH»

5. Launch cygwin.bat. At the command line set current folder to CInt sources. Exec command «./configure --arch=msvc9 && make»

6. After compiling & linking, folder "C:\cint\bin" will contain dll modile – libCint.dll, folder
"C:\cint\libexport" library – libCint.lib

Current CInt version (5.18.00) depends from msvc CRT, so you need to have both debug and release builds of library to use in you application. Just exec «./configure --arch=msvc9 --debug && make» and you will have debug CInt build.
Issue is that the library names will stay the same (libCint.dll, libCint.lib). It's little awkward during library linking.
I built libCintD.dll, libCintD.lib, by changing output names in the makefiles. But it looks like workaround. When i will find legally work-flow, i will post it. 

Комментариев нет:

Отправить комментарий