Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Any comment is welcome to my topics in Eclipse Forum
  • From: Ming Cheng <chengm349@xxxxxxxxxxx>
  • Date: Tue, 7 Jan 2020 09:42:56 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AFzNNvPCOk6M/B304qe3LFMY8DrmN0pk95SrdAYqLKU=; b=Iv80Vn49vJQ9kankRCdBycajiVyTDWC+FuOGDpqDqZ789lUHl1NyDbkWd4NX8FK1oG50hsIpvM/gHWRLwSsO5TUTKpe3rl+KvnNYcLKrlT/Cp0CKmpjxGWC8XTwvOFjPNo7+cr4wdXfdqJ/MOTHnT2z+3FDW4iPBXjvqTYLhaAd0hGlrMDbPfC2x+uN1qwL9e6jsW9ybPJONgI0jzb4fAUgd+cXe2xqrk36K6tN2MlKYb5qYbqNz0n0B31X9hRVjkJ9Q7He0uFOWoYkX9HwB8kyVJdBEs2PDBRTTfoXOdp1s97hYnPeZTBatPEI8/IdPFgGqitH6dXfujpaNFpVDyA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PjopVjRyMJ2vQ4KQAxd2LcQ7qFRW5mTKKphVQdnzaZ7/Ldrq30JBw6NBGbit7lpH0H31fTv39Ye/0ZgLicQcDuIK4N6740DrJ/cYLZ6hpuy5kRQxRg8lSsp5lQcp+k5Vx1+DS2lgLNhSPks9WJ80rTCkaf1+ojDc5y9IPfLbr8jAstHpypMuLCaIPk3KL77b88x825hlh/JyrxJdrjbdfXIRs2AS1H5tCkx1Mf1R86B+Oa5lzusj23BkXIQEhoiO24pDVWdrvzqKZAClyMnqiWJHqKaHXsMbYs9ykhHco2YkfmsIix11vk7YC+n5y2SWIIcqciNjIhblrMeZkUKzew==
  • Delivered-to: cdt-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/cdt-dev>
  • List-help: <mailto:cdt-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/cdt-dev>, <mailto:cdt-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/cdt-dev>, <mailto:cdt-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHVqwsPman4yV3TP06y8wYySKvP3qeqyVwAgA0X656AAAg4AIAEX/kDgACj6ICAASpIK4AAX7CAgADAhK+AACe9mYAALVUAgAACiv6AATrMUIAAAZEAgAANKZSAAAzMAIAAGUtjgAAK8p2AAAWOT4AeDb/ngAAKFqk=
  • Thread-topic: [cdt-dev] Any comment is welcome to my topics in Eclipse Forum

I also tried maven within Eclipse:

 

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M3:enforce (enforce-maven-version) on project org.eclipse.cdt.core.native: org.apache.maven.plugins.enforcer.RequireMavenVersion failed with message:

[ERROR] Detected Maven Version: 3.6.3 is not in the allowed range [3.6.0,3.6.0].

[ERROR] -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

 

 

Must be 3.6.0?

 

Thanks.

Sent from Mail for Windows 10

 

From: Ming Cheng
Sent: Tuesday, January 7, 2020 5:14 PM
To: CDT General developers list.
Subject: RE: [cdt-dev] Any comment is welcome to my topics in Eclipse Forum

 

Hi,

 

I followed the instruction below:

 

Building the CDT p2 repository

You can generate your own CDT zip using Maven.

·         Install Maven if not already installed (mvn command). Maven 3.3 or greater is required.

·         In command line, change the directory to the cdt git directory (the top folder that contains a pom.xml file)

·         Run "mvn package". This will take a lot longer the first time because it needs to download a lot of things. If it seems stuck on a download and you're behind a proxy, make sure that you set your Maven proxy settings.

·         If the build is succesful, the zip will be in org.eclipse.cdt/releng/org.eclipse.cdt.repo/target/org.eclipse.cdt.repo.zip

