* cmake and Code::Blocks [not found] <CGME20190613101352eucas1p2e1d967dfe7e76437adb6a45ea10b1158@eucas1p2.samsung.com> @ 2019-06-13 10:13 ` Pavel Fedin 2019-06-13 11:34 ` Csaba Raduly 2019-06-13 18:20 ` Brian Inglis 0 siblings, 2 replies; 5+ messages in thread From: Pavel Fedin @ 2019-06-13 10:13 UTC (permalink / raw) To: cygwin Hello! I am working on a CMake-based project and building it under Cygwin. I decided to use Code::Blocks IDE since CMake already hass appropriate project generator (i'm using "CodeBlocks - Unix Makefiles"). However, i had to manually edit the resulting .cbp file and replace all paths with their native Windows equivalents; otherwise the IDE can't find any file and do anything. Is this a known TODO area for CMake or am i missing some magic switch while loading the project into CB ? Kind regards, Pavel Fedin Senior Engineer Samsung Electronics Research center Russia -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: cmake and Code::Blocks 2019-06-13 10:13 ` cmake and Code::Blocks Pavel Fedin @ 2019-06-13 11:34 ` Csaba Raduly 2019-06-13 12:29 ` Pavel Fedin 2019-06-13 18:20 ` Brian Inglis 1 sibling, 1 reply; 5+ messages in thread From: Csaba Raduly @ 2019-06-13 11:34 UTC (permalink / raw) To: cygwin list Hi Pavel, On Thu, Jun 13, 2019 at 12:14 PM Pavel Fedin wrote: > > Hello! > > I am working on a CMake-based project and building it under Cygwin. I decided to use Code::Blocks IDE since CMake already hass > appropriate project generator (i'm using "CodeBlocks - Unix Makefiles"). However, i had to manually edit the resulting .cbp file and > replace all paths with their native Windows equivalents; otherwise the IDE can't find any file and do anything. > Is this a known TODO area for CMake or am i missing some magic switch while loading the project into CB ? Are both CMake and Code::Blocks Cygwin programs? I suspect you tried to use a .cbp generated by Cygwin's CMake (which uses POSIX style paths) with a non-Cygwin Code::Blocks. This is likely to be tricky. Csaba -- You can get very substantial performance improvements by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler So if you're looking for a completely portable, 100% standards-conformat way to get the wrong information: this is what you want. - Scott Meyers (C++TDaWYK) -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: cmake and Code::Blocks 2019-06-13 11:34 ` Csaba Raduly @ 2019-06-13 12:29 ` Pavel Fedin 0 siblings, 0 replies; 5+ messages in thread From: Pavel Fedin @ 2019-06-13 12:29 UTC (permalink / raw) To: 'Csaba Raduly', 'cygwin list' Hello! > Are both CMake and Code::Blocks Cygwin programs? I suspect you tried > to use a .cbp generated by Cygwin's CMake (which uses POSIX style > paths) with a non-Cygwin Code::Blocks. This is likely to be tricky. Of course not. Code::Blocks isn't Cygwin application, it's a native Windows application: http://codeblocks.org/ BTW it has built-in support for Cygwin, it correctly recognizes the toolchain, at least gcc. Kind regards, Pavel Fedin Senior Engineer Samsung Electronics Research center Russia -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: cmake and Code::Blocks 2019-06-13 10:13 ` cmake and Code::Blocks Pavel Fedin 2019-06-13 11:34 ` Csaba Raduly @ 2019-06-13 18:20 ` Brian Inglis 2019-06-14 11:13 ` Pavel Fedin 1 sibling, 1 reply; 5+ messages in thread From: Brian Inglis @ 2019-06-13 18:20 UTC (permalink / raw) To: cygwin On 2019-06-13 04:13, Pavel Fedin wrote: > I am working on a CMake-based project and building it under Cygwin. I > decided to use Code::Blocks IDE since CMake already hass appropriate project > generator (i'm using "CodeBlocks - Unix Makefiles"). However, i had to > manually edit the resulting .cbp file and replace all paths with their native > Windows equivalents; otherwise the IDE can't find any file and do anything. > Is this a known TODO area for CMake or am i missing some magic switch while > loading the project into CB? If you are trying to use a Windows based tool with Cygwin utilities, you are likely to be the first, and on your own. What evidence do you have of features that support Cygwin? Maybe CB doesn't support Cygwin tools, or not very well, or maybe you have to change the configuration, or provide the conversion, or maybe it's just not a good IDE for those tools? Having to edit file paths used by a tool is never a good sign. There are probably a lot of other paths you may have to edit. Sometime the trick is to add a couple of your own scripts to convert the paths in files to and from Cygwin and Windows: hint - cygpath. How would anyone here know if you are missing some magic switch using the tool you chose? Read and understand the docs to know the limitations and interface requirements of the tools you have chosen. Sometimes we make bad choices, have to scrap what we did, make hopefully better choices, and restart from earlier. Source control allows you to handle that more easily. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: cmake and Code::Blocks 2019-06-13 18:20 ` Brian Inglis @ 2019-06-14 11:13 ` Pavel Fedin 0 siblings, 0 replies; 5+ messages in thread From: Pavel Fedin @ 2019-06-14 11:13 UTC (permalink / raw) To: Brian.Inglis, cygwin Hello! > What evidence do you have of features that support Cygwin? In the project configuration i can choose "Cygwin toolchain", and it correctly detects c:/Cygwin as installation root. > Maybe CB doesn't > support Cygwin tools, or not very well, or maybe you have to change the > configuration, or provide the conversion, > or maybe it's just not a good IDE for > those tools? Well, this is too philosophical IMHO and is outside of question's scope. My takeout from your reply so far: 1. No, there is no special support in CMake and there will never be one because mixing native Windows tools and Cygwin tools is not supported by Cygwin project 2. You don't know whether Code::Blocks has any special support for Cygwin paths. Thank you very much for your time, i'll try to raise this in CMake development community and/or Code::Blocks development community. This issue could be solved on both sides. Kind regards, Pavel Fedin Senior Engineer Samsung Electronics Research center Russia -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-06-14 11:13 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <CGME20190613101352eucas1p2e1d967dfe7e76437adb6a45ea10b1158@eucas1p2.samsung.com> 2019-06-13 10:13 ` cmake and Code::Blocks Pavel Fedin 2019-06-13 11:34 ` Csaba Raduly 2019-06-13 12:29 ` Pavel Fedin 2019-06-13 18:20 ` Brian Inglis 2019-06-14 11:13 ` Pavel Fedin
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).