Discussion:
[Cygwin-ports-general] Trouble getting started with Cygwin Ports...
Nikhil Nair
2014-08-05 08:36:09 UTC
Permalink
Hi,

I'm quite new to Cygwin, and want a couple of packages that are in Cygwin
Ports (libfluidsynth-devel/libfluidsynth1), so I'm trying to get Cygwin
Ports working on my machine. I'm running Windows 8 64-bit, so I'm using
x86_64.

First issue: I'm not sure what the -K flag to setup-x86_64.exe does (a la
the instructions on the Cygwin Ports front page), but it seems to have the
result that setup doesn't launch at all. I tried:

1. cygstart -- path-to-setup.exe -K (from within Cygwin); nothing
happened. When I remove the -K flag, I get the user account control dialog
box as usual, and when I click on yes (yes, I do want to allow the program
to make changes to my computer), setup launches fine.

2. I tried creating a shortcut to setup-x86_64.exe, adding the -K flag to
the target, and use that to launch it. Same result: nothing, and removing
the -K flag makes it operate as usual.

So that's issue 1. I tried proceeding without -K, but everything ground to
a halt when setup.ini from ftp.cygwinports.org was rejected; setup
complained of a corrupted mirror. I'm not sure if that's something the -K
flag was supposed to bypass...

I'm pretty sure, at this point, that it all wasn't working properly. I
tried typing fluidsynth into the search box and clicking on View, but
nothing came up.

I've verified I'm using the latest setup-x86_64.exe; I'm not sure how to
check any other relevant version numbers you may need.

Help much appreciated!

Thanks, and best wishes,

Nikhil.
Adam Dinwoodie
2014-08-05 09:16:03 UTC
Permalink
Post by Nikhil Nair
First issue: I'm not sure what the -K flag to setup-x86_64.exe does (a la
the instructions on the Cygwin Ports front page), but it seems to have the
1. cygstart -- path-to-setup.exe -K (from within Cygwin); nothing
happened. When I remove the -K flag, I get the user account control dialog
box as usual, and when I click on yes (yes, I do want to allow the program
to make changes to my computer), setup launches fine.
2. I tried creating a shortcut to setup-x86_64.exe, adding the -K flag to
the target, and use that to launch it. Same result: nothing, and removing
the -K flag makes it operate as usual.
You seem to be missing the next argument to that command: the URI of the
Cygwin Ports GPG key. The -K flag speficies that URI; you can see the
purpose of all the command line arguments by running `setup-<arch>.exe
--help` from a command line, or at https://cygwin.com/faq/faq.html#faq.setup.cli.
Post by Nikhil Nair
So that's issue 1. I tried proceeding without -K, but everything ground to
a halt when setup.ini from ftp.cygwinports.org was rejected; setup
complained of a corrupted mirror. I'm not sure if that's something the -K
flag was supposed to bypass...
Yes, that's what the -K flag is for. Specifying the GPG key allows the
setup program to verify the packages provided by the mirror. No GPG key
means the packages look invalid.
Nikhil Nair
2014-08-05 14:34:48 UTC
Permalink
Post by Adam Dinwoodie
You seem to be missing the next argument to that command: the URI of the
Cygwin Ports GPG key.
Ah. Yes. Err... you see...

Wondered if I was missing something blindingly obvious. Seems I was.
Thanks for the catch.

The installation went through fine, but now something odd has happened: I
can't get into Cygwin terminal at all. At first, my machine was reporting
a missing shortcut (but I checked manually, and the linked file,
mintty.exe, was definitely there); now, after a reboot, it's saying "this
appt can't run on your computer".

Is this the appropriate place to be asking about this, or should I post on
the main Cygwin list?

Thanks,

Nikhil.
Nikhil Nair
2014-08-07 17:20:38 UTC
Permalink
Hi,

