Then ran nf1_init.vcxproj
that's probably the reason - you need to open the "solution" file - NanoFury_Init\nf1_init.sln
There is also a dependency with the HID library - there is a .bat file in the same folder that checks out that and puts it where it needs to go - just run it once before you open the solution file.
https://www.youtube.com/watch?v=eeBtCo1T4Jw&feature=youtu.beWhat I am doing is not what I think I should be doing.
There seems to be something not happening correctly with checking out the project or some dependency might be missing...
I just tried this:
C:\TMP\nf>git clone https://github.com/nanofury/NanoFury_Init.git
Cloning into 'NanoFury_Init'...
remote: Counting objects: 42, done.
remote: Compressing objects: 100% (26/26), done.
remote: Total 42 (delta 16), reused 42 (delta 16)
Unpacking objects: 100% (42/42), done.
Checking connectivity... done
C:\TMP\nf>dir
Volume in drive C is DISK_C
Volume Serial Number is AD41-1280
Directory of C:\TMP\nf
05/12/2014 14:44 <DIR> .
05/12/2014 14:44 <DIR> ..
05/12/2014 14:44 <DIR> NanoFury_Init
0 File(s) 0 bytes
3 Dir(s) 10,660,360,192 bytes free
C:\TMP\nf>cd NanoFury_Init
C:\TMP\nf\NanoFury_Init>git_clone_MCP2210-Library.bat
C:\TMP\nf\NanoFury_Init>cd nf1_init
C:\TMP\nf\NanoFury_Init\nf1_init>git clone https://github.com/nanofury/MCP2210-Library.git
Cloning into 'MCP2210-Library'...
remote: Reusing existing pack: 958, done.
remote: Counting objects: 13, done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 971 (delta 6), reused 6 (delta 5)
Receiving objects: 100% (971/971), 421.01 KiB | 606.00 KiB/s, done.
Resolving deltas: 100% (725/725), done.
Checking connectivity... done
C:\TMP\nf\NanoFury_Init\nf1_init>
C:\TMP\nf\NanoFury_Init\nf1_init>dir
Volume in drive C is DISK_C
Volume Serial Number is AD41-1280
Directory of C:\TMP\nf\NanoFury_Init\nf1_init
05/12/2014 14:44 <DIR> .
05/12/2014 14:44 <DIR> ..
05/12/2014 14:45 <DIR> MCP2210-Library
05/12/2014 14:44 3,431 nf1_init.cpp
05/12/2014 14:44 5,275 nf1_init.vcxproj
05/12/2014 14:44 2,600 nf1_init.vcxproj.filters
05/12/2014 14:44 15,387 nf_spidevc.cpp
05/12/2014 14:44 3,588 nf_spidevc.h
05/12/2014 14:44 21,583 nf_spitest.cpp
05/12/2014 14:44 1,685 nf_spitest.h
05/12/2014 14:44 1,722 ReadMe.txt
05/12/2014 14:44 295 stdafx.cpp
05/12/2014 14:44 535 stdafx.h
05/12/2014 14:44 314 targetver.h
05/12/2014 14:44 327,181 tvec.c
12 File(s) 383,596 bytes
3 Dir(s) 10,656,903,168 bytes free
C:\TMP\nf\NanoFury_Init\nf1_init>cd ..
C:\TMP\nf\NanoFury_Init>start nf1_init.sln
C:\TMP\nf\NanoFury_Init>
then in Visual Studio I selected from the menu->build->clean, then build->Build Solution and got this output:
1>------ Build started: Project: nf1_init, Configuration: Debug Win32 ------
1> stdafx.cpp
1> tvec.c
1> hid.c
1> Generating Code...
1> nf_spitest.cpp
1>c:\tmp\nf\nanofury_init\nf1_init\nf_spitest.cpp(274): warning C4101: 'i' : unreferenced local variable
1>c:\tmp\nf\nanofury_init\nf1_init\nf_spitest.cpp(273): warning C4101: 'st' : unreferenced local variable
1>c:\tmp\nf\nanofury_init\nf1_init\nf_spitest.cpp(395): warning C4996: 'localtime': This function or variable may be unsafe. Consider using localtime_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files\microsoft visual studio 10.0\vc\include\time.inl(112) : see declaration of 'localtime'
1> nf_spidevc.cpp
1>c:\tmp\nf\nanofury_init\nf1_init\nf_spidevc.cpp(238): warning C4996: 'wcscpy': This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files\microsoft visual studio 10.0\vc\include\string.h(283) : see declaration of 'wcscpy'
1> nf1_init.cpp
1> mcp2210.cpp
1>c:\tmp\nf\nanofury_init\nf1_init\mcp2210-library\mcp2210.cpp(116): warning C4244: '=' : conversion from 'unsigned long' to 'byte', possible loss of data
1> Generating Code...
1> Creating library C:\TMP\nf\NanoFury_Init\Debug\nf1_init.lib and object C:\TMP\nf\NanoFury_Init\Debug\nf1_init.exp
1> Creating library C:\TMP\nf\NanoFury_Init\Debug\nf1_init.lib and object C:\TMP\nf\NanoFury_Init\Debug\nf1_init.exp
1> nf1_init.vcxproj -> C:\TMP\nf\NanoFury_Init\Debug\nf1_init.exe
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
(and you can ignore the warnings - some of them come from butfury's code, some are from the MCP2210 library and some are leftovers from my tests - I may clean them up at some point but for the moment they're mostly harmless)
Or if you have in your path "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE" you can also build it from the command prompt:
C:\TMP\nf\NanoFury_Init>devenv nf1_init.slnrebuild Debug
Microsoft (R) Visual Studio Version 10.0.40219.1.
Copyright (C) Microsoft Corp. All rights reserved.
1>------ Rebuild All started: Project: nf1_init, Configuration: Debug Win32 ------
1> stdafx.cpp
1> tvec.c
1> hid.c
1> Generating Code...
1> nf_spitest.cpp
1>c:\tmp\nf\nanofury_init\nf1_init\nf_spitest.cpp(274): warning C4101: 'i' : unreferenced local variable
1>c:\tmp\nf\nanofury_init\nf1_init\nf_spitest.cpp(273): warning C4101: 'st' : unreferenced local variable
1>c:\tmp\nf\nanofury_init\nf1_init\nf_spitest.cpp(395): warning C4996: 'localtime': This function or variable may be unsafe. Consider using localtime_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files\microsoft visual studio 10.0\vc\include\time.inl(112) : see declaration of 'localtime'
1> nf_spidevc.cpp
1>c:\tmp\nf\nanofury_init\nf1_init\nf_spidevc.cpp(238): warning C4996: 'wcscpy': This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files\microsoft visual studio 10.0\vc\include\string.h(283) : see declaration of 'wcscpy'
1> nf1_init.cpp
1> mcp2210.cpp
1>c:\tmp\nf\nanofury_init\nf1_init\mcp2210-library\mcp2210.cpp(116): warning C4244: '=' : conversion from 'unsigned long' to 'byte', possible loss of data
1> Generating Code...
1> Creating library C:\TMP\nf\NanoFury_Init\Debug\nf1_init.lib and object C:\TMP\nf\NanoFury_Init\Debug\nf1_init.exp
1> Creating library C:\TMP\nf\NanoFury_Init\Debug\nf1_init.lib and object C:\TMP\nf\NanoFury_Init\Debug\nf1_init.exp
1> nf1_init.vcxproj -> C:\TMP\nf\NanoFury_Init\Debug\nf1_init.exe
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
C:\TMP\nf\NanoFury_Init>