Deepa,

I made a few changes myself to make FastBit easily buildable using the Windows 
SDK 7.1 (i didn't have VC available).

First, where you are using the SDK shell (either from VC or the SDK), all the 
required commands are on the path, so you can safely change these:

-VC=C:\Tools\VS\VC
-CXX=$(VC)\BIN\cl
-LINK=$(VC)\BIN\link
+CXX=cl
+LINK=link

Then you can change INC to point to your local phtread project (and i recommend 
the CVS trunk, not 2.8.0, if you plan to run on x64). John, you can note that 
the pthreads CVS head seems to deprecate the binaries i recommended earlier 
(from the MinGW64 project) for both GCC and VC.

-INC=-I ..\src -I "C:\Tools\pthread\include" -I .
+INC=-I ..\src -I "pthreads" -I .

Finnaly, this was unfortunate to use LIB variable for the libraries since it 
ends up having a special meaning for the linker and overrides the default libs. 
Replacing it by something else avoid having to specify the default lib path 
again. Here again you'll have to change the path to pthreads:

-LIB=/LIBPATH:"$(VC)\Lib" /LIBPATH:"C:\Program Files\Microsoft 
SDKs\Windows\v6.0A\lib" /LIBPATH:"C:\Tools\pthread\lib" /SUBSYSTEM:CONSOLE 
pthreadVC2.lib psapi.lib advapi32.lib
+LNK=/LIBPATH:"pthreads" /SUBSYSTEM:CONSOLE pthreadVC2.lib psapi.lib 
advapi32.lib

(don't forget to replace the $(LIB) references to $(LNK) everywhere in the file 
too).

I made a few other changes to use the static pthread lib. I can include my full 
Win.mak patch if you are interested.

Thanks,

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of K. John Wu
Sent: Friday, May 04, 2012 12:25 AM
To: Deepa Sahni
Cc: FastBit Users
Subject: Re: [FastBit-users] Issue running nmake on fast bit

Hi, Deepa,

Looks like you need to edit the file win.mak to have it point to the
correct compiler,
<http://stackoverflow.com/questions/6622869/problem-with-nmake>.

Using the GUI interface might save you this trouble, however, you will
still need to edit the PATH for pthread.  I have mine in
C:/Tools/pthread, if you put the files in the same directory, you can
avoid editing one less thing.

Good luck.

John


On 5/3/12 10:19 AM, Deepa Sahni wrote:
> Hi,
>   i am a student with UW Tacoma and for one of my survey papers i am
> working on getting fast bit installed on my windows machine ( its
> running windows 8 consumer preview). I downloaded the fastbit files from 
> https://codeforge.lbl.gov/frs/download.php/389/fastbit-ibis1.3.0.tar.gz
> 
> I also got pthreads from 
> ftp://sourceware.org/pub/pthreads-win32/
> Manually downloaded the include and lib directories.
> 
> I am not able to open the Win Make file in fast bit using my visual
> studio, it given warning saying you need to convert the file and the
> conversion fails.
> 
> I tried running the nmake command from powershell and after a few
> changes to the path in the make file i was able to get it to start
> compiling.
> 
> It fails with error below and am not sure how to proceed ( the error
> does not tell me what the issue is ). Can someone help me understand
> the issue here and provide a fix.  ( I am running vs 2010 PROFESSIONAL
> v 10.0.30319.1 and .net 4.5.50131)
> 
> PS C:\fastbit-ibis1.3.0\win> & 'C:\Program Files\Microsoft Visual
> Studio 10.0\VC\bin\nmake.exe' -f .\Win.mak all
> 
> Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
> Copyright (C) Microsoft Corporation.  All rights reserved.
> 
>         "C:\Program Files\Microsoft Visual Studio 10.0\VC"\bin\cl
> /nologo /D WIN32 /D _CONSOLE /D FASTBIT_MAX_WAIT_TIME=
> 3 /D WITHOUT_FASTBIT_CONFIG_H /D WINVER=0x0501 -I ..\src -I
> "C:\Tools\pthread\include" -I . /MD /EHsc /GR /O2 /W1 /arch:
> SSE2 -c ../examples/ibis.cpp
> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
> 10.0\VC\bin\cl.EXE"' : return code '0xc0000135'
> Stop.
> PS C:\fastbit-ibis1.3.0\win>
> 
> Regards
> Deepa
_______________________________________________
FastBit-users mailing list
[email protected]
https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users
_______________________________________________
FastBit-users mailing list
[email protected]
https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users

Reply via email to