I was just trying to compile this software to use it, but i got the same failure trying to compile it from AUR and from here.
make all-recursive
make[1]: Entering directory '/home/takuya/Takuya/Software/baamanga-github'
Making all in src
make[2]: Entering directory '/home/takuya/Takuya/Software/baamanga-github/src'
g++ -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR='"/usr/share/locale"' -Wall -std=c++11 -lcurlcpp -lcurl -lboost_filesystem -lboost_system -I ../include -g -O2 -MT downloads.o -MD -MP -MF .deps/downloads.Tpo -c -o downloads.o downloads.cpp
downloads.cpp: In function ‘void url_download(std::string, std::string, std::basic_fstream&)’:
downloads.cpp:8:20: error: ‘ostream’ was not declared in this scope; did you mean ‘std::ostream’?
8 | curl::curl_ios curl(file);
| ^~~
| std::ostream
In file included from /usr/include/c++/9.2.0/ios:38,
from /usr/include/c++/9.2.0/istream:38,
from /usr/include/c++/9.2.0/fstream:38,
from downloads.cpp:1:
/usr/include/c++/9.2.0/iosfwd:141:33: note: ‘std::ostream’ declared here
141 | typedef basic_ostream ostream;
| ^~~
downloads.cpp:8:27: error: template argument 1 is invalid
8 | curl::curl_ios curl(file);
| ^
downloads.cpp:8:34: error: invalid user-defined conversion from ‘std::basic_fstream’ to ‘int’ [-fpermissive]
8 | curl::curl_ios curl(file);
| ^~~~
In file included from /usr/include/c++/9.2.0/ios:44,
from /usr/include/c++/9.2.0/istream:38,
from /usr/include/c++/9.2.0/fstream:38,
from downloads.cpp:1:
/usr/include/c++/9.2.0/bits/basic_ios.h:117:16: note: candidate is: ‘std::basic_ios<_CharT, _Traits>::operator bool() const [with _CharT = char; _Traits = std::char_traits]’
117 | explicit operator bool() const
| ^~~~
/usr/include/c++/9.2.0/bits/basic_ios.h:117:16: note: return type ‘bool’ of explicit conversion function cannot be converted to ‘int’ with a qualification conversion
downloads.cpp:18:12: error: ‘curl_easy_exception’ does not name a type; did you mean ‘curl_easy_escape’?
18 | catch (curl_easy_exception error) {
| ^~~~~~~
| curl_easy_escape
downloads.cpp:19:9: error: ‘error’ was not declared in this scope; did you mean ‘perror’?
19 | error.print_traceback();
| ^~~~~
| perror
downloads.cpp: In function ‘void pic_download(std::string, std::string, std::basic_ofstream&)’:
downloads.cpp:29:20: error: ‘ostream’ was not declared in this scope; did you mean ‘std::ostream’?
29 | curl::curl_ios pic(image);
| ^~~
| std::ostream
In file included from /usr/include/c++/9.2.0/ios:38,
from /usr/include/c++/9.2.0/istream:38,
from /usr/include/c++/9.2.0/fstream:38,
from downloads.cpp:1:
/usr/include/c++/9.2.0/iosfwd:141:33: note: ‘std::ostream’ declared here
141 | typedef basic_ostream ostream;
| ^~~
downloads.cpp:29:27: error: template argument 1 is invalid
29 | curl::curl_ios pic(image);
| ^
downloads.cpp:29:33: error: invalid user-defined conversion from ‘std::basic_ofstream’ to ‘int’ [-fpermissive]
29 | curl::curl_ios pic(image);
| ^~~~~
In file included from /usr/include/c++/9.2.0/ios:44,
from /usr/include/c++/9.2.0/istream:38,
from /usr/include/c++/9.2.0/fstream:38,
from downloads.cpp:1:
/usr/include/c++/9.2.0/bits/basic_ios.h:117:16: note: candidate is: ‘std::basic_ios<_CharT, _Traits>::operator bool() const [with _CharT = char; _Traits = std::char_traits]’
117 | explicit operator bool() const
| ^~~~
/usr/include/c++/9.2.0/bits/basic_ios.h:117:16: note: return type ‘bool’ of explicit conversion function cannot be converted to ‘int’ with a qualification conversion
downloads.cpp:40:12: error: ‘curl_easy_exception’ does not name a type; did you mean ‘curl_easy_escape’?
40 | catch (curl_easy_exception error) {
| ^~~~~~~
| curl_easy_escape
downloads.cpp:41:9: error: ‘error’ was not declared in this scope; did you mean ‘perror’?
41 | error.print_traceback();
| ^~~~~
| perror
make[2]: ** [Makefile:382: downloads.o] Error 1
make[2]: Leaving directory '/home/takuya/Takuya/Software/baamanga-github/src'
make[1]: [Makefile:399: all-recursive] Error 1
make[1]: Leaving directory '/home/takuya/Takuya/Software/baamanga-github'
make: * [Makefile:319: all] Error 2
I think i understand it's because the version is really old, (from 2015) and it fails with something on GCC 9 version.
It would be nice if i could install this, because i've been searching for options like this, but i would like to avoid GTK/Electron apps, if i can use it from the terminal, it's fine for me.
Thank you very much for your work and sorry for the inconveniences.
I was just trying to compile this software to use it, but i got the same failure trying to compile it from AUR and from here.
make all-recursive make[1]: Entering directory '/home/takuya/Takuya/Software/baamanga-github' Making all in src make[2]: Entering directory '/home/takuya/Takuya/Software/baamanga-github/src' g++ -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR='"/usr/share/locale"' -Wall -std=c++11 -lcurlcpp -lcurl -lboost_filesystem -lboost_system -I ../include -g -O2 -MT downloads.o -MD -MP -MF .deps/downloads.Tpo -c -o downloads.o downloads.cpp downloads.cpp: In function ‘void url_download(std::string, std::string, std::basic_fstream&)’:
downloads.cpp:8:20: error: ‘ostream’ was not declared in this scope; did you mean ‘std::ostream’?
8 | curl::curl_ios curl(file);
| ^ ostream;
| ^ curl(file);
| ^
downloads.cpp:8:34: error: invalid user-defined conversion from ‘std::basic_fstream’ to ‘int’ [-fpermissive]
8 | curl::curl_ios curl(file);
| ^~~~
In file included from /usr/include/c++/9.2.0/ios:44,
from /usr/include/c++/9.2.0/istream:38,
from /usr/include/c++/9.2.0/fstream:38,
from downloads.cpp:1:
/usr/include/c++/9.2.0/bits/basic_ios.h:117:16: note: candidate is: ‘std::basic_ios<_CharT, _Traits>::operator bool() const [with _CharT = char; _Traits = std::char_traits]’
117 | explicit operator bool() const
| ^&)’:
downloads.cpp:29:20: error: ‘ostream’ was not declared in this scope; did you mean ‘std::ostream’?
29 | curl::curl_ios pic(image);
| ^ ostream;
| ^ pic(image);
| ^
downloads.cpp:29:33: error: invalid user-defined conversion from ‘std::basic_ofstream’ to ‘int’ [-fpermissive]
29 | curl::curl_ios pic(image);
| ^~~~~
In file included from /usr/include/c++/9.2.0/ios:44,
from /usr/include/c++/9.2.0/istream:38,
from /usr/include/c++/9.2.0/fstream:38,
from downloads.cpp:1:
/usr/include/c++/9.2.0/bits/basic_ios.h:117:16: note: candidate is: ‘std::basic_ios<_CharT, _Traits>::operator bool() const [with _CharT = char; _Traits = std::char_traits]’
117 | explicit operator bool() const
| ^ [Makefile:399: all-recursive] Error 1
make[1]: Leaving directory '/home/takuya/Takuya/Software/baamanga-github'
make: * [Makefile:319: all] Error 2
~~ | std::ostream In file included from /usr/include/c++/9.2.0/ios:38, from /usr/include/c++/9.2.0/istream:38, from /usr/include/c++/9.2.0/fstream:38, from downloads.cpp:1: /usr/include/c++/9.2.0/iosfwd:141:33: note: ‘std::ostream’ declared here 141 | typedef basic_ostream~~ downloads.cpp:8:27: error: template argument 1 is invalid 8 | curl::curl_ios~~~ /usr/include/c++/9.2.0/bits/basic_ios.h:117:16: note: return type ‘bool’ of explicit conversion function cannot be converted to ‘int’ with a qualification conversion downloads.cpp:18:12: error: ‘curl_easy_exception’ does not name a type; did you mean ‘curl_easy_escape’? 18 | catch (curl_easy_exception error) { | ^~~~~~~ | curl_easy_escape downloads.cpp:19:9: error: ‘error’ was not declared in this scope; did you mean ‘perror’? 19 | error.print_traceback(); | ^~~~~ | perror downloads.cpp: In function ‘void pic_download(std::string, std::string, std::basic_ofstream~~ | std::ostream In file included from /usr/include/c++/9.2.0/ios:38, from /usr/include/c++/9.2.0/istream:38, from /usr/include/c++/9.2.0/fstream:38, from downloads.cpp:1: /usr/include/c++/9.2.0/iosfwd:141:33: note: ‘std::ostream’ declared here 141 | typedef basic_ostream~~ downloads.cpp:29:27: error: template argument 1 is invalid 29 | curl::curl_ios~~~ /usr/include/c++/9.2.0/bits/basic_ios.h:117:16: note: return type ‘bool’ of explicit conversion function cannot be converted to ‘int’ with a qualification conversion downloads.cpp:40:12: error: ‘curl_easy_exception’ does not name a type; did you mean ‘curl_easy_escape’? 40 | catch (curl_easy_exception error) { | ^~~~~~~ | curl_easy_escape downloads.cpp:41:9: error: ‘error’ was not declared in this scope; did you mean ‘perror’? 41 | error.print_traceback(); | ^~~~~ | perror make[2]: ** [Makefile:382: downloads.o] Error 1 make[2]: Leaving directory '/home/takuya/Takuya/Software/baamanga-github/src' make[1]:I think i understand it's because the version is really old, (from 2015) and it fails with something on GCC 9 version.
It would be nice if i could install this, because i've been searching for options like this, but i would like to avoid GTK/Electron apps, if i can use it from the terminal, it's fine for me.
Thank you very much for your work and sorry for the inconveniences.
Bests ^^.