I am trying to compile this software:
for my router (linksys wrt1200ac)
the Readme file says for cross-compiling that I should do this:
# clone the project
git clone https://github.com/Intika-Linux-Proxy/SNI-SSL-Proxy.git
cd SNI-SSL-Proxy
# setup cross compile tool chain:
export PATH="$PATH:/pato/to/cross/compile/toolchain/bin/"
# build libmill
curl -s -L https://github.com/sustrik/libmill/archive/master.tar.gz | tar -zxf -
mv libmill-master libmill
cd libmill
./autogen.sh
./configure --enable-shared=false --host=arm-unknown-linux-gnueabihf
make libmill.la
cd ../
# build sniproxy
autoreconf -if
# export CFLAGS=-march=native
export CPPFLAGS=-I$(pwd)/libmill
export LDFLAGS=-L$(pwd)/libmill/.libs
./configure --host=arm-unknown-linux-gnueabihf \
--prefix=/usr --sysconfdir=/etc
make
I changed the arm-unknown-linux-gnueabihf to arm-openwrt-linux-muslgnueabi and used the bin path of openwrt-sdk-18.06.4-mvebu-cortexa9_gcc-7.3.0_musl_eabi.Linux-x86_64/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-7.3.0_musl_eabi/bin/
but I get errors when I try to compile the libmill .
configure:3504: checking whether the C compiler works
configure:3526: arm-openwrt-linux-muslgnueabi-gcc conftest.c >&5
arm-openwrt-linux-muslgnueabi-gcc: warning: environment variable 'STAGING_DIR' not defined
arm-openwrt-linux-muslgnueabi-gcc: warning: environment variable 'STAGING_DIR' not defined
arm-openwrt-linux-muslgnueabi-gcc: warning: environment variable 'STAGING_DIR' not defined
/usr/lib/libgcc_s.so.1: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
configure:3530: $? = 1
configure:3568: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libmill"
| #define PACKAGE_TARNAME "libmill"
| #define PACKAGE_VERSION "Unknown"
| #define PACKAGE_STRING "libmill Unknown"
| #define PACKAGE_BUGREPORT "libmill@freelists.org"
| #define PACKAGE_URL "http://libmill.org/"
| #define PACKAGE "libmill"
| #define VERSION "Unknown"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3573: error: in `/home/me/SNI-SSL-Proxy-master/libmill':
configure:3575: error: C compiler cannot create executables
anyone here have experience with compiling a package with the help of sdk but not using Makefile?
is that possible?
or maybe some help to be able to create a usable makefile for this pacakge (and its library)