Trying cmake on another OS.  Managed to make it this far.  Please no lectures 
about "root", I'm a SysAdmin and understand the consequences.  This is a test 
VM I had available, and it has no user accounts (and I didn't feel like making 
any for this simple test).  ;-)


yum install gcc gcc-c++ gtk2-devel make svn libarchive libtool-ltdl-devel 
libsamplerate-devel libsndfile-devel sox-devel


# cmake wasn't new enough, so installed it from a separate download:
wget 
ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/cathay4t:/misc-rhel6/CentOS_CentOS-6/x86_64/cmake-2.8.9-3.1.x86_64.rpm
rpm -U cmake-2.8.9-3.1.x86_64.rpm


# Portaudio
wget http://www.portaudio.com/archives/pa_stable_v19_20111121.tgz
tar xzvf pa_stable_v19_20111121.tgz
cd papa_stable_v19_20111121
./configure
make
sudo make install


# Hamlib
# Download hamlib from:  
http://sourceforge.net/projects/hamlib/files/hamlib/1.2.15.3/hamlib-1.2.15.3.tar.gz/download?use_mirror=iweb
tar xzvf hamlib-1.2.15.3.tar.gz
cd hamlib-1.2.15.3
./configure
make
sudo make install


# Download and install WxWidgets 2.9.4 from:
#
# http://www.wxwidgets.org/downloads/
#
tar xjvf wxWidgets-2.9.4.tar.bz2
cd wxWidgets-2.9.4
./configure
make
sudo make install


# Download and install libctb:
#
wget https://iftools.com/download/ctb/0.16/libctb-0.16.tar.gz
tar xzvf libctb-0.16.tar.gz
cd libctb-0.16/build
make -f GNUmakefile
sudo make -f GNUmakefile install
# Copy a forgotten include file into /usr/local/include area:
sudo cp ../include/ctb_0.16/kbhit.h /usr/local/include/ctb-0.16/.


# Check out and install FreeDV:
#
mkdir freetel
cd freetel
svn checkout http://freetel.svn.sourceforge.net/svnroot/freetel freetel-code
cd freetel-code/fdmdv2
mkdir linux_build
cd linux_build
rm CMakeCache.txt; cmake .. -DUSE_STATIC_CODEC2=1

# NOTE:  You may need to install additional libraries via "yum", then
# retry the above "cmake" command until it completes successfully.

make clean
make
...
Linking C executable insert_errors
[100%] Built target insert_errors
[ 29%] No install step for 'codec2'
[ 33%] Completed 'codec2'
[ 33%] Built target codec2
Scanning dependencies of target freedv
[ 37%] Building CXX object src/CMakeFiles/freedv.dir/dlg_about.cpp.o
[ 41%] Building CXX object src/CMakeFiles/freedv.dir/dlg_audiooptions.cpp.o
[ 45%] Building CXX object src/CMakeFiles/freedv.dir/dlg_filter.cpp.o
[ 50%] Building CXX object src/CMakeFiles/freedv.dir/dlg_options.cpp.o
[ 54%] Building CXX object src/CMakeFiles/freedv.dir/dlg_ptt.cpp.o
[ 58%] Building CXX object src/CMakeFiles/freedv.dir/fdmdv2_main.cpp.o
[ 62%] Building CXX object src/CMakeFiles/freedv.dir/fdmdv2_pa_wrapper.cpp.o
[ 66%] Building CXX object src/CMakeFiles/freedv.dir/fdmdv2_plot.cpp.o
[ 70%] Building CXX object src/CMakeFiles/freedv.dir/fdmdv2_plot_scalar.cpp.o
[ 75%] Building CXX object src/CMakeFiles/freedv.dir/fdmdv2_plot_scatter.cpp.o
[ 79%] Building CXX object src/CMakeFiles/freedv.dir/fdmdv2_plot_spectrum.cpp.o
[ 83%] Building CXX object src/CMakeFiles/freedv.dir/fdmdv2_plot_waterfall.cpp.o
[ 87%] Building CXX object src/CMakeFiles/freedv.dir/hamlib.cpp.o
[ 91%] Building CXX object src/CMakeFiles/freedv.dir/topFrame.cpp.o
[ 95%] Building C object src/CMakeFiles/freedv.dir/sox_biquad.c.o
/root/src/we7u/freetel/freetel-code/fdmdv2/src/sox_biquad.c: In function 
'sox_biquad_filter':
/root/src/we7u/freetel/freetel-code/fdmdv2/src/sox_biquad.c:98: warning: 
passing argument 4 of 'lsx_biquad_flow' from incompatible pointer type
/root/src/we7u/freetel/freetel-code/fdmdv2/src/sox_biquad.c:37: note: expected 
'size_t *' but argument is of type 'unsigned int *'
/root/src/we7u/freetel/freetel-code/fdmdv2/src/sox_biquad.c:98: warning: 
passing argument 5 of 'lsx_biquad_flow' from incompatible pointer type
/root/src/we7u/freetel/freetel-code/fdmdv2/src/sox_biquad.c:37: note: expected 
'size_t *' but argument is of type 'unsigned int *'
[100%] Building C object src/CMakeFiles/freedv.dir/varicode.c.o
Linking CXX executable freedv
CMakeFiles/freedv.dir/sox_biquad.c.o: In function `sox_biquad_finish':
sox_biquad.c:(.text+0x203): undefined reference to `sox_quit'
CMakeFiles/freedv.dir/sox_biquad.c.o: In function `sox_biquad_start':
sox_biquad.c:(.text+0x223): undefined reference to `sox_init'
collect2: ld returned 1 exit status
make[2]: *** [src/freedv] Error 1
make[1]: *** [src/CMakeFiles/freedv.dir/all] Error 2
make: *** [all] Error 2


# The next command would have been:
sudo make install


-- 
Curt, WE7U.        http://wetnet.net/~we7u
Windows ate my homework!

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Freetel-codec2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freetel-codec2

Reply via email to