Install git:
$ sudo apt-get install git
If can’t install successfully , carry out the following steps
$ sudo apt-get install update $ sudo apt-get install git-core
Get Arduino style API:
$ sudo git clone http://github.com/pcduino/c_environment
Check whether c_enviroment have been downloaded or not
$ ls
How to compile:
$ cd c_enviroment $ ls
$ make
After make, some information will be shown on, if we can see “make[1]:Leaving directory ….”,that means the compiler has finished.
View the compiled folder contents
How to create new project
Put the download file the sample directory (put tmp36_yeelink.c in U disk,so tmp36_yeelink.c file path will be changed according to personal factors.
$ cp /media/USB Disk/tmp36_yeelink.c /home/ubuntu/c_enviroment/sample/ $ ls
Modify Makefile in the sample directory, create a new project ,add the contents in below red box , save and exit
Enter “make “in the /home/ubuntu/c_enviroment/sample directory
$ make
Some information has been printed out on the screen. when compile tmp36_yeelink.c successfully,and no error, will show the following information.
The compiler executable files in the /home/ubuntu/c_enviroment/output/test/ directory
Leave a Reply
You must be logged in to post a comment.