Importing Cmake Projekt into Eclipse/ Crosscompiler [message #1794499] |
Fri, 31 August 2018 09:28 |
Eclipse User |
|
|
|
Hello,
I'm trying to import the attached program into eclipse by generating the project file from the cmake skript.
cmake -DCMAKE_TOOLCHAIN_FILE=toolchain-rpi.cmake -G "Eclipse CDT4 - Ninja" -DCMAKE_BUILD_TYPE=Debug
As compiler I use the arm-raspian compiler to compile it for the Raspberry Pi (https://github.com/raspberrypi/tools)
Importing works fine and also the compiling and the linking works fine, but when I look at the main.cpp file I get the error annotations "Unresolved inclusion: <iostream>".
When I create a new project from eclipse with specifying the same cross compiler, this problem does not exist.
Is there something special I have to specify to not get this error annotations?
Is there a possibility to create the .project and the .cproject next to the CMakelists.txt file and the generated file in a build folder?
Best regards,
Martin
Attachment: RaspI2C.zip
(Size: 6.08KB, Downloaded 135 times)
|
|
|
Powered by
FUDForum. Page generated in 0.13331 seconds