Well, then here it goes.. I'd hate to upset Osmocom, but these really are just build steps!
I'd like someone to try this to double-check my list of steps here, I noted them down when it was pretty late!
So, consider this preliminary for now!
----
8) Extract pkg-config.exe from pkg-config_0.xx-x_win32.zip to something like c:\tools\pkg-config.exe
9) Extract libusb to something like c:\tools\libusb-include (make sure (libusb-1.0.lib under \MS32\static AND the libusb.h under the \include\libusb-1.0 directory are there.)
10) Extract pthreads to something like c:\tools\pthreads-include (make sure the Pre-built.2\include dir and \lib\x86\pthreadVC2.lib are in there)
13) Run Cmake-GUI
14) Set your cmake source to c:\rtl-sdr-src
15) Set your Cmake destination to something like c:\rtl-sdr-proj
16) Check 'advanced' on cmake
17) Set LIBUSB_INCLUDE_DIR to c:\tools\libusb-include\include\libusb-1.0\
18) Set LIBUSB_LIBRARIES to c:\tools\libusb-include\MS32\static\libusb-1.0.lib
19) Set THREADS_PTHREADS_INCLUDE_DIR to c:\tools\pthreads-include\Pre-built.2\include\
20) Set THREADS_PTHREADS_WIN32_LIBRARY to c:\tools\pthreads-include\Pre-built.2\lib\x86\pthreadVC2.lib
21) Set PKG_CONFIG_EXECUTABLE to c:\tools\pkg-config.exe
22) hit "configure" (if any libusb errors show up, just hit it again, it seems to need to cycle through to get everything)
23) hit "generate" - it should say 'generate successful' or the sort.
24) Open the rtlsdr ".sln" (solution) file in c:\rtl-sdr-proj. Choose "Visual C++ 2010".
25) Under "rtlsdr_shared" -> "source files", edit "librtlsdr.c"
26) In the include section, add #include <windows.h>
27) Right before the 'void rtlsdr_set_gpio_bit(...)' function, and after struct e4k_state e4k_s; }; add this code:
/*---between these lines---*/
void usleep(int waitTime)
{
__int64 time1 = 0, time2 = 0, freq=0;
QueryPerformanceCounter((LARGE_INTEGER *) &time1);
QueryPerformanceFrequency((LARGE_INTEGER *)&freq);
do{
QueryPerformanceCounter((LARGE_INTEGER *) &time2);
}
while((time2-time1) < waitTime);
}
/*---between these lines---*/
28) Hit F7 to build
29) Your new rtlsdr.dll should build into c:/rtl-sdr-proj/src/debug (or RelWithDebInfo.) along with the rtl_tcp, rtl_sdr and rtl_test executables.
...Putting this into sdr# will allow you to run the R820T just fine. As of my test last night, as Adam noted, the direct-sampling branch doesnt work with R820T yet.
As Adam also indicated there, you should be able to rebase both the direct-sampling branches and master...
NOTE! Some of these steps may be redundant, but this is how I got it to go -- the 'rendundant' cds and checkouts, in my case, were to get git to recognize the branches.
1) Run GitShell
2) Issue the following in place of Step 11 above
Then do the above steps using c:/rtl-sdr-src-merge as the source.
Please let me know how this works!
-michi