public inbox for sourcenav@sourceware.org
 help / color / mirror / Atom feed
* Building Source navigator on Windows
@ 2000-07-21  4:09 Thomas Heller
  2000-07-21 14:13 ` Mike D
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Heller @ 2000-07-21  4:09 UTC (permalink / raw)
  To: sourcenav

Could you provide some instructions for building
Source Navigator under Windows?

Actually I only want to build some custom parsers...

Regards,

Thomas Heller


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

* Re: Building Source navigator on Windows
  2000-07-21  4:09 Building Source navigator on Windows Thomas Heller
@ 2000-07-21 14:13 ` Mike D
  2000-07-21 14:32   ` Syd Polk
  0 siblings, 1 reply; 4+ messages in thread
From: Mike D @ 2000-07-21 14:13 UTC (permalink / raw)
  To: sourcenav

To build Source Navigatot under Windows currently requires both Cygwin and
the Microsoft Visual C++ compiler.

I got it to build by first installing the latest Cygwin (from
http://sourceware.cygnus.com/cygwin ) then editing the batch file that
starts cygwin (cygwin.bat in the root of the cygwin install directory) so
that it includes the path and other variables for the VC++ compiler (I got
these from the VCVARS32.BAT file in the VC++ bin directory).


Then start cygwin and from the bash prompt do the following (dont actually
type the pointy brackets <>,  I'm just using them to delimit "unix" commands
in cygwin) :

1. make some directories :  <mkdir /build  /build/src /build/build>

2 change to the /build/src directory <cd /build/src>

3 Copy the SN451.tar.gz file which holds the sourcenav sources into
/build/src using file manager,  or that horrible explorer thing.

4 untar the Source distribution :  <tar -xzvf SN451.tar.gz>

5 change to the /build/build directory : <cd /build/build>

6 (strange but true) set some environment variables that make the build use
the VC++ compiler instead of the cygwin one :  <export CC=cl>  <export
CFLAGS="-Z7 -Od">

7 test the VC++ compiler is visible <cl /?>  should show a list of VC++
command line options

8 make a directory to hold the results of the build and add it to the path :
<mkdir /home home/mike home/mike/install home/mike/install/snav>  <export
PATH=$PATH:/home/mike/install/snav>
(you don't have to use the same path,  obviously)

9 configure the build :  <../src/configure --prefix=/home/mike/install/snav>
and inspect the output which should have a line near the beginning that says
that Visual C++ is being used.

10 build Source Navigator  <make>

11 install it <make install>

it should now be installed into /home/mike/install/snav,  have a look and
see.


In fairness I should say that the make install step did not terminate for
me - it went into an infinite recursion and I had to stop it by killing the
processes.

Also I submitted my zipped up build for possible hosting on the Source
Navigator web site.  The version that was put up differs a bit from what I
built - in particular a lot of the executable and library sizes are
different,  and the one that was put up seems more robust than mine.

So if anyone (Syd :-) is listening and wants to add anything to this,  or
say where there are any later patches available then please do.  I also want
to start adding some stuff (not parsers),  and it would be nice to know that
any bugs are due to my changes,  not my build methodology


(The Windows binaries on the web site are ace btw)


Regards,

Mike


> Could you provide some instructions for building
> Source Navigator under Windows?
>
> Actually I only want to build some custom parsers...
>
> Regards,
>
> Thomas Heller


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

* Re: Building Source navigator on Windows
  2000-07-21 14:13 ` Mike D
@ 2000-07-21 14:32   ` Syd Polk
  2000-07-23 23:23     ` Mike D
  0 siblings, 1 reply; 4+ messages in thread
From: Syd Polk @ 2000-07-21 14:32 UTC (permalink / raw)
  To: Mike D; +Cc: sourcenav

Mike D wrote:
> 
> To build Source Navigatot under Windows currently requires both Cygwin and
> the Microsoft Visual C++ compiler.

Right now we have only tried it with Visual C++ 5.0. 6.0 has its own
issues and problems. Rather than fix them, we are working on building
with cygwin in our current development. Probably won't be real for a few
months.
 
