Open partylover opened 6 years ago
I use eclipse and cross compile to openwrt hardwhare, i cannot compile PHK
this error
`10:03:13 **** Incremental Build of configuration Default for project HAP **** make all /home/noppadon/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-uclibc-gcc -Os -s -I/opt/local/include -L/opt/local/lib -w -o ed25519.o -c ed25519-donna/ed25519.c /home/noppadon/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-uclibc-gcc -Os -s -I/opt/local/include -L/opt/local/lib -w -o poly1305.o -c poly1305-opt-master/poly1305.c /home/noppadon/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-uclibc-gcc -Os -s -I/opt/local/include -L/opt/local/lib -w -c rfc6234-master/hkdf.c -o rfc6234-master/hkdf.o /home/noppadon/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-uclibc-gcc -Os -s -I/opt/local/include -L/opt/local/lib -w -c rfc6234-master/hmac.c -o rfc6234-master/hmac.o /home/noppadon/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-uclibc-gcc -Os -s -I/opt/local/include -L/opt/local/lib -w -c rfc6234-master/sha.c -o rfc6234-master/sha.o /home/noppadon/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-uclibc-g++ -Os -s -I/opt/local/include -L/opt/local/lib -w -c main.cpp /home/noppadon/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-uclibc-g++ -Os -s -I/opt/local/include -L/opt/local/lib -w -c PHKAccessory.cpp /home/noppadon/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-uclibc-g++ -Os -s -I/opt/local/include -L/opt/local/lib -w -c PHKControllerRecord.cpp /home/noppadon/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-uclibc-g++ -Os -s -I/opt/local/include -L/opt/local/lib -w -c PHKNetworkIP.cpp /home/noppadon/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-uclibc-gcc -c -o PHKArduinoLightInterface.o PHKArduinoLightInterface.c /home/noppadon/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-uclibc-gcc -Os -s -I/opt/local/include -L/opt/local/lib -lcrypto -w -c srp/srp.c -o srp/srp.o /home/noppadon/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-uclibc-gcc -Os -s -I/opt/local/include -L/opt/local/lib -lcrypto -w -c srp/cstr.c -o srp/cstr.o /home/noppadon/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-uclibc-gcc -Os -s -I/opt/local/include -L/opt/local/lib -lcrypto -w -c srp/t_math.c -o srp/t_math.o /home/noppadon/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-uclibc-gcc -Os -s -I/opt/local/include -L/opt/local/lib -lcrypto -w -c srp/srp6_server.c -o srp/srp6_server.o /home/noppadon/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-uclibc-gcc -Os -s -I/opt/local/include -L/opt/local/lib -lcrypto -w -c srp/t_conf.c -o srp/t_conf.o /home/noppadon/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-uclibc-gcc -Os -s -I/opt/local/include -L/opt/local/lib -lcrypto -w -c srp/t_conv.c -o srp/t_conv.o /home/noppadon/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-uclibc-gcc -Os -s -I/opt/local/include -L/opt/local/lib -lcrypto -w -c srp/t_pw.c -o srp/t_pw.o /home/noppadon/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-uclibc-gcc -Os -s -I/opt/local/include -L/opt/local/lib -lcrypto -w -c srp/t_misc.c -o srp/t_misc.o /home/noppadon/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-uclibc-gcc -Os -s -I/opt/local/include -L/opt/local/lib -lcrypto -w -c srp/t_truerand.c -o srp/t_truerand.o /home/noppadon/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-uclibc-gcc -Os -s -I/opt/local/include -L/opt/local/lib -lcrypto -w -c srp/t_read.c -o srp/t_read.o /home/noppadon/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-uclibc-g++ -Os -s -I/opt/local/include -L/opt/local/lib -w -c Accessory.cpp /home/noppadon/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-uclibc-g++ -Os -s -I/opt/local/include -L/opt/local/lib -o PHK chacha20.o curve25519.o ed25519.o poly1305.o rfc6234-master/hkdf.o rfc6234-master/hmac.o rfc6234-master/sha.o main.o PHKAccessory.o PHKControllerRecord.o PHKNetworkIP.o PHKArduinoLightInterface.o srp/srp.o srp/cstr.o srp/t_math.o srp/srp6_server.o srp/t_conf.o srp/t_conv.o srp/t_pw.o srp/t_misc.o srp/t_truerand.o srp/t_read.o Accessory.o -lssl -lcrypto -ldl -lpthread -ldns_sd /home/noppadon/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib/gcc/mipsel-openwrt-linux-uclibc/4.8.3/../../../../mipsel-openwrt-linux-uclibc/bin/ld: cannot find -lssl /home/noppadon/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib/gcc/mipsel-openwrt-linux-uclibc/4.8.3/../../../../mipsel-openwrt-linux-uclibc/bin/ld: cannot find -lcrypto collect2: error: ld returned 1 exit status make: *** [PHK] Error 1 10:03:20 Build Finished (took 6s.134ms)`
Did you compile and link openssl? libssl and libcrypto is basically just OpenSSL
I use eclipse and cross compile to openwrt hardwhare, i cannot compile PHK
this error