Similar Posts
How to test a file or directory exists in C++?
How to test a path (a file or directory exists) in C++? In Bash, the [ -f ] and [ -d ] tests can test whether a file or a directory exist. What are the corresponding C++ ways for these tests? To test whether a file or dir (a path) exists, you may call stat()…
Changing Linux User Password in One Command Line
In Linux, we use passwd to change password, but passwd requires input from stdin to get the new password. It is common case that we may want to change the password non-interactively, such as creating new user accounts and change or set password for these accounts on a number of Linux boxes when the new…
How to upgrade vim to version 8 on CentOS 7?
vim on CentOS 7 is version 7.4 with patches 1-160: $ vim –version VIM – Vi IMproved 7.4 (2013 Aug 10, compiled Dec 21 2016 17:00:20) Included patches: 1-160 How to upgrade it to version 8 which is the latest major version? Update on Oct 23 2018: the repository introduced in the original method is…
How to install the MATE fork of Gnome 2 on Fedora 17?
I miss Gnome 2. How to install the MATE fork of Gnome 2 on Fedora 17? MATE is already included into Fedora 17’s repository and is an official feature of Fedora 18. To install MATE on Fedora 17 # yum install @mate-desktop To install softwares usually needed: # yum install mate-media mate-screensaver mate-system-monitor mate-power-manager mate-utils…
How to install Scala on Linux
How to install Scala on Fedora Linux How to install Scala on Fedora Linux: This tutorial introduces how to install Scala 2.9.2 on 64-bit Fedora Linux 17. There are some changes needed to make scala work on Fedora Linux 17. Please check it out in the answer. Continue reading: How to install Scala on Fedora…
How to find the number of files in each directories on Linux?
How to find the number of files in each sub-directories of a directory on Linux? For example, . ├── a19 ├── a8 ├── d2 ├── ecfddd └── t1 The number of sub-directories can be quite large. How to find the number of files in each sub-directories here? You can use this piece of script to…
The cmake generator for Eclipse is sadly not really maintained, and it in pretty poor shape. The projects generated are for some ancient version of Eclipse.
However, it does remain the only sensible way to import cmake projects into Eclipse in my opinion.
For a commercial development, I have the following requirements (as an ABSOLUTE MINIMUM):
– Must be able to import and already configured build tree.
– Must be able to have build tree outside source tree.
– Must index only the source files (or at least projects) that are included in the generated build system. To index my whole source tree otherwise would take over a week and a half.
– Must get indexer include paths and preprocessor defines correct
The linked project approach of the cmake eclipse generator seems to work best.
Only projects that are part of the build system get included under the subprojects & targets.
I can then have a script that post-processes the generated Eclipse project to remove [Sources] from the indexer path.
This has to be hacked in, by starting a process that watches for the termination of cmake itself, since cmake [deliberately] doesn’t support post generate tasks.
The Eclipse indexer, while very good when it works, is EXTREMELY buggy, and prone to randomly locking up, requiring regular restarts of Eclipse. In fact, some releases (eg. Photon) have such frequent lockups, that they are totally unusable.