·         Go to Install new software, click Add, Archive and browse for to the zip

You should now be able to install or update CDT using your modified code.

 

But encountered these error:

 

[ERROR] The build could not read 1 project -> [Help 1]

[ERROR]

[ERROR]   The project org.eclipse.cdt:cdt-parent:9.10.0-SNAPSHOT (/fs02/home/mcheng/workspace/org.eclipse.cdt/pom.xml) has 126 errors

[ERROR]     Child module /fs02/home/mcheng/workspace/org.eclipse.cdt/build/org.eclipse.cdt.build.gcc.core/pom.xml of /fs02/home/mcheng/workspace/org.eclipse.cdt/pom.xml does not exist

[ERROR]     Child module /fs02/home/mcheng/workspace/org.eclipse.cdt/build/org.eclipse.cdt.build.gcc.ui/pom.xml of /fs02/home/mcheng/workspace/org.eclipse.cdt/pom.xml does not exist

[ERROR]     Child module /fs02/home/mcheng/workspace/org.eclipse.cdt/build/org.eclipse.cdt.make.core/pom.xml of /fs02/home/mcheng/workspace/org.eclipse.cdt/pom.xml does not exist

 

Really there are no pom.xml under org.eclipse.cdt.build.gcc.core etc.

 

I was advised not to use Maven to build CDT p2 but so far not ok with Eclipse neither.

 

My interpretation of the directory to the cdt git directory is org.eclipse.cdt with these content:

 

[mcheng@pioneer org.eclipse.cdt]$ ls

build  core   debug                       doc  dsf-gdb  launch  lrparser  memory  pom.xml  releng  testsrunner  upc   visualizer  xlc

codan  cross  disable_intro_in_tests.ini  dsf  jtag     llvm    lsp       native  qt       remote  toolchains   util  windows

 

 

Thanks.

Sent from Mail for Windows 10

 

From: Ming Cheng
Sent: Thursday, December 19, 2019 2:11 PM
To: CDT General developers list.
Subject: Re: [cdt-dev] Any comment is welcome to my topics in Eclipse Forum

 

We may ignore UMLet part. What I want to achieve now is to compile original CDT code successfully. Then I may add one comment line and can still compile ok. Hope make sense.

 

Sent from Mail for Windows 10

 

From: Ming Cheng
Sent: Thursday, December 19, 2019 1:54 PM
To: CDT General developers list.
Subject: Re: [cdt-dev] Any comment is welcome to my topics in Eclipse Forum

 

To me before I could change anything in CDT src, what I want to achieve is:

 

  • Get CDT src from Eclipse repo
  • Compile it and get those jars.

 

Article/tutorial are all great but most time they could not bring a newbie to be expert.

 

My Eclipse env

 

Eclipse IDE for Java Developers

 

Version: 2019-09 R (4.13.0)

Build id: 20190917-1200

 

CDT branch is 9.10.0.

 

What’s the ABC steps to generate all CDT jars?

 

Thanks.

 

Sent from Mail for Windows 10

 

From: Ming Cheng
Sent: Thursday, December 19, 2019 1:13 PM
To: CDT General developers list.
Subject: Re: [cdt-dev] Any comment is welcome to my topics in Eclipse Forum

 

I’ll go through the tutorial.

 

Now it’s an experimental try. If it’s successful, it may become a internal tool (kind of commercial) .

 

I asked UMLet, they did not bother.

 

Sent from Mail for Windows 10

 

From: Jonah Graham
Sent: Thursday, December 19, 2019 11:40 AM
To: CDT General developers list.
Subject: Re: [cdt-dev] Any comment is welcome to my topics in Eclipse Forum

 

Have a look at this great tutorial on how to write eclipse plugins. Some of it goes into issues that you don't need to know about yet, so focus on chapters 1 to 5 to start, and have a look at 17 to 22 for more topics. As you become more experienced you can revisit the other chapters. 

 