> I got it to build by first installing the latest Cygwin (from
> http://sourceware.cygnus.com/cygwin ) then editing the batch file that
> starts cygwin (cygwin.bat in the root of the cygwin install directory) so
> that it includes the path and other variables for the VC++ compiler (I got
> these from the VCVARS32.BAT file in the VC++ bin directory).
> 
> Then start cygwin and from the bash prompt do the following (dont actually
> type the pointy brackets <>,  I'm just using them to delimit "unix" commands
> in cygwin) :
> 
> 1. make some directories :  <mkdir /build  /build/src /build/build>
> 
> 2 change to the /build/src directory <cd /build/src>
> 
> 3 Copy the SN451.tar.gz file which holds the sourcenav sources into
> /build/src using file manager,  or that horrible explorer thing.
> 
> 4 untar the Source distribution :  <tar -xzvf SN451.tar.gz>
> 
> 5 change to the /build/build directory : <cd /build/build>
> 
> 6 (strange but true) set some environment variables that make the build use
> the VC++ compiler instead of the cygwin one :  <export CC=cl>  <export
> CFLAGS="-Z7 -Od">

Actually, I will post the real CFLAGS that I use when I get back to
work.
 
> 7 test the VC++ compiler is visible <cl /?>  should show a list of VC++
> command line options
> 
> 8 make a directory to hold the results of the build and add it to the path :
> <mkdir /home home/mike home/mike/install home/mike/install/snav>  <export
> PATH=$PATH:/home/mike/install/snav>
> (you don't have to use the same path,  obviously)

<buildirectory>/tcl8.1/win has to be in your path or some things will
fail.
 
> 9 configure the build :  <../src/configure --prefix=/home/mike/install/snav>
> and inspect the output which should have a line near the beginning that says
> that Visual C++ is being used.
> 
> 10 build Source Navigator  <make>

Use "make all-snavigator".

> 
> 11 install it <make install>

Use "make install-snavigator"
 
> it should now be installed into /home/mike/install/snav,  have a look and
> see.
> 
> In fairness I should say that the make install step did not terminate for
> me - it went into an infinite recursion and I had to stop it by killing the
> processes.

Hmm. I don't see that happen very often.
 
> Also I submitted my zipped up build for possible hosting on the Source
> Navigator web site.  The version that was put up differs a bit from what I
> built - in particular a lot of the executable and library sizes are
> different,  and the one that was put up seems more robust than mine.

I finally put up a build that I did on my machine. I also added the
InstallShield installer.
 
> So if anyone (Syd :-) is listening and wants to add anything to this,  or
> say where there are any later patches available then please do.  I also want
> to start adding some stuff (not parsers),  and it would be nice to know that
> any bugs are due to my changes,  not my build methodology

Without build logs, it is hard to tell.
 
> (The Windows binaries on the web site are ace btw)
> 
> Regards,
> 
> Mike

Thanks! Here is hoping they make it to the mirrors soon.
 
> > Could you provide some instructions for building
> > Source Navigator under Windows?
> >
> > Actually I only want to build some custom parsers...

There is a parser toolkit. It is designed for gcc, however, so it will
take some hacking to get to work. Look in <install>/share/sdk/examples.

> > Regards,
> >
> > Thomas Heller

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

* Re: Building Source navigator on Windows
  2000-07-21 14:32   ` Syd Polk
@ 2000-07-23 23:23     ` Mike D
  0 siblings, 0 replies; 4+ messages in thread
From: Mike D @ 2000-07-23 23:23 UTC (permalink / raw)
  To: sourcenav

>
> > To build Source Navigatot under Windows currently requires both Cygwin
and
> > the Microsoft Visual C++ compiler.
>
> Right now we have only tried it with Visual C++ 5.0. 6.0 has its own
> issues and problems. Rather than fix them, we are working on building
> with cygwin in our current development. Probably won't be real for a few
> months.

I will have to fix them then,  I only have VC++ 6.0,  not 5.0.  Do you have
a list of known or anticipated problems ?  The only thing that is
immediately obvious is that the initial project file add stage only seems to
indicate progress when the mouse pointer is held over the progress box.

> > 6 (strange but true) set some environment variables that make the build
use
> > the VC++ compiler instead of the cygwin one :  <export CC=cl>  <export
> > CFLAGS="-Z7 -Od">
>
> Actually, I will post the real CFLAGS that I use when I get back to
> work.

OK, thanks.

> >
> > 10 build Source Navigator  <make>
>
> Use "make all-snavigator".

I tried this,  but the executables seem to be the same as I got when I did
make by itself.  On the other hand <make install-snavigator>  didn't
recurse,  so that's one advantage :-)

>>it would be nice to know that
> > any bugs are due to my changes,  not my build methodology
>
> Without build logs, it is hard to tell.

Could you post me a build log from your system ?   I want to try to use
Source Navigator as a replacement for a build system we use at work (based
on an old version of Polymake).  I am going to have to make some mods to
alow SN to read our current file build instruction and it would be really
useful to know that the base build was the same.


Thanks,

Mike.


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

end of thread, other threads:[~2000-07-23 23:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-21  4:09 Building Source navigator on Windows Thomas Heller
2000-07-21 14:13 ` Mike D
2000-07-21 14:32   ` Syd Polk
2000-07-23 23:23     ` Mike D

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).