Compile custom app?

I would like to compile a custom application to run on Gl-iNet6416 with CC firmware. Are there any GLi instructions on how to set up a cross compile environment on Linux or in a VM?

Thanks

-PG

Here is some guide in short.

You need to set up your linux first.

Worked great! After building OpenWRT I found a gcc and compiled my app…

./openwrt-cc/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-gcc -s -Os -fomit-frame-pointer -DNODEFAULTLIBS -nodefaultlibs -fno-exceptions app.cpp -lc -o app

 

 

 

I’d like to use SSL sockets in my app. Do you know how to add libssl-dev package into the cross-compile environment? I couldn’t see an obvious way with menuconfig.

Thanks

-Craig

there is libopenssl and libpolarssl

are these ok?

libopenssl would be good. I don’t see it under openwrt-cc/ though. Do I need to add a package to the cross compile environment?

Thanks

-Craig

there is libopenssl

library->ssl->

 

Aha… I was looking for libopenssl.a I should have been looking for libssl.a

I see…
./staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include/openssl/ssl.h
./staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib/libssl.a

Thanks

-Craig