Phytec中国的wiki
support@phytec.cn
热线:0755-61802110-803
Page History
...
Code Block | ||||
---|---|---|---|---|
| ||||
root@debian8:/home/bob/bsp/am335x/BSP-Yocto-AM335x-PD16.2.0/build/deploy/sdk# ./phytec-yogurt-glibc-x86_64-meta-toolchain-cortexa8hf-neon-toolchain-AM335x-PD16.2.0.sh Yogurt (Phytec Example Distribution) SDK installer version AM335x-PD16.2.0 ========================================================================== Enter target directory for SDK (default: /opt/phytec-yogurt/AM335x-PD16.2.0): You are about to install the SDK to "/opt/phytec-yogurt/AM335x-PD16.2.0". Proceed[Y/n]? Y Extracting SDK.................done Setting it up...done SDK has been successfully set up and is ready to be used. Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g. $ . /opt/phytec-yogurt/AM335x-PD16.2.0/environment-setup-cortexa8hf-neon-phytec-linux-gnueabi root@debian8:/home/bob/bsp/am335x/BSP-Yocto-AM335x-PD16.2.0/build/deploy/sdk# |
安装好后,在使用前,需要先运行初始化脚本,如安装好后,在使用前,需要先运行初始化脚本,如先初始化环境:
Code Block | ||||
---|---|---|---|---|
| ||||
bob@debian8:~/test$ . /opt/phytec-yogurt/AM335x-PD16.2.0/environment-setup-cortexa8hf-neon-phytec-linux-gnueabi |
c源码:
Code Block | ||||
---|---|---|---|---|
| ||||
bob@debian8:~/test$ cat gst.c #include <stdio.h> #include <gst/gst.h> int main (int argc,char *argv[]) { const gchar *nano_str; guint major, minor, micro, nano; gst_init (&argc, &argv); gst_version (&major, &minor, µµ, &nano); if (nano == 1) nano_str = "(CVS)"; else if (nano == 2) nano_str = "(Prerelease)"; else nano_str = ""; printf ("This program is linked against GStreamer %d.%d.%d %s\n", major, minor, micro, nano_str); return 0; } |
编译:
Code Block | ||||
---|---|---|---|---|
| ||||
bob@Z220:~/test$ $CC $CFLAGS -I=/usr/include/gstreamer-1.0 -I=/usr/include/glib-2.0 -I=/usr/lib/glib-2.0/include -L=/usr/lib -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 gst.c -o gst |
...
Overview
Content Tools
Tasks