On Fri, Apr 26, 2013 at 12:12 AM, Bruce Perens <[email protected]> wrote:
> On 4/25/2013 7:10 PM, Richard Shaw wrote:
> >
> > The first line definitely will not because all the "cmake" commands
> > are run (evaluated) at configuration, but wx-config doesn't even exist
> > yet (or is even downloaded yet). The second line will probably not
> > either since it would be evaluated during configuration.
> There are two separate problems here.
>
> One is to get wxWidgets to build .a libraries before it produces the .so
> libraries for dynamic linking. The .a library will contain the .o files
> that are compiled for dynamic linking, they will work for static linking
> as well. It's produced by the "ar" program.
>
I think we're talking about two different things. I can get cmake to
download and build wxWidgets just fine, the problem is all the cmake
variables are already evaluated at that point. If you look at
cmake/BuildWxWidgets.cmake I've already got it building static libs only.
The build could probably be sped up by disabling building of libraries we
don't use, but at that time I was just trying to get it to work.
> The second problem is to static link an executable. And wxWidgets would
> exist before that happens. Those flags can get set by cmake, or by make.
Yes, it would exist, but because cmake would not be able to execute
wx-config at configuration, it has no idea what the linker and cflags
should be.
In either case, I *think* I have a solution. We could bootstrap the
wxWidgets build. Basically I would wrap the whole freedv cmake config in a
"if(BOOTSTRAP_WXWIDGETS)" call so I could make it build wxWidgets first
which would set the variable back to false after a complete build, then you
would run cmake again now that wx-config and the libraries are available.
Thanks,
Richard
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Freetel-codec2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freetel-codec2