Building OPCUA for vxworks using cmake - eclipse

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)

Related

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

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.

Eclipse ARM development

I am failing the very fist step in getting Eclipse (which is completely new to me) ready for ARM development.
I installed Eclipse in windows 10. I think I am supposed to install xpm, but I have no idea where to type in this command:
xpm install --global #gnu-mcu-eclipse/arm-none-eabi-gcc
Or is this for linux users only?
PS: I installed the cpp edition of Eclipse, that's all I have at the moment.
You should install DS-5 instead.
DS-5 is an IDE for ARM systems published by none other than ARM itself, based on Eclipse.
The community edition is free of charge.
https://developer.arm.com/tools-and-software/embedded/legacy-tools/ds-5-development-studio/editions/community-edition
All you have to do is to install DS-5 community edition plus the right toolchains for your target, released by Linaro.
https://releases.linaro.org/components/toolchain/binaries/latest-7/
Below is how to add the toolchains to the environment:
https://developer.arm.com/tools-and-software/embedded/legacy-tools/ds-5-development-studio/resources/tutorials/adding-new-compiler-toolchains-to-ds-5
For future reference (maybe only for myself :))
UPDATE:
After reading a lot about ARM development I finally came on the path of STM32. There is a great book available via leanpub: Mastering STM32.
The free available sample describes in great detail how to setup the tool chain for ARM development in Eclipse. I managed to get it working that way, so probably everybody can :).
The link to the book:
https://www.carminenoviello.com/mastering-stm32/
Chapter 2.
UPDATE:
https://github.com/gnu-mcu-eclipse/org.eclipse.epp.packages/releases/
Install node.js, which can be downloaded here:
https://nodejs.org/en/
After install nodejs, install xpm as follows:
npm install --global xpm
Then, install the toolchain for Eclipse:
xpm install --global #gnu-mcu-eclipse/arm-none-eabi-gcc
Install the build-tools (windows only):
xpm install --global #gnu-mcu-eclipse/windows-build-tools
Install CDT
Start Eclipse
Help
Install new software
Work with type 'Neon' (autocompletes in 'GNU MCU...')
Expand 'Programming language'
Install 'C/C++ Development Tools' and next next finish, restart Eclipse
Install CMSIS
Start Eclipse
Help
Install new software
Work with 'All available sites'
Search for 'CMSIS'
Check 'GNU/ARM C/C++ Packs (experimental)
Next, next, finish
Install GNU MCU Eclipse via marketplace
Start Eclipse
Help
Marketplace
Search for 'GNU MCU Eclipse'
Install
Restart Eclipse
First test project
Start Eclipse
File
New C++ project
A managed build (CDT)
Project name 'test'
Executable 'STM32F7xx C/C++ Project'
Next
Use system calls 'Semihosting (POSIX system calls via host)'
Next, Next, Next, Finish
Assign board
Right click Test project
Properties
C/C++ build
Settings
- Devices
Follow the remaining steps described here
Note that with Eclipse 4.17 (2020_09 release) you now have
Builds for Linux AArch64 (aka Arm64) added
Binaries for Linux AArch64 (Arm64) are available for testing.
With the raising popularity of this architecture people can continue using the Eclipse IDE even when changing their machine.
See bug 565836, CL 167308 and commit 149ccaf.

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.

How to use the "Resource Files" logical folder in Netbeans IDe for C/C++?

As can be seen in the below screenshot, a Netbeans C/C++ project allows the addition of resource files. When I Google things along the lines of "Netbeans C/C++ 'Resource Files," nothing useful comes up. As such, I ask here: what are they and how can I use them? Is it just a logical folder that the application can use at runtime with regular fstreams, or does it allow the embedding of files in the final executable similar to Java's getClass().getResourceAsStream() mechanism?
NOTE: I am using g++ 5.4.0 on Ubuntu 16.04 LTS x64 if these are platform independent in any way (in which case I would like to know how to use them on Windows and other versions of Linux as well).

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.