Thanks Richard - I should have stated first that I was going the Mingw/MSYS
route using configure and make, following the README files in the
codec2-dev and fdmdv2 directories. They didn't mention ctb there and so it
was a surprise. I noticed the cmakelists.txt files only later on, along
with the sinking feeling that remembered hearing people talking about cmake
at Dayton :)
Codec2 is a piece of cake to build using the mingw/msys or devstudio. The
only real issue I ran into is that you don't get getopts.h on windows so
you need an equivalent for that if you go to devstudio.
I haven't gotten to the end of the FreeDV build process yet so I can't yet
say that I can comment. The Readme.win32 in fdmdv2 that I was following
says "This is how David R did it, Dave Witten used a different approach."
Now I'm curious what Dave Witten's approach is/was :)
Thanks again,
-Frank
NQ8N
On Wed, Jun 5, 2013 at 11:45 AM, Richard Shaw <[email protected]> wrote:
> On Wed, Jun 5, 2013 at 9:11 AM, Frank Palazzolo <[email protected]>wrote:
>
>>
>> So, I've done some experimenting with an OFDM modem implementation in
>> Octave. I still think the idea has a lot of promise, so and I've decided
>> it's time to try to build codec2 and FreeDV.
>>
>> Codec2-dev was no big deal, as it has no dependancies. I didn't have
>> trouble getting the mingw/MSYS toolchain going. For FreeDV, I spent a lot
>> of time bringing in each dependant package one at a time and trying to
>> build or integrate them. I ended up getting surprised and stuck with ctb,
>> since it seems to not want to build in the the mingw environment, due to
>> slash conventions in the makefile. (even if it is ok on Linux). Has anyone
>> made this work on mingw?
>>
>
> For codec2 did you use the existing autotools makefile or did you try my
> cmake based build? Just curious.
>
> You can try the cmake based build for fdmdv2 and try the USE_STATIC_<DEP>
> options. They have only been tested on linux though so some or all are
> guaranteed to fail but I need the feedback to make improvements.
>
> The problem with libctb is that it only has pre-generated makefiles (no
> configure) and makes some bad assumptions although there are several
> makefiles in the build directory and one *might* work.
>
> I submitted a cmake based build upstream and it was well received but I
> don't know when or if a new release will be made using it. In the meantime
> I can create a tarball of the source with my cmake config and make it
> available if you like[2]. It has been tested with mingw under a
> cross-compile environment in Fedora linux. I also have an unofficial
> installer for FreeDV which includes all dependencies (including wxWidgets
> 2.9.4) but it sounds like you're going to be playing with the source so
> that may not be the best option.
>
> Just in case you (or someone else reading this) doesn't have a lot of
> experience with cmake, it is always recommended (but not always
> required/enforced) to do an out of source build. If you haven't already go
> and download cmake[1] and install it. You can add it to your path and run
> the command line version from mingw or use the GUI which will make changing
> defaults easier. The README.cmake in fdmdv2 shows a command line example.
>
>
>
>> Now I've come to realize that maybe I should have started with cmake.
>> Will that make it all easier? Does the cmake build work on mingw ok?
>>
>
> Sorry, should have read this first.... YES IT DOES :) One thing you may
> run into using MSYS with MinGW is that it's going to want to install things
> in typical *nix fashion (/usr/...) instead of the Windows way (C:\Program
> Files\...) So you may need to experiment with CMAKE_INSTALL_PREFIX.
>
>
> This may be blasphemy, but when all is said and done, I am tempted to put
>> together a set of project files for devstudio 2010 and binaries for
>> everything but codec2 and freedv. I think this would make it a lot easier
>> for developers on windows to get their feet wet without going through a
>> long startup process. Nothing kills incentive like having to spend a bunch
>> of time building third party stuff...
>>
>
> Some of the dependencies may provide prebuilt windows binaries if you look
> hard enough... Can't tell you what to do here, I'm a Fedora Linux packager
> not a programmer so I know just enough to be dangerous but I believe
> mingw/gcc can handle importing libraries created by MSVC and derivatives
> but perhaps someone on the list knows for sure.
>
> The dependencies are a problem as they are with any project but if you
> want to experiment building things yourself then I guess you have to sign
> yourself up for dealing with them :)
>
> Richard
> KF5OIM
>
> [1] http://www.cmake.org/cmake/resources/software.html
> [2] https://dl.dropboxusercontent.com/u/34775202/libctb-0.16.tar.gz
>
>
> ------------------------------------------------------------------------------
> 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
>
>
------------------------------------------------------------------------------
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