[Solved, more or less] OpenWRT C++ CrossCompile uClibc setup
-
Thank you for your suggestion,
I know that a lot of people just use the SDK to compile programs, but I want to get the openWRT package CrossCompile environment to work. I want to create packages that I can install on the onion (.ipk packages if I'm remember correctly). I don't know how to get the toolchain you suggested into the openWRT environment, so if you have an Idea how to do that, it would be perfect
I mean someone compiles their packages with the correct toolchain/setup and provide this packages to us, don't they?
-
Hi @Alexander-Pitzer, In the
make menuconfig
system, go intoAdvanced configuration options (for developers)
>Toolchain Options
>C Library implementation
. You just need to switch frommusl
touClibc
.
-
Yeah I tried this before, too. But there is no option for uClibc....
May it be possible to poste a .conf with the right kernel settings?Because the dependency for uClibc contains : .... && !mips [=y] && ....
and mips is set by: .... || TARGET_ar71xx_generic [=y] && <choice> && TARGET_ar71xx [=y] || ....
-
@Alexander-Pitzer that's quite strange. Where did you get the buildroot files?
-
I believe I found the problem, in the current version of openWRT uClibc is available if broken packages are allowed. RIght now I compile the toolchain: toolchain-mips_34kc_gcc-5.2.0_uClibc-1.0.9
They switched to uClibc-ng-1.0.98e493a4b7c0749bf65cfd545ca18b384bc1d4f32 12/03/2015 03:47 PM uClibc-ng: update to 1.0.9 Update to 1.0.9, switch to XZ tarball. Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47715 3c298f89-4303-0410-b956-a3cf2f4a3e73
b70a36d1d969f5aa9ad081c9a395633793582a5a 11/02/2015 07:12 PM uclibc: remove version 0.9.33 Latest uClibc-ng is now the only supported option Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47357 3c298f89-4303-0410-b956-a3cf2f4a3e73
-
@Alexander-Pitzer Oh i see. Were you using a version of the buildroot that did not include uClibc?
-
Sry I updated my post... so yes uClibc was kicked and uClibc-ng is in but only as broken package
-
@Alexander-Pitzer Bummer. I guess the only way to do it right now is to check out
f14d574f3082577a4489f778d0c8cf7117d33cee
commit, and come back to the new one once the broken package has been fixed...
-
@Boken-Lin I try to compile the new version and will play around with the toolchain a bit. If nothing helps I will go back. Thank's alot for your help. The Onion Omega is a great product and I really like to play around with it alot!
-
@Alexander-Pitzer I'm glad you like it If there's anything else we can help you with just let us know!