On Thu, Jun 6, 2013 at 1:38 PM, Curt, WE7U <[email protected]> wrote:
> On Thu, 6 Jun 2013, Curt, WE7U wrote:
>
> > Linking CXX executable freedv
> > CMakeFiles/freedv.dir/fdmdv2_main.cpp.o: In function
> > `per_frame_rx_processing(FIFO*, int*, FIFO*, int*, int*, CODEC2*)':
> > fdmdv2_main.cpp:(.text+0x190a): undefined reference to `golay23_decode'
>
> I removed all of the codec2 files from "/usr/local/*", removed the
> "freetel-code/fdmdv2/build_linux/CMakeCache.txt" file, then in
> "build_linux" ran
>
> cmake .. -DUSE_STATIC_CODEC2=1
> make clean
> make
>
> and it finally compiled. So it looks like the cmake build won't work w/o
> a static compile of Codec2?
>
Not exactly... The problem with golay23 has come up before.
golay23.c/golay23.h resides in codec2-dev. With the autotools build of
codec2, it is used by a couple of the binaries in codec2 but not the
library itself. The autotools build of freedv reaches around into the
codec2-dev directory (bad practice) and pulls it directly into the freedv
binary. So basically it only works with a full svn checkout.
For the cmake conversion I ran into this issue and fixed it by including
golay23 in the codec2 library.
The problem you ran into is because you built and installed the autotools
version of codec2 but attempted the cmake build of freedv.
As you've discovered, if you make significant changes to the cmake settings
then it's usually best to "rm -rf" everything in the build_linux directory
and start over.
Try starting over with codec2 and fdmdv2 using the cmake build and see how
things work.
Thanks,
Richard
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Freetel-codec2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freetel-codec2