Is there a list of Cygwin Ports mirrors somewhere? I found a reference to
one by accident (it was actually a mirror of sources.redhat.com, which
seemed to have a mirror of Cygwin Ports within it, but another mirror I
tried of sources.redhat.com didn't...); so I know they're around, but I
don't know how to go about finding a UK or Europe-based one.

Thanks,

Nikhil.
Yaakov Selkowitz
2014-08-07 17:23:18 UTC
Permalink
Post by Nikhil Nair
Is there a list of Cygwin Ports mirrors somewhere? I found a reference to
one by accident (it was actually a mirror of sources.redhat.com, which
seemed to have a mirror of Cygwin Ports within it, but another mirror I
tried of sources.redhat.com didn't...); so I know they're around, but I
don't know how to go about finding a UK or Europe-based one.
I haven't verified them recently, but the most recent list of known
mirrors can be found here:

http://article.gmane.org/gmane.os.cygwin.ports.general/1292

HTH,

Yaakov
Cygwin Ports
Nikhil Nair
2014-08-07 18:36:34 UTC
Permalink
Post by Yaakov Selkowitz
Post by Nikhil Nair
Is there a list of Cygwin Ports mirrors somewhere? I found a reference to
one by accident (it was actually a mirror of sources.redhat.com, which
seemed to have a mirror of Cygwin Ports within it, but another mirror I
tried of sources.redhat.com didn't...); so I know they're around, but I
don't know how to go about finding a UK or Europe-based one.
I haven't verified them recently, but the most recent list of known
http://article.gmane.org/gmane.os.cygwin.ports.general/1292
Thanks, that's very helpful.

In that article, you mentioned a restriction that the Cygwin Ports mirror
mustn't be the same domain as the Cygwin mirror; you said you hoped that
would be going away at some point. Is that restriction still there as far
as you know?

Cheers,

Nikhil.
Yaakov Selkowitz
2014-08-07 18:46:08 UTC
Permalink
Post by Nikhil Nair
In that article, you mentioned a restriction that the Cygwin Ports mirror
mustn't be the same domain as the Cygwin mirror; you said you hoped that
would be going away at some point. Is that restriction still there as far
as you know?
Now that you mention it, Jon TURNEY has notified me that he recently
fixed this, but you must use the very latest setup*.exe from cygwin.com.

HTH,


Yaakov
Cygwin Ports
Nikhil Nair
2014-08-08 20:42:41 UTC
Permalink
Hi,

My main reason for using Cygwin Ports was FluidSynth: I want to use
libfluidsynth-devel in some software I'm writing, playing back in realtime.

However, my initial experiments aren't working well at all. I took the
files example.c and example.sf2 from the examples/ directory in a much
older version of libfluidsynth-dev I have installed on a Debian Linux box,
and tried to run those under Cygwin. No problem compiling, but the audio
sounded... well, weird, for want of a better word.

I tried changing the audio driver with fluid_settings_setstr (settings,
"audio.driver", "portaudio"); immediately before the driver was
initialised, and that changed the results, but it wasn't exactly an
improvement: now I just got noise!

Just to verify it is actually working correctly, I changed it again to
write to a file, then played that file back with mplayer. This time, the
audio came out exactly as I'd have expected - and exactly the same as on
the Debian box.

So, bottom line: the only audio drivers compiled in seem to be file,
PulseAudio and PortAudio, but the out-of-the-box settings for both
PulseAudio and PortAudio don't seem to result in the expected audio.

Could anyone give me any hints here - or, if not, suggest who I should be
asking?

Thanks, and best wishes,

Nikhil.
Nikhil Nair
2014-08-08 21:32:39 UTC
Permalink
Hi again,

OK, a few more details and tests.

1. mplayer with the PulseAudio driver is working properly. e.g. mplayer
-ao pulse fluidsynth.wav.

2. When I use the PulseAudio driver from FluidSynth, the notes are
chopping off early, then restarting before stopping properly; and the
interval between notes seems inconsistent, as if sleep(1) isn't giving
consistent results. That can't be the case, though, since the writing to
file worked fine, and it was doing that in realtime, not speeded up, so the
same delay would be needed.

3. I'm getting a warning that it's unable to set the thread to high
priority.

Not sure how much this helps...

Cheers,

Nikhil.
Post by Nikhil Nair
Hi,
My main reason for using Cygwin Ports was FluidSynth: I want to use
libfluidsynth-devel in some software I'm writing, playing back in realtime.
However, my initial experiments aren't working well at all. I took the
files example.c and example.sf2 from the examples/ directory in a much
older version of libfluidsynth-dev I have installed on a Debian Linux box,
and tried to run those under Cygwin. No problem compiling, but the audio
sounded... well, weird, for want of a better word.
I tried changing the audio driver with fluid_settings_setstr (settings,
"audio.driver", "portaudio"); immediately before the driver was
initialised, and that changed the results, but it wasn't exactly an
improvement: now I just got noise!
Just to verify it is actually working correctly, I changed it again to
write to a file, then played that file back with mplayer. This time, the
audio came out exactly as I'd have expected - and exactly the same as on
the Debian box.
So, bottom line: the only audio drivers compiled in seem to be file,
PulseAudio and PortAudio, but the out-of-the-box settings for both
PulseAudio and PortAudio don't seem to result in the expected audio.
Could anyone give me any hints here - or, if not, suggest who I should be
asking?
Thanks, and best wishes,
Nikhil.
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Cygwin-ports-general mailing list
https://lists.sourceforge.net/lists/listinfo/cygwin-ports-general
Loading...