|
I have a problem with the SDK.
My operating system: Debian 11 (Linux)
I have downloaded the SDK from Github, and according to instruction I installed libusb. Then I copied the .so files to my /lib folder. I have tried to run the pre-compiled DllTest in the SharedLibraries/Linux/X64/Release/. I have got the following error message (not copied exactly, written from memory): "libcommon.so: file too short"
I have looked at the libcommon.so file and realized that it had just the line "libcommon.so" inside it (16 bytes). Therefore, I have copied the contents of libcommon.so.1.0 (which had some binary information inside) into libcommon.so. As a result, the pre-compiled DllTest was able to run. The DllTest program was displaying add callbacks and remove callbacks when I connected or removed my osilloscope (ISDS220B). It was not displaying anything apart from the callbacks, and both calls to IsDevAvailable() and IsDataReady() returned 0 when I connected my oscilloscope.
Next I tried to build the DllTest from the .cpp and .h files in DllTest/ folder using cmake. I executed "cmake ../DllTest" and then "cmake --build ." I got the following error messages: "libvdso.so: file format not recognized; Treating as a linker script" and then "libvdso.so: syntax error" (Error messages are not copied exactly, written from memory). I have looked through the .so files and noticed that all .so files contained just the filename e.g. "libvdso.so" inside, while .so.1.0 files had the binary information. So, I copied the binary data from all .so.1.0 files into the corresponding .so files (e.g. from libvdso.so.1.0 into libvdso.so).
The DllTest.cpp has compiled successfully and I was able to run it. However, It still returned callbacks when oscilloscope connected/removed, and did nothing else, no capture/voltage data displayed and both IsDevAvailable() and IsDataReady() returned 0. I though it would work better if I restarted my computer.
After I restarted my computer, the DllTest stopped working. It returned callbacks when no oscilloscope connected. When oscilloscope connected, it displayed "VDSO test..." and then stopped responding (not displaying anything else). I have tried to modify the code (DllTest.cpp) and by commenting out some lines I determined that the call to InitDll() was not returning anything and made the program wait.
Please advise me on what I should do to use my oscilloscope with the SDK on linux. |
|