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.
Hi, I'm having trouble compiling the latest minetest on Slackware current, anyone know what the problem maybe? Its C++ related.
Code:
In file included from /tmp/SBo/minetest-5.4.1/src/clientiface.cpp:21:
/tmp/SBo/minetest-5.4.1/src/clientiface.h:444:36: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
444 | ClientInterface(const std::shared_ptr<con::Connection> &con);
| ^~~~~~~~~~
In file included from /tmp/SBo/minetest-5.4.1/src/clientiface.cpp:21:
/tmp/SBo/minetest-5.4.1/src/clientiface.h:34:1: note: ‘std::shared_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
33 | #include <set>
+++ |+#include <memory>
34 | #include <mutex>
In file included from /tmp/SBo/minetest-5.4.1/src/clientiface.cpp:21:
/tmp/SBo/minetest-5.4.1/src/clientiface.h:444:46: error: expected ‘,’ or ‘...’ before ‘<’ token
444 | ClientInterface(const std::shared_ptr<con::Connection> &con);
| ^
/tmp/SBo/minetest-5.4.1/src/clientiface.h:517:14: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
517 | std::shared_ptr<con::Connection> m_con;
| ^~~~~~~~~~
/tmp/SBo/minetest-5.4.1/src/clientiface.h:517:9: note: ‘std::shared_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
517 | std::shared_ptr<con::Connection> m_con;
| ^~~
/tmp/SBo/minetest-5.4.1/src/clientiface.cpp:604:1: error: no declaration matches ‘ClientInterface::ClientInterface(const std::shared_ptr<con::Connection>&)’
604 | ClientInterface::ClientInterface(const std::shared_ptr<con::Connection> & con)
| ^~~~~~~~~~~~~~~
In file included from /tmp/SBo/minetest-5.4.1/src/clientiface.cpp:21:
/tmp/SBo/minetest-5.4.1/src/clientiface.h:439:7: note: candidates are: ‘ClientInterface::ClientInterface(const ClientInterface&)’
439 | class ClientInterface {
| ^~~~~~~~~~~~~~~
/tmp/SBo/minetest-5.4.1/src/clientiface.h:444:9: note: ‘ClientInterface::ClientInterface(int)’
444 | ClientInterface(const std::shared_ptr<con::Connection> &con);
| ^~~~~~~~~~~~~~~
/tmp/SBo/minetest-5.4.1/src/clientiface.h:439:7: note: ‘class ClientInterface’ defined here
439 | class ClientInterface {
| ^~~~~~~~~~~~~~~
/tmp/SBo/minetest-5.4.1/src/clientiface.cpp: In member function ‘void ClientInterface::send(session_t, irr::u8, NetworkPacket*, bool)’:
/tmp/SBo/minetest-5.4.1/src/clientiface.cpp:701:9: error: ‘m_con’ was not declared in this scope; did you mean ‘con’?
701 | m_con->Send(peer_id, channelnum, pkt, reliable);
| ^~~~~
| con
/tmp/SBo/minetest-5.4.1/src/clientiface.cpp: In member function ‘void ClientInterface::sendToAll(NetworkPacket*)’:
/tmp/SBo/minetest-5.4.1/src/clientiface.cpp:711:25: error: ‘m_con’ was not declared in this scope; did you mean ‘con’?
711 | m_con->Send(client->peer_id,
| ^~~~~
| con
/tmp/SBo/minetest-5.4.1/src/clientiface.cpp: In member function ‘void ClientInterface::sendToAllCompat(NetworkPacket*, NetworkPacket*, irr::u16)’:
/tmp/SBo/minetest-5.4.1/src/clientiface.cpp:736:17: error: ‘m_con’ was not declared in this scope; did you mean ‘con’?
736 | m_con->Send(client->peer_id,
| ^~~~~
| con
make[2]: *** [src/CMakeFiles/minetest.dir/build.make:3254: src/CMakeFiles/minetest.dir/clientiface.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:465: src/CMakeFiles/minetest.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
Good to know...(I'm a few behind on minetest.) It's a nifty idea, but doesn't feel fully fleshed out yet. Rather, it doesn't have the modding scene that Minecraft has yet. It's definitely getting there, though.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.