SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Built the new libfilezilla this morning and then tried to rebuild the current filezilla. That failed stating that I need to build it with C++17. Is that compiler available for Slackware anywhere?
#
In file included from /usr/include/libfilezilla/libfilezilla.hpp:4,
from ../../src/include/libfilezilla_engine.h:12,
from filezilla.h:1:
/usr/include/libfilezilla/private/defs.hpp:10:4: error: #error You need to use a C++17 compiler. Try passing -std=c++17 as compiler flag.
10 | #error You need to use a C++17 compiler. Try passing -std=c++17 as compiler flag.
| ^~~~~
In file included from /usr/include/libfilezilla/libfilezilla.hpp:7,
from ../../src/include/libfilezilla_engine.h:12,
from filezilla.h:1:
/usr/include/libfilezilla/string.hpp:38:14: error: ‘string_view’ in namespace ‘std’ does not name a type
38 | typedef std::string_view native_string_view;
| ^~~~~~~~~~~
/usr/include/libfilezilla/string.hpp:38:9: note: ‘std::string_view’ is only available from C++17 onwards
38 | typedef std::string_view native_string_view;
| ^~~
/usr/include/libfilezilla/string.hpp:45:47: error: ‘string_view’ is not a member of ‘std’
45 | native_string FZ_PUBLIC_SYMBOL to_native(std::string_view const& in);
| ^~~~~~~~~~~
/usr/include/libfilezilla/string.hpp:45:47: note: ‘std::string_view’ is only available from C++17 onwards
/usr/include/libfilezilla/string.hpp:51:32: error: redefinition of ‘fz::native_string fz::to_native’
51 | native_string FZ_PUBLIC_SYMBOL to_native(std::wstring_view const& in);
| ^~~~~~~~~
/usr/include/libfilezilla/string.hpp:45:32: note: ‘fz::native_string fz::to_native’ previously declared here
45 | native_string FZ_PUBLIC_SYMBOL to_native(std::string_view const& in);
| ^~~~~~~~~
/usr/include/libfilezilla/string.hpp:51:47: error: ‘wstring_view’ is not a member of ‘std’
51 | native_string FZ_PUBLIC_SYMBOL to_native(std::wstring_view const& in);
| ^~~~~~~~~~~~
/usr/include/libfilezilla/string.hpp:54:53: error: ‘is_same_v’ is not a member of ‘std’; did you mean ‘is_same’?
54 | template<typename T, typename std::enable_if_t<std::is_same_v<native_string, typename std::decay_t<T>>, int> = 0>
| ^~~~~~~~~
| is_same
/usr/include/libfilezilla/string.hpp:54:53: error: ‘is_same_v’ is not a member of ‘std’; did you mean ‘is_same’?
54 | template<typename T, typename std::enable_if_t<std::is_same_v<native_string, typename std::decay_t<T>>, int> = 0>
you need an svn snapshot of filezilla if you want to build it against libfilezilla-0.17.0, there isn't a release tarball that builds against the new 0.17.0 library.
create a tarball with
Code:
svn co https://svn.filezilla-project.org/svn/FileZilla3/trunk FileZilla
svn export FileZilla filezilla-r9335
tar Jcf FileZilla_r9335_src.tar.bz2 filezilla-r9335
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,070
Rep:
I didn't bother upgrading libfilezilla until a stable filezilla-3.43 was released, which happened yesterday. On -current, building libfilezilla-0.17.1 and filezilla-3.43.0 using the SBo scripts and simply editing the version number was straightforward. In other words, with the latest filezilla tarball, ponce's workaround is no longer necessary.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.