Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TSDRPlugin_SdrPlay not compileing #55

Open
CyberSecPixie opened this issue Jul 12, 2023 · 1 comment
Open

TSDRPlugin_SdrPlay not compileing #55

CyberSecPixie opened this issue Jul 12, 2023 · 1 comment

Comments

@CyberSecPixie
Copy link

First off, thank you to the original creator and those that have taken a crack at up-keeping this optional program.
I've given it a strong go, and was able to troubleshoot enough to get the main gui to run, but I have been having issues with the SDR Play plugin compiling. I am using the latest kali linux, downloaded all the official SDR APIs and drivers, and went to https://github.com/JvanKatwijk/rtlsdr-emulator-sdrplay/tree/master to get the mirsdrapi-rsp driver since it's no longer included in the official API. Now when I go to make the plugin, I get the error below. I edited the main file to include CFLAGS+=-fPIC which doesn't give me an error but also doesn't make the plugin. I am willing to do more troubleshooting myself, but I don't program often and would appreciate help figuring out where to begin looking for the problem because my google-fu isn't strong enough.

make all
mkdir -p bin/LINUX/X64
mkdir -p obj
cc -Wall -O3 -m64 -c src/TSDRPlugin_SDRPlay.c -o obj/TSDRPlugin_SDRPlay.o
cc -Wall -shared -m64 -o bin/LINUX/X64/TSDRPlugin_SDRPlay.so -lmirsdrapi-rsp obj/TSDRPlugin_SDRPlay.o
/usr/bin/ld: obj/TSDRPlugin_SDRPlay.o: warning: relocation against errormsg_code' in read-only section .text'
/usr/bin/ld: obj/TSDRPlugin_SDRPlay.o: relocation R_X86_64_PC32 against symbol `errormsg_code' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make: *** [makefile:129: bin/LINUX/X64/TSDRPlugin_SDRPlay.so] Error 1

@PetiAPocok
Copy link

You need to add the CFLAGS+=-fPIC in the plugin's makefile too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants