Article 5PFXC Compiling Mintest 5.4.1 on slackware current

Compiling Mintest 5.4.1 on slackware current

by
SlackCoder
from LinuxQuestions.org on (#5PFXC)
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 2latest?d=yIl2AUoC8zA latest?i=Oz_VrurNGWo:awW_sClJCA8:F7zBnMy latest?i=Oz_VrurNGWo:awW_sClJCA8:V_sGLiP latest?d=qj6IDK7rITs latest?i=Oz_VrurNGWo:awW_sClJCA8:gIN9vFwOz_VrurNGWo
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments