Eclipse editor shows unresolved OpenCV symbols and inclusions but builds fine - eclipse

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.

Related

Qt 5.10.1 MinGW .. how to link a dll

I have a project that complies while linking to lib quazip.a. But the project crashes in the Qt IDE when trying to run it. In VS 2017 with Qt VS Tools I built the dll quazip.dll because the deployed project needs it. But the dll doesn't load with the error "Procedure entry point not found". Is there a way to link the dll in my project so an entry point can be found? Or is there a way to get the project to run in the IDE as well as deploy with the quazip.a lib? Or is there a way to build the quazip.dll in Qt MinGW?
I got the quazip.dll from a Qt MinGW build of quazip. All is fine now.

Error while trying to compile imported project from Mbed compiler

I have completely followed installing the GNU MCU Eclipse compiler along with the arm gnu toolchain and its complementary GCC toolchain provided in the
tutorial link.
When I want to build a project which I exported from the Mbed online compiler, I set the PATH variable in the project's properties to wherever the where gnu-arm-none-eabi-g++ command refers. But Regarding all the instructions I followed I am still getting this compile error:
**Error:Program "make" not found in PATH**
It seems that there is a way around in order to avoid the multi-step process for setting up the Eclipse IDE for Max devices.
The Maxim Integrated company has special eclipse neon dedicated for maxim arm processors which can be downloaded from this link.
Warning!!: when you install the arm toolchain and run the Eclipse IDE, be aware that you don't update the IDE tools and libraries via the IDE itself. However, if you want to update the libraries you can do this by the Arm cortex management app which is included in the toolchain setup.

Import CrossCompile CMake project to Eclipse

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

How to build LLVM source code on Eclipse?

I am trying to add a new pass to the llvm compiler infrastructure.
I have been able to build LLVM-2.9 using make.But I wants to build using Eclipse
so that I can trace the code.
I imported llvm source files to c++ project with LinuxGcc tool chain
and CDT internal builder(Eclipse with CDT-7.0).But it gives some errors.
Is this is a right way to build llvm using eclipse?.
Please suggest me steps involved to build llvm source using Eclipse.
Note: Platform ubuntu.
Tools/versions used by me:
eclipse 4.3 Kepler, CDT 8.2.1
Oracle Java SDK 1.7.0_45
cmake 2.8.11.2
LLVM 3.5svn
Create a folder for CDT project files in your workspace. I.e. workspace/llvm.
Generate CDT project files with cmake (being in workspace/llvm):
cmake -G "Eclipse CDT4 - Unix Makefiles" -D_ECLIPSE_VERSION=4.3 ../../src/llvm
If eclipse version is not set the generator will assume 3.7 and inform you that it can be changed by CMAKE_ECLIPSE_VERSION option, what turns out to be the wrong name for that option.
Increase eclipse heap allocation size. The default setting is too small and C++ Indexer would hang the whole IDE. Replace default settings with
-Xms512m
-Xmx1024m
in eclipse.ini file.
Import the project into your workspace. File → Import... → General → Existing Projects into Workspace.
The project llvm can be built as one (option Build Project). There are also separated targets created for every lib and executable, placed in [Targets] folder. Individual target can be built with option Make Targets → Build...
You can use cmake -G"Eclipse CDT4 - Unix Makefiles" to produce the native Eclipse set of projects. It might require tweaking your CMakeLists.txt to remove the check for in-source builds (since Eclipse can only support project files and sources in the same directory, but for some reason the current CMakeLists allows it for MSVS only) - just follow the error messages.

Setting up Eclipse for other programming languages

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.