Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Today's Messages (on)  | Unanswered Messages (off)

Forum: C / C++ IDE (CDT)
 Topic: Debugging with gdb on macOS Sierra
Re: Debugging with gdb on macOS Sierra [message #1766845 is a reply to message #1766817] Wed, 28 June 2017 06:36
Stephan Muehlstrasser is currently offline Stephan MuehlstrasserFriend
Messages: 24
Registered: July 2009
Junior Member
I found the following bug report about this problem: https://bugs.eclipse.org/bugs/show_bug.cgi?id=516027

It contains the description of a workaround in Comment 5:

Quote:
My workaround is trying to set the arguments in .gdbinit file instead, just put the line like:
-------------------
set args arg1 arg2
-------------------


With that workaround I now can debug successfully with Eclipse Neon.3 on macOS Sierra.
 Topic: Where is the SFTP (application transfer protocol) called in source code
Re: Where is the SFTP (application transfer protocol) called in source code [message #1766848 is a reply to message #1766830] Wed, 28 June 2017 07:06
Mickae Barril is currently offline Mickae BarrilFriend
Messages: 14
Registered: May 2017
Junior Member
No, i got a SSH server on the target but no SFTP server
Re: Where is the SFTP (application transfer protocol) called in source code [message #1766853 is a reply to message #1766848] Wed, 28 June 2017 09:00
Jonah Graham is currently offline Jonah GrahamFriend
Messages: 276
Registered: June 2014
Senior Member
I assume it is in TM: https://www.eclipse.org/tm/ but I am not sure. Note that CDT took the decision last year to move from RSE (part of TM) to o.e.remote for remote target management. See https://bugs.eclipse.org/452356
 Topic: output parser with iar-compiler
output parser with iar-compiler [message #1766856] Wed, 28 June 2017 09:52
Christian Schmidt is currently offline Christian SchmidtFriend
Messages: 1
Registered: June 2017
Junior Member
I use a project with an existing makefile which includes a lot of defines. Eclipse does not recognize the defines in the makefile. So I tried to use the CDT GCC Build Output Parser. Without success. Eclipse still greyed out the code. I

I used the following Compiler command pattern:
(.*iccarm)|(gcc)|([gc]\+\+)|(clang)

and the build-processes create this outputs:
C:/Program\ Files\ \(x86\)/IAR\ Systems/Embedded\ Workbench\ 7.6/arm/bin/iccarm -D__BUILD_NUM__=18099 -D__BUILD_DATE_YEAR__=2017 -D__BUILD_DATE_MONTH__=6 -D__BUILD_DATE_DAY__=28 -D__BUILD_USER__=5 -DCONTIKI=1

So in my opinion the output parser should recognize
CONTIKI=1
.

After the build i also tried new indexing and refreshed the files.
 Topic: Want to compile c++ eclipse project from command prompt
Re: Want to compile c++ eclipse project from command prompt [message #1766852 is a reply to message #1766803] Wed, 28 June 2017 08:58
Jonah Graham is currently offline Jonah GrahamFriend
Messages: 276
Registered: June 2014
Senior Member
Hi,

Please copy and paste error messages as plain text. AFAICT the command line is incomplete in the screenshot.

One thing that looks strange is the space between - and build. Normally I would expect to specify "all" or "projectname/config" to -build too.

Again, I recommend that you upgrade to newer Eclipse unless you have strong reason to use ancient version. Or at least test with the newer version to confirm that the issue you are seeing has not been fixed.

Re: Want to compile c++ eclipse project from command prompt [message #1766859 is a reply to message #1766852] Wed, 28 June 2017 10:17
Sudhu K is currently offline Sudhu KFriend
Messages: 5
Registered: June 2017
Junior Member
Hi ,
after removing the space between the - and build( -build) . I am not getting any error. But my c++ project also not compiling.Means once I give the below command,
C:\Piranha_Development_Tools\Eclipse_Kepler_64bit\eclipsec.exe -nosplash --launcher.suppressErrors -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data C:\Test_Trunk\TrunkTestWS -build k64f

it will return to command prompt with in few seconds.

I want to compile my c++ eclipse project and generate the bin file.
I got the below command from google. But only my eclipse project is launching but no build is happening.
eclipse -nosplash 
        -application org.eclipse.cdt.managedbuilder.core.headlessbuild 
        -import {[uri:/]/path/to/project} 
        -build {project_name | all} 
        -cleanBuild {projec_name | all}
Re: Want to compile c++ eclipse project from command prompt [message #1766863 is a reply to message #1766852] Wed, 28 June 2017 10:46
Sudhu K is currently offline Sudhu KFriend
Messages: 5
Registered: June 2017
Junior Member
Hi,

For me if I give below command,
To list and view the full set of available options, use the command:
eclipsec.exe -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild

It is not listing anything.

Thanks & Regards,
Abhipsa
 Topic: Remote debug window (Remote app file path attribute)
Remote debug window (Remote app file path attribute) [message #1766867] Wed, 28 June 2017 11:29
Mickae Barril is currently offline Mickae BarrilFriend
Messages: 14
Registered: May 2017
Junior Member
Dear all,

i'm looking for the default attribute used to set the "Remote Absolute file path" (remote debug window).

My concern is about setting this field with a default path.

Does anyone know which attribute could be set from an .ini file to do so?


Thank you in advance

MB
 Topic: How to set up library with project file for C++
Re: How to set up library with project file for C++ [message #1766930 is a reply to message #1766606] Wed, 28 June 2017 19:40
David Vavra is currently online David VavraFriend
Messages: 563
Registered: October 2012
Senior Member
Repetitive in what way? You only need to inform Eclipse once about the location and name of the library and only if Eclipse is generating a makefile for you.
It's a subject with many variations. I gave examples of some of them.
There were no instructions.
Eclipse is really just an editor with the capability of calling external tools to perform a build and later to debug the build.
You need to understand how the tools that Eclipse is using want the information.


 Topic: Still can't include 3rdparty library after an hour of various tutorials
Re: Still can't include 3rdparty library after an hour of various tutorials [message #1766931 is a reply to message #1766600] Wed, 28 June 2017 19:59
David Vavra is currently online David VavraFriend
Messages: 563
Registered: October 2012
Senior Member
If you think the parameter following -l (small L) is a path then you don't understand what the option means.
See ftp://ftp.gnu.org/old-gnu/Manuals/ld-2.9.1/html_node/ld_3.html

Eclipse is an editor with capabilities to call external tools to perform a build.
It primarily expects to use GNU Make to actually execute the tools.
https://www.gnu.org/software/make/manual/

You need to understand how to build an executable using the compiler and linker then executing them via Make.
Once you understand that, then what Eclipse is doing is fairly obvious.
Explaining how the external tools work and what they expect is beyond the scope of this forum.


I suggest you look for tutorials on how to compile an link an executable from the command line and using Make.
Eclipse pretty much expects you to have this understanding.
There are a number of excellent tutorials available but only you know how much detail you need.

If you are using GCC to compile and link then you could try these
https://gcc.gnu.org/onlinedocs/
https://gcc.gnu.org/onlinedocs/gcc/
https://gcc.gnu.org/onlinedocs/gcc.pdf

http://pages.cs.wisc.edu/~beechung/ref/gcc-intro.html
https://www3.ntu.edu.sg/home/ehchua/programming/cpp/gcc_make.html

 Topic: IAR Linker Issue
Re: IAR Linker Issue [message #1766932 is a reply to message #1766637] Wed, 28 June 2017 20:06
David Vavra is currently online David VavraFriend
Messages: 563
Registered: October 2012
Senior Member
Sounds like an issue to discuss with IAR and not an Eclipse/CDT issue.
There is no linker in Eclipse.
It does have the ability to build a link rule for Make but what it does depends on the linker being used.
Any issues with the linker should be taken up by the providers of that linker.


Forum: EMF
 Topic: XText(L) -> model(L) -> JVM bytecode; which toolchain for that?
Re: XText(L) -> model(L) -> JVM bytecode; which toolchain for that? [message #1766912 is a reply to message #1766834] Wed, 28 June 2017 16:59
Ed Willink is currently offline Ed WillinkFriend
Messages: 5276
Registered: July 2009
Senior Member
Similar message answered on Modeling forum.
 Topic: Remove dangling references
Remove dangling references [message #1766870] Wed, 28 June 2017 11:57
Jim 20100 is currently offline Jim 20100Friend
Messages: 49
Registered: June 2016
Member
Hello,

I have a bidirectional link between 2 classes.
The cardinality is (m,n).

Ex:
- root
- node A
- node B (contains a link to C)
- node C (levels: contains a link to B)


if I remove Node A or B, the Node C contains a dangling reference.
It prevents the user to save the document (but the modification star disapears, which is then dangerous).

If I read this document (https://eclipsesource.com/blogs/2015/05/26/emf-dos-and-donts-11/) I thought the bad link should be removed as well.

I read on other forum that I can easily find the dangling references and remove them by myself with EcoreUtil.UnresolvedProxyCrossReferencer.

I tried to find the dangling references but nothing with that code below.
For the argument of the find method, I tested on the root, on the node C, and even on the levels nodes.

Map<EObject,Collection<EStructuralFeature.Setting>> unresolvedProxies=EcoreUtil.UnresolvedProxyCrossReferencer.find(node);

if (unresolvedProxies.size() > 0) {


Please help.

Jim
Re: Remove dangling references [message #1766872 is a reply to message #1766870] Wed, 28 June 2017 12:19
Ed Willink is currently offline Ed WillinkFriend
Messages: 5276
Registered: July 2009
Senior Member
Hi

If they really are bidirectional references, I think they should be removed too. So I suspect that they are not genuine bidirectional references but without any repro I can do no more than suspect.

Regards

Ed Willink
Re: Remove dangling references [message #1766873 is a reply to message #1766872] Wed, 28 June 2017 12:33
Ed Merks is currently offline Ed MerksFriend
Messages: 28545
Registered: July 2009
Senior Member
An dangling references isn't going to be an unresolved proxy, it's just an object that's not contained by any resource. Perhaps the easiest would be to use org.eclipse.emf.ecore.xmi.XMLResource.OPTION_PROCESS_DANGLING_HREF as a save option, to discard dangling references rather than throw an exception. Is that okay?
Re: Remove dangling references [message #1766878 is a reply to message #1766873] Wed, 28 June 2017 13:26
Jim 20100 is currently offline Jim 20100Friend
Messages: 49
Registered: June 2016
Member
Hi all,

In fact it is a bit more complex than that.

I have an Engineering object, which contains a Quantity attribute.
The Engineering object contains a link to several nodes containing a Weight attribute.
The Quantity field of the Engineering is equal to the sum of the Weight of all linked node.

So with the event management I can detect when the weight changes, and with the bidirectional link, I update the Engineering Quantity attribute.
But when you delete a linked node, I am not able to remove the link from the Engineering and then recalculate the Quantity field of this Engineering.
I need to remove the dangling link, and recalculate the Quantity.

I think I mix a bit the proxies resolution and the dangling links. Can you explain in a few words pls?

Can you explain more the org.eclipse.emf.ecore.xmi.XMLResource.OPTION_PROCESS_DANGLING_HREF parameter?
How it works? how to use it?


Re: Remove dangling references [message #1766933 is a reply to message #1766878] Wed, 28 June 2017 20:28
Andreas Graf is currently offline Andreas GrafFriend
Messages: 198
Registered: July 2009
Senior Member
Why not make the quantity attribute a derived attribute? And calculate it only when its queried?
 Topic: Synchronizing containment and cross reference lists
Re: Synchronizing containment and cross reference lists [message #1766934 is a reply to message #1766275] Wed, 28 June 2017 20:32
Andreas Graf is currently offline Andreas GrafFriend
Messages: 198
Registered: July 2009
Senior Member
You could implement an EContentAdapter to listen to model changes and add your update logic in the notification. So you do not have to take care of that at all the pieces of code where you modify the model.
Forum: 4DIAC - Framework for Distributed Industrial Automation and Control
 Topic: How to use FORTE for PLC
Re: How to use FORTE for PLC [message #1766935 is a reply to message #1766552] Wed, 28 June 2017 20:54
Alois Zoitl is currently online Alois ZoitlFriend
Messages: 334
Registered: January 2014
Senior Member
In order to use FORTE with eCos you need to first have the eCos libraries and includes for your system. Then you can setup the CMake configuration for FORTE using cross compiling specifying the eCos -compiler, libraries and includes. Based on that you can build a FORTE application which will uitlize the eCos for your platform. This may require some adjustments on FORTE side depending on your platform. You can have a look on the arch/eCoS/phycore directory to see how this was done for the phycore at91 board.

4diac does not LAD. 4daic is an implementation of EIC 6199 standard for distributed control applications. The main element is an event driven function block. Applicaitons and FBs can be developed with the 4diac-ide and also deployed to supported devices. Please have a look on your documenation (https://www.eclipse.org/4diac/en_help.php) for an overview and tutorials how to use 4diac.



Current Time: Wed Jun 28 21:01:45 GMT 2017

Powered by FUDForum. Page generated in 0.02828 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software