micro-os-plus / eclipse-demo-projects

1 stars 4 forks source link

Failed to build example project #5

Open nscooling opened 8 years ago

nscooling commented 8 years ago

I imported the example project as specified in the README (without copying) but on build got linker errors such as: ./src/led.o: In function led::turn_on()': /Users/Niall/Training/programming/C++/eclipse-demo-projects/f4discovery-blinky-micro-os-plus/Debug/../src/led.cpp:83: undefined reference toHAL_GPIO_WritePin' etc.

ilg-ul commented 8 years ago

I confirm the problem, I'll investigate.

ilg-ul commented 8 years ago

I updated the projects (the HAL source path was missing).

I also updated the scripts, so I suggest you simply remove the eclipse-demo-projects.git folder and start from scratch.

the new versions of the projects no longer contain the dependencies, you need to run the script to generate them, as explained in the README.

be sure you run the generate.sh scripts with Eclipse closed, otherwise Eclipse might damage the .cproject while the files are regenerated.

nscooling commented 8 years ago

Yes I can confirm this now works (OSX test) Thanks.

ilg-ul commented 8 years ago

great.

please check how CubeMX is integrated, especially in the F0 project, where the HAL is also copied from Cube, and the vectors.c file is dynamically generated.

the current scripts are only a temporary solution, a more elaborate command line tool (xcdl) is under construction and will handle all details, from xPacks creation to command line builds.