-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixups for cross-compiling for Windows from Fedora Linux #9
Conversation
… to latest stable, 3.0.4.
@hobbes1069 would separating libcodec2 into libcodec2 and libfreedv help the cmake loop problem you are having #1 (comment)? Or is it unrelated to the LPCNet/codec2 boots strapping? |
Nope, I've got that all squared away, you can use build directories or internal builds and it will work. The problem is picking up all the libraries that need to be bundled with the windows installer for it to work. It's missing the libjpeg-62.dll dependency for some reason. My theory is that I'm only checking for dependencies of top level dependencies (2nd level deps) of freedv.exe and I'm not picking it up so I'm working on a recursive strategy but I need a way to know when to stop looking. |
We'll let the build try but I'm not confident it will build. Now that it's merged let's work on any fixups in brad-2020. |
Codec2 needs to be the brad-2020 branch. |
I'm close with the Travis build, just that version.h thingy.... |
I have the fix in the codec2 library export in codec2/brad-2020, not master. |
mkdir -p build_linux && cd build_linux | ||
cmake -DCMAKE_BUILD_TYPE=Debug -DCODEC2_BUILD_DIR=$CODEC2DIR/build_linux -DLPCNET_BUILD_DIR=$LPCNETDIR/build_linux .. | ||
make | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hobbes1069 Here is a version of the script @ac0zj sent us, that pulls the codec2 and lpcnet repos under freedv-gui. I recall earlier in the week you mentioned something similar as part of your cmake work? Apologies if there is some overlap here, and pls feel free to suggest the best way fwd.
Aims here are to make building FreeDV easy, document it (in the README.md), and test it (with Travis).
@hobbes1069 are the "Building and installing on Windows" & "Bootstrapping wxWidgets build" sections of README.md useful any more? |
@ac0zj when I press "Start" in 2020 mode I get a segfault in the Speex init code, looking at it with gdb:
I have Filter-Speex Preprocess unchecked. Will poke about a bit. |
Ah, think it was a shared lib search path thingy. Have freedv-gui 2020 decoding now from a wave file :-) Nice work guys 👍 |
@ac0zj at the bottom of User Guide text file is In this configuration: |
@drowe67 , It could probably be reformatted but the "Building and Installing on Windows" is just a disclaimer that it should be possible, but only cross-compiling (on Fedora for now, hopefully others later) is formally supported. The bootstrapping could still be useful but I can't think of a modern Linux distro that doesn't already have wxWidgets of some form available. I did make sure it still works and updated it to the latest stable release. |
@hobbes1069 Yes I agree on both points. I'll rm those sections, simpler is better. If someone in future gets serious about native windows builds ... they can maintain/document it. |
Oops I ididn't mean to close this, must have pressed the wrong button. |
@hobbes1069 pls feel free to re-open if you need to do more work on the build system .... the re-open branch is greyed out for me ... |
No worries! I was going to close it now that it's merged. |
No description provided.