ofxLibwebsockets icon indicating copy to clipboard operation
ofxLibwebsockets copied to clipboard

compiling on rpi

Open natxopedreira opened this issue 6 years ago • 4 comments

Hello

Thank you for this addon!!!, i used it on OS X but now i need to work on a rpi and Im not able to compile any example on a rpi3, im getting this error.

/usr/bin/ld: /home/pi/of_v0.10.0_linuxarmv6l_release/addons/ofxLibwebsockets/libs/libwebsockets/lib/linuxarmv6l/libwebsockets.a(client.c.o): referencia sin definir al símbolo 'BIO_ctrl@@OPENSSL_1_1_0'
//usr/lib/arm-linux-gnueabihf/libcrypto.so.1.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
../../../libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:403: fallo en las instrucciones para el objetivo 'bin/example_server_binary'
make[1]: *** [bin/example_server_binary] Error 1

natxopedreira avatar Aug 20 '18 14:08 natxopedreira

I have the same error - any help appreciated:

/usr/bin/ld: warning: libssl.so.1.0.2, needed by /usr/lib/gcc/arm-linux-gnueabihf/6/../../../arm-linux-gnueabihf/libcurl.so, may conflict with libssl.so.1.1
/usr/bin/ld: /home/pi/openFrameworks/addons/ofxLibwebsockets/libs/libwebsockets/lib/linuxarmv6l/libwebsockets.a(ssl.c.o): undefined reference to symbol 'SSLv23_client_method@@OPENSSL_1.0.2d'
//usr/lib/arm-linux-gnueabihf/libssl.so.1.0.2: error adding symbols: DSO missing from command line

bltzr avatar Apr 27 '19 08:04 bltzr

Hello,

Thank you for this add-on too which work well on OSX, but I failed to build it on RP3 model B+ with the latest raspbian and Ofx. I try many things like change the openssl version, the ofx version, try to add PROJECT_LDFLAGS = -lcrypto on config.make I have no more ideas. Is there an issue ?

Mushussu avatar Jun 18 '19 14:06 Mushussu

I never could solve this, so I used https://github.com/bakercp/ofxHTTP and it went really well

bltzr avatar Jun 19 '19 09:06 bltzr

Did anyone managed to compile it on the Pi? I am pretty sure the problem comes from openssl library but I couldn't find a way to compile it against the correct one, then link this library to the project.

Meach avatar Dec 13 '19 13:12 Meach