Hello ROOT lovers,
I have several Windows-related problems Any help gratefully appreciated
I downloaded the win32gdk Windows installer version 5.13/04 on a new XP machine, then decided I wanted to be able to compile stuff too so went to Bertrand Bellenotâs instructions and tried to follow them again. However, as VisualC++2003 is no longer available, I installed the âreplacementâ, VisualC++2005 Express, which includes .NET framework 2.0.
Then from the VC++2005 page I followed a link to download and install âMicrosoft Windows Server 2003 R2 Platform SDKâ which I assume is also some update of the stuff Bertrand described. Finally I installed â.NET framework 2.0 redistributableâ and â.NET framework 2.0 SDKâ (all 354 MB!!).
Then I set environment variables analogolous to Bertrand (ROOTSYS was already defined by the installer and added to PATH):
INCLUDE =
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\include;C:\Program Files\Microsoft Visual Studio 8\VC\include
LIB =
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Lib;C:\Program Files\Microsoft Visual Studio 8\VC\lib;%ROOTSYS%\lib
PATH =
%ROOTSYS%\bin; C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin;C:\Program Files\Microsoft Visual Studio 8\VC\bin;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;%ROOTSYS%\lib
Then I tried to compile a tutorial script in ROOT:
.L tutorials/anim.C++
First I got an error from cl.exe saying âmspdb80.dllâ was missing. I found this file in âŚ/Visual Studio 8/Common 7/IDE and so added this to the PATH variable.
Then I got an error from root.exe saying âMSVCR80.dllâ was missing. This I found in c:\Windows\WinSxS\x86_Microsoft.VC80_afihife(random stream of letters), along with âmsvcp80.dllâ. As âmsvcp80.dllâ is also in Visual Studio/SDK/v2.0/Bin, I copied âmsvcr80.dllâ there too.
Then the error from root.exe became something like âattempt at illegal access to C runtime libraryââŚ
Thatâs when I thought maybe the ROOT binary I downloaded doesnât work with VC++8, so I decided to build from source.
Under cygwin, I run
./configure win32gdk --disable-mysql --disable-odbc
(the two disables are necessary because although âsql.hâ is not found by configure, an attempt is still made to compile TODBCResult)
Although I have installed all the jpeg, gif, png etc. libraries, â./configureâ cannot find them or the headers. e.g. âjpeglib.hâ is in /usr/include, but invisible to ./configure. libjpeg.a, libjpeg.dll.a and libjpeg.la are in /usr/lib, but âconfigureâ canât seem to find them. what paths is it using ?
Can anybody help me please ?
John