ukhas / dl-fldigi

Modified version of fldigi - a soundcard decoding program
http://ukhas.org.uk/projects:dl-fldigi
GNU General Public License v3.0
52 stars 33 forks source link

Building on Debian bullseye/sid (testing) - workaround #37

Open Wi5eJ4rl opened 3 years ago

Wi5eJ4rl commented 3 years ago

Hello,

After many days of fighting with dependencies, I stuck at make:

Making all in po
make[1]: Wejście do katalogu '/home/asus/dl-fldigi/po'
make[1]: Opuszczenie katalogu '/home/asus/dl-fldigi/po'
Making all in doc
make[1]: Wejście do katalogu '/home/asus/dl-fldigi/doc'
make[1]: Nie ma nic do zrobienia w 'all'.
make[1]: Opuszczenie katalogu '/home/asus/dl-fldigi/doc'
Making all in src
make[1]: Wejście do katalogu '/home/asus/dl-fldigi/src'
make  all-am
make[2]: Wejście do katalogu '/home/asus/dl-fldigi/src'
  CXX      dl_fldigi-rtty.o
In file included from ./include/habitat/Extractor.h:8,
                 from ./include/dl_fldigi/hbtint.h:7,
                 from cw_rtty/rtty.cxx:42:
./include/habitat/UploaderThread.h:155:5: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
  155 |     auto_ptr<habitat::Uploader> uploader;
      |     ^~~~~~~~
In file included from /usr/include/c++/10/memory:83,
                 from ./include/habitat/UploaderThread.h:6,
                 from ./include/habitat/Extractor.h:8,
                 from ./include/dl_fldigi/hbtint.h:7,
                 from cw_rtty/rtty.cxx:42:
/usr/include/c++/10/bits/unique_ptr.h:57:28: note: declared here
   57 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~
cw_rtty/rtty.cxx:55:1: error: narrowing conversion of ‘'\37777777667'’ from ‘char’ to ‘unsigned char’ [-Wnarrowing]
   55 | };
      | ^
cw_rtty/rtty.cxx:55:1: error: narrowing conversion of ‘'\37777777667'’ from ‘char’ to ‘unsigned char’ [-Wnarrowing]
cw_rtty/rtty.cxx:77:1: error: narrowing conversion of ‘'\37777777667'’ from ‘char’ to ‘unsigned char’ [-Wnarrowing]
   77 | };
      | ^
cw_rtty/rtty.cxx:77:1: error: narrowing conversion of ‘'\37777777667'’ from ‘char’ to ‘unsigned char’ [-Wnarrowing]
make[2]: *** [Makefile:1828: dl_fldigi-rtty.o] Błąd 1
make[2]: Opuszczenie katalogu '/home/asus/dl-fldigi/src'
make[1]: *** [Makefile:1169: all] Błąd 2
make[1]: Opuszczenie katalogu '/home/asus/dl-fldigi/src'
make: *** [Makefile:472: all-recursive] Błąd 1

I've followed by raspbian build instructions. I've tried the newest version and last stable DL3.1.

EDIT: There is a problem with this repo, but this fork works fine with some extra flags.

To build this on Debian follow this instructions:

git clone https://github.com/jamescoxon/dl-fldigi
cd dl-fldigi
git submodule init
git submodule update
autoreconf -vfi
./configure --disable-flarq --enable-optimizations=native CXXFLAGS="-fpermissive -Wno-narrowing -g -O2"
make

Enjoy!

sp9rqa commented 2 years ago

Unfortunately, it crashes on the command: git submenu update (timeout)

fatal: nie można połączyć z github.com: github.com[0: 140.82.121.4]: errno=Przekroczony czas oczekiwania na połączenie

fatal: klonowanie „git://github.com/ukhas/habitat-cpp-connector” do ścieżki podmodułu „/home/Ham/dl-fldigi/habitat-cpp-connector” nie powiodło się Nie można sklonować „habitat-cpp-connector”. Zaplanowano ponowienie Klonowanie do „/home/Ham/dl-fldigi/habitat-cpp-connector”... fatal: nie można połączyć z github.com: github.com[0: 140.82.121.3]: errno=Przekroczony czas oczekiwania na połączenie

I found this "habitat-cpp-connector" in another repository but it still crashes on compilation

src/CouchDB.cxx: In member function ‘std::string CouchDB::Server::next_uuid()’: src/CouchDB.cxx:66:9: error: ‘template class std::auto_ptr’ is deprecated: use 'std::unique_ptr' instead [-Werror=deprecated-declarations] 66 | auto_ptr value_destroyer(root); | ^~~~ In file included from /usr/include/c++/12/memory:76, from src/CouchDB.cxx:6: /usr/include/c++/12/bits/unique_ptr.h:64:28: note: declared here 64 | template class auto_ptr; | ^~~~ src/CouchDB.cxx: In member function ‘Json::Value* CouchDB::Server::get_json(const std::string&)’: src/CouchDB.cxx:85:5: error: ‘template class std::auto_ptr’ is deprecated: use 'std::unique_ptr' instead [-Werror=deprecated-declarations] 85 | auto_ptr value_destroyer(doc); | ^~~~ /usr/include/c++/12/bits/unique_ptr.h:64:28: note: declared here 64 | template class auto_ptr; | ^~~~ cc1plus: all warnings being treated as errors

debian testing