* how to use windres.exe without installing cygwin?
@ 2011-05-10 14:23 ironsand
2011-05-10 14:52 ` Corinna Vinschen
2011-05-17 12:57 ` ironsand
0 siblings, 2 replies; 6+ messages in thread
From: ironsand @ 2011-05-10 14:23 UTC (permalink / raw)
To: cygwin
Hi
I write a script using windres.exe and want to distribute it.
But I couldn't find which files schould I include in my package.
It seems that windres.exe calls sh.exe and sh.exe calls gcc.exe.
At first I deleted cygwin path from environment variable and copied
following files in script folder.
/bin/cyggcc_s-1.dll
/bin/cyggmp-3.dll
/bin/cygiconv-2.dll
/bin/cygintl-8.dll
/bin/cygmpfr-1.dll
/bin/cygncursesw-10.dll
/bin/cygreadline7.dll
/bin/cygwin1.dll
/bin/gcc-3.exe
/bin/gcc-4.exe
/bin/gcc.exe
/bin/sh.exe
/bin/windres.exe
/etc/alternatives/*
/lib/gcc/*
Then it worked in my computer(win7).
But when I tried to test in other computer(vista), it did not work, and put
out following error:
/bin/sh: /usr/bin/gcc: cannot execute binary file
/usr/bin/windres: preprocessing failed.
I tried also in cmd.exe following line, but occurred same error.
c:\copiedcygwin\bin\windres.exe a.rc -o a.res
For the test I copied all files under the cygwin folder from Win7 to Vista.
But it does not work still.
I know if I install cygwin from setup.exe to Vista, then I can use
windres.exe.
But I don't want to let all users to install cygwin.
Is there someone who knows how to include windres.exe in a software without
installing cygwin? %-|
thanks
--
View this message in context: http://old.nabble.com/how-to-use-windres.exe-without-installing-cygwin--tp31586006p31586006.html
Sent from the Cygwin list mailing list archive at Nabble.com.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: how to use windres.exe without installing cygwin?
2011-05-10 14:23 how to use windres.exe without installing cygwin? ironsand
@ 2011-05-10 14:52 ` Corinna Vinschen
2011-05-10 15:39 ` Charles Wilson
2011-05-11 10:15 ` ironsand
2011-05-17 12:57 ` ironsand
1 sibling, 2 replies; 6+ messages in thread
From: Corinna Vinschen @ 2011-05-10 14:52 UTC (permalink / raw)
To: cygwin
On May 10 07:23, ironsand wrote:
>
> Hi
>
> I write a script using windres.exe and want to distribute it.
I assume you are aware that all these tools including Cygwin are under
the GPL and so you have to provide the sources of all tools and DLLs
together with the binaries, right?
> But I couldn't find which files schould I include in my package.
> [...]
> I know if I install cygwin from setup.exe to Vista, then I can use
> windres.exe.
> But I don't want to let all users to install cygwin.
>
> Is there someone who knows how to include windres.exe in a software without
> installing cygwin? %-|
You can't. Windres is a Cygwin tool using the Cygwin DLL. Gcc is a
Cygwin tool using the Cygwin DLL. Either you provide *all* the stuff
required to run the script (and don't forget to provide the sources as
well), or you let the user install Cygwin via setup.exe. This is the
preferred method anyway.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: how to use windres.exe without installing cygwin?
2011-05-10 14:52 ` Corinna Vinschen
@ 2011-05-10 15:39 ` Charles Wilson
2011-05-11 10:18 ` ironsand
2011-05-11 10:15 ` ironsand
1 sibling, 1 reply; 6+ messages in thread
From: Charles Wilson @ 2011-05-10 15:39 UTC (permalink / raw)
To: cygwin
On 5/10/2011 10:51 AM, Corinna Vinschen wrote:
> On May 10 07:23, ironsand wrote:
>> Is there someone who knows how to include windres.exe in a software without
>> installing cygwin? %-|
>
> You can't. Windres is a Cygwin tool using the Cygwin DLL. Gcc is a
> Cygwin tool using the Cygwin DLL. Either you provide *all* the stuff
> required to run the script (and don't forget to provide the sources as
> well), or you let the user install Cygwin via setup.exe. This is the
> preferred method anyway.
Well, OUR windres is a cygwin tool. You can, of course, use the
mingw.org or mingw64.sf version of windres. They each have their own
list(s) of dependencies, but cygwin1.dll is not one of them.
They don't grok cygwin's unix paths, tho.
And, as always, the binutils tools (incl. windres) are GPL, so if you
distribute the windres binary you must also distribute the binutils
source code.
--
Chuck
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: how to use windres.exe without installing cygwin?
2011-05-10 14:52 ` Corinna Vinschen
2011-05-10 15:39 ` Charles Wilson
@ 2011-05-11 10:15 ` ironsand
1 sibling, 0 replies; 6+ messages in thread
From: ironsand @ 2011-05-11 10:15 UTC (permalink / raw)
To: cygwin
Hi Corinna,
thanks for your answer.
Of course I'm aware of GPL. I'll provide it with source code.
>You can't. Windres is a Cygwin tool using the Cygwin DLL. Gcc is a
>Cygwin tool using the Cygwin DLL. Either you provide *all* the stuff
>required to run the script (and don't forget to provide the sources as
>well), or you let the user install Cygwin via setup.exe. This is the
>preferred method anyway.
How can I find "the stuff required to run the script"?
Even if I copy all files to another computer it does not work. (I set proper
PATH, of course.)
Is there any other stuff that cygwin requires and where can I find it?
Tetsuya
--
View this message in context: http://old.nabble.com/how-to-use-windres.exe-without-installing-cygwin--tp31586006p31592937.html
Sent from the Cygwin list mailing list archive at Nabble.com.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: how to use windres.exe without installing cygwin?
2011-05-10 15:39 ` Charles Wilson
@ 2011-05-11 10:18 ` ironsand
0 siblings, 0 replies; 6+ messages in thread
From: ironsand @ 2011-05-11 10:18 UTC (permalink / raw)
To: cygwin
Hi Chuck,
Charles Wilson-2 wrote:
>
> Well, OUR windres is a cygwin tool. You can, of course, use the
> mingw.org or mingw64.sf version of windres. They each have their own
> list(s) of dependencies, but cygwin1.dll is not one of them.
>
Thanks for tips. If I can't make to work my script with cygwin, I will try
with mingw version windres.
--
Tetsuya
--
View this message in context: http://old.nabble.com/how-to-use-windres.exe-without-installing-cygwin--tp31586006p31592961.html
Sent from the Cygwin list mailing list archive at Nabble.com.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: how to use windres.exe without installing cygwin?
2011-05-10 14:23 how to use windres.exe without installing cygwin? ironsand
2011-05-10 14:52 ` Corinna Vinschen
@ 2011-05-17 12:57 ` ironsand
1 sibling, 0 replies; 6+ messages in thread
From: ironsand @ 2011-05-17 12:57 UTC (permalink / raw)
To: cygwin
ironsand wrote:
>
> I copied all files under the cygwin folder from Win7 to Vista. But it does
> not work still.
>
I've finally found why I could not use windres.exe.
I copied files of cygwin through Dropbox.
But Dropbox doesn't handle symlink properly.
I did not know about it.
--
View this message in context: http://old.nabble.com/how-to-use-windres.exe-without-installing-cygwin--tp31586006p31637190.html
Sent from the Cygwin list mailing list archive at Nabble.com.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-05-17 12:57 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-10 14:23 how to use windres.exe without installing cygwin? ironsand
2011-05-10 14:52 ` Corinna Vinschen
2011-05-10 15:39 ` Charles Wilson
2011-05-11 10:18 ` ironsand
2011-05-11 10:15 ` ironsand
2011-05-17 12:57 ` ironsand
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).