Attract-Mode Support Forum
Attract-Mode Support => General => Topic started by: cditty on January 03, 2025, 08:10:30 PM
-
Can anyone help with this? I have been trying to install attractmode on a fresh ubuntu install for the last 3 days and can't get anywhere. I'm trying to follow the instructions from the AM website but when I try make, I get the following errors.
In file included from /usr/include/c++/13/backward/hash_map:60,
from extlibs/gameswf/base/container.h:75,
from extlibs/gameswf/base/tu_file.h:18,
from src/swf.cpp:26:
/usr/include/c++/13/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
32 | #warning \
| ^~~~~~~
Compiling obj/fe_net.o...
In file included from src/fe_net.cpp:23:
src/fe_net.hpp:67:21: error: field ‘m_url’ has incomplete type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’}
67 | std::string m_url;
| ^~~~~
In file included from /usr/include/c++/13/iosfwd:41,
from /usr/include/c++/13/bits/std_thread.h:38,
from /usr/include/c++/13/thread:45,
from src/fe_net.hpp:27:
/usr/include/c++/13/bits/stringfwd.h:72:11: note: declaration of ‘std::string’ {aka ‘class std::__cxx11::basic_string<char>’}
72 | class basic_string;
| ^~~~~~~~~~~~
src/fe_net.hpp:68:21: error: field ‘m_filename’ has incomplete type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’}
68 | std::string m_filename;
| ^~~~~~~~~~
/usr/include/c++/13/bits/stringfwd.h:72:11: note: declaration of ‘std::string’ {aka ‘class std::__cxx11::basic_string<char>’}
72 | class basic_string;
| ^~~~~~~~~~~~
src/fe_net.hpp:69:21: error: field ‘m_result’ has incomplete type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’}
69 | std::string m_result;
| ^~~~~~~~
/usr/include/c++/13/bits/stringfwd.h:72:11: note: declaration of ‘std::string’ {aka ‘class std::__cxx11::basic_string<char>’}
72 | class basic_string;
| ^~~~~~~~~~~~
make: *** [Makefile:507: obj/fe_net.o] Error 1
-
Not a solution but I'm getting the same error on a system on which I already successfully compiled it. Difference is I was trying to recompile with curl installed this time. I get the same error if I attempt after uninstalling curl.
-
Bump, same issue
-
sudo apt-get -y install ssh make g++ git libsfml-dev libopenal-dev libavformat-dev libfontconfig1-dev libfreetype-dev libswscale-dev libarchive-dev libjpeg-dev libglu1-mesa-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libcurl4-openssl-dev build-essential cmake pkgconf libudev-dev libflac-dev libvorbis-dev libgl1-mesa-dev libswresample-dev libegl1-mesa-dev libgbm-dev libdrm-dev libboost-system-dev libboost-filesystem-dev
git clone https://github.com/mickelson/attract.git && cd attract
make -j $(cat /proc/cpuinfo | grep -c processor)
sudo make install
Try it. After installed, run attract