User forums > Using Code::Blocks
errors not clickable for cmake generated project using ninja or make
fruitCode:
--- Quote from: stahta01 on November 15, 2019, 07:51:34 pm ---Are you using a normal CB project or a custom makefile cb project?
I believe that feature is not supported with custom makefile cb projects.
Tim S.
--- End quote ---
I use a CB project file that is generated by the cmake utility so I guess its a custom one. I use cmake because I build for different targets (PC host for unit and integration tests and a simulator application) and an embedded target running on an ARM processor. Cmake is a great utility to assist in these kind of setups besides that it offers out of source building.
fruitCode:
--- Quote from: osdt on November 15, 2019, 08:33:17 pm ---AFAIK this feature was never implemented for the "Build log". Use the "Build messages" tab to have CB show the file/line in question.
--- End quote ---
In doesn't work in that tab either
fruitCode:
--- Quote from: oBFusCATed on November 16, 2019, 10:55:54 am ---What is the compiler which you're using? The errors/warnings are detected using regular expressions. Most probably none of the regexs matches the line you've posted.
--- End quote ---
I am porting code from V850 to ARM, I use an IAR compiler but as an alternative path I also use the GCC ARM compiler (as cmake makes it really easy to have these different setups with fi different compilers for same project - yes I am a fan of it)
Your comment made me think so I tried with the GCC ARM compiler and yes, there it works like a charm. Thanks for hinting!
My conclusion is that the regex don't seem to match the IAR syntax
oBFusCATed:
You can add a IAR compiler and then you can tell cmake to use it as the compiler for your project. See https://cmake.org/cmake/help/v3.16/variable/CMAKE_CODEBLOCKS_COMPILER_ID.html
If you make a IAR setup we'll be happy to review and accept a patch. :)
fruitCode:
Any hints where to find info on how to make an IAR setup? Glad to make one.. Checked the help of C::B but there I could'nt find it, or I overlooked..?
To be clear, I want C::B to build my project still to be build using the makefile/ninja file (generated via cmake) as my project also runs on a jenkins build server.
When fixing some errors, doing changes I want to use C::B IDE (locally)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version