From: drowe67 Date: Fri, 26 Oct 2012 23:47:18 +0000 (+0000) Subject: Davids R's first version building on Win32 X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=24e848bb380cad4ff1fe7ab0783e0013fc08cece;p=freetel-svn-tracking.git Davids R's first version building on Win32 git-svn-id: https://svn.code.sf.net/p/freetel/code@829 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/fdmdv2/README.Win32 b/fdmdv2/README.Win32 new file mode 100644 index 00000000..d0c9955d --- /dev/null +++ b/fdmdv2/README.Win32 @@ -0,0 +1,33 @@ +README.Win32 +David Rowe 27 Oct 2012 + +Notes on building fdmdv2 for Windows. This is how David R did it, +Dave Witten used a different approach. Many variations are possible. + +1. Install MinGW & the mysys shell + + pwd -W prints true Win32 directory + + I also installed emacs and a svn binary + +2. "make install" for various packages below put DLLs in /usr/local/lib + "cd /usr/local/lib; pwd -W" to find the Win32 directory + add this to the Windows PATH (Control Panel - System - Advanced) + +3. WxWidgets: + download 2.9.4 tar ball + mkdir build-debug; cd build-debug + ./configure --with-msw + make && make install + +4. PortAudio: + download latest V19 + ./configure --enable-cxx + make && make install + +5. libndfile: + download lastest source tar all (not Win32 binaries) + ./configure && make && make install + +6. svn co fdmdv2 + cd fdmdv2/src + Make -f Makefile.Win32 + diff --git a/fdmdv2/src/Makefile.win32 b/fdmdv2/src/Makefile.win32 new file mode 100644 index 00000000..6f90c544 --- /dev/null +++ b/fdmdv2/src/Makefile.win32 @@ -0,0 +1,45 @@ +# 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.linux + +CODEC2_PATH=$(HOME)/codec2-dev +INCLUDE_PATH=/usr/local/include + +WX_CONFIG=wx-config +WX_CPPFLAGS = $(shell $(WX_CONFIG) --cxxflags) +WX_LIBS = $(shell $(WX_CONFIG) --libs core, base, aui, adv) +CODEC2_INC=$(CODEC2_PATH)/src +CODEC2_LIB=$(CODEC2_PATH)/src/.libs/libcodec2.a + +CPP_FLAGS = -I$(INCLUDE_PATH) $(WX_CPPFLAGS) -I$(CODEC2_INC) -I../extern/include -g -Wall +LIBS = $(WX_LIBS) $(CODEC2_LIB) -lm -lportaudiocpp -lportaudio -lpthread -lsndfile + +OBJS = topFrame.o \ +fdmdv2_main.o \ +fdmdv2_plot.o \ +fdmdv2_plot_scalar.o \ +fdmdv2_plot_scatter.o \ +fdmdv2_plot_spectrum.o \ +fdmdv2_plot_waterfall_linux.o \ +fdmdv2_pa_wrapper.o \ +dlg_about.o \ +dlg_audio.o \ +dlg_comports.o \ +dlg_options.o + +HDRS = fdmdv2_main.h fdmdv2_defines.h fdmdv2_plot.h fdmdv2_plot_scalar.h fdmdv2_plot_waterfall_linux.h fdmdv2_plot_scatter.h fdmdv2_plot_spectrum.h fdmdv2_pa_wrapper.h + +all: fdmdv2 + +fdmdv2: $(OBJS) + g++ -o fdmdv2 $(OBJS) $(CPP_FLAGS) $(LIBS) + +%.o: %.cpp $(HDRS) Makefile + g++ $(CPP_FLAGS) -c $< -o $@ + +clean: + rm -f *.o fdmdv2 + diff --git a/fdmdv2/src/dlg_audio.h b/fdmdv2/src/dlg_audio.h index 8f471295..4e4f0cef 100644 --- a/fdmdv2/src/dlg_audio.h +++ b/fdmdv2/src/dlg_audio.h @@ -16,7 +16,7 @@ #include "portaudio.h" #include "portaudiocpp/PortAudioCpp.hxx" -#ifdef WIN32 +#ifdef WIN32_ASIO #include "portaudiocpp/AsioDeviceAdapter.hxx" #endif