API development in Linux using Open source IDE like Netbeans or Eclipse

Find and share HowTos to various installations / configurations!
3 posts • Page 1 of 1
ragrawal
Posts:22
Joined: Tue Dec 14, 2010 5:53 am

API development in Linux using Open source IDE like Netbeans or Eclipse

Post by ragrawal »

How the Open source IDEs like Netbeans or Eclipse can be configured for API development , so that the code can be built from the IDE itself.
I would like to also know how to debug the API code using the IDE.


Thanks.

Rajesh

ragrawal
Posts:22
Joined: Tue Dec 14, 2010 5:53 am

Re: API development in Linux using Open source IDE like Netbeans or Eclipse

Post by ragrawal »

Hello all,

I forgot to include the word manager, by API I mean "API Manager" or "PVSS Driver Manager".

Rajesh

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: API development in Linux using Open source IDE like Netbeans or Eclipse

Post by mkoller »

Here are the steps for Linux (openSuse 12.1) using qtcreator (assuming you already have installed WinCC_OA 3.11 api and qtcreator):
In my tcsh:
cd /opt/WinCC_OA/3.11/api/
setenv API_ROOT /opt/WinCC_OA/3.11/api/
setenv PLATFORM `${API_ROOT}/platform`
cd /tmp/
mkdir API
cd API
$API_ROOT/newWCCILManager.sh Test
qtcreator
Select the menu -> File -> New File or Project
choose "Import Project" and "Import Existing Project" -> Choose...
Project Name: Test, Location: /tmp/API/Test
Next
Define "*.o" in the filter and click "Apply Filter", then select all files except WCCOATest (the executable)
Next -> Finish
In the left pane select "Projects", and in "Build Steps" select Details and deselect "all" (because our Makefile has no target "all")

Then you are ready to build. Either click CTRL+B or select Build all from the Build menu.

In the Projecst section at the top you should then also select "Run" and enter the Command: WCCOATest
and the start options (Arguments:) you need for your manager - at least the WinCC_OA project, e.g. "-proj test311"

If you now set e.g. a breakpoint in TestMain.cxx line 17 (first statement in the main()) function, you can press F5
and you're inside a debugging session.

3 posts • Page 1 of 1