Good work Curt. Could you pls review this PR to see if it captures your fix and the procedure for "make install":
https://github.com/drowe67/freedv-gui/pull/61 Thanks, David On 4/6/20 1:54 am, Curt Mills wrote: > Did another cmake/make/make install/ldconfig for that missing library. > Up and running. > > On Wed, Jun 3, 2020 at 9:00 AM Curt Mills <[email protected]> wrote: >> >> codec2/build_linux/src/cmake_install.cmake >> >> Deleted the horus_api.h line. >> >> After that "sudo make install" worked. Then had to run "sudo ldconfig" >> to get freedv to find the codec2 library. Now freedv can't find the >> "liblpcnetfreedv.so" library unless I run freedv from the >> "freedv-gui/build_linux/src" directory, in which case it comes up >> fine. >> >> >> On Wed, Jun 3, 2020 at 8:28 AM Curt Mills <[email protected]> wrote: >>> >>> Well, FreeDV runs from the build_linux/src/ directory but not from the >>> /usr/local/bin directory after running "sudo make install". Complains >>> about codec2 library missing. >>> >>> In the codec2/build_linux directory: >>> >>> sudo make install >>> .. >>> -- Up-to-date: /usr/local/include/codec2/modem_stats.h >>> -- Up-to-date: /usr/local/include/codec2/freedv_api.h >>> CMake Error at src/cmake_install.cmake:89 (file): >>> file INSTALL cannot find "/home/archer/src/freedv/codec2/src/horus_api.h". >>> Call Stack (most recent call first): >>> cmake_install.cmake:46 (include) >>> >>> >>> make: *** [Makefile:74: install] Error 1 >>> >>> So... Getting closer, but there's no "horus_api.h" file in the >>> codec2/src directory. >>> >>> On Wed, Jun 3, 2020 at 8:09 AM Curt Mills <[email protected]> wrote: >>>> >>>> This is the fix: >>>> >>>> g_sfPlayFile = >>>> sf_open(wxGetApp().m_txtVoiceKeyerWaveFile.mb_str(), SFM_READ, >>>> &sfInfo); >>>> >>>> Needs the ".mb_str()" portion added. FreeDV is now successfully >>>> compiled on my OpenSUSE-15.1 system. >>>> >>>> On Wed, Jun 3, 2020 at 6:27 AM Curt Mills <[email protected]> wrote: >>>>> >>>>> Nope, doesn't like that fix: >>>>> >>>>> /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:53: error: >>>>> invalid cast from type ‘wxString’ to type ‘const char*’ >>>>> g_sfPlayFile = sf_open((const char >>>>> *)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 >>>>> >>>>> FWIW: It's a six-core Xeon machine, and an older machine at that. >>>>> Again, running OpenSuSE-15.1 which is the newest OpenSuSE until about >>>>> a month from now when 15.2 will be released. >>>>> >>>>> On Tue, Jun 2, 2020 at 10:48 PM Steve <[email protected]> wrote: >>>>>> >>>>>> 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 >>>>> >>>>> >>>>> >>>>> -- >>>>> Curt, WE7U http://xastir.org http://www.sarguydigital.com >>>> >>>> >>>> >>>> -- >>>> Curt, WE7U http://xastir.org http://www.sarguydigital.com >>> >>> >>> >>> -- >>> Curt, WE7U http://xastir.org http://www.sarguydigital.com >> >> >> >> -- >> Curt, WE7U http://xastir.org http://www.sarguydigital.com > > > _______________________________________________ Freetel-codec2 mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freetel-codec2
