Saturday 20 January 2018

Notes On Using Cygwin For DSP Development

Many companies I work with have corporate policies regarding the use of Windows OS so I usually develop application code in this OS. I have used a variety of compiler tools over the years but I have been increasingly using GCC under Cygwin for my DSP development work.

Over the past few years I have found the Cygwin/GCC/SigLb combination to be both powerful and reliable.

In order to assist customers setup a Cygwin/GCC/SigLb development environment I get the customer to install the base cygwin installation then run the following batch file :

rem Batch file for configuring Cygwin/GCC/SigLb development environment

rem Modify these environment variables

set CYGWIN_ROOT_TEMP=C:\cygwin64
set SIGLIB_ROOT_TEMP=/cygdrive/c/siglib

rem Do not modify below this line

setx CYGWIN_HOME %CYGWIN_ROOT_TEMP%
setx PATH "%PATH%;%CYGWIN_ROOT_TEMP%\bin"
setx PATH "%PATH%;C:\Program Files\gnuplot\bin;C:\siglib\Examples\FileIO"

setx C_INCLUDE_PATH %SIGLIB_ROOT_TEMP%/include:%SIGLIB_ROOT_TEMP%/nhl:%SIGLIB_ROOT_TEMP%/gnuplot_c/src
setx LIBRARY_PATH %SIGLIB_ROOT_TEMP%/lib/GCC_Win:%SIGLIB_ROOT_TEMP%/nhl:%SIGLIB_ROOT_TEMP%/gnuplot_c/src

rem Install required some packages (and some extras that are useful for development)

%CYGWIN_ROOT_TEMP%\setup-x86_64.exe --no-desktop --no-shortcuts --no-startmenu --quiet-mode --root %CYGWIN_ROOT_TEMP% --packages gcc-core gcc-g++ gccmakedep gdb git gitk gedit gedit-code-assistance gedit-devel gedit-plugins grep make cmake nano splint wget xorg-server xinit grep openssh diff patch

I use the Gnuplot/C (https://sourceforge.net/projects/gnuplotc/) interface to Gnuplot for plotting DSP graphical results. Gnuplot/C pipes the data from the application to Gnuplot and while Gnuplot can be installed in Cygwin I find that a native Windows installation is more efficient and there are no limitations when piping data from the Cygwin environment to the native Windows. More details on installing Gnuplot are available in this blog post : http://blog.numerix-dsp.com/2014/06/gnuplot-installation-under-windows.html.

If you have found this solution useful then please do hit the Google (+1) button so that others may be able to find it as well.

Evaluate The Numerix-DSP Libraries : http://www.numerix-dsp.com/eval/

No comments:

Post a Comment