Hello!
I wanted to build Factor, so I downloaded and installed the Win 7 SDK as
suggested here:
https://concatenative.org/wiki/view/Factor/Requirements
I only selected two items during the installation: "Windows Headers and
Libraries" and "Visual C++ Compilers". The nmake was in the latter package, I'm
not sure I needed the first one.
Then I went to c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\ and
started "Visual Studio 2008 x64 Win64 Command Prompt.lnk", because I'm on a
64-bit Win 8.1 PC. Here's what happened next:
---start-console-dump---
Setting environment for using Microsoft Visual Studio 2008 x64 tools.
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin>cd
c:\Programs\Dev\factor.git\
c:\Programs\Dev\factor.git>build.cmd
x86-64 cl.exe detected.
Deleting staging images from temp/...
The system cannot find the file specified.
Updating working copy from master...
From git://factorcode.org/git/factor
* branch master -> FETCH_HEAD
Already up-to-date.
Building vm...
del vm\*.obj
Could Not Find c:\Programs\Dev\factor.git\vm\*.obj
if exist factor.lib del factor.lib
if exist factor.res del factor.res
if exist factor.com del factor.com
if exist factor.exe del factor.exe
if exist factor.dll del factor.dll
if exist factor.dll.lib del factor.dll.lib
if exist libfactor-ffi-test.dll del libfactor-ffi-test.dll
if exist libfactor-ffi-test.exp del libfactor-ffi-test.exp
if exist libfactor-ffi-test.lib del libfactor-ffi-test.lib
nmake /nologo PLATFORM=x86-64 /f Nmakefile all
cl /EHsc /nologo /O2 /WX /W3 /D_CRT_SECURE_NO_WARNINGS
/DFACTOR_VERSION=0.98
/DFACTOR_GIT_LABEL=heads/fix-file-readable-add-422cd37698ae5c05dc0f4e1b7a17bbe59dc35f51
/Fovm\main-windows.obj /c vm\main-windows.cpp main-windows.cpp
c:\programs\dev\factor.git\vm\master.hpp(23) : fatal error C1083: Cannot open
include file: 'stdint.h': No such file or directory
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\BIN\amd64\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\BIN\amd64\nmake.EXE"' : return code '0x2'
Stop.
Build failed.
---end-console-dump---
Looks like nmake can't locate the 'stdint.h'.
What's the deal with that?
Googling a bit, it looks like that I need a later version of the toolkit.
Something with "Microsoft Visual Studio 10.0" in it, not "Microsoft Visual
Studio 9.0":
https://stackoverflow.com/questions/126279/c99-stdint-h-header-and-ms-visual-studio
So, at least the build instructions on
https://concatenative.org/wiki/view/Factor/Requirements are incorrect, right?
Win 7 SDK is not good enough.
Anyway, I followed one of the links on StackOverflow to download the portable
version of stdint.h: http://www.azillionmonkeys.com/qed/pstdint.h
I renamed it and placed in c:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\include\stdint.h
That moved me on to the next error:
---start-console-dump---
c:\Programs\Dev\factor.git>build.cmd
x86-64 cl.exe detected.
Deleting staging images from temp/...
The system cannot find the file specified.
Updating working copy from master...
From git://factorcode.org/git/factor
* branch master -> FETCH_HEAD
Already up-to-date.
Building vm...
del vm\*.obj
Could Not Find c:\Programs\Dev\factor.git\vm\*.obj
if exist factor.lib del factor.lib
if exist factor.res del factor.res
if exist factor.com del factor.com
if exist factor.exe del factor.exe
if exist factor.dll del factor.dll
if exist factor.dll.lib del factor.dll.lib
if exist libfactor-ffi-test.dll del libfactor-ffi-test.dll
if exist libfactor-ffi-test.exp del libfactor-ffi-test.exp
if exist libfactor-ffi-test.lib del libfactor-ffi-test.lib
nmake /nologo PLATFORM=x86-64 /f Nmakefile all
cl /EHsc /nologo /O2 /WX /W3 /D_CRT_SECURE_NO_WARNINGS
/DFACTOR_VERSION=0.98
/DFACTOR_GIT_LABEL=heads/fix-file-readable-add-4ec338b43d4ad9e9ec4af657876ac9244bffe17a
/Fovm\main-windows.obj /c vm\main-windows.cpp
main-windows.cpp
c:\programs\dev\factor.git\vm\free_list.hpp(167) : error C4430: missing type
specifier - int assumed. Note: C++ does not support default-int
c:\programs\dev\factor.git\vm\free_list.hpp(166) : while compiling
class template member function 'void
factor::free_list_allocator<Block>::sweep(void)'
with
[
Block=factor::object
]
c:\programs\dev\factor.git\vm\tenured_space.hpp(3) : see reference to
class template instantiation 'factor::free_list_allocator<Block>' being compiled
with
[
Block=factor::object
]
c:\programs\dev\factor.git\vm\free_list.hpp(167) : error C2059: syntax error :
'['
c:\programs\dev\factor.git\vm\free_list.hpp(167) : error C2143: syntax error :
missing ';' before '{'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\BIN\amd64\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\BIN\amd64\nmake.EXE"' : return code '0x2'
Stop.
Build failed.
---end-console-dump---
Am I on the wrong path here? Why won't it build?
---=====---
Александр
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk