PS.: A more complex software with USB, TCP, threads did compile and run without any problems same way.
Jo Wickenh
@Jo Wickenh
Best posts made by Jo Wickenh
-
RE: C Compiler, how to install?
-
RE: C Compiler, how to install?
"Hello World" now running!
Maybe it helps anybody, this is what I did:
After re-installing a new Ubuntu64 16.04 LTS from osboxes (running von a VMware Player on my PC), I extracted the cross-compiler to a directory "~/on" , renanamed the two top tirectories to "lt" and "tc". Then I startet "osboxes@osboxes:~$ gedit .profile" and added the these lines at the end:
export STAGING_DIR=/home/osboxes/on/lt/tc/bin
export ONTOOL=/home/osboxes/on/lt/tc/bin
export PATH=$ONTOOL:$PATHNow I can compile "mipsel-openwrt-linux-gcc hello.c", transfer "a.out" with WinSCP to my Onion2, set attributes to executable (can be done in WinSCP) and start "./a.out" via Console.
Latest posts made by Jo Wickenh
-
RE: C Compiler, how to install?
PS.: A more complex software with USB, TCP, threads did compile and run without any problems same way.
-
RE: C Compiler, how to install?
"Hello World" now running!
Maybe it helps anybody, this is what I did:
After re-installing a new Ubuntu64 16.04 LTS from osboxes (running von a VMware Player on my PC), I extracted the cross-compiler to a directory "~/on" , renanamed the two top tirectories to "lt" and "tc". Then I startet "osboxes@osboxes:~$ gedit .profile" and added the these lines at the end:
export STAGING_DIR=/home/osboxes/on/lt/tc/bin
export ONTOOL=/home/osboxes/on/lt/tc/bin
export PATH=$ONTOOL:$PATHNow I can compile "mipsel-openwrt-linux-gcc hello.c", transfer "a.out" with WinSCP to my Onion2, set attributes to executable (can be done in WinSCP) and start "./a.out" via Console.
-
RE: C Compiler, how to install?
I have downloaded and expanded on (my Ubuntu64 14.04 ) the cross-compiler from https://dl.dropboxusercontent.com/u/11811685/lede-toolchain-ramips-mt7688_gcc-5.4.0_musl-1.1.15.Linux-x86_64.tar.bz2 .
But I dont see, how to use it? I'm not an expert in OpenWRT or LEDE, but I have good knowlede in (Embedded) C.
Please, could you be so kind to give me help to compile at least a simple 'printf("Hello World\n") C program? Everything else (Omega2 with PHP7) is running.
Thank you very much... JO
-
C Compiler, how to install?
I got the Omega2 today. It is really a very nice board! Exactly what I was searching for!
Big congratulations!!!!I have already developped a bunch of C software on some RasPis written and tested in C. So I only want to compile it, not test it, on the Omega2.
- The tutorial how to install a Cross Compiler fails.
- I found some links about the mt7688 CPU and I am using Ubuntu64 (and Win64), but I was not able to install c working Cross Compiler (e.g on http://wiki.seeedstudio.com/wiki/LinkIt_Smart_7688 et al..)
- The Onion Cloud Compiler seems to stall (and also only accepts ZIP files from Linux, NOT WIN64 files)...
Thanks for your help! Jo