[Mono-list] cvs cygwin Error Npgsql
Mark Gimelfarb
mark@dawebber.com
Thu, 13 Nov 2003 13:35:54 -0600
The reason the error comes up is because resgen is a part of .NET SDK is is not
in the path (I'm assuming you are following the Mono Wiki). TO fix that, copy
dotnet.sh to dotnet.sh.ok and then edit your dotnet.sh in /etc/profile.d/ and
make it look like this:
<snip>
export
PATH=$PATH:/cygdrive/c/WINDOWS/Microsoft.NET/Framework/v1.1.4322/:"/cygdrive/c/P
rogram Files/Microsoft Visual Studio .NET 2003/SDK/v1.1/Bin"
</snip>
Source the file again, or logout/login. I must warn you however, that resgen
will crash the cygwin shell window, at least under Terminal Services. If that
happens to you simply run resgen in VS.NET's command window file by file on
various .resx files, restarting make in the cygwin window as it keeps stumbling
across various .resx files for Npgsql. You should, of course, revert your
dotnet.sh to not include .Net sdk dirs by copying dotnet.sh.ok over dotnet.sh
(the reverse process of what you did in the beginning). Now, with 2 windows
open--one a command window for VS.NET and one cygwin walk through the make
process, running resgen on file after file as make requests it, until the make
process is complete. This is not the best solution, but it will help you make
it through the build.
Regards,
Mark.
Quoting "Francisco Figueiredo Jr." <fxjrlists@yahoo.com.br>:
> Eduardo Osorio Armenta wrote:
>
> Hi Eduardo!
>
> > i'm trying
> >
> > to build from cvs
> >
> > but make on mcs
> >
> > sends me this:
> >
> > `/usr/local/src/mono/cvs/mcs/class/Npgsql'
> > resgen.exe Npgsql/NpgsqlState.resx
> > make[2]: *** [Npgsql/NpgsqlState.resources] Error 255
> > make[2]: Leaving directory
> > `/usr/local/src/mono/cvs/mcs/class/Npgsql'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory
> > `/usr/local/src/mono/cvs/mcs/class'
> > make: *** [all-recursive] Error 1
> >
> >
> uhmmmmm,
>
> What do you get when you execute resgen.exe??
> Can you try resgen.exe NpgsqlState.resx?
>
> I don't have cygwin right now to see what can be the problem.
> But, I will try to see at work where I have access to win boxes.
>
> Regards,
>
> Francisco Figueiredo Jr.
>
> _______________________________________________
> Mono-list maillist - Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>