Home » Language IDEs » C / C++ IDE (CDT) » cgywin + eclipse setup howto
cgywin + eclipse setup howto [message #19809] |
Thu, 21 February 2002 18:47 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: clinton.james.jidn.com
I know Windows is not a supported platform, but I have noticed several
people posting which seem to be using this platform. I have been unable
to get eclipse working with cgywin. Is there someone out there who could
write up a brief HOWTO on getting eclipse setup on the windows platform
using cgywin? Besides helping me, this might encourage others to work
with eclipse who otherwise don't have a linux box sitting nearby.
|
|
| |
Re: cgywin + eclipse setup howto [message #19910 is a reply to message #19856] |
Thu, 21 February 2002 22:08 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: clinton.james.jidn.com
Now my ignorance is going to really shine.
1) It appears that none of the development tool are installed by default,
so be sure to grab those: autoconf, automake, binutils, gcc, gdb, make.
2) After installing cygwin make sure you include the /bin directory into
your path, and be sure to spell it correctly rather than my mistake of
cgywin.
3) Run eclipse and create a new C++ project. Be sure to change "Build
Invocation" to "make all" and "make clean".
4) Name the project hello
5) Context menu from the project and create a new file "main.cpp"
6) Go into the editor and type the following
-------------------------------
#include <iostream>
int main()
{
cout << "Eclipse says hello." << endl;
return 0;
}
-------------------------------
7) Click on Project->Rebuild All
8) Output says
> make all
make: *** No rule to make target `all'. Stop
I cannot find a make file and that may be the problem, but I was under the
impression that eclipse was suppose to help with that detail. My
background is using MSVC so my experience in command line compiling is
using tarballs with "make all" "make install" and tweaking a bit of code
and recompiling on Linux.
Jeff Turnham wrote:
> What problem are you having running eclipse under cygwin?
> I can't remember having to do anything special to get the two to work
> together.
> Jeff Turnnham...
> "Clinton James" <clinton.james@jidn.com> wrote in message
> news:a53fb7$nta$1@rogue.oti.com...
> > I know Windows is not a supported platform, but I have noticed several
> > people posting which seem to be using this platform. I have been unable
> > to get eclipse working with cgywin. Is there someone out there who could
> > write up a brief HOWTO on getting eclipse setup on the windows platform
> > using cgywin? Besides helping me, this might encourage others to work
> > with eclipse who otherwise don't have a linux box sitting nearby.
> >
|
|
|
Re: cgywin + eclipse setup howto [message #19941 is a reply to message #19910] |
Thu, 21 February 2002 22:30 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Peter Manahan![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=manahan%40ca.ibm.com) Messages: 131 Registered: July 2009 |
Senior Member |
|
|
--------------070507060708010903020602
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
I think you need the following steps from the autoconf menu.
6a.Generate Autoconf
6b.Run configure
I don't have a version handy so this is from memory. Its what I do on linux.
Peter
Clinton James wrote:
>Now my ignorance is going to really shine.
>
>1) It appears that none of the development tool are installed by default,
>so be sure to grab those: autoconf, automake, binutils, gcc, gdb, make.
>
>2) After installing cygwin make sure you include the /bin directory into
>your path, and be sure to spell it correctly rather than my mistake of
>cgywin.
>
>3) Run eclipse and create a new C++ project. Be sure to change "Build
>Invocation" to "make all" and "make clean".
>
>4) Name the project hello
>
>5) Context menu from the project and create a new file "main.cpp"
>
>6) Go into the editor and type the following
>-------------------------------
>#include <iostream>
>
>int main()
>{
> cout << "Eclipse says hello." << endl;
> return 0;
>}
>-------------------------------
>
>7) Click on Project->Rebuild All
>
>8) Output says
>
>>make all
>>
>make: *** No rule to make target `all'. Stop
>
>I cannot find a make file and that may be the problem, but I was under the
>impression that eclipse was suppose to help with that detail. My
>background is using MSVC so my experience in command line compiling is
>using tarballs with "make all" "make install" and tweaking a bit of code
>and recompiling on Linux.
>
>Jeff Turnham wrote:
>
>>What problem are you having running eclipse under cygwin?
>>I can't remember having to do anything special to get the two to work
>>together.
>>
>
>>Jeff Turnnham...
>>
>
>>"Clinton James" <clinton.james@jidn.com> wrote in message
>>news:a53fb7$nta$1@rogue.oti.com...
>>
>>>I know Windows is not a supported platform, but I have noticed several
>>>people posting which seem to be using this platform. I have been unable
>>>to get eclipse working with cgywin. Is there someone out there who could
>>>write up a brief HOWTO on getting eclipse setup on the windows platform
>>>using cgywin? Besides helping me, this might encourage others to work
>>>with eclipse who otherwise don't have a linux box sitting nearby.
>>>
>
>
>
>
>
--------------070507060708010903020602
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<html>
<head>
</head>
<body>
I think you need the following steps from the autoconf menu.<br>
<br>
6a.Generate Autoconf<br>
6b.Run configure <br>
<br>
I don't have a version handy so this is from memory. Its what I do on linux.<br>
<br>
Peter<br>
Clinton James wrote:<br>
<blockquote type="cite" cite="mid:a53r40$rug$1@rogue.oti.com">
<pre wrap="">Now my ignorance is going to really shine.<br><br>1) It appears that none of the development tool are installed by default,<br>so be sure to grab those: autoconf, automake, binutils, gcc, gdb, make.<br><br>2) After installing cygwin make sure you include the /bin directory into<br>your path, and be sure to spell it correctly rather than my mistake of<br>cgywin.<br><br>3) Run eclipse and create a new C++ project. Be sure to change "Build<br>Invocation" to "make all" and "make clean".<br><br>4) Name the project hello<br><br>5) Context menu from the project and create a new file "main.cpp"<br><br>6) Go into the editor and type the following<br>-------------------------------<br>#include <iostream><br><br>int main()<br>{<br> cout << "Eclipse says hello." << endl;<br> return 0;<br>}<br>-------------------------------<br><br>7) Click on Project->Rebuild All<br><br>8) Output says<br></pre>
<blockquote type="cite">
<pre wrap="">make all<br></pre>
</blockquote>
<pre wrap=""><!---->make: *** No rule to make target `all'. Stop<br><br>I cannot find a make file and that may be the problem, but I was under the<br>impression that eclipse was suppose to help with that detail. My<br>background is using MSVC so my experience in command line compiling is<br>using tarballs with "make all" "make install" and tweaking a bit of code<br>and recompiling on Linux.<br><br>Jeff Turnham wrote:<br><br></pre>
<blockquote type="cite">
<pre wrap="">What problem are you having running eclipse under cygwin?<br>I can't remember having to do anything special to get the two to work<br>together.<br></pre>
</blockquote>
<pre wrap=""><!----><br></pre>
<blockquote type="cite">
<pre wrap="">Jeff Turnnham...<br></pre>
</blockquote>
<pre wrap=""><!----><br></pre>
<blockquote type="cite">
<pre wrap="">"Clinton James" <a class="moz-txt-link-rfc2396E" href="mailto:clinton.james@jidn.com"><clinton.james@jidn.com></a> wrote in message<br><a class="moz-txt-link-freetext" href="news:a53fb7$nta$1@rogue.oti.com">news:a53fb7$nta$1@rogue.oti.com</a>...<br></pre>
<blockquote type="cite">
<pre wrap="">I know Windows is not a supported platform, but I have noticed several<br>people posting which seem to be using this platform. I have been unable<br>to get eclipse working with cgywin. Is there someone out there who could<br>write up a brief HOWTO on getting eclipse setup on the windows platform<br>using cgywin? Besides helping me, this might encourage others to work<br>with eclipse who otherwise don't have a linux box sitting nearby.<br><br></pre>
</blockquote>
</blockquote>
<pre wrap=""><!----><br><br><br><br><br></pre>
</blockquote>
<br>
</body>
</html>
--------------070507060708010903020602--
|
|
|
Re: cgywin + eclipse setup howto [message #19985 is a reply to message #19941] |
Thu, 21 February 2002 23:24 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: clinton.james.jidn.com
I have now found this information in the tutorial after seeing your post.
In my first attempt I found that libtool needed to be installed cygwin
also.
Now I think I'm on the right track now except for one item. The command
line has
sh autogen.sh&&sh touch -m configure
touch: Can't open touch: No such file or directory
Now if I type "touch -m configure" all is good in the world, but I just
can't get it to except it through sh. Any ideas on that one?
To summarize for people learning from my mistakes. I didn't know what
items I needed from cgywin and I hadn't read about how to generate the
autoconf. Read the documentation, ALL the documentation.
Peter Manahan wrote:
> --------------070507060708010903020602
> Content-Type: text/plain; charset=us-ascii; format=flowed
> Content-Transfer-Encoding: 7bit
> I think you need the following steps from the autoconf menu.
> 6a.Generate Autoconf
> 6b.Run configure
> I don't have a version handy so this is from memory. Its what I do on linux.
> Peter
> Clinton James wrote:
> >Now my ignorance is going to really shine.
> >[DELETED A BUNCH OF JUNK]
> >6) Go into the editor and type the following
> >-------------------------------
> >#include <iostream>
> >
> >int main()
> >{
> > cout << "Eclipse says hello." << endl;
> > return 0;
> >}
> >-------------------------------
> >
> >7) Click on Project->Rebuild All
> >
> >8) Output says
> >
> >>make all
> >>
> >make: *** No rule to make target `all'. Stop
> >
> >I cannot find a make file and that may be the problem, but I was under the
> >impression that eclipse was suppose to help with that detail. My
> >background is using MSVC so my experience in command line compiling is
> >using tarballs with "make all" "make install" and tweaking a bit of code
> >and recompiling on Linux.
> >
> >Jeff Turnham wrote:
> >
> >>What problem are you having running eclipse under cygwin?
> >>I can't remember having to do anything special to get the two to work
> >>together.
> >>
> >
> >>Jeff Turnnham...
> >>
> >
> >>"Clinton James" <clinton.james@jidn.com> wrote in message
> >>news:a53fb7$nta$1@rogue.oti.com...
> >>
> >>>I know Windows is not a supported platform, but I have noticed several
> >>>people posting which seem to be using this platform. I have been unable
> >>>to get eclipse working with cgywin. Is there someone out there who could
> >>>write up a brief HOWTO on getting eclipse setup on the windows platform
> >>>using cgywin? Besides helping me, this might encourage others to work
> >>>with eclipse who otherwise don't have a linux box sitting nearby.
> >>>
> >
> >
> >
> >
> >
> --------------070507060708010903020602
> Content-Type: text/html; charset=us-ascii
> Content-Transfer-Encoding: 7bit
> <html>
> <head>
> </head>
> <body>
> I think you need the following steps from the autoconf menu.<br>
> <br>
> 6a.Generate Autoconf<br>
> 6b.Run configure <br>
> <br>
> I don't have a version handy so this is from memory. Its what I do on
linux.<br>
> <br>
> Peter<br>
> Clinton James wrote:<br>
> <blockquote type="cite" cite="mid:a53r40$rug$1@rogue.oti.com">
> <pre wrap="">Now my ignorance is going to really shine.<br><br>1) It
appears that none of the development tool are installed by default,<br>so be
sure to grab those: autoconf, automake, binutils, gcc, gdb, make.<br><br>2)
After installing cygwin make sure you include the /bin directory into<br>your
path, and be sure to spell it correctly rather than my mistake
of<br>cgywin.<br><br>3) Run eclipse and create a new C++ project. Be sure to
change "Build<br>Invocation" to "make all" and "make clean".<br><br>4) Name
the project hello<br><br>5) Context menu from the project and create a new
file "main.cpp"<br><br>6) Go into the editor and type the
following<br>-------------------------------<br>#include <iostream><br><br>int
main()<br>{<br> cout << "Eclipse says hello." << endl;<br> return
0;<br>}<br>-------------------------------<br><br>7) Click on Project->Rebuild
All<br><br>8) Output says<br></pre>
> <blockquote type="cite">
> <pre wrap="">make all<br></pre>
> </blockquote>
> <pre wrap=""><!---->make: *** No rule to make target `all'.
Stop<br><br>I cannot find a make file and that may be the problem, but I was
under the<br>impression that eclipse was suppose to help with that detail.
My<br>background is using MSVC so my experience in command line compiling
is<br>using tarballs with "make all" "make install" and tweaking a bit of
code<br>and recompiling on Linux.<br><br>Jeff Turnham wrote:<br><br></pre>
> <blockquote type="cite">
> <pre wrap="">What problem are you having running eclipse under
cygwin?<br>I can't remember having to do anything special to get the two to
work<br>together.<br></pre>
> </blockquote>
> <pre wrap=""><!----><br></pre>
> <blockquote type="cite">
> <pre wrap="">Jeff Turnnham...<br></pre>
> </blockquote>
> <pre wrap=""><!----><br></pre>
> <blockquote type="cite">
> <pre wrap="">"Clinton James" <a class="moz-txt-link-rfc2396E"
href="mailto:clinton.james@jidn.com"><clinton.james@jidn.com></a> wrote in
message<br><a class="moz-txt-link-freetext"
href="news:a53fb7$nta$1@rogue.oti.com">news:a53fb7$nta$1@rogue.oti.com</a>...<br></pre>
> <blockquote type="cite">
> <pre wrap="">I know Windows is not a supported platform, but I
have noticed several<br>people posting which seem to be using this platform.
I have been unable<br>to get eclipse working with cgywin. Is there someone
out there who could<br>write up a brief HOWTO on getting eclipse setup on the
windows platform<br>using cgywin? Besides helping me, this might encourage
others to work<br>with eclipse who otherwise don't have a linux box sitting
nearby.<br><br></pre>
> </blockquote>
> </blockquote>
> <pre wrap=""><!----><br><br><br><br><br></pre>
> </blockquote>
> <br>
> </body>
> </html>
> --------------070507060708010903020602--
|
|
|
Re: cgywin + eclipse setup howto [message #20901 is a reply to message #19985] |
Fri, 22 February 2002 11:14 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Jeff Turnham![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=turnham%40ca.ibm.com) Messages: 67 Registered: July 2009 |
Member |
|
|
Ahh, I guess I never had any problems under cygwin since I installed
everything I could ;-) So you're right, we should probably document
somewhere what dependencies we have on system tools.
That "touch" problem would seem to be due to an incorrect PATH. What
happens if you goto the Command Launcher view and type "env" (or
"set"...whichever works). Does your /bin directory, where I assume "touch"
exists, appear in the PATH variable? If it does then does it also appear
when you try "sh env"?
Note: I don't have Windoze booted up right now, so I can't verify that the
autoconf stuff is working for me. If I get some time later today, I'll boot
it up and give it a try.
Thanks...
Jeff Turnham
"Clinton James" <clinton.james@jidn.com> wrote in message
news:a53vih$t8b$1@rogue.oti.com...
> I have now found this information in the tutorial after seeing your post.
> In my first attempt I found that libtool needed to be installed cygwin
> also.
>
> Now I think I'm on the right track now except for one item. The command
> line has
>
> sh autogen.sh&&sh touch -m configure
>
> touch: Can't open touch: No such file or directory
>
> Now if I type "touch -m configure" all is good in the world, but I just
> can't get it to except it through sh. Any ideas on that one?
>
> To summarize for people learning from my mistakes. I didn't know what
> items I needed from cgywin and I hadn't read about how to generate the
> autoconf. Read the documentation, ALL the documentation.
>
> Peter Manahan wrote:
> > --------------070507060708010903020602
> > Content-Type: text/plain; charset=us-ascii; format=flowed
> > Content-Transfer-Encoding: 7bit
>
> > I think you need the following steps from the autoconf menu.
>
> > 6a.Generate Autoconf
> > 6b.Run configure
>
> > I don't have a version handy so this is from memory. Its what I do on
linux.
>
> > Peter
> > Clinton James wrote:
>
> > >Now my ignorance is going to really shine.
> > >[DELETED A BUNCH OF JUNK]
> > >6) Go into the editor and type the following
> > >-------------------------------
> > >#include <iostream>
> > >
> > >int main()
> > >{
> > > cout << "Eclipse says hello." << endl;
> > > return 0;
> > >}
> > >-------------------------------
> > >
> > >7) Click on Project->Rebuild All
> > >
> > >8) Output says
> > >
> > >>make all
> > >>
> > >make: *** No rule to make target `all'. Stop
> > >
> > >I cannot find a make file and that may be the problem, but I was under
the
> > >impression that eclipse was suppose to help with that detail. My
> > >background is using MSVC so my experience in command line compiling is
> > >using tarballs with "make all" "make install" and tweaking a bit of
code
> > >and recompiling on Linux.
> > >
> > >Jeff Turnham wrote:
> > >
> > >>What problem are you having running eclipse under cygwin?
> > >>I can't remember having to do anything special to get the two to work
> > >>together.
> > >>
> > >
> > >>Jeff Turnnham...
> > >>
> > >
> > >>"Clinton James" <clinton.james@jidn.com> wrote in message
> > >>news:a53fb7$nta$1@rogue.oti.com...
> > >>
> > >>>I know Windows is not a supported platform, but I have noticed
several
> > >>>people posting which seem to be using this platform. I have been
unable
> > >>>to get eclipse working with cgywin. Is there someone out there who
could
> > >>>write up a brief HOWTO on getting eclipse setup on the windows
platform
> > >>>using cgywin? Besides helping me, this might encourage others to
work
> > >>>with eclipse who otherwise don't have a linux box sitting nearby.
> > >>>
> > >
> > >
> > >
> > >
> > >
>
>
> > --------------070507060708010903020602
> > Content-Type: text/html; charset=us-ascii
> > Content-Transfer-Encoding: 7bit
>
> > <html>
> > <head>
> > </head>
> > <body>
> > I think you need the following steps from the autoconf menu.<br>
> > <br>
> > 6a.Generate Autoconf<br>
> > 6b.Run configure <br>
> > <br>
> > I don't have a version handy so this is from memory. Its what I do on
> linux.<br>
> > <br>
> > Peter<br>
> > Clinton James wrote:<br>
> > <blockquote type="cite" cite="mid:a53r40$rug$1@rogue.oti.com">
> > <pre wrap="">Now my ignorance is going to really shine.<br><br>1) It
> appears that none of the development tool are installed by default,<br>so
be
> sure to grab those: autoconf, automake, binutils, gcc, gdb,
make.<br><br>2)
> After installing cygwin make sure you include the /bin directory
into<br>your
> path, and be sure to spell it correctly rather than my mistake
> of<br>cgywin.<br><br>3) Run eclipse and create a new C++ project. Be sure
to
> change "Build<br>Invocation" to "make all" and "make clean".<br><br>4)
Name
> the project hello<br><br>5) Context menu from the project and create a new
> file "main.cpp"<br><br>6) Go into the editor and type the
> following<br>-------------------------------<br>#include
<iostream><br><br>int
> main()<br>{<br> cout << "Eclipse says hello." << endl;<br> return
> 0;<br>}<br>-------------------------------<br><br>7) Click on
Project->Rebuild
> All<br><br>8) Output says<br></pre>
> > <blockquote type="cite">
> > <pre wrap="">make all<br></pre>
> > </blockquote>
> > <pre wrap=""><!---->make: *** No rule to make target `all'.
> Stop<br><br>I cannot find a make file and that may be the problem, but I
was
> under the<br>impression that eclipse was suppose to help with that detail.
> My<br>background is using MSVC so my experience in command line compiling
> is<br>using tarballs with "make all" "make install" and tweaking a bit of
> code<br>and recompiling on Linux.<br><br>Jeff Turnham wrote:<br><br></pre>
> > <blockquote type="cite">
> > <pre wrap="">What problem are you having running eclipse under
> cygwin?<br>I can't remember having to do anything special to get the two
to
> work<br>together.<br></pre>
> > </blockquote>
> > <pre wrap=""><!----><br></pre>
> > <blockquote type="cite">
> > <pre wrap="">Jeff Turnnham...<br></pre>
> > </blockquote>
> > <pre wrap=""><!----><br></pre>
> > <blockquote type="cite">
> > <pre wrap="">"Clinton James" <a class="moz-txt-link-rfc2396E"
> href="mailto:clinton.james@jidn.com"><clinton.james@jidn.com></a> wrote in
> message<br><a class="moz-txt-link-freetext"
>
href="news:a53fb7$nta$1@rogue.oti.com">news:a53fb7$nta$1@rogue.oti.com</a>..
..<br></pre>
> > <blockquote type="cite">
> > <pre wrap="">I know Windows is not a supported platform, but
I
> have noticed several<br>people posting which seem to be using this
platform.
> I have been unable<br>to get eclipse working with cgywin. Is there
someone
> out there who could<br>write up a brief HOWTO on getting eclipse setup on
the
> windows platform<br>using cgywin? Besides helping me, this might
encourage
> others to work<br>with eclipse who otherwise don't have a linux box
sitting
> nearby.<br><br></pre>
> > </blockquote>
> > </blockquote>
> > <pre wrap=""><!----><br><br><br><br><br></pre>
> > </blockquote>
> > <br>
> > </body>
> > </html>
>
> > --------------070507060708010903020602--
>
>
>
>
|
|
|
Re: cgywin + eclipse setup howto [message #20905 is a reply to message #19985] |
Fri, 22 February 2002 13:27 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Jeff Turnham![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=turnham%40ca.ibm.com) Messages: 67 Registered: July 2009 |
Member |
|
|
Hi,
So I tried autoconf on Windows and I too am seeing some problems:
I started with a simple Hello World type project with one "main.cpp", and
went through the normal autoconf steps.
1. "Generate configure" is working for me, but "Run configure" kicks off the
following:
"sh autogen.sh;sh configure && sh touch -m configure"
On my system, sh thinks that "autogen.sh;sh" is the command I want to run.
It works if I goto the Command Launcher and type:
sh autogen.sh && sh configure && sh touch -m configure
2. The Makefile that was created had a syntax error, but when I ran
configure again it went away (and I can't reproduce
the syntax error anymore).
3. My project builds and creates an executable, but it doesn't run...it
says it is not a valid windows executable.
Are there any volunteers out there who want to delve into our code and get
this stuff working on Windows? We are focused on getting the CDT stable on
Linux and can't commit to doing this work ourselves. However, we would be
willing to incorporate any enhancements we receive from the community.
Thanks...
Jeff Turnham
"Clinton James" <clinton.james@jidn.com> wrote in message
news:a53vih$t8b$1@rogue.oti.com...
> I have now found this information in the tutorial after seeing your post.
> In my first attempt I found that libtool needed to be installed cygwin
> also.
>
> Now I think I'm on the right track now except for one item. The command
> line has
>
> sh autogen.sh&&sh touch -m configure
>
> touch: Can't open touch: No such file or directory
>
> Now if I type "touch -m configure" all is good in the world, but I just
> can't get it to except it through sh. Any ideas on that one?
>
> To summarize for people learning from my mistakes. I didn't know what
> items I needed from cgywin and I hadn't read about how to generate the
> autoconf. Read the documentation, ALL the documentation.
>
> Peter Manahan wrote:
> > --------------070507060708010903020602
> > Content-Type: text/plain; charset=us-ascii; format=flowed
> > Content-Transfer-Encoding: 7bit
>
> > I think you need the following steps from the autoconf menu.
>
> > 6a.Generate Autoconf
> > 6b.Run configure
>
> > I don't have a version handy so this is from memory. Its what I do on
linux.
>
> > Peter
> > Clinton James wrote:
>
> > >Now my ignorance is going to really shine.
> > >[DELETED A BUNCH OF JUNK]
> > >6) Go into the editor and type the following
> > >-------------------------------
> > >#include <iostream>
> > >
> > >int main()
> > >{
> > > cout << "Eclipse says hello." << endl;
> > > return 0;
> > >}
> > >-------------------------------
> > >
> > >7) Click on Project->Rebuild All
> > >
> > >8) Output says
> > >
> > >>make all
> > >>
> > >make: *** No rule to make target `all'. Stop
> > >
> > >I cannot find a make file and that may be the problem, but I was under
the
> > >impression that eclipse was suppose to help with that detail. My
> > >background is using MSVC so my experience in command line compiling is
> > >using tarballs with "make all" "make install" and tweaking a bit of
code
> > >and recompiling on Linux.
> > >
> > >Jeff Turnham wrote:
> > >
> > >>What problem are you having running eclipse under cygwin?
> > >>I can't remember having to do anything special to get the two to work
> > >>together.
> > >>
> > >
> > >>Jeff Turnnham...
> > >>
> > >
> > >>"Clinton James" <clinton.james@jidn.com> wrote in message
> > >>news:a53fb7$nta$1@rogue.oti.com...
> > >>
> > >>>I know Windows is not a supported platform, but I have noticed
several
> > >>>people posting which seem to be using this platform. I have been
unable
> > >>>to get eclipse working with cgywin. Is there someone out there who
could
> > >>>write up a brief HOWTO on getting eclipse setup on the windows
platform
> > >>>using cgywin? Besides helping me, this might encourage others to
work
> > >>>with eclipse who otherwise don't have a linux box sitting nearby.
> > >>>
> > >
> > >
> > >
> > >
> > >
>
>
> > --------------070507060708010903020602
> > Content-Type: text/html; charset=us-ascii
> > Content-Transfer-Encoding: 7bit
>
> > <html>
> > <head>
> > </head>
> > <body>
> > I think you need the following steps from the autoconf menu.<br>
> > <br>
> > 6a.Generate Autoconf<br>
> > 6b.Run configure <br>
> > <br>
> > I don't have a version handy so this is from memory. Its what I do on
> linux.<br>
> > <br>
> > Peter<br>
> > Clinton James wrote:<br>
> > <blockquote type="cite" cite="mid:a53r40$rug$1@rogue.oti.com">
> > <pre wrap="">Now my ignorance is going to really shine.<br><br>1) It
> appears that none of the development tool are installed by default,<br>so
be
> sure to grab those: autoconf, automake, binutils, gcc, gdb,
make.<br><br>2)
> After installing cygwin make sure you include the /bin directory
into<br>your
> path, and be sure to spell it correctly rather than my mistake
> of<br>cgywin.<br><br>3) Run eclipse and create a new C++ project. Be sure
to
> change "Build<br>Invocation" to "make all" and "make clean".<br><br>4)
Name
> the project hello<br><br>5) Context menu from the project and create a new
> file "main.cpp"<br><br>6) Go into the editor and type the
> following<br>-------------------------------<br>#include
<iostream><br><br>int
> main()<br>{<br> cout << "Eclipse says hello." << endl;<br> return
> 0;<br>}<br>-------------------------------<br><br>7) Click on
Project->Rebuild
> All<br><br>8) Output says<br></pre>
> > <blockquote type="cite">
> > <pre wrap="">make all<br></pre>
> > </blockquote>
> > <pre wrap=""><!---->make: *** No rule to make target `all'.
> Stop<br><br>I cannot find a make file and that may be the problem, but I
was
> under the<br>impression that eclipse was suppose to help with that detail.
> My<br>background is using MSVC so my experience in command line compiling
> is<br>using tarballs with "make all" "make install" and tweaking a bit of
> code<br>and recompiling on Linux.<br><br>Jeff Turnham wrote:<br><br></pre>
> > <blockquote type="cite">
> > <pre wrap="">What problem are you having running eclipse under
> cygwin?<br>I can't remember having to do anything special to get the two
to
> work<br>together.<br></pre>
> > </blockquote>
> > <pre wrap=""><!----><br></pre>
> > <blockquote type="cite">
> > <pre wrap="">Jeff Turnnham...<br></pre>
> > </blockquote>
> > <pre wrap=""><!----><br></pre>
> > <blockquote type="cite">
> > <pre wrap="">"Clinton James" <a class="moz-txt-link-rfc2396E"
> href="mailto:clinton.james@jidn.com"><clinton.james@jidn.com></a> wrote in
> message<br><a class="moz-txt-link-freetext"
>
href="news:a53fb7$nta$1@rogue.oti.com">news:a53fb7$nta$1@rogue.oti.com</a>..
..<br></pre>
> > <blockquote type="cite">
> > <pre wrap="">I know Windows is not a supported platform, but
I
> have noticed several<br>people posting which seem to be using this
platform.
> I have been unable<br>to get eclipse working with cgywin. Is there
someone
> out there who could<br>write up a brief HOWTO on getting eclipse setup on
the
> windows platform<br>using cgywin? Besides helping me, this might
encourage
> others to work<br>with eclipse who otherwise don't have a linux box
sitting
> nearby.<br><br></pre>
> > </blockquote>
> > </blockquote>
> > <pre wrap=""><!----><br><br><br><br><br></pre>
> > </blockquote>
> > <br>
> > </body>
> > </html>
>
> > --------------070507060708010903020602--
>
>
>
>
|
|
|
Re: cgywin + eclipse setup howto [message #20910 is a reply to message #20901] |
Fri, 22 February 2002 16:00 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: clinton.james.jidn.com
The PATH is OK by checking both SET from the windows command line and by
env. sh doesn\'t appear to like any argument that is not a script. \"sh
autogen.sh\" works fine. However typing in \"sh touch -m configure\"
complains as previously mentioned. This appears to be consistant with the
linux box I have access to which is using bash as sh. I\'ll have to look
into this over the weekend and find out what I am doing wrong.
Jeff Turnham wrote:
> Ahh, I guess I never had any problems under cygwin since I installed
> everything I could ;-) So you\'re right, we should probably document
> somewhere what dependencies we have on system tools.
> That \"touch\" problem would seem to be due to an incorrect PATH. What
> happens if you goto the Command Launcher view and type \"env\" (or
> \"set\"...whichever works). Does your /bin directory, where I assume
\"touch\"
> exists, appear in the PATH variable? If it does then does it also appear
> when you try \"sh env\"?
> Note: I don\'t have Windoze booted up right now, so I can\'t verify that the
> autoconf stuff is working for me. If I get some time later today, I\'ll boot
> it up and give it a try.
> Thanks...
> Jeff Turnham
> \"Clinton James\" <clinton.james@jidn.com> wrote in message
> news:a53vih$t8b$1@rogue.oti.com...
> > I have now found this information in the tutorial after seeing your post.
> > In my first attempt I found that libtool needed to be installed cygwin
> > also.
> >
> > Now I think I\'m on the right track now except for one item. The command
> > line has
> >
> > sh autogen.sh&&sh touch -m configure
> >
> > touch: Can\'t open touch: No such file or directory
> >
> > Now if I type \"touch -m configure\" all is good in the world, but I just
> > can\'t get it to except it through sh. Any ideas on that one?
> >
> > To summarize for people learning from my mistakes. I didn\'t know what
> > items I needed from cgywin and I hadn\'t read about how to generate the
> > autoconf. Read the documentation, ALL the documentation.
> >
> > Peter Manahan wrote:
> > > --------------070507060708010903020602
> > > Content-Type: text/plain; charset=us-ascii; format=flowed
> > > Content-Transfer-Encoding: 7bit
> >
> > > I think you need the following steps from the autoconf menu.
> >
> > > 6a.Generate Autoconf
> > > 6b.Run configure
> >
> > > I don\'t have a version handy so this is from memory. Its what I do on
> linux.
> >
> > > Peter
> > > Clinton James wrote:
> >
> > > >Now my ignorance is going to really shine.
> > > >[DELETED A BUNCH OF JUNK]
> > > >6) Go into the editor and type the following
> > > >-------------------------------
> > > >#include <iostream>
> > > >
> > > >int main()
> > > >{
> > > > cout << \"Eclipse says hello.\" << endl;
> > > > return 0;
> > > >}
> > > >-------------------------------
> > > >
> > > >7) Click on Project->Rebuild All
> > > >
> > > >8) Output says
> > > >
> > > >>make all
> > > >>
> > > >make: *** No rule to make target `all\'. Stop
> > > >
> > > >I cannot find a make file and that may be the problem, but I was under
> the
> > > >impression that eclipse was suppose to help with that detail. My
> > > >background is using MSVC so my experience in command line compiling is
> > > >using tarballs with \"make all\" \"make install\" and tweaking a bit of
> code
> > > >and recompiling on Linux.
> > > >
> > > >Jeff Turnham wrote:
> > > >
> > > >>What problem are you having running eclipse under cygwin?
> > > >>I can\'t remember having to do anything special to get the two to work
> > > >>together.
> > > >>
> > > >
> > > >>Jeff Turnnham...
> > > >>
> > > >
> > > >>\"Clinton James\" <clinton.james@jidn.com> wrote in message
> > > >>news:a53fb7$nta$1@rogue.oti.com...
> > > >>
> > > >>>I know Windows is not a supported platform, but I have noticed
> several
> > > >>>people posting which seem to be using this platform. I have been
> unable
> > > >>>to get eclipse working with cgywin. Is there someone out there who
> could
> > > >>>write up a brief HOWTO on getting eclipse setup on the windows
> platform
> > > >>>using cgywin? Besides helping me, this might encourage others to
> work
> > > >>>with eclipse who otherwise don\'t have a linux box sitting nearby.
> > > >>>
> > > >
> > > >
> > > >
> > > >
> > > >
> >
> >
|
|
|
Re: cgywin + eclipse setup howto [message #20915 is a reply to message #20910] |
Fri, 22 February 2002 16:09 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: johan.nosp.m.appeal.se
Try using "sh -c touch whatever" instead of just "sh touch whatever".
That should do the trick.
//Johan
Clinton James wrote:
> The PATH is OK by checking both SET from the windows command line and by
> env. sh doesn\'t appear to like any argument that is not a script. \"sh
> autogen.sh\" works fine. However typing in \"sh touch -m configure\"
> complains as previously mentioned. This appears to be consistant with the
> linux box I have access to which is using bash as sh. I\'ll have to look
> into this over the weekend and find out what I am doing wrong.
>
> Jeff Turnham wrote:
>
>
>>Ahh, I guess I never had any problems under cygwin since I installed
>>everything I could ;-) So you\'re right, we should probably document
>>somewhere what dependencies we have on system tools.
>>
>
>>That \"touch\" problem would seem to be due to an incorrect PATH. What
>>happens if you goto the Command Launcher view and type \"env\" (or
>>\"set\"...whichever works). Does your /bin directory, where I assume
>>
> \"touch\"
>
>>exists, appear in the PATH variable? If it does then does it also appear
>>when you try \"sh env\"?
>>
>
>>Note: I don\'t have Windoze booted up right now, so I can\'t verify that the
>>autoconf stuff is working for me. If I get some time later today, I\'ll boot
>>it up and give it a try.
>>
>
>>Thanks...
>>
>
>>Jeff Turnham
>>
>
>>\"Clinton James\" <clinton.james@jidn.com> wrote in message
>>news:a53vih$t8b$1@rogue.oti.com...
>>
>>>I have now found this information in the tutorial after seeing your post.
>>>In my first attempt I found that libtool needed to be installed cygwin
>>>also.
>>>
>>>Now I think I\'m on the right track now except for one item. The command
>>>line has
>>>
>>>sh autogen.sh&&sh touch -m configure
>>>
>>>touch: Can\'t open touch: No such file or directory
>>>
>>>Now if I type \"touch -m configure\" all is good in the world, but I just
>>>can\'t get it to except it through sh. Any ideas on that one?
>>>
>>>To summarize for people learning from my mistakes. I didn\'t know what
>>>items I needed from cgywin and I hadn\'t read about how to generate the
>>>autoconf. Read the documentation, ALL the documentation.
>>>
>>>Peter Manahan wrote:
>>>
>>>>--------------070507060708010903020602
>>>>Content-Type: text/plain; charset=us-ascii; format=flowed
>>>>Content-Transfer-Encoding: 7bit
>>>>
>>>>I think you need the following steps from the autoconf menu.
>>>>
>>>>6a.Generate Autoconf
>>>>6b.Run configure
>>>>
>>>>I don\'t have a version handy so this is from memory. Its what I do on
>>>>
>>linux.
>>
>>>>Peter
>>>>Clinton James wrote:
>>>>
>>>>>Now my ignorance is going to really shine.
>>>>>[DELETED A BUNCH OF JUNK]
>>>>>6) Go into the editor and type the following
>>>>>-------------------------------
>>>>>#include <iostream>
>>>>>
>>>>>int main()
>>>>>{
>>>>> cout << \"Eclipse says hello.\" << endl;
>>>>> return 0;
>>>>>}
>>>>>-------------------------------
>>>>>
>>>>>7) Click on Project->Rebuild All
>>>>>
>>>>>8) Output says
>>>>>
>>>>>
>>>>>>make all
>>>>>>
>>>>>>
>>>>>make: *** No rule to make target `all\'. Stop
>>>>>
>>>>>I cannot find a make file and that may be the problem, but I was under
>>>>>
>>the
>>
>>>>>impression that eclipse was suppose to help with that detail. My
>>>>>background is using MSVC so my experience in command line compiling is
>>>>>using tarballs with \"make all\" \"make install\" and tweaking a bit of
>>>>>
>>code
>>
>>>>>and recompiling on Linux.
>>>>>
>>>>>Jeff Turnham wrote:
>>>>>
>>>>>
>>>>>>What problem are you having running eclipse under cygwin?
>>>>>>I can\'t remember having to do anything special to get the two to work
>>>>>>together.
>>>>>>
>>>>>>
>>>>>>Jeff Turnnham...
>>>>>>
>>>>>>
>>>>>>\"Clinton James\" <clinton.james@jidn.com> wrote in message
>>>>>>news:a53fb7$nta$1@rogue.oti.com...
>>>>>>
>>>>>>
>>>>>>>I know Windows is not a supported platform, but I have noticed
>>>>>>>
>>several
>>
>>>>>>>people posting which seem to be using this platform. I have been
>>>>>>>
>>unable
>>
>>>>>>>to get eclipse working with cgywin. Is there someone out there who
>>>>>>>
>>could
>>
>>>>>>>write up a brief HOWTO on getting eclipse setup on the windows
>>>>>>>
>>platform
>>
>>>>>>>using cgywin? Besides helping me, this might encourage others to
>>>>>>>
>>work
>>
>>>>>>>with eclipse who otherwise don\'t have a linux box sitting nearby.
>>>>>>>
>>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>
>
>
>
>
>
|
|
|
Re: cgywin + eclipse setup howto [message #20936 is a reply to message #20915] |
Mon, 25 February 2002 15:44 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: clinton.james.jidn.com
Yes that will work. The only problem is that eclipse generates the
commands. I can do it manually, but I thought the idea was to have
eclipse do it for you. Shouldn't eclipse use "sh -c" whenever it is
executing anything other than a shell script?
Johan Walles wrote:
> Try using "sh -c touch whatever" instead of just "sh touch whatever".
> That should do the trick.
> //Johan
> Clinton James wrote:
> > The PATH is OK by checking both SET from the windows command line and by
> > env. sh doesn\'t appear to like any argument that is not a script. \"sh
> > autogen.sh\" works fine. However typing in \"sh touch -m configure\"
> > complains as previously mentioned. This appears to be consistant with the
> > linux box I have access to which is using bash as sh. I\'ll have to look
> > into this over the weekend and find out what I am doing wrong.
> >
> > Jeff Turnham wrote:
> >
> >
> >>Ahh, I guess I never had any problems under cygwin since I installed
> >>everything I could ;-) So you\'re right, we should probably document
> >>somewhere what dependencies we have on system tools.
> >>
> >
> >>That \"touch\" problem would seem to be due to an incorrect PATH. What
> >>happens if you goto the Command Launcher view and type \"env\" (or
> >>\"set\"...whichever works). Does your /bin directory, where I assume
> >>
> > \"touch\"
> >
> >>exists, appear in the PATH variable? If it does then does it also appear
> >>when you try \"sh env\"?
> >>
> >
> >>Note: I don\'t have Windoze booted up right now, so I can\'t verify that
the
> >>autoconf stuff is working for me. If I get some time later today, I\'ll
boot
> >>it up and give it a try.
> >>
> >
> >>Thanks...
> >>
> >
> >>Jeff Turnham
> >>
> >
> >>\"Clinton James\" <clinton.james@jidn.com> wrote in message
> >>news:a53vih$t8b$1@rogue.oti.com...
> >>
> >>>I have now found this information in the tutorial after seeing your post.
> >>>In my first attempt I found that libtool needed to be installed cygwin
> >>>also.
> >>>
> >>>Now I think I\'m on the right track now except for one item. The command
> >>>line has
> >>>
> >>>sh autogen.sh&&sh touch -m configure
> >>>
> >>>touch: Can\'t open touch: No such file or directory
> >>>
> >>>Now if I type \"touch -m configure\" all is good in the world, but I just
> >>>can\'t get it to except it through sh. Any ideas on that one?
> >>>
> >>>To summarize for people learning from my mistakes. I didn\'t know what
> >>>items I needed from cgywin and I hadn\'t read about how to generate the
> >>>autoconf. Read the documentation, ALL the documentation.
> >>>
> >>>Peter Manahan wrote:
> >>>
> >>>>--------------070507060708010903020602
> >>>>Content-Type: text/plain; charset=us-ascii; format=flowed
> >>>>Content-Transfer-Encoding: 7bit
> >>>>
> >>>>I think you need the following steps from the autoconf menu.
> >>>>
> >>>>6a.Generate Autoconf
> >>>>6b.Run configure
> >>>>
> >>>>I don\'t have a version handy so this is from memory. Its what I do on
> >>>>
> >>linux.
> >>
> >>>>Peter
> >>>>Clinton James wrote:
> >>>>
> >>>>>Now my ignorance is going to really shine.
> >>>>>[DELETED A BUNCH OF JUNK]
> >>>>>6) Go into the editor and type the following
> >>>>>-------------------------------
> >>>>>#include <iostream>
> >>>>>
> >>>>>int main()
> >>>>>{
> >>>>> cout << \"Eclipse says hello.\" << endl;
> >>>>> return 0;
> >>>>>}
> >>>>>-------------------------------
> >>>>>
> >>>>>7) Click on Project->Rebuild All
> >>>>>
> >>>>>8) Output says
> >>>>>
> >>>>>
> >>>>>>make all
> >>>>>>
> >>>>>>
> >>>>>make: *** No rule to make target `all\'. Stop
> >>>>>
> >>>>>I cannot find a make file and that may be the problem, but I was under
> >>>>>
> >>the
> >>
> >>>>>impression that eclipse was suppose to help with that detail. My
> >>>>>background is using MSVC so my experience in command line compiling is
> >>>>>using tarballs with \"make all\" \"make install\" and tweaking a bit of
> >>>>>
> >>code
> >>
> >>>>>and recompiling on Linux.
> >>>>>
> >>>>>Jeff Turnham wrote:
> >>>>>
> >>>>>
> >>>>>>What problem are you having running eclipse under cygwin?
> >>>>>>I can\'t remember having to do anything special to get the two to work
> >>>>>>together.
> >>>>>>
> >>>>>>
> >>>>>>Jeff Turnnham...
> >>>>>>
> >>>>>>
> >>>>>>\"Clinton James\" <clinton.james@jidn.com> wrote in message
> >>>>>>news:a53fb7$nta$1@rogue.oti.com...
> >>>>>>
> >>>>>>
> >>>>>>>I know Windows is not a supported platform, but I have noticed
> >>>>>>>
> >>several
> >>
> >>>>>>>people posting which seem to be using this platform. I have been
> >>>>>>>
> >>unable
> >>
> >>>>>>>to get eclipse working with cgywin. Is there someone out there who
> >>>>>>>
> >>could
> >>
> >>>>>>>write up a brief HOWTO on getting eclipse setup on the windows
> >>>>>>>
> >>platform
> >>
> >>>>>>>using cgywin? Besides helping me, this might encourage others to
> >>>>>>>
> >>work
> >>
> >>>>>>>with eclipse who otherwise don\'t have a linux box sitting nearby.
> >>>>>>>
> >>>>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>
> >
> >
> >
> >
> >
|
|
|
Re: cgywin + eclipse setup howto [message #20940 is a reply to message #20936] |
Mon, 25 February 2002 16:14 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: johan.nosp.m.appeal.se
Reading the thread again, I realize that I mis-understood who was
commenting about what.
You are right that it should work out of the box, and if this is indeed
an Eclipse problem (which it might very well be), it should be fixed in
Eclipse, not by some workaround.
Cheers //Johan
Clinton James wrote:
> Yes that will work. The only problem is that eclipse generates the
> commands. I can do it manually, but I thought the idea was to have
> eclipse do it for you. Shouldn't eclipse use "sh -c" whenever it is
> executing anything other than a shell script?
>
> Johan Walles wrote:
>
>
>>Try using "sh -c touch whatever" instead of just "sh touch whatever".
>>That should do the trick.
>>
>
>> //Johan
>>
>
>>Clinton James wrote:
>>
>>>The PATH is OK by checking both SET from the windows command line and by
>>>env. sh doesn\'t appear to like any argument that is not a script. \"sh
>>>autogen.sh\" works fine. However typing in \"sh touch -m configure\"
>>>complains as previously mentioned. This appears to be consistant with the
>>>linux box I have access to which is using bash as sh. I\'ll have to look
>>>into this over the weekend and find out what I am doing wrong.
>>>
>>>Jeff Turnham wrote:
>>>
>>>
>>>
>>>>Ahh, I guess I never had any problems under cygwin since I installed
>>>>everything I could ;-) So you\'re right, we should probably document
>>>>somewhere what dependencies we have on system tools.
>>>>
>>>>
>>>>That \"touch\" problem would seem to be due to an incorrect PATH. What
>>>>happens if you goto the Command Launcher view and type \"env\" (or
>>>>\"set\"...whichever works). Does your /bin directory, where I assume
>>>>
>>>>
>>>\"touch\"
>>>
>>>
>>>>exists, appear in the PATH variable? If it does then does it also appear
>>>>when you try \"sh env\"?
>>>>
>>>>
>>>>Note: I don\'t have Windoze booted up right now, so I can\'t verify that
>>>>
> the
>
>>>>autoconf stuff is working for me. If I get some time later today, I\'ll
>>>>
> boot
>
>>>>it up and give it a try.
>>>>
>>>>
>>>>Thanks...
>>>>
>>>>
>>>>Jeff Turnham
>>>>
>>>>
>>>>\"Clinton James\" <clinton.james@jidn.com> wrote in message
>>>>news:a53vih$t8b$1@rogue.oti.com...
>>>>
>>>>
>>>>>I have now found this information in the tutorial after seeing your post.
>>>>>In my first attempt I found that libtool needed to be installed cygwin
>>>>>also.
>>>>>
>>>>>Now I think I\'m on the right track now except for one item. The command
>>>>>line has
>>>>>
>>>>>sh autogen.sh&&sh touch -m configure
>>>>>
>>>>>touch: Can\'t open touch: No such file or directory
>>>>>
>>>>>Now if I type \"touch -m configure\" all is good in the world, but I just
>>>>>can\'t get it to except it through sh. Any ideas on that one?
>>>>>
>>>>>To summarize for people learning from my mistakes. I didn\'t know what
>>>>>items I needed from cgywin and I hadn\'t read about how to generate the
>>>>>autoconf. Read the documentation, ALL the documentation.
>>>>>
>>>>>Peter Manahan wrote:
>>>>>
>>>>>
>>>>>>--------------070507060708010903020602
>>>>>>Content-Type: text/plain; charset=us-ascii; format=flowed
>>>>>>Content-Transfer-Encoding: 7bit
>>>>>>
>>>>>>I think you need the following steps from the autoconf menu.
>>>>>>
>>>>>>6a.Generate Autoconf
>>>>>>6b.Run configure
>>>>>>
>>>>>>I don\'t have a version handy so this is from memory. Its what I do on
>>>>>>
>>>>>>
>>>>linux.
>>>>
>>>>
>>>>>>Peter
>>>>>>Clinton James wrote:
>>>>>>
>>>>>>
>>>>>>>Now my ignorance is going to really shine.
>>>>>>>[DELETED A BUNCH OF JUNK]
>>>>>>>6) Go into the editor and type the following
>>>>>>>-------------------------------
>>>>>>>#include <iostream>
>>>>>>>
>>>>>>>int main()
>>>>>>>{
>>>>>>> cout << \"Eclipse says hello.\" << endl;
>>>>>>> return 0;
>>>>>>>}
>>>>>>>-------------------------------
>>>>>>>
>>>>>>>7) Click on Project->Rebuild All
>>>>>>>
>>>>>>>8) Output says
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>make all
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>make: *** No rule to make target `all\'. Stop
>>>>>>>
>>>>>>>I cannot find a make file and that may be the problem, but I was under
>>>>>>>
>>>>>>>
>>>>the
>>>>
>>>>
>>>>>>>impression that eclipse was suppose to help with that detail. My
>>>>>>>background is using MSVC so my experience in command line compiling is
>>>>>>>using tarballs with \"make all\" \"make install\" and tweaking a bit of
>>>>>>>
>>>>>>>
>>>>code
>>>>
>>>>
>>>>>>>and recompiling on Linux.
>>>>>>>
>>>>>>>Jeff Turnham wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>What problem are you having running eclipse under cygwin?
>>>>>>>>I can\'t remember having to do anything special to get the two to work
>>>>>>>>together.
>>>>>>>>
>>>>>>>>
>>>>>>>>Jeff Turnnham...
>>>>>>>>
>>>>>>>>
>>>>>>>>\"Clinton James\" <clinton.james@jidn.com> wrote in message
>>>>>>>>news:a53fb7$nta$1@rogue.oti.com...
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>>I know Windows is not a supported platform, but I have noticed
>>>>>>>>>
>>>>>>>>>
>>>>several
>>>>
>>>>
>>>>>>>>>people posting which seem to be using this platform. I have been
>>>>>>>>>
>>>>>>>>>
>>>>unable
>>>>
>>>>
>>>>>>>>>to get eclipse working with cgywin. Is there someone out there who
>>>>>>>>>
>>>>>>>>>
>>>>could
>>>>
>>>>
>>>>>>>>>write up a brief HOWTO on getting eclipse setup on the windows
>>>>>>>>>
>>>>>>>>>
>>>>platform
>>>>
>>>>
>>>>>>>>>using cgywin? Besides helping me, this might encourage others to
>>>>>>>>>
>>>>>>>>>
>>>>work
>>>>
>>>>
>>>>>>>>>with eclipse who otherwise don\'t have a linux box sitting nearby.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>
>>>
>>>
>>>
>
>
>
>
|
|
|
Re: cgywin + eclipse setup howto [message #20947 is a reply to message #20940] |
Tue, 26 February 2002 17:03 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Yasser Elmankabady![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=eyasser%40ca.ibm.com) Messages: 10 Registered: July 2009 |
Junior Member |
|
|
I did some investigation regarding CDT setup on cygwin and here is what I
found:
For now, there are 4 problems with autoconf and cygwin:
1. There is a problem executing multiple commands on Windows separated by
semi-colons. This affects the "Generate Configure" action. Currently
this action tries to execute -> "sh autogen.sh;sh configure && sh touch -m
configure", and fails due to the semi-colon. For now you can goto the
Command Launcher view and explicitly type "sh autogen.sh && sh configure
&& sh touch -m configure". This fix will be in the next driver.
2. There is a problem executing the touch command. You can ignore this
error for now, while making sure you do the following:
When you execute the "Run Configure" action, the tool will prompt you with
a message saying that configure is not up to date. Just ignore it and
click "No" to skip the update part as it is up to date already.
This fix (which involves adding quotes around the string that sh is to
execute) will also be in the next driver.
3. Another problem I have encountered is with libtool on cygwin. Make
sure that you have the latest libtool package. I downloaded the one that
comes with the latest cygwin release version 1.3.9 and it worked for me.
4. There seems to be a problem with the way automake is reading the
Makefile.am file on Windows. It is not respecting line continuation as in
the following:
mytarget_SOURCES = \
source1.cpp \
source2.cpp and so on
This causes the generated Makefile(s) to contain errors. The work-around
is edit your Makefile.am file and remove any line continuation putting all
file names on one line (separated by spaces), and then re-generate your
autoconf files. This problem will be investigated further.
Johan Walles wrote:
> Reading the thread again, I realize that I mis-understood who was
> commenting about what.
> You are right that it should work out of the box, and if this is indeed
> an Eclipse problem (which it might very well be), it should be fixed in
> Eclipse, not by some workaround.
> Cheers //Johan
> Clinton James wrote:
> > Yes that will work. The only problem is that eclipse generates the
> > commands. I can do it manually, but I thought the idea was to have
> > eclipse do it for you. Shouldn't eclipse use "sh -c" whenever it is
> > executing anything other than a shell script?
> >
> > Johan Walles wrote:
> >
> >
> >>Try using "sh -c touch whatever" instead of just "sh touch whatever".
> >>That should do the trick.
> >>
> >
> >> //Johan
> >>
> >
> >>Clinton James wrote:
> >>
> >>>The PATH is OK by checking both SET from the windows command line and by
> >>>env. sh doesn\'t appear to like any argument that is not a script. \"sh
> >>>autogen.sh\" works fine. However typing in \"sh touch -m configure\"
> >>>complains as previously mentioned. This appears to be consistant with the
> >>>linux box I have access to which is using bash as sh. I\'ll have to look
> >>>into this over the weekend and find out what I am doing wrong.
> >>>
> >>>Jeff Turnham wrote:
> >>>
> >>>
> >>>
> >>>>Ahh, I guess I never had any problems under cygwin since I installed
> >>>>everything I could ;-) So you\'re right, we should probably document
> >>>>somewhere what dependencies we have on system tools.
> >>>>
> >>>>
> >>>>That \"touch\" problem would seem to be due to an incorrect PATH. What
> >>>>happens if you goto the Command Launcher view and type \"env\" (or
> >>>>\"set\"...whichever works). Does your /bin directory, where I assume
> >>>>
> >>>>
> >>>\"touch\"
> >>>
> >>>
> >>>>exists, appear in the PATH variable? If it does then does it also appear
> >>>>when you try \"sh env\"?
> >>>>
> >>>>
> >>>>Note: I don\'t have Windoze booted up right now, so I can\'t verify that
> >>>>
> > the
> >
> >>>>autoconf stuff is working for me. If I get some time later today, I\'ll
> >>>>
> > boot
> >
> >>>>it up and give it a try.
> >>>>
> >>>>
> >>>>Thanks...
> >>>>
> >>>>
> >>>>Jeff Turnham
> >>>>
> >>>>
> >>>>\"Clinton James\" <clinton.james@jidn.com> wrote in message
> >>>>news:a53vih$t8b$1@rogue.oti.com...
> >>>>
> >>>>
> >>>>>I have now found this information in the tutorial after seeing your
post.
> >>>>>In my first attempt I found that libtool needed to be installed cygwin
> >>>>>also.
> >>>>>
> >>>>>Now I think I\'m on the right track now except for one item. The command
> >>>>>line has
> >>>>>
> >>>>>sh autogen.sh&&sh touch -m configure
> >>>>>
> >>>>>touch: Can\'t open touch: No such file or directory
> >>>>>
> >>>>>Now if I type \"touch -m configure\" all is good in the world, but I
just
> >>>>>can\'t get it to except it through sh. Any ideas on that one?
> >>>>>
> >>>>>To summarize for people learning from my mistakes. I didn\'t know what
> >>>>>items I needed from cgywin and I hadn\'t read about how to generate the
> >>>>>autoconf. Read the documentation, ALL the documentation.
> >>>>>
> >>>>>Peter Manahan wrote:
> >>>>>
> >>>>>
> >>>>>>--------------070507060708010903020602
> >>>>>>Content-Type: text/plain; charset=us-ascii; format=flowed
> >>>>>>Content-Transfer-Encoding: 7bit
> >>>>>>
> >>>>>>I think you need the following steps from the autoconf menu.
> >>>>>>
> >>>>>>6a.Generate Autoconf
> >>>>>>6b.Run configure
> >>>>>>
> >>>>>>I don\'t have a version handy so this is from memory. Its what I do on
> >>>>>>
> >>>>>>
> >>>>linux.
> >>>>
> >>>>
> >>>>>>Peter
> >>>>>>Clinton James wrote:
> >>>>>>
> >>>>>>
> >>>>>>>Now my ignorance is going to really shine.
> >>>>>>>[DELETED A BUNCH OF JUNK]
> >>>>>>>6) Go into the editor and type the following
> >>>>>>>-------------------------------
> >>>>>>>#include <iostream>
> >>>>>>>
> >>>>>>>int main()
> >>>>>>>{
> >>>>>>> cout << \"Eclipse says hello.\" << endl;
> >>>>>>> return 0;
> >>>>>>>}
> >>>>>>>-------------------------------
> >>>>>>>
> >>>>>>>7) Click on Project->Rebuild All
> >>>>>>>
> >>>>>>>8) Output says
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>>make all
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>make: *** No rule to make target `all\'. Stop
> >>>>>>>
> >>>>>>>I cannot find a make file and that may be the problem, but I was under
> >>>>>>>
> >>>>>>>
> >>>>the
> >>>>
> >>>>
> >>>>>>>impression that eclipse was suppose to help with that detail. My
> >>>>>>>background is using MSVC so my experience in command line compiling is
> >>>>>>>using tarballs with \"make all\" \"make install\" and tweaking a bit
of
> >>>>>>>
> >>>>>>>
> >>>>code
> >>>>
> >>>>
> >>>>>>>and recompiling on Linux.
> >>>>>>>
> >>>>>>>Jeff Turnham wrote:
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>>What problem are you having running eclipse under cygwin?
> >>>>>>>>I can\'t remember having to do anything special to get the two to
work
> >>>>>>>>together.
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>Jeff Turnnham...
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>\"Clinton James\" <clinton.james@jidn.com> wrote in message
> >>>>>>>>news:a53fb7$nta$1@rogue.oti.com...
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>>I know Windows is not a supported platform, but I have noticed
> >>>>>>>>>
> >>>>>>>>>
> >>>>several
> >>>>
> >>>>
> >>>>>>>>>people posting which seem to be using this platform. I have been
> >>>>>>>>>
> >>>>>>>>>
> >>>>unable
> >>>>
> >>>>
> >>>>>>>>>to get eclipse working with cgywin. Is there someone out there who
> >>>>>>>>>
> >>>>>>>>>
> >>>>could
> >>>>
> >>>>
> >>>>>>>>>write up a brief HOWTO on getting eclipse setup on the windows
> >>>>>>>>>
> >>>>>>>>>
> >>>>platform
> >>>>
> >>>>
> >>>>>>>>>using cgywin? Besides helping me, this might encourage others to
> >>>>>>>>>
> >>>>>>>>>
> >>>>work
> >>>>
> >>>>
> >>>>>>>>>with eclipse who otherwise don\'t have a linux box sitting nearby.
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>
> >>>
> >>>
> >>>
> >
> >
> >
> >
|
|
|
Goto Forum:
Current Time: Fri Aug 23 11:14:13 GMT 2024
Powered by FUDForum. Page generated in 0.04834 seconds
|