This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Build Error: AM335x EVM: fatal error: could not open source file "src/include/lwip/opt.h"

Hello,

I am working on the AM335x EVM and the XDS50v2 STM JTAG interface.  I downloaded the StarterWare for CCSv5.4 and I am trying to run the demo project provided.  I imported the project and created a target configuration file successfully.  However, when I build the project I keep getting the error below.  I will really appreciate any help or comments/hints.  THANK YOU!

'Building file: ../src/demoEnet.c'
'Building file: ../src/demoGpio.c'
'Invoking: TMS470 Compiler'
'Invoking: TMS470 Compiler'
"..\src\lwiplib.h", line 44: fatal error: could not open source file "src/include/lwip/opt.h"
1 fatal error detected in the compilation of "../src/demoEnet.c".
Compilation terminated.

  • We finally found a solution to the problem described in my previous post.  When importing existing CCS projects (the "example" project in my case), ensure that "Copy projects into workspace" is unchecked.  

    When this option was selected, the compiler will have issues trying to access some of the header files (I don't know why).

    It is working fine now!!!

  • Hector,

    I also ran into this.  StarterWare is designed for the projects to be built in place.  All the paths are relative to the StarterWare directory.  The side effect is that any changes you make are done to the original files in your StarterWare Installation.  

    I wanted to roll my own code based on modifying the examples.  So I did the copy, which as you found did not copy the source files because they were not in the project directory.  Then I manually moved the files to my workspace, modified the paths as needed, adding include files to my space, modified the linker control file, etc.  The first time I did this it took a couple of days to figure out.  Now I have it down to about 20 minutes.  I did the same with the libraries I needed.

    Good Luck!

    Gerry Belanger