-
Notifications
You must be signed in to change notification settings - Fork 63
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
RISC-V architecture #12
Comments
Hi, |
Hi,I tried to compile with my cross-compiler like I did for v4l2rtspserver . But I think it only compiles the v4l2rtspserver part in the onvif folder not the other files and gave me this. /usr/bin/ld: liblibv4l2rtspserver.a(BasicTaskScheduler.cpp.o): Relocations in generic ELF (EM: 243) Do you know,what should i do? |
It is possible, I have done it. From your error message, it looks like your libv4l2rtspserver was built for the host architecture instead of risc-v. The cross compiling flags are not relayed to some of the dependencies, including v4l2rtspserver. You have to look at the Makefiles and use the commands of the targets manually to build it.
|
riscv64-eyenix-linux-gnu-c++ -std=c++11 -g2 -I inc -I ws-discovery/gsoap/ -I gen -I /usr/include -I /usr/share/gsoap/plugin -DWITH_DOM -DWITH_OPENSSL -DSOAP_PURE_VIRTUAL -fpermissive -pthread -DVERSION="a59b554-dirty" -I v4l2rtspserver/live/groupsock/include -I v4l2rtspserver/live/liveMedia/include -I v4l2rtspserver/live/UsageEnvironment/include -I v4l2rtspserver/live/BasicUsageEnvironment/include -I v4l2rtspserver/inc -I v4l2rtspserver/libv4l2cpp/inc -c -o src/onvif-server.o src/onvif-server.cpp
|
when making the new repository v4l2rtspserver builds in rsicV rest are being build in x86 .This causes linking problem.so we edited the make file a bit a got the above response. we hardcoded CC and CXX -DCMAKE_CXX_COMPILER=riscv64-eyenix-linux-gnu-c++ -DCMAKE_C_COMPILER=riscv64-eyenix-linux-gnu-gcc and made changes here also #SYSROOT?=$(shell $(CXX) --print-sysroot) |
Hi, Did you try ?
Best Regards, |
it provided me with this error |
Hi, You need to specify GSOAP_BIN to get wsdl2h from the host, something like:
Best Regards, |
hi While cross-compiling i am encountering problems with gsoap should I try and cross compile it for my project and then do this? |
Hi
Is it possible to cross-compile the source code for RISC-V Architecture?
The text was updated successfully, but these errors were encountered: