-
Notifications
You must be signed in to change notification settings - Fork 124
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
Compilation Issue on Raspberry Pi #3
Comments
|
Thanks for the quick reply. I wanted to compile on the Pi because I don't have a cross compile workflow setup right now. But since removing the -pipe didn't do anything, guess I'll have to cross compile |
The compilation of soapC needs up to 5 Gb memory as I saw on the host machine... |
I compile it on Pi successfully when I change the swap to 2GB, it takes me over 1 hour to finish it. You'd better to compile it on PC, |
1 similar comment
I compile it on Pi successfully when I change the swap to 2GB, it takes me over 1 hour to finish it. You'd better to compile it on PC, |
@HanYangZhao |
Would this help me with binary file size? I'm cross compiling this for my ipcam and compiled binary size is 6,4 MB, it's way too much for 8 MB SPI flash... |
No. This is a gsoap problem. It generates a parser which is very bold. If you need ONVIF on a small device. You have to write the server/client and parser yourself without using the gsoap. But this is a long and difficult journey! |
Thank you. |
@moykky |
6-8MiB is already the size after the strip. The binary with debug information reaches > 20MiB. I say gsoap generates a Very Bold binary. and is only suitable for Large systems. Or as a prototype for a "quick" test |
@KoynovStas ok |
Hi,
I'm trying to create a RPi based Onvif camera, but ran into some issues during compilation. Basically the compilations get stuck at :
[build] generated/soapC.o: g++ -c generated/soapC.cpp -o generated/soapC.o -s -DDAEMON_NAME='"onvif_srvd"' -DDAEMON_MAJOR_VERSION=1 -DDAEMON_MINOR_VERSION=1 -DDAEMON_PATCH_VERSION=0 -DDAEMON_PID_FILE_NAME='"onvif_srvd.pid"' -DDAEMON_LOG_FILE_NAME='"onvif_srvd.log"' -DDAEMON_NO_CHDIR=1 -DDAEMON_NO_CLOSE_STDIO=0 -I./src -I./generated -I./gsoap-2.8/gsoap -I./gsoap-2.8/gsoap/custom -I./gsoap-2.8/gsoap/plugin -I./gsoap-2.8/gsoap/import -std=c++11 -O2 -Wall -pipe
I'm suspecting it's because the RPi ran out of ram (only 1GB). Do you have any idea how to resolve this problem? I have tried playing around with the memory splitting and swap file size, but nothing seems to work. Is the compilation process multi- threaded or single threaded?
Thanks
The text was updated successfully, but these errors were encountered: