Trying to get Win32 build running again, put readme and makefile.win32 back in
authordrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Tue, 8 Jul 2014 01:08:15 +0000 (01:08 +0000)
committerdrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Tue, 8 Jul 2014 01:08:15 +0000 (01:08 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@1737 01035d8c-6547-0410-b346-abe4f91aad63

fdmdv2-dev/README.Win32 [new file with mode: 0644]
fdmdv2-dev/src/Makefile.win32 [new file with mode: 0644]

diff --git a/fdmdv2-dev/README.Win32 b/fdmdv2-dev/README.Win32
new file mode 100644 (file)
index 0000000..c2244a2
--- /dev/null
@@ -0,0 +1,88 @@
+README.Win32\r
+David Rowe 27 Oct 2012\r
+\r
+Debugging Under Windows\r
+-----------------------\r
+\r
+printfs don't appear until after the program finishes.  wxLogDebug()\r
+works but you need to run DebugView available from\r
+http://www.sysinternals.com to capture the messages.\r
+\r
+Building fdmdv2 & fdmdv-dev for Windows\r
+---------------------------------------\r
+\r
+Richard is currently working on a cmake build system for Win32, until\r
+then the approach below is being used by David Rowe.Many variations\r
+are possible:\r
+\r
+1. Install MinGW & the mysys shell\r
+   + pwd -W prints true Win32 directory\r
+   + I also installed emacs, "tortise svn", and "cmake"\r
+\r
+2. "make install" for various packages below put DLLs in /usr/local/lib\r
+   "cd /usr/local/lib; pwd -W" to find the Win32 directory\r
+   add this to the Windows PATH (Control Panel - System - Advanced)\r
+\r
+3. WxWidgets:\r
+   download 2.9.4 tar ball\r
+   mkdir build-debug; cd build-debug\r
+   ./configure --with-msw\r
+   make && make install\r
+\r
+4. PortAudio:\r
+   download latest V19\r
+   ./configure --enable-cxx\r
+   make && make install\r
+\r
+5. libsndfile:\r
+   download lastest source tar ball (not Win32 binaries)\r
+   ./configure && make && make install\r
+\r
+6. libsamplerate:\r
+   download latest source tar ball:\r
+       http://www.mega-nerd.com/SRC/libsamplerate-0.1.8.tar.gz(not Win32 binaries)\r
+   ./configure && make && make install\r
+\r
+7. hamlib\r
+\r
+   I couldn't get this to compile from source, so used the pre-built Win32\r
+   DLLs:\r
+\r
+   Download https://downloads.sourceforge.net/project/hamlib/hamlib/1.2.15.3/hamlib-win32-1.2.15.3.zip\r
+   Open hamlib-win32-1.2.15.3.zip with a GUI archive tool\r
+   Copy hamlib/include/* to /usr/local/include\r
+   Copy hamlib/bin/hamlib*.dll to /usr/local/lib\r
+   Copy hamlib/lib/gcc to /usr/local/lib\r
+\r
+8. sox (used for Filter - EQ)\r
+\r
+   $ wget http://sourceforge.net/projects/sox/files/sox/14.4.0/sox-14.4.0.tar.gz\r
+   $ tar xvzf sox-14.4.0.tar.gz\r
+   $ ./configure --enable-shared=no --without-id3tag --without-png --disable-gomp --with-oggvorbis=no --with-oss=no --with-flac=no --disable-dl-sndfile --with-waveaudio=no\r
+   $ make && make install\r
+\r
+   I couldn't find an install command line that worked, so manually copied the libs and include files.\r
+\r
+9. Speex (we use the DSP lib for noise reduction):\r
+\r
+   $ wget http://downloads.xiph.org/releases/speex/speex-1.2rc1.tar.gz \r
+   $ tar xvzf speex-1.2rc1.tar.gz\r
+   $ cd speex-1.2rc1\r
+   $ ./configure && make install\r
+     (ignore libogg warnings, we just want libspeexdsp.a)\r
\r
+10. Codec 2\r
+   $ check out codec-dev using tortise svn from:\r
+       wget https://freetel.svn.sourceforge.net/svnroot/freetel/codec2-dev\r
+   $ cd codec2-dev\r
+   $ mkdir build_win32\r
+   $ cd build_win32\r
+   $ cmake -G "MSYS Makefiles" ..\r
+   $ make\r
+\r
+11. freedv (dev version)\r
+   $ check out fdmdv2-dev using tortise svn from:\r
+       wget https://freetel.svn.sourceforge.net/svnroot/freetel/fdmdv-dev\r
+   $ cd fdmdv2-dev/src\r
+   $ make -f Makefile.Win32\r
+\r
diff --git a/fdmdv2-dev/src/Makefile.win32 b/fdmdv2-dev/src/Makefile.win32
new file mode 100644 (file)
index 0000000..58e00d9
--- /dev/null
@@ -0,0 +1,53 @@
+# src/Makefile.win32
+# David Rowe 26 Oct 2012
+#
+# Makefile for Win32 on msys/Mingw to help David R get up to speed
+#
+# $ make -f Makefile.Win32
+
+CODEC2_PATH=$(HOME)/codec2-dev
+INCLUDE_PATH=/usr/local/include
+
+WX_CONFIG=wx-config
+WX_CPPFLAGS = $(shell $(WX_CONFIG) --cxxflags) -D__WXDEBUG__
+WX_LIBS = $(shell $(WX_CONFIG) --libs core, base, aui, adv, net)
+SVN_REVISION=$(shell svnversion)
+CODEC2_INC=$(CODEC2_PATH)/src 
+CODEC2_LIB=$(CODEC2_PATH)/src/.libs/libcodec2.a
+
+CPP_FLAGS = -D_NO_AUTOTOOLS_ -I$(INCLUDE_PATH) $(WX_CPPFLAGS) -I$(CODEC2_INC) -I../extern/include -I. -g -Wall -DSVN_REVISION=\"$(SVN_REVISION)\"
+LIBS = $(WX_LIBS) $(CODEC2_LIB) -lm -lportaudiocpp -lportaudio -lpthread -lsndfile -lsamplerate -lhamlib -lsox -lctb-0.16
+
+OBJS = topFrame.o \
+fdmdv2_main.o \
+fdmdv2_plot.o \
+fdmdv2_plot_scalar.o \
+fdmdv2_plot_scatter.o \
+fdmdv2_plot_spectrum.o \
+fdmdv2_plot_waterfall.o \
+fdmdv2_pa_wrapper.o \
+dlg_audiooptions.o \
+dlg_ptt.o \
+dlg_options.o \
+dlg_filter.o \
+varicode.o \
+sox_biquad.o \
+hamlib.o \
+../../codec2-dev/src/golay23.o
+
+HDRS = version.h dlg_audiooptions.h dlg_ptt.h dlg_filter.h fdmdv2_main.h fdmdv2_defines.h fdmdv2_plot.h fdmdv2_plot_scalar.h fdmdv2_plot_waterfall.h fdmdv2_plot_scatter.h fdmdv2_plot_spectrum.h fdmdv2_pa_wrapper.h topFrame.h dlg_audiooptions.h topFrame.h varicode.h ../../codec2-dev/src/golay23.h hamlib.h
+
+all: freedv
+
+freedv: $(OBJS) 
+       g++ -o freedv $(OBJS) $(CPP_FLAGS) $(LIBS)
+
+%.o: %.cpp $(HDRS) Makefile.win32
+       g++ $(CPP_FLAGS) -c $< -o $@
+
+%.o: %.c $(HDRS) Makefile.win32
+       gcc $(CPP_FLAGS) -c $< -o $@
+
+clean:
+       rm -f *.o fdmdv2
+