<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Make file error in ADT in P-Series</title>
    <link>https://community.nxp.com/t5/P-Series/Make-file-error-in-ADT/m-p/418852#M2372</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;I am trying to use ADT(Application development toolkit) to cross compile the simple helloworld application.&lt;/P&gt;&lt;P&gt;I followed the following steps.:&lt;/P&gt;&lt;P&gt;1. Create your directory: Create a clean directory for your project and then make that directory your&lt;/P&gt;&lt;P&gt;working location:&lt;/P&gt;&lt;P&gt;$ mkdir $HOME/helloworld&lt;/P&gt;&lt;P&gt;$ cd $HOME/helloworld&lt;/P&gt;&lt;P&gt;2. Populate the directory: Create hello.c, Makefile.am, and configure.in files as follows:&lt;/P&gt;&lt;P&gt;• For hello.c, include these lines:&lt;/P&gt;&lt;P&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/P&gt;&lt;P&gt;main()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;printf("Hello World!\n");&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;• For Makefile.am, include these lines:&lt;/P&gt;&lt;P&gt;bin_PROGRAMS = hello&lt;/P&gt;&lt;P&gt;hello_SOURCES = hello.c&lt;/P&gt;&lt;P&gt;• For configure.in, include these lines:&lt;/P&gt;&lt;P&gt;AC_INIT(hello.c)&lt;/P&gt;&lt;P&gt;AM_INIT_AUTOMAKE(hello,0.1)&lt;/P&gt;&lt;P&gt;AC_PROG_CC&lt;/P&gt;&lt;P&gt;AC_PROG_INSTALL&lt;/P&gt;&lt;P&gt;AC_OUTPUT(Makefile)&lt;/P&gt;&lt;P&gt;3. Source the cross-toolchain environment setup file: Installation of the cross-toolchain creates a&lt;/P&gt;&lt;P&gt;cross-toolchain environment setup script in the directory that the ADT was installed. Before you&lt;/P&gt;&lt;P&gt;can use the tools to develop your project, you must source this setup script. The script begins&lt;/P&gt;&lt;P&gt;with the string "environment-setup" and contains the machine architecture, which is followed by&lt;/P&gt;&lt;P&gt;the string "poky-linux". Here is an example that sources a script from the default ADT installation&lt;/P&gt;&lt;P&gt;directory that uses the 32-bit Intel x86 Architecture and using the dizzy Yocto Project release:&lt;/P&gt;&lt;P&gt;$ source /opt/poky/1.7.1/environment-setup-i586-poky-linux&lt;/P&gt;&lt;P&gt;4. Generate the local aclocal.m4 files and create the configure script: The following GNU Autotools&lt;/P&gt;&lt;P&gt;generate the local aclocal.m4 files and create the configure script:&lt;/P&gt;&lt;P&gt;$ aclocal&lt;/P&gt;&lt;P&gt;$ autoconf&lt;/P&gt;&lt;P&gt;5. Generate files needed by GNU coding standards: GNU coding standards require certain files in&lt;/P&gt;&lt;P&gt;order for the project to be compliant. This command creates those files:&lt;/P&gt;&lt;P&gt;$ touch NEWS README AUTHORS ChangeLog&lt;/P&gt;&lt;P&gt;6. Generate the configure file: This command generates the configure:&lt;/P&gt;&lt;P&gt;$ automake -a&lt;/P&gt;&lt;P&gt;7. Cross-compile the project: This command&lt;/P&gt;&lt;P&gt;compiles the project using the cross-compiler:&lt;/P&gt;&lt;P&gt;$ ./configure ${CONFIGURE_FLAGS}&lt;/P&gt;&lt;P&gt;8. Make and install the project: These two commands generate and install the project into the&lt;/P&gt;&lt;P&gt;destination directory:&lt;/P&gt;&lt;P&gt;$ make&lt;/P&gt;&lt;P&gt;$ make install DESTDIR=./tmp&lt;/P&gt;&lt;P&gt;in the last step when i run the command make, i&amp;nbsp; got the error&lt;/P&gt;&lt;P&gt;error: NO such file or directory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I created a Make file with following attributes:&lt;/P&gt;&lt;P&gt;#!/bin/bash&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$ make CC=gcc hello&lt;/P&gt;&lt;P&gt;&amp;nbsp; gcc -o hello hello.c&lt;/P&gt;&lt;P&gt;I am getting the following error:&lt;/P&gt;&lt;P&gt;Makefile:4: *** missing separator.&amp;nbsp; Stop&lt;/P&gt;&lt;P&gt;kindly resolve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Apr 2015 09:05:23 GMT</pubDate>
    <dc:creator>hitusharma</dc:creator>
    <dc:date>2015-04-17T09:05:23Z</dc:date>
    <item>
      <title>Make file error in ADT</title>
      <link>https://community.nxp.com/t5/P-Series/Make-file-error-in-ADT/m-p/418852#M2372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;I am trying to use ADT(Application development toolkit) to cross compile the simple helloworld application.&lt;/P&gt;&lt;P&gt;I followed the following steps.:&lt;/P&gt;&lt;P&gt;1. Create your directory: Create a clean directory for your project and then make that directory your&lt;/P&gt;&lt;P&gt;working location:&lt;/P&gt;&lt;P&gt;$ mkdir $HOME/helloworld&lt;/P&gt;&lt;P&gt;$ cd $HOME/helloworld&lt;/P&gt;&lt;P&gt;2. Populate the directory: Create hello.c, Makefile.am, and configure.in files as follows:&lt;/P&gt;&lt;P&gt;• For hello.c, include these lines:&lt;/P&gt;&lt;P&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/P&gt;&lt;P&gt;main()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;printf("Hello World!\n");&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;• For Makefile.am, include these lines:&lt;/P&gt;&lt;P&gt;bin_PROGRAMS = hello&lt;/P&gt;&lt;P&gt;hello_SOURCES = hello.c&lt;/P&gt;&lt;P&gt;• For configure.in, include these lines:&lt;/P&gt;&lt;P&gt;AC_INIT(hello.c)&lt;/P&gt;&lt;P&gt;AM_INIT_AUTOMAKE(hello,0.1)&lt;/P&gt;&lt;P&gt;AC_PROG_CC&lt;/P&gt;&lt;P&gt;AC_PROG_INSTALL&lt;/P&gt;&lt;P&gt;AC_OUTPUT(Makefile)&lt;/P&gt;&lt;P&gt;3. Source the cross-toolchain environment setup file: Installation of the cross-toolchain creates a&lt;/P&gt;&lt;P&gt;cross-toolchain environment setup script in the directory that the ADT was installed. Before you&lt;/P&gt;&lt;P&gt;can use the tools to develop your project, you must source this setup script. The script begins&lt;/P&gt;&lt;P&gt;with the string "environment-setup" and contains the machine architecture, which is followed by&lt;/P&gt;&lt;P&gt;the string "poky-linux". Here is an example that sources a script from the default ADT installation&lt;/P&gt;&lt;P&gt;directory that uses the 32-bit Intel x86 Architecture and using the dizzy Yocto Project release:&lt;/P&gt;&lt;P&gt;$ source /opt/poky/1.7.1/environment-setup-i586-poky-linux&lt;/P&gt;&lt;P&gt;4. Generate the local aclocal.m4 files and create the configure script: The following GNU Autotools&lt;/P&gt;&lt;P&gt;generate the local aclocal.m4 files and create the configure script:&lt;/P&gt;&lt;P&gt;$ aclocal&lt;/P&gt;&lt;P&gt;$ autoconf&lt;/P&gt;&lt;P&gt;5. Generate files needed by GNU coding standards: GNU coding standards require certain files in&lt;/P&gt;&lt;P&gt;order for the project to be compliant. This command creates those files:&lt;/P&gt;&lt;P&gt;$ touch NEWS README AUTHORS ChangeLog&lt;/P&gt;&lt;P&gt;6. Generate the configure file: This command generates the configure:&lt;/P&gt;&lt;P&gt;$ automake -a&lt;/P&gt;&lt;P&gt;7. Cross-compile the project: This command&lt;/P&gt;&lt;P&gt;compiles the project using the cross-compiler:&lt;/P&gt;&lt;P&gt;$ ./configure ${CONFIGURE_FLAGS}&lt;/P&gt;&lt;P&gt;8. Make and install the project: These two commands generate and install the project into the&lt;/P&gt;&lt;P&gt;destination directory:&lt;/P&gt;&lt;P&gt;$ make&lt;/P&gt;&lt;P&gt;$ make install DESTDIR=./tmp&lt;/P&gt;&lt;P&gt;in the last step when i run the command make, i&amp;nbsp; got the error&lt;/P&gt;&lt;P&gt;error: NO such file or directory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I created a Make file with following attributes:&lt;/P&gt;&lt;P&gt;#!/bin/bash&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$ make CC=gcc hello&lt;/P&gt;&lt;P&gt;&amp;nbsp; gcc -o hello hello.c&lt;/P&gt;&lt;P&gt;I am getting the following error:&lt;/P&gt;&lt;P&gt;Makefile:4: *** missing separator.&amp;nbsp; Stop&lt;/P&gt;&lt;P&gt;kindly resolve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 09:05:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Make-file-error-in-ADT/m-p/418852#M2372</guid>
      <dc:creator>hitusharma</dc:creator>
      <dc:date>2015-04-17T09:05:23Z</dc:date>
    </item>
  </channel>
</rss>

