element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
EXPLORE-NFC
  • Products
  • Dev Tools
  • EXPLORE-NFC
  • More
  • Cancel
EXPLORE-NFC
Forum Compile Examples
  • Blog
  • Forum
  • Documents
  • Events
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join EXPLORE-NFC to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 15 replies
  • Subscribers 11 subscribers
  • Views 1767 views
  • Users 0 members are here
Related

Compile Examples

Former Member
Former Member over 10 years ago

Hello,

Firstly I would like to say sorry that I´m a very big noob at C programming, because I never did this before.

I had a look at the examples today and customised them a little bit. How do I compile the C files in order to run them now? I´m sure that cc -o basic basic.c is the wrong solution. I´m sure that the answer is very easy but as I´ve already mentioned I´m totally unexperienced with C, so please forgive me image

 

Thank you very much in advance.

  • Sign in to reply
  • Cancel

Top Replies

  • michaelneurohr
    michaelneurohr over 10 years ago in reply to clem57 +1
    Hi Clem, the LPCXpresso IDE is only used for the software projects running on the MCUs LPC1769 and LPC1227. For the Raspberry Pi projects please build on the Raspberry Pi directly. Michael
  • Former Member
    Former Member over 10 years ago +1
    Of course. Firstly I´ve installed all libraries and extensions provided in the README.md file and afterwards I ran the following commands in the root folder of the source files: ./bootstrap ./configure…
Parents
  • clem57
    0 clem57 over 10 years ago

    I am going to guess you have Linux. If so look for gcc or better yet the example may have a file called makefile. If so run "make" should do the dirty work. Be careful not to overwrite something important! If you really feel new, please list what you found where it came from and I can try it for myself and help.

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to clem57

    Hello Clem,

    Thanks for your response.

    Correct. I´m using Debian (Raspbian). Well I´ve downloaded the sourcecode of the sample file available here on the site (http://www.nxp.com/documents/software/SW282814.zip) and then I went to the /examples folder, made some changes to the basic.c file and tried to compile it afterwards.

     

    I´ve already tried "make" and I got the following response:  make: *** No targets.  Stop.

    You can find the content of my makefile here: http://pastebin.com/7aJPN3u1

     

    When I try the gcc one I get the same error like when I do it with cc:

    basic.c:18:18: fatal error: glib.h: No such file or directory

    compilation terminated.


    Any ideas?

    Thank you very much in advance,

    Lukas.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • clem57
    0 clem57 over 10 years ago in reply to Former Member

    The accompanying sample applications can be compiled along with the library and runs

    on the LPC1769 board attached with either the PN512 or the CLRC663 blue board. This

    compilation of the project is tested on Microsoft Windows 7 64-bit Operating System

    using the LPCXpresso IDE mentioned above.

    You need to install LPCXpresso IDE on Windows 7 preferably(maybe only choice). I will bet they have how to import and compile this there.

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • michaelneurohr
    0 michaelneurohr over 10 years ago in reply to clem57

    Hi Clem,

     

    the LPCXpresso IDE is only used for the software projects running on the MCUs LPC1769 and LPC1227.

    For the Raspberry Pi projects please build on the Raspberry Pi directly.

     

    Michael

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to michaelneurohr

    Hi Michael,

    I´ve done all steps mentioned in the README.md file and it worked fine. Thank you very much! Sorry for my own stupidity, I should just read all documentation files next time.

    But now I have another question. How do I get the tag UID? I´m using the default tag which was included in the package, but I get no UID output.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • clem57
    0 clem57 over 10 years ago in reply to Former Member

    Fantastic! Can you share what changes you made?

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • clem57
    0 clem57 over 10 years ago in reply to Former Member

    Fantastic! Can you share what changes you made?

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube