You might try changing it to:

g_sfPlayFile = sf_open((const char *)wxGetApp().m_txtVoiceKeyerWaveFile,
SFM_READ, &sfInfo);

The sf_open() call expects a constant, but m_txtVoiceKeyerWaveFile is
obviously a variable from config. Don't know why SuSE is being so pissy. Is
this an Itanium chip?

FYI

Steve

On Tue, Jun 2, 2020 at 10:28 PM Curt Mills <[email protected]> wrote:

> FreeDV: Cloned the sources tonight and tried to compile it on
> OpenSuSE-15.1:
>
> /home/archer/src/freedv/freedv-gui/src/fdmdv2_main.cpp: In member
> function ‘int MainFrame::VoiceKeyerStartTx()’:
> /home/archer/src/freedv/freedv-gui/src/fdmdv2_main.cpp:1685:81: error:
> cannot convert ‘wxString’ to ‘const char*’ for argument ‘1’ to
> ‘SNDFILE* sf_open(const char*, int, SF_INFO*)’
>      g_sfPlayFile = sf_open(wxGetApp().m_txtVoiceKeyerWaveFile,
> SFM_READ, &sfInfo);
>
>           ^
> make[2]: *** [src/CMakeFiles/freedv.dir/build.make:183:
> src/CMakeFiles/freedv.dir/fdmdv2_main.cpp.o] Error 1
>
> Any fix for it?
>
> --
> Curt, WE7U        http://xastir.org        http://www.sarguydigital.com
>
>
> _______________________________________________
> Freetel-codec2 mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freetel-codec2
>
_______________________________________________
Freetel-codec2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freetel-codec2

Reply via email to