You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
best regards
I use Ubuntu 18.4 LTS so I tried to compile UTLauncher for my ubuntu and when adding the PPA repositories
sudo apt-add-repository ppa: ubuntu-sdk-team / ppa
sudo apt-add-repository ppa: packetlost / cmake
sudo apt-get update
it seems that the URIS were mismatched so I removed the two ppas. On the other hand I managed to install the packages
apt-get install qtbase5-dev g ++ cmake
root@root:/home/USER # dpkg -l | grep "qtbase5-dev"
ii qtbase5-dev: amd64 5.9.5 + dfsg-0ubuntu2.3 amd64 Qt 5 base development files
ii qtbase5-dev-tools 5.9.5 + dfsg-0ubuntu2.3 amd64 Qt 5 base development programs
root @ root:/home/USER # dpkg -l | grep "g ++"
ii g ++ 4: 7.4.0-1ubuntu2.3 amd64 GNU C ++ compiler
ii g ++ - 7 7.4.0-1ubuntu1 ~ 18.04.1 amd64 GNU C ++ compiler
root @ root:/home/USER# dpkg -l | grep "cmake"
ii cmake 3.10.2-1ubuntu2.18.04.1 amd64 cross-platform, open source make system
ii cmake-data 3.10.2-1ubuntu2.18.04.1 all CMake data files (modules, templates and documentation)
root@root:/ home/USER# apt-get install qtbase5-dev g ++ cmake
Reading package lists ... Ready
Building dependency tree
Reading status info ... Ready
cmake is already the newest version (3.10.2-1ubuntu2.18.04.1).
g ++ is already the newest version (4: 7.4.0-1ubuntu2.3).
qtbase5-dev is already the newest version (5.9.5 + dfsg-0ubuntu2.3).
0 updated packages, 0 new packages installed, 0 to be removed, and 0 not updated.
root@root:/home/USER#
However trying to follow the rest of the tutorial to compile the system reports me the following error.
USER@ubuntu:/Downloads$ mkdir UTLauncher/build
USER@ubuntu:/Downloads$ cd UTLauncher
USER@ubuntu:/Downloads/UTLauncher$ git submodule update --init --recursive
USER@ubuntu:/Downloads/UTLauncher$ cd build
USER@ubuntu:/Downloads/UTLauncher/build$
USER@ubuntu:/Downloads/UTLauncher/build$ cmake .. -DCMAKE_BUILD_TYPE=Release
-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/USER/Downloads/UTLauncher/build
USER@ubuntu:~/Downloads/UTLauncher/build$ make
Scanning dependencies of target UTLauncher_autogen
[ 2%] Automatic MOC for target UTLauncher
AutoGen warning:
"/home/USER/Downloads/UTLauncher/bootstrap.cpp"
The source file is empty
AutoGen warning:
"/home/USER/Downloads/UTLauncher/serverbrowser.cpp"
The source file is empty
[ 2%] Built target UTLauncher_autogen
Scanning dependencies of target quazip_autogen
[ 5%] Automatic MOC for target quazip
[ 5%] Built target quazip_autogen
Scanning dependencies of target quazip
[ 8%] Building C object 3rdparty/CMakeFiles/quazip.dir/quazip/quazip/unzip.c.o
[ 11%] Building C object 3rdparty/CMakeFiles/quazip.dir/quazip/quazip/zip.c.o
[ 14%] Building CXX object 3rdparty/CMakeFiles/quazip.dir/quazip/quazip/JlCompress.cpp.o
[ 17%] Building CXX object 3rdparty/CMakeFiles/quazip.dir/quazip/quazip/qioapi.cpp.o
[ 20%] Building CXX object 3rdparty/CMakeFiles/quazip.dir/quazip/quazip/quaadler32.cpp.o
[ 23%] Building CXX object 3rdparty/CMakeFiles/quazip.dir/quazip/quazip/quacrc32.cpp.o
[ 26%] Building CXX object 3rdparty/CMakeFiles/quazip.dir/quazip/quazip/quagzipfile.cpp.o
[ 29%] Building CXX object 3rdparty/CMakeFiles/quazip.dir/quazip/quazip/quaziodevice.cpp.o
[ 32%] Building CXX object 3rdparty/CMakeFiles/quazip.dir/quazip/quazip/quazip.cpp.o
[ 35%] Building CXX object 3rdparty/CMakeFiles/quazip.dir/quazip/quazip/quazipdir.cpp.o
[ 38%] Building CXX object 3rdparty/CMakeFiles/quazip.dir/quazip/quazip/quazipfile.cpp.o
[ 41%] Building CXX object 3rdparty/CMakeFiles/quazip.dir/quazip/quazip/quazipfileinfo.cpp.o
[ 44%] Building CXX object 3rdparty/CMakeFiles/quazip.dir/quazip/quazip/quazipnewinfo.cpp.o
[ 47%] Building CXX object 3rdparty/CMakeFiles/quazip.dir/quazip_autogen/mocs_compilation.cpp.o
[ 47%] Built target quazip
Scanning dependencies of target QtAwesome_autogen
[ 50%] Automatic MOC for target QtAwesome
[ 50%] Built target QtAwesome_autogen
[ 52%] Generating qrc_QtAwesome.cpp
Scanning dependencies of target QtAwesome
[ 55%] Building CXX object 3rdparty/CMakeFiles/QtAwesome.dir/QtAwesome/QtAwesome/QtAwesome.cpp.o
[ 58%] Building CXX object 3rdparty/CMakeFiles/QtAwesome.dir/qrc_QtAwesome.cpp.o
[ 61%] Building CXX object 3rdparty/CMakeFiles/QtAwesome.dir/QtAwesome_autogen/mocs_compilation.cpp.o
[ 61%] Built target QtAwesome
[ 64%] Generating qrc_flags.cpp
[ 67%] Generating qrc_files.cpp
Scanning dependencies of target UTLauncher
[ 70%] Building CXX object CMakeFiles/UTLauncher.dir/qrc_files.cpp.o
[ 73%] Building CXX object CMakeFiles/UTLauncher.dir/qrc_flags.cpp.o
[ 76%] Building CXX object CMakeFiles/UTLauncher.dir/main.cpp.o
[ 79%] Building CXX object CMakeFiles/UTLauncher.dir/utlauncher.cpp.o
[ 82%] Building CXX object CMakeFiles/UTLauncher.dir/download.cpp.o
[ 85%] Building CXX object CMakeFiles/UTLauncher.dir/utsplash.cpp.o
[ 88%] Building CXX object CMakeFiles/UTLauncher.dir/bootstrap.cpp.o
[ 91%] Building CXX object CMakeFiles/UTLauncher.dir/serverbrowser.cpp.o
[ 94%] Building CXX object CMakeFiles/UTLauncher.dir/configdialog.cpp.o
[ 97%] Building CXX object CMakeFiles/UTLauncher.dir/UTLauncher_autogen/mocs_compilation.cpp.o
In file included from /home/USER/Downloads/UTLauncher/build/UTLauncher_autogen/EWIEGA46WW/../../../bootstrap.h:6:0,
from /home/USER/Downloads/UTLauncher/build/UTLauncher_autogen/EWIEGA46WW/moc_bootstrap.cpp:9,
from /home/USER/Downloads/UTLauncher/build/UTLauncher_autogen/mocs_compilation.cpp:2:
/home/USER/Downloads/UTLauncher/build/UTLauncher_autogen/EWIEGA46WW/../../../torrentdownloader.h:14:52: error: ‘function’ is not a member of ‘std’
std::unique_ptr<TorrentDownloaderPrivate, std::function<void(TorrentDownloaderPrivate*)>> p;
^~~~~~~~
/home/USER/Downloads/UTLauncher/build/UTLauncher_autogen/EWIEGA46WW/../../../torrentdownloader.h:14:52: note: suggested alternative: ‘is_function’
std::unique_ptr<TorrentDownloaderPrivate, std::function<void(TorrentDownloaderPrivate*)>> p;
^~~~~~~~
is_function
/home/USER/Downloads/UTLauncher/build/UTLauncher_autogen/EWIEGA46WW/../../../torrentdownloader.h:14:52: error: ‘function’ is not a member of ‘std’
/home/USER/Downloads/UTLauncher/build/UTLauncher_autogen/EWIEGA46WW/../../../torrentdownloader.h:14:52: note: suggested alternative: ‘is_function’
std::unique_ptr<TorrentDownloaderPrivate, std::function<void(TorrentDownloaderPrivate*)>> p;
^~~~~~~~
is_function
/home/USER/Downloads/UTLauncher/build/UTLauncher_autogen/EWIEGA46WW/../../../torrentdownloader.h:14:92: error: template argument 2 is invalid
std::unique_ptr<TorrentDownloaderPrivate, std::function<void(TorrentDownloaderPrivate*)>> p;
^~
CMakeFiles/UTLauncher.dir/build.make:573: recipe for target 'CMakeFiles/UTLauncher.dir/UTLauncher_autogen/mocs_compilation.cpp.o' failed
make[2]: *** [CMakeFiles/UTLauncher.dir/UTLauncher_autogen/mocs_compilation.cpp.o] Error 1
CMakeFiles/Makefile2:69: recipe for target 'CMakeFiles/UTLauncher.dir/all' failed
make[1]: *** [CMakeFiles/UTLauncher.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
USER@ubuntu:~/Downloads/UTLauncher/build$
You guys managed to help me with this error as I would like to play Tournament on the servers.
The text was updated successfully, but these errors were encountered:
krakulles0s4
changed the title
Failed build in Linux on Ubuntu
Failed build in Linux Ubuntu
Oct 7, 2019
best regards
I use Ubuntu 18.4 LTS so I tried to compile UTLauncher for my ubuntu and when adding the PPA repositories
sudo apt-add-repository ppa: ubuntu-sdk-team / ppa
sudo apt-add-repository ppa: packetlost / cmake
sudo apt-get update
it seems that the URIS were mismatched so I removed the two ppas. On the other hand I managed to install the packages
apt-get install qtbase5-dev g ++ cmake
root@root:/home/USER # dpkg -l | grep "qtbase5-dev"
ii qtbase5-dev: amd64 5.9.5 + dfsg-0ubuntu2.3 amd64 Qt 5 base development files
ii qtbase5-dev-tools 5.9.5 + dfsg-0ubuntu2.3 amd64 Qt 5 base development programs
root @ root:/home/USER # dpkg -l | grep "g ++"
ii g ++ 4: 7.4.0-1ubuntu2.3 amd64 GNU C ++ compiler
ii g ++ - 7 7.4.0-1ubuntu1 ~ 18.04.1 amd64 GNU C ++ compiler
root @ root:/home/USER# dpkg -l | grep "cmake"
ii cmake 3.10.2-1ubuntu2.18.04.1 amd64 cross-platform, open source make system
ii cmake-data 3.10.2-1ubuntu2.18.04.1 all CMake data files (modules, templates and documentation)
root@root:/ home/USER# apt-get install qtbase5-dev g ++ cmake
Reading package lists ... Ready
Building dependency tree
Reading status info ... Ready
cmake is already the newest version (3.10.2-1ubuntu2.18.04.1).
g ++ is already the newest version (4: 7.4.0-1ubuntu2.3).
qtbase5-dev is already the newest version (5.9.5 + dfsg-0ubuntu2.3).
0 updated packages, 0 new packages installed, 0 to be removed, and 0 not updated.
root@root:/home/USER#
However trying to follow the rest of the tutorial to compile the system reports me the following error.
USER@ubuntu:
/Downloads$ mkdir UTLauncher/build/Downloads$ cd UTLauncherUSER@ubuntu:
USER@ubuntu:
/Downloads/UTLauncher$ git submodule update --init --recursive/Downloads/UTLauncher$ cd buildUSER@ubuntu:
USER@ubuntu:
/Downloads/UTLauncher/build$/Downloads/UTLauncher/build$ cmake .. -DCMAKE_BUILD_TYPE=ReleaseUSER@ubuntu:
-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/USER/Downloads/UTLauncher/build
USER@ubuntu:~/Downloads/UTLauncher/build$ make
Scanning dependencies of target UTLauncher_autogen
[ 2%] Automatic MOC for target UTLauncher
AutoGen warning:
"/home/USER/Downloads/UTLauncher/bootstrap.cpp"
The source file is empty
AutoGen warning:
"/home/USER/Downloads/UTLauncher/serverbrowser.cpp"
The source file is empty
[ 2%] Built target UTLauncher_autogen
Scanning dependencies of target quazip_autogen
[ 5%] Automatic MOC for target quazip
[ 5%] Built target quazip_autogen
Scanning dependencies of target quazip
[ 8%] Building C object 3rdparty/CMakeFiles/quazip.dir/quazip/quazip/unzip.c.o
[ 11%] Building C object 3rdparty/CMakeFiles/quazip.dir/quazip/quazip/zip.c.o
[ 14%] Building CXX object 3rdparty/CMakeFiles/quazip.dir/quazip/quazip/JlCompress.cpp.o
[ 17%] Building CXX object 3rdparty/CMakeFiles/quazip.dir/quazip/quazip/qioapi.cpp.o
[ 20%] Building CXX object 3rdparty/CMakeFiles/quazip.dir/quazip/quazip/quaadler32.cpp.o
[ 23%] Building CXX object 3rdparty/CMakeFiles/quazip.dir/quazip/quazip/quacrc32.cpp.o
[ 26%] Building CXX object 3rdparty/CMakeFiles/quazip.dir/quazip/quazip/quagzipfile.cpp.o
[ 29%] Building CXX object 3rdparty/CMakeFiles/quazip.dir/quazip/quazip/quaziodevice.cpp.o
[ 32%] Building CXX object 3rdparty/CMakeFiles/quazip.dir/quazip/quazip/quazip.cpp.o
[ 35%] Building CXX object 3rdparty/CMakeFiles/quazip.dir/quazip/quazip/quazipdir.cpp.o
[ 38%] Building CXX object 3rdparty/CMakeFiles/quazip.dir/quazip/quazip/quazipfile.cpp.o
[ 41%] Building CXX object 3rdparty/CMakeFiles/quazip.dir/quazip/quazip/quazipfileinfo.cpp.o
[ 44%] Building CXX object 3rdparty/CMakeFiles/quazip.dir/quazip/quazip/quazipnewinfo.cpp.o
[ 47%] Building CXX object 3rdparty/CMakeFiles/quazip.dir/quazip_autogen/mocs_compilation.cpp.o
[ 47%] Built target quazip
Scanning dependencies of target QtAwesome_autogen
[ 50%] Automatic MOC for target QtAwesome
[ 50%] Built target QtAwesome_autogen
[ 52%] Generating qrc_QtAwesome.cpp
Scanning dependencies of target QtAwesome
[ 55%] Building CXX object 3rdparty/CMakeFiles/QtAwesome.dir/QtAwesome/QtAwesome/QtAwesome.cpp.o
[ 58%] Building CXX object 3rdparty/CMakeFiles/QtAwesome.dir/qrc_QtAwesome.cpp.o
[ 61%] Building CXX object 3rdparty/CMakeFiles/QtAwesome.dir/QtAwesome_autogen/mocs_compilation.cpp.o
[ 61%] Built target QtAwesome
[ 64%] Generating qrc_flags.cpp
[ 67%] Generating qrc_files.cpp
Scanning dependencies of target UTLauncher
[ 70%] Building CXX object CMakeFiles/UTLauncher.dir/qrc_files.cpp.o
[ 73%] Building CXX object CMakeFiles/UTLauncher.dir/qrc_flags.cpp.o
[ 76%] Building CXX object CMakeFiles/UTLauncher.dir/main.cpp.o
[ 79%] Building CXX object CMakeFiles/UTLauncher.dir/utlauncher.cpp.o
[ 82%] Building CXX object CMakeFiles/UTLauncher.dir/download.cpp.o
[ 85%] Building CXX object CMakeFiles/UTLauncher.dir/utsplash.cpp.o
[ 88%] Building CXX object CMakeFiles/UTLauncher.dir/bootstrap.cpp.o
[ 91%] Building CXX object CMakeFiles/UTLauncher.dir/serverbrowser.cpp.o
[ 94%] Building CXX object CMakeFiles/UTLauncher.dir/configdialog.cpp.o
[ 97%] Building CXX object CMakeFiles/UTLauncher.dir/UTLauncher_autogen/mocs_compilation.cpp.o
In file included from /home/USER/Downloads/UTLauncher/build/UTLauncher_autogen/EWIEGA46WW/../../../bootstrap.h:6:0,
from /home/USER/Downloads/UTLauncher/build/UTLauncher_autogen/EWIEGA46WW/moc_bootstrap.cpp:9,
from /home/USER/Downloads/UTLauncher/build/UTLauncher_autogen/mocs_compilation.cpp:2:
/home/USER/Downloads/UTLauncher/build/UTLauncher_autogen/EWIEGA46WW/../../../torrentdownloader.h:14:52: error: ‘function’ is not a member of ‘std’
std::unique_ptr<TorrentDownloaderPrivate, std::function<void(TorrentDownloaderPrivate*)>> p;
^~~~~~~~
/home/USER/Downloads/UTLauncher/build/UTLauncher_autogen/EWIEGA46WW/../../../torrentdownloader.h:14:52: note: suggested alternative: ‘is_function’
std::unique_ptr<TorrentDownloaderPrivate, std::function<void(TorrentDownloaderPrivate*)>> p;
^~~~~~~~
is_function
/home/USER/Downloads/UTLauncher/build/UTLauncher_autogen/EWIEGA46WW/../../../torrentdownloader.h:14:52: error: ‘function’ is not a member of ‘std’
/home/USER/Downloads/UTLauncher/build/UTLauncher_autogen/EWIEGA46WW/../../../torrentdownloader.h:14:52: note: suggested alternative: ‘is_function’
std::unique_ptr<TorrentDownloaderPrivate, std::function<void(TorrentDownloaderPrivate*)>> p;
^~~~~~~~
is_function
/home/USER/Downloads/UTLauncher/build/UTLauncher_autogen/EWIEGA46WW/../../../torrentdownloader.h:14:92: error: template argument 2 is invalid
std::unique_ptr<TorrentDownloaderPrivate, std::function<void(TorrentDownloaderPrivate*)>> p;
^~
CMakeFiles/UTLauncher.dir/build.make:573: recipe for target 'CMakeFiles/UTLauncher.dir/UTLauncher_autogen/mocs_compilation.cpp.o' failed
make[2]: *** [CMakeFiles/UTLauncher.dir/UTLauncher_autogen/mocs_compilation.cpp.o] Error 1
CMakeFiles/Makefile2:69: recipe for target 'CMakeFiles/UTLauncher.dir/all' failed
make[1]: *** [CMakeFiles/UTLauncher.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
USER@ubuntu:~/Downloads/UTLauncher/build$
You guys managed to help me with this error as I would like to play Tournament on the servers.
The text was updated successfully, but these errors were encountered: