I' struggling with importing a CMake project to Eclipse...
I have a CMake project imported from SVN; this works fine on the Raspi (after adapting some pathes in the CMakeCache.txt file. I do have no real experience with CMake, so I guess this is already a wrong approach :-).
What I actually want to do is compiling it on my linux machine with Eclipse because it is a little bit more comfortable. Cross compiling for the Raspi works fine with a simple C-project, but now I have severe problems in setting up a CMake project in Eclipse.
What I have done until now: I just imported the whole project from SVN into Eclipse and adapted the existing CMakeCache.txt file (adapted the pathes to the project and to the compiler etc...). Compiling stops with an error telling me that the library udev is not found. Hahaha, obviously CMake is looking for the libraries on my machine and not in the libraries for the Raspi.
So how do I tell CMake where to look for the "correct" libraries? Or more general: how do I set up a CMake project in Eclipse imported via SVN (no Eclipse project!)? As far as I experienced until now is that CMake is quite allmighty, but everything else than intuitive ;-). Especially in combination with Eclipse...and with SVN...
Thanks a lot!!
Greetings
Meffy
Related
I checked out some C++ program that uses OpenCV. I changed the building process to a CMake generated makefile. The OpenCV includes are not set in the Eclipse project settings but in the CMakeLists.txt as find_package( OpenCV REQUIRED ).
It builds fine, but the Eclipse editor shows all OpenCV related inclusions and symbols as unresolved which is exceedingly annoying. What to do?
Using Eclipse version 4.10.0 on Ubuntu 18.04.
I'm new to C++ and is trying to use the NetBeans IDE to create a C++ project. However, I have encountered the following error. I have downloaded the sygwin compiler but after mending around for a hour and half, I still couldn't get the NetBeans C++ compiler working? Could someone please give me a hand? I apologise if this sounds silly to some of you. Thanks in advance for any help!
The NetBeans C/C++ bundle does not include a C/C++ compiler.
You have to download an environment like Cygwin or MinGW which includes the compiler and then add it as build host.
https://netbeans.org/community/releases/72/cpp-setup-instructions.html#compilers_windows
I want to compile the augmented reality ArUco library, but this library documentation on the internet is too scarce and I am facing some problems. Could someone give me a little tutorial about how to compile it in the Eclipse? (could be another IDE)
I'm using the Ubuntu 12.10, Eclipse Juno. Thanks!
Look at the README file of the library, you will probably have to use cmake. Open a terminal and install cmake and OpenCv (the requirements for the library) with apt-get. I don't know their exact package names in Ubuntu, but try the obvious cmake and opencv. Once that is done, cd to the directory where you unpackaged the aruco library, and do the following:
mkdir build && cd build
cmake ..
make all
make install
You can change the installation prefix by using cmake -i .. or ccmake if it got installed too. As for setting up the library in your IDE, just make a note of which directories the library files (binaries and headers) got installed to, and make sure those are in the compiler's search path.
I am giving a try to Scala Eclipse IDE after a very long time. I installed Eclipse and the said Scala plugin only a while ago, but I am unable to get stuff working. In all of the Scala files, I get the errors like following (See the tooltip):
This project uses Gradle for building, and I also have the latest version of Groovy plugin installed. Please help me get this thing working. Thanks.
Edit:
Thank you, everyone. The problem was solved. It appears there was a problem with my Scala plugin installation. A complete reinstall of everything (including Eclipse) helped. Also, this time I did not install the Groovy plugin.
I don't know which version of Eclipse / Scala-IDE you're using, but there are two reasons I know this sometimes happens:
1) You don't have JDT weaving for Scala installed.
The scala-ide uses aspects to weave in code into the JDT compiler. If you don't have this installed, this may cause the Scala files to be seen as Java files.
2) If, somehow, the Java Source File content type includes *.scala. In fact, it should be Scala Source File. If this is the case, you should remove the *.scala from the Java Source File content type.
I have installed Eclipse (Helios) for the Java programming language, but I also want to use it for programming in C/C++, Python and Ruby. I've installed CDT and DLTK (for Python and Ruby).
I already had mingw-w64 (Windows platform) installed. How do I set up Eclipse so that it uses MinGW as the toolchain? It apparently detects MinGW as a toolchain, but when I create a project, two warnings already appear saying "error launching external scanner info generator". I'm assuming this is because it can't find the compiler program. Also, it doesn't detect any of the standard-library header files. Could these problems be because I'm using mingw-w64 rather than the standard MinGW?
I have Ruby working, but as for Python, it cannot find the interpreter nor the default system library. I have Python 2.7 already installed. I don't know how to tell Eclipse where to look for the files.
Note: I am on Windows 7 Professional 64-bit. I've heard of people on 64-bit versions of Vista having trouble getting mingw-w64 to work. I may be having the same problem. Ignoring Eclipse, when I try to compile a C file using gcc, it has trouble finding the libraries and includes.
Edit: If I set the path to /bin/ and /libexec/ via environmental variables, I don't get the initial errors when creating a project, but, what I want to know is, how could I set the paths via Eclipse? Also, even if I set the paths, the linker still can't find the libraries and includes. I went to Project > Properties > C/C++ Build > Settings and tried to set the libraries and includes that way, but it still couldn't find them (the libraries, at least)! Moreover, would I really have to do this for every project? This option isn't available in Window > Preferences.
As for the python part, I recommend using pydev: http://pydev.org/
It's the best eclipse plugin for python. From code completion, syntax highlighting, virtualenv support (http://pydev.blogspot.com/2010/04/pydev-and-virtualenv.html) and so on...
If you are into web development,
from javascript, php, html, python, ruby... you also might want to take a look at aptana.
http://www.aptana.com/
It's a eclipse based IDE with lots of goodies working out of thebox, like git and subversion plugins, pydev etc... aptana is (or was, I switched IDE) installable as a plugin in a regular eclipse)
Martin K. link looks good for mingw part.