cjcliffe / CubicSDR

Cross-Platform Software-Defined Radio Application
http://www.cubicsdr.com
GNU General Public License v2.0
2.02k stars 249 forks source link

wxWidgets 3.1.5 Build, Wonky Display in Cubic #889

Closed ehidle closed 3 years ago

ehidle commented 3 years ago

I occasionally build the latest Cubic from github, but this time there's a catch and I am not sure if it's because of wxWidgets or something else.

The cubic build instruction page at https://cubicsdr.readthedocs.io/en/stable/building-cubicsdr/linux.html instructs to configure wxWidgets with the following options:

./configure --with-opengl --disable-shared --enable-monolithic --with-libjpeg --with-libtiff --with-libpng --with-zlib --disable-sdltest --enable-unicode --enable-display --enable-propgrid --disable-webkit --disable-webview --disable-webviewwebkit --prefix=echo ~/Develop/wxWidgets-staticlib CXXFLAGS="-std=c++0x" --with-libiconv=/usr

However, --disable-webkit is not valid in 3.1.5

ehidle@w2jkt:~/software/wxWidgets$ ./configure --with-opengl --disable-shared --enable-monolithic --with-libjpeg --with-libtiff --with-libpng --with-zlib --disable-sdltest --enable-unicode --enable-display --enable-propgrid --disable-webkit --disable-webview --disable-webviewwebkit --prefix=echo ~/Develop/wxWidgets-staticlib CXXFLAGS="-std=c++0x" --with-libiconv=/usr configure: error: unrecognized options: --disable-webkit

wsWidgets will build fine if I remove that option, and then Cubic will also build, but when I start the resulting binary, I get this:

Screenshot_2021-05-02_11-52-34

If I open one of the bookmarks, I get the audio I expect, but none of the visual features seem to work.

I'm building wx from the 3.1.5 bzip and I tried building Cubic from both the current origin/master (bd7574a3) and the current origin/compiler-warning-cleanup-fixes (d0b4bf69) and got the same results.

Thoughts/recommendations would be most welcome. Thanks!

vsonnier commented 3 years ago

Likely duplicate of #886, try the new method described there: the configure command line needs --disable-glcanvasegl now.

The Wiki has been updated accordingly, however the https://cubicsdr.readthedocs.io/en/stable/building-cubicsdr/linux.html manual is likely outdated, do not use it.

ehidle commented 3 years ago

Thank you. Using the updated instructions in the Wiki, I still get the configure: error: unrecognized options: --disable-webkit for wxWidgets, but like before everything seems to build okay without that option.

Other than that, this seems to have resolved the issue and I've updated my local build scripts to otherwise be in-line with the wiki.

Thanks again for all that you do!

vsonnier commented 3 years ago

@ehidle Sorry to ping, but what system are you running ? It may be intresting to update the Wiki with your findings about the unrecognized options: --disable-webkit.