Which IDE is used by DPDK developers, and how do they debug their code? - eclipse

I want to know if there is an IDE that is used by DPDK developers to develop a DPDK. I use the 'make' tool to build DPDK and DPDK example applications. I want to debug the code and want to know if there's any IDE that I can use. DPDK is developed in C language.

update: Intel system studio is now supported with free license model. On linux this is supported with eclipse with all tools. Have a try.
I prefer to use GDB with TUI enabled with DPDK library and example build with '-g'. You can achieve this by passing EXTRA_CFLAGS=" -g " make. I have also seen people using eclipse with remote gdb too.
based on the follow-up comment, please find the answer to using eclipse IDE on Linux for DPDK setup shared below
Note: I do not use Eclipse IDE but once tried it out C projects with Makefile.
as far as I can recollect one needs to install Eclipse with
Eclipse-CDT plugin.
Then create the new project with the option Makefile exists.
Add the project with files.
Here we have 2 options:
add the Makefile of the target build. or
add the Makefile of the test application (example l3fwd).
It will be really helpful if either Makefile is edited with -g or EXTRACFLAGS=-g is passed.
You can check how to import cmake to eclipse project.

Related

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.

Building OPCUA for vxworks using cmake

I am building OPCUA for vxworks 6.6. I got a information in
http://forum.unified-automation.com/post2724.html#p2724
It is mentioned as below "create a new CMake project for "Eclipse CDT4 - Unix Makefiles" with the vxWorks CMake toolchainfile."
Here what does author mean by "vxWorks CMake toolchainfile."?
I am also looking for steps in building in generate project for vxworks workbench from CMake, like what are prequestie software to be avialable (I have CMake 3.2.2 installed on windows 7 machine). It would be good if steps are explained with simple Helloworld application how do we generate vxworks workbench project from windows CMake3.2.2.
thanks
Here what does author mean by "vxWorks CMake toolchainfile."?
A toolchain file is a file with informations about the toolchain used for a target platform. It contains compiler to use, include paths, libraries etc.
The problem: CMake doesn't support VxWorks.
What you can do:
Does OPCUA already contain one (or other kind of cmake support)?
If so, you are on the lucky side ...
Write your own toolchain file
It's not that difficult
Recommendation: Write a toolchain file and platformfiles describing your target platform (Some info: here (useful!), here and here)
Search if you can find one in the internet
Use the basic Cross-compile features of CMake
(in the CMake GUI: Use "Specify options for cross-compiling")
In some cases this is enough; set compilers and include paths
This is more or less what the toolchain file does
I am also looking for steps in building in generate project for vxworks workbench from CMake
As VxWorks, the Workbench is not an official supported IDE. Therefore you can't generate Workbench project directly. But since the WB is Eclipse based, you may use the usual Eclipse project files. Disadvantage: Not all WB features are available (but you can achieve most of these with CMake).
like what are prequestie software to be avialable
Just CMake, the Workbench and the usual VxWorks platform (Compiler, libraries, BSP, ...).
It would be good if steps are explained with simple Helloworld application how do we generate vxworks workbench project from windows CMake3.2.2.
As you have seen: this is not that easy. But the basic steps:
Write a toolchain file (if you don't have one) and maybe platform files (depending on how many platforms / compiler you want to support). You get some help from the link above
Check if your toolchain file leads to successful compilation
Generate Eclipse project files (infos: CMake:Eclipse UNIX Tutorial and Eclipse CDT4 Generator)

can eclipse C/C++ IDE be used for java too?

I have downloaded .tar.gz install file for C/C++ eclipse IDE.
Can it also be used for java or do I need additional ?
Yes it is, you should install the right plugin - JDT (look at Help->Install new Software)
Base on wiki link:
In computer programming, Eclipse is an integrated development
environment (IDE). It contains a base workspace and an extensible
plug-in system for customizing the environment.
That means Eclipse is just a platform, and you can install any plugins for eclipse. On Eclipse site, you see some packages such as Eclipse CDT Eclipse JDT ... Because they just want you to have a convenient environment for working: just download and run. You can download any versions, and install enough other plugins and they will works well. Here is some tutorials: official link and another nice link
But my recommendation is:
you don't know how "enough" is (as newbie). So the result will be hard because you don't choose enough packages for supporting your languages. And Eclipse Foundation has made it for you.
You shouldn't use many languages in same Eclipse distribution (although you can switch to other workspace easily). Many languages mean many installed packages, and this will slow down your eclipse so much because eclipse must loads more plugins into memory, loads more projects ... This is my experience. So, each language, each eclipse distribution, each workspace. That's a trick.
And answering directly to your question:YES. You can use that version for programming java, but will need to install JDT (Java Development Toolkit) plugin.
Hope this help :)

How to install Parallel Tools Platform into my existing Eclipse IDE?

Hi guys I'm using OS X right now. It seems like I can't compile my parallel code with default clang in OS X so I decided to install the Parallel Tools Platform into my Eclipse, which I use to write Java.
The problem is that I can't find the right package named Parallel Tools Platform in the Eclipse Market Place. What's the name of that package?
I've already downloaded the CDT but have no idea where the parallel tools are. Can someone help me with this please?
Thank you.
Another question is since the default clang doesn't support openMP, I installed g++ but when compiling it still can't find <omg.h>, so I have to use Eclipse. How to use g++ or clang compile openMP in OS X?
You'll find instructions for adding it into your existing install at https://wiki.eclipse.org/PTP/release_notes/8.0#Install_PTP . Maybe use a different Question for your second question.

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.