All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: lttng git repositories and Eclipse
@ 2014-04-30 16:29 Thibault, Daniel
  0 siblings, 0 replies; 3+ messages in thread
From: Thibault, Daniel @ 2014-04-30 16:29 UTC (permalink / raw)
  To: lttng-dev

Date: Wed, 30 Apr 2014 11:57:34 -0400
From: Marc-André Laperle <marc-andre.laperle@ericsson.com>

> On 14-04-30 11:48 AM, Thibault, Daniel wrote:
> > File: Import...
> > [Import]
> > Git > Projects from Git
> > (Next)
> > [...]
> > [Cloning from http://git.lttng.org/lttng-ust.git: Select a wizard to use for importing projects]
> > Use the New Project wizard
> >
> > C/C++ > C Project
> >
> >   Project type: GNU Autotools only allows "Empty project" which is no good.
> >    [...]
>
> Try it this way it should work. Change the location to point to your lttng-ust folder. Basically, every .configure folder should map to a
> different CDT project. "Empty project" in this case means that it just doesn't create source files for you. "Makefile Project with Existing
> Code" does pretty much the same thing as a new project with Makefile > Empty project but there's no Autotools equivalent.
>
> Marc-André

   Thanks, that works!

   What's odd is that the console, in this case, shows it starts the configuration with 'sh -c "autoreconf -i"', just like it did when I converted the imported general project to a C/C++ Autotools Project.  Why does it succeed in running bootstrap when the other fails?

Daniel U. Thibault
Protection des systèmes et contremesures (PSC) | Systems Protection & Countermeasures (SPC)
Cyber sécurité pour les missions essentielles (CME) | Mission Critical Cyber Security (MCCS)
R & D pour la défense Canada - Valcartier (RDDC Valcartier) | Defence R&D Canada - Valcartier (DRDC Valcartier)
2459 route de la Bravoure
Québec QC  G3J 1X5
CANADA
Vox : (418) 844-4000 x4245
Fax : (418) 844-4538
NAC : 918V QSDJ <http://www.travelgis.com/map.asp?addr=918V%20QSDJ>
Gouvernement du Canada | Government of Canada
<http://www.valcartier.drdc-rddc.gc.ca/>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: lttng git repositories and Eclipse
       [not found] <48CF5AC71E61DB46B70D0F388054EFFD3599E43E@VAL-E-01.valcartier.drdc-rddc.gc.ca>
@ 2014-04-30 15:57 ` Marc-André Laperle
  0 siblings, 0 replies; 3+ messages in thread
From: Marc-André Laperle @ 2014-04-30 15:57 UTC (permalink / raw)
  To: lttng-dev

Hi Daniel,

This sounds more of a question for the CDT mailing list or forum.

On 14-04-30 11:48 AM, Thibault, Daniel wrote:
> In the first case, Project type: GNU Autotools only allows "Empty project" which is no good.

Try it this way it should work. Change the location to point to the your
lttng-ust folder. Basically, every .configure folder should map to a
different CDT project. "Empty project" in this case means that it just
doesn't create source files for you. "Makefile Project with Existing
Code" does pretty much the same thing as a new project with Makefile >
Empty project but there's not Autotools equivalent.

Marc-André

On 14-04-30 11:48 AM, Thibault, Daniel wrote:
>    Using a fresh Eclipse C/C++ environment (Kepler 4.3.2), what's the best way to load the LTTng git source tree?  Cloning the git.lttng.org lttng-ust master branch (for example) is easy, my problem is in getting the Autotools to kick in properly.  Eclipse's array of options is somewhat overwhelming; as a consequence I've managed to build userspace-rcu, but I didn't take notes and I can't seem to reproduce the method with lttng-ust.  Frustrating.
>
> File: Import...
> [Import]
> Git > Projects from Git
> (Next)
>
> [Import Projects from Git: Select Repository Source]
> Clone URI
> (Next)
>
> [Import Projects from Git: Source Git Repository]
> URI: http://git.lttng.org/lttng-ust.git
> (Host: git.lttng.org)
> (Repository Path: /lttng-ust.git)
> (Protocol: http)
> (Next)
>
> [Import Projects from Git: Branch Selection]
> (Deselect All) (master)
> (Next)
>
> [Import Projects from Git: Local Destination]
> Directory: /home/username/git/git.lttng.org/lttng-ust
> (Initial branch: master)
> Clone submodules
> (Remote name: origin)
>
> [Cloning from http://git.lttng.org/lttng-ust.git: Select a wizard to use for importing projects]
>
> This is where I need advice.  The three options are:
>
> Import existing projects
> Import as general project
> Use the New Project wizard
>
>    Clearly the first is not applicable since the source trees are not Eclipse projects (neither should they be).
>
>    If I "Use the New Project wizard", the two pertinent choices seem to be:
>
> C/C++ > C Project
> and
> C/C++ > Makefile Project with Existing Code
>
>    In the first case, Project type: GNU Autotools only allows "Empty project" which is no good.
>
>    In the second case, I must browse to the git clone directory.  I end up with an inert project, but if I then go to its Properties: Builders, there is no way to add GNU Autotools.
>
>    If I "Import as general project", I can then invoke "File: New: Convert to a C/C++ Autotools Project".  This *almost* works, with the console showing configure attempting to run and failing because bootstrap did not run ("Invoking autoreconf in build directory: /home/daniel/git/git.lttng.org/lttng-ust/  |  sh -c "autoreconf -i"  |  aclocal: couldn't open directory `config': No such file").  I can shell out to the directory, run bootstrap, then refresh the Eclipse project and pick "Reconfigure project" from the contextual menu.  I can't help but hope there's an easier, better way?
>
>    Help?
>
> Daniel U. Thibault
> Protection des systèmes et contremesures (PSC) | Systems Protection & Countermeasures (SPC)
> Cyber sécurité pour les missions essentielles (CME) | Mission Critical Cyber Security (MCCS)
> R & D pour la défense Canada - Valcartier (RDDC Valcartier) | Defence R&D Canada - Valcartier (DRDC Valcartier)
> 2459 route de la Bravoure
> Québec QC  G3J 1X5
> CANADA
> Vox : (418) 844-4000 x4245
> Fax : (418) 844-4538
> NAC : 918V QSDJ <http://www.travelgis.com/map.asp?addr=918V%20QSDJ>
> Gouvernement du Canada | Government of Canada
> <http://www.valcartier.drdc-rddc.gc.ca/>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 3+ messages in thread

* lttng git repositories and Eclipse
@ 2014-04-30 15:48 Thibault, Daniel
  0 siblings, 0 replies; 3+ messages in thread
From: Thibault, Daniel @ 2014-04-30 15:48 UTC (permalink / raw)
  To: lttng-dev

   Using a fresh Eclipse C/C++ environment (Kepler 4.3.2), what's the best way to load the LTTng git source tree?  Cloning the git.lttng.org lttng-ust master branch (for example) is easy, my problem is in getting the Autotools to kick in properly.  Eclipse's array of options is somewhat overwhelming; as a consequence I've managed to build userspace-rcu, but I didn't take notes and I can't seem to reproduce the method with lttng-ust.  Frustrating.

File: Import...
[Import]
Git > Projects from Git
(Next)

[Import Projects from Git: Select Repository Source]
Clone URI
(Next)

[Import Projects from Git: Source Git Repository]
URI: http://git.lttng.org/lttng-ust.git
(Host: git.lttng.org)
(Repository Path: /lttng-ust.git)
(Protocol: http)
(Next)

[Import Projects from Git: Branch Selection]
(Deselect All) (master)
(Next)

[Import Projects from Git: Local Destination]
Directory: /home/username/git/git.lttng.org/lttng-ust
(Initial branch: master)
Clone submodules
(Remote name: origin)

[Cloning from http://git.lttng.org/lttng-ust.git: Select a wizard to use for importing projects]

This is where I need advice.  The three options are:

Import existing projects
Import as general project
Use the New Project wizard

   Clearly the first is not applicable since the source trees are not Eclipse projects (neither should they be).

   If I "Use the New Project wizard", the two pertinent choices seem to be:

C/C++ > C Project
and
C/C++ > Makefile Project with Existing Code

   In the first case, Project type: GNU Autotools only allows "Empty project" which is no good.

   In the second case, I must browse to the git clone directory.  I end up with an inert project, but if I then go to its Properties: Builders, there is no way to add GNU Autotools.

   If I "Import as general project", I can then invoke "File: New: Convert to a C/C++ Autotools Project".  This *almost* works, with the console showing configure attempting to run and failing because bootstrap did not run ("Invoking autoreconf in build directory: /home/daniel/git/git.lttng.org/lttng-ust/  |  sh -c "autoreconf -i"  |  aclocal: couldn't open directory `config': No such file").  I can shell out to the directory, run bootstrap, then refresh the Eclipse project and pick "Reconfigure project" from the contextual menu.  I can't help but hope there's an easier, better way?

   Help?

Daniel U. Thibault
Protection des systèmes et contremesures (PSC) | Systems Protection & Countermeasures (SPC)
Cyber sécurité pour les missions essentielles (CME) | Mission Critical Cyber Security (MCCS)
R & D pour la défense Canada - Valcartier (RDDC Valcartier) | Defence R&D Canada - Valcartier (DRDC Valcartier)
2459 route de la Bravoure
Québec QC  G3J 1X5
CANADA
Vox : (418) 844-4000 x4245
Fax : (418) 844-4538
NAC : 918V QSDJ <http://www.travelgis.com/map.asp?addr=918V%20QSDJ>
Gouvernement du Canada | Government of Canada
<http://www.valcartier.drdc-rddc.gc.ca/>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-04-30 16:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-30 16:29 lttng git repositories and Eclipse Thibault, Daniel
     [not found] <48CF5AC71E61DB46B70D0F388054EFFD3599E43E@VAL-E-01.valcartier.drdc-rddc.gc.ca>
2014-04-30 15:57 ` Marc-André Laperle
  -- strict thread matches above, loose matches on Subject: below --
2014-04-30 15:48 Thibault, Daniel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.