Open janemba opened 6 years ago
I was able to compile TempestSDR on ubuntu 18.10 with the following patch:
diff --git a/JavaGUI/jni/makefile b/JavaGUI/jni/makefile
index 880f38b..49da336 100644
--- a/JavaGUI/jni/makefile
+++ b/JavaGUI/jni/makefile
@@ -136,7 +136,9 @@ $(OBJFOLDER)/%.o : %.c $(DEPS)
# Generate the java header based on the class
TSDRLibraryNDK.h : ../bin/martin/tempest/core/TSDRLibrary.class
- javah -classpath ../bin -o TSDRLibraryNDK.h -jni martin.tempest.core.TSDRLibrary
+ #javah -classpath ../bin -o TSDRLibraryNDK.h -jni martin.tempest.core.TSDRLibrary
+ javac -classpath ../bin ../src/martin/tempest/core/TSDRLibrary.java -h .
+ mv martin_tempest_core_TSDRLibrary.h TSDRLibraryNDK.h
# If the class is not compiled, do it
../bin/martin/tempest/core/TSDRLibrary.class : ../src/martin/tempest/core/TSDRLibrary.java
diff --git a/Release/JavaGUI/JTempestSDR.jar b/Release/JavaGUI/JTempestSDR.jar
index 24917bb..03293d0 100644
Binary files a/Release/JavaGUI/JTempestSDR.jar and b/Release/JavaGUI/JTempestSDR.jar differ
diff --git a/TSDRPlugin_UHD/src/TSDRPlugin_UHD.cpp b/TSDRPlugin_UHD/src/TSDRPlugin_UHD.cpp
index eb231ad..05618c6 100644
--- a/TSDRPlugin_UHD/src/TSDRPlugin_UHD.cpp
+++ b/TSDRPlugin_UHD/src/TSDRPlugin_UHD.cpp
@@ -14,7 +14,7 @@
#include <stdlib.h>
#include <string.h>
-#include <uhd/utils/thread_priority.hpp>
+#include <uhd/utils/thread.hpp>
#include <uhd/utils/safe_main.hpp>
#include <uhd/usrp/multi_usrp.hpp>
#include <uhd/transport/udp_simple.hpp>
@@ -332,7 +332,7 @@ EXTERNC TSDRPLUGIN_API int __stdcall tsdrplugin_readasync(tsdrplugin_readasync_f
// flush usrpbuffer
while(rx_stream->recv(
buff, samples_per_api_read, md,
- uhd::device::RECV_MODE_ONE_PACKET
+ true
)){
/* NOP */
};
But not to run it. Start is still grayed out. I don't know why ?
Hello,
Which UHD version can I use with TempestSDR. The latest one is not compatible.
Thx