https://www.vogella.com/tutorials/EclipsePlugin/article.html

 

BTW, it sounds like your goal is to extend umlet? Have you engaged anyone from that project yet? As they already have eclipse plugins, they may have better advice on how to edit their own code. I/we can try to point you in the right direction of how to use CDT code, but as you seem to be going off the beaten path you are probably going to have to figure your own way through on most of this. 

 

PS what is the context of your work. For example is this for a commercial product, open source project or academic work? 

 

Thanks, 

Jonah 

 

On Wed., Dec. 18, 2019, 22:01 Ming Cheng, <chengm349@xxxxxxxxxxx> wrote:

·         In the editor that just opened, click Set as Target Platform on the top right.

Eclipse will now download the required dependencies, which may take some time the first time. Once this is done, it should trigger a full build of your workspace and a lot of errors should go away.

Issue 1

I couldn’t Set as Target Platform on the top right.

However I can see a lot of .class files being generated.

 

Launching

After all the CDT projects have successfully built, you'll probably want to run and/or do source-level debugging of the CDT code. Open the PDE (Plug-in Development Environment) perspective:  Window->Perspective->Other->"Plug in Development". There, you'll see a project with the name org.eclipse.cdt.ui, right click the org.eclipse.cdt.ui project, select "Run As"->"eclipse application". You should see a new instance of eclipse - with the latest version of eclipse CDT plugins.

 

Issue 2

I couldn’t follow the above steps bcos I can’t find a project with the name org.eclipse.cdt.ui.

 

 

Issue 3.

 

How to generate jar files like these:

 

 

Sent from Mail for Windows 10

 

From: Jonah Graham
Sent: Thursday, December 19, 2019 10:07 AM
To: CDT General developers list.
Subject: Re: [cdt-dev] Any comment is welcome to my topics in Eclipse Forum

 

It's in releng/org.eclipse.cdt.target, try importing it directly. Here is the link to it in the git browser:

 

https://git.eclipse.org/c/cdt/org.eclipse.cdt.git/tree/releng/org.eclipse.cdt.target

 

On Wed., Dec. 18, 2019, 21:02 Ming Cheng, <chengm349@xxxxxxxxxxx> wrote:

o set the target platform:

·         Expand the "org.eclipse.cdt.target" project.

·         Double-click on cdt.target.

·         In the editor that just opened, click Set as Target Platform on the top right.

 

When clone and import, I selected all, but still can’t see “org.eclipse.cdt.target" project.

Now I am using 9.10.0

 

Sent from Mail for Windows 10

 

From: Ming Cheng
Sent: Wednesday, December 18, 2019 3:15 PM
To: CDT General developers list.
Subject: Re: [cdt-dev] Any comment is welcome to my topics in Eclipse Forum

 

Got it and thanks Christian.

 

Sent from Mail for Windows 10

 

From: cdt-dev-bounces@xxxxxxxxxxx <cdt-dev-bounces@xxxxxxxxxxx> on behalf of Christian Walther <walther@xxxxxxxx>
Sent: Wednesday, December 18, 2019 3:05:20 PM
To: CDT General developers list. <cdt-dev@xxxxxxxxxxx>
Subject: Re: [cdt-dev] Any comment is welcome to my topics in Eclipse Forum

 

Ming Cheng wrote:
> I don’t know how to dynamically debug Eclipse plugin code

> ...

> I tried to build with command:

> mvn clean install

> but with a lot of error (please refer to the attached file).

I'm not sure, but at a glance it could be that your Maven and/or Tycho are too old for pom-less building. Look inside the top-level pom.xml, it mentions some versions.

However, for debugging it is more convenient to build in Eclipse (PDE) than with Maven. It is described very well in https://wiki.eclipse.org/Getting_started_with_CDT_development .

 -Christian
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev

 

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev

 

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev

 

 

 

 

 


Back to the top