screencloud
screencloud copied to clipboard
Build fails
I have Ubuntu 18.04.4 and simply followed the instruction on this page https://github.com/olav-st/screencloud/wiki/Compiling-on-Ubuntu
Running make
ends with errors.
Here are the following outputs
~/Projects/screencloud master#v1.5.1 mkdir build ✔
cd build
~/Projects/screencloud/build master#v1.5.1 cmake .. ✔
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.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 quazip: /usr/lib/x86_64-linux-gnu/libquazip5.so
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.6m.so (found suitable version "3.6.9", minimum required is "3.3")
-- Using PythonQt_QtBindings (old) for Qt bindings.
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.1.1")
-- OpenSSL libraries: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so
-- Including QtSingleApplication and parts of LibQxt.
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sahin/Projects/screencloud/build
~/Projects/screencloud/build master#v1.5.1 make ✔
Scanning dependencies of target screencloud_autogen
[ 1%] Automatic MOC for target screencloud
[ 1%] Built target screencloud_autogen
[ 2%] Generating ui_selectfolderdialog.h
[ 3%] Generating qrc_icons.cpp
[ 5%] Generating qrc_sounds.cpp
[ 6%] Generating qrc_resources_linux.cpp
[ 7%] Generating ui_downloadupdatedialog.h
[ 8%] Generating ui_preferencesdialog.h
[ 10%] Generating ui_licensesdialog.h
[ 11%] Generating ui_savescreenshotdialog.h
[ 12%] Generating ui_plugindialog.h
[ 13%] Generating ui_changelogdialog.h
[ 15%] Generating ui_editordialog.h
Scanning dependencies of target screencloud
[ 16%] Building CXX object CMakeFiles/screencloud.dir/src/dialog/downloadupdatedialog.cpp.o
/home/sahin/Projects/screencloud/src/dialog/downloadupdatedialog.cpp: In member function ‘void DownloadUpdateDialog::startDownload(QString)’:
/home/sahin/Projects/screencloud/src/dialog/downloadupdatedialog.cpp:39:50: warning: unused parameter ‘version’ [-Wunused-parameter]
void DownloadUpdateDialog::startDownload(QString version)
^~~~~~~
[ 17%] Building CXX object CMakeFiles/screencloud.dir/src/dialog/preferencesdialog.cpp.o
In file included from /usr/include/python3.6m/Python.h:39:0,
from /home/sahin/Projects/screencloud/src/plugin/pluginmanager.h:22,
from /home/sahin/Projects/screencloud/src/utils/updater.h:29,
from /home/sahin/Projects/screencloud/src/dialog/preferencesdialog.h:36,
from /home/sahin/Projects/screencloud/src/dialog/preferencesdialog.cpp:15:
/usr/include/quazip5/crypt.h:37:53: error: ‘z_crc_t’ does not name a type; did you mean ‘z_const’?
static int decrypt_byte(unsigned long* pkeys, const z_crc_t FAR * pcrc_32_tab UNUSED)
^~~~~~~
z_const
/usr/include/quazip5/crypt.h:37:65: error: expected ‘,’ or ‘...’ before ‘*’ token
static int decrypt_byte(unsigned long* pkeys, const z_crc_t FAR * pcrc_32_tab UNUSED)
^
/usr/include/quazip5/crypt.h: In function ‘int decrypt_byte(long unsigned int*, int)’:
/usr/include/quazip5/crypt.h:37:61: warning: unused parameter ‘FAR’ [-Wunused-parameter]
static int decrypt_byte(unsigned long* pkeys, const z_crc_t FAR * pcrc_32_tab UNUSED)
^~~
/usr/include/quazip5/crypt.h: At global scope:
/usr/include/quazip5/crypt.h:51:51: error: ‘z_crc_t’ does not name a type; did you mean ‘z_const’?
static int update_keys(unsigned long* pkeys,const z_crc_t FAR * pcrc_32_tab,int c)
^~~~~~~
z_const
/usr/include/quazip5/crypt.h:51:63: error: expected ‘,’ or ‘...’ before ‘*’ token
static int update_keys(unsigned long* pkeys,const z_crc_t FAR * pcrc_32_tab,int c)
^
/usr/include/quazip5/crypt.h: In function ‘int update_keys(long unsigned int*, int)’:
/usr/include/quazip5/crypt.h:32:25: error: ‘pcrc_32_tab’ was not declared in this scope
#define CRC32(c, b) ((*(pcrc_32_tab+(((int)(c) ^ (b)) & 0xff))) ^ ((c) >> 8))
^
/usr/include/quazip5/crypt.h:53:20: note: in expansion of macro ‘CRC32’
(*(pkeys+0)) = CRC32((*(pkeys+0)), c);
^~~~~
/usr/include/quazip5/crypt.h:53:40: error: ‘c’ was not declared in this scope
(*(pkeys+0)) = CRC32((*(pkeys+0)), c);
^
/usr/include/quazip5/crypt.h:32:51: note: in definition of macro ‘CRC32’
#define CRC32(c, b) ((*(pcrc_32_tab+(((int)(c) ^ (b)) & 0xff))) ^ ((c) >> 8))
^
/usr/include/quazip5/crypt.h:51:59: warning: unused parameter ‘FAR’ [-Wunused-parameter]
static int update_keys(unsigned long* pkeys,const z_crc_t FAR * pcrc_32_tab,int c)
^~~
/usr/include/quazip5/crypt.h: At global scope:
/usr/include/quazip5/crypt.h:68:69: error: ‘z_crc_t’ does not name a type; did you mean ‘z_const’?
static void init_keys(const char* passwd,unsigned long* pkeys,const z_crc_t FAR * pcrc_32_tab)
^~~~~~~
z_const
/usr/include/quazip5/crypt.h:68:81: error: expected ‘,’ or ‘...’ before ‘*’ token
static void init_keys(const char* passwd,unsigned long* pkeys,const z_crc_t FAR * pcrc_32_tab)
^
/usr/include/quazip5/crypt.h: In function ‘void init_keys(const char*, long unsigned int*, int)’:
/usr/include/quazip5/crypt.h:74:27: error: ‘pcrc_32_tab’ was not declared in this scope
update_keys(pkeys,pcrc_32_tab,(int)*passwd);
^~~~~~~~~~~
/usr/include/quazip5/crypt.h:68:77: warning: unused parameter ‘FAR’ [-Wunused-parameter]
static void init_keys(const char* passwd,unsigned long* pkeys,const z_crc_t FAR * pcrc_32_tab)
^~~
/home/sahin/Projects/screencloud/src/dialog/preferencesdialog.cpp: In member function ‘void PreferencesDialog::dialogFinished(int)’:
/home/sahin/Projects/screencloud/src/dialog/preferencesdialog.cpp:159:44: warning: unused parameter ‘r’ [-Wunused-parameter]
void PreferencesDialog::dialogFinished(int r)
^
/home/sahin/Projects/screencloud/src/dialog/preferencesdialog.cpp: In member function ‘void PreferencesDialog::keyRecorded(Qt::Key, int, Qt::KeyboardModifiers)’:
/home/sahin/Projects/screencloud/src/dialog/preferencesdialog.cpp:290:85: warning: unused parameter ‘modifiers’ [-Wunused-parameter]
void PreferencesDialog::keyRecorded(Qt::Key key, int keycode, Qt::KeyboardModifiers modifiers)
^~~~~~~~~
/home/sahin/Projects/screencloud/src/dialog/preferencesdialog.cpp: In member function ‘void PreferencesDialog::gotVersionNumber(QString, bool)’:
/home/sahin/Projects/screencloud/src/dialog/preferencesdialog.cpp:356:70: warning: unused parameter ‘outdated’ [-Wunused-parameter]
void PreferencesDialog::gotVersionNumber(QString versionNumber, bool outdated)
^~~~~~~~
/home/sahin/Projects/screencloud/src/dialog/preferencesdialog.cpp: In member function ‘void PreferencesDialog::on_list_uploaders_clicked(const QModelIndex&)’:
/home/sahin/Projects/screencloud/src/dialog/preferencesdialog.cpp:386:70: warning: unused parameter ‘index’ [-Wunused-parameter]
void PreferencesDialog::on_list_uploaders_clicked(const QModelIndex &index)
^~~~~
/home/sahin/Projects/screencloud/src/dialog/preferencesdialog.cpp: In member function ‘void PreferencesDialog::on_tabWidget_currentChanged(int)’:
/home/sahin/Projects/screencloud/src/dialog/preferencesdialog.cpp:477:57: warning: unused parameter ‘index’ [-Wunused-parameter]
void PreferencesDialog::on_tabWidget_currentChanged(int index)
^~~~~
In file included from /usr/include/python3.6m/Python.h:39:0,
from /home/sahin/Projects/screencloud/src/plugin/pluginmanager.h:22,
from /home/sahin/Projects/screencloud/src/utils/updater.h:29,
from /home/sahin/Projects/screencloud/src/dialog/preferencesdialog.h:36,
from /home/sahin/Projects/screencloud/src/dialog/preferencesdialog.cpp:15:
/usr/include/quazip5/crypt.h: At global scope:
/usr/include/quazip5/crypt.h:68:13: warning: ‘void init_keys(const char*, long unsigned int*, int)’ defined but not used [-Wunused-function]
static void init_keys(const char* passwd,unsigned long* pkeys,const z_crc_t FAR * pcrc_32_tab)
^~~~~~~~~
/usr/include/quazip5/crypt.h:51:12: warning: ‘int update_keys(long unsigned int*, int)’ defined but not used [-Wunused-function]
static int update_keys(unsigned long* pkeys,const z_crc_t FAR * pcrc_32_tab,int c)
^~~~~~~~~~~
/usr/include/quazip5/crypt.h:37:12: warning: ‘int decrypt_byte(long unsigned int*, int)’ defined but not used [-Wunused-function]
static int decrypt_byte(unsigned long* pkeys, const z_crc_t FAR * pcrc_32_tab UNUSED)
^~~~~~~~~~~~
CMakeFiles/screencloud.dir/build.make:163: recipe for target 'CMakeFiles/screencloud.dir/src/dialog/preferencesdialog.cpp.o' failed
make[2]: *** [CMakeFiles/screencloud.dir/src/dialog/preferencesdialog.cpp.o] Error 1
CMakeFiles/Makefile2:99: recipe for target 'CMakeFiles/screencloud.dir/all' failed
make[1]: *** [CMakeFiles/screencloud.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
And this is the output of library installation
~/Projects/screencloud master#v1.5.1 sudo apt-get install git build-essential cmake qtbase5-dev qtbase5-private-dev libqt5svg5-dev libqt5x11extras5-dev qtmultimedia5-dev qttools5-dev libquazip5-dev libpythonqt-qt5-python3-dev python3-dev libssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.4ubuntu1).
libqt5svg5-dev is already the newest version (5.9.5-0ubuntu1).
libpythonqt-qt5-python3-dev is already the newest version (3.2-7build2).
libqt5x11extras5-dev is already the newest version (5.9.5-0ubuntu1).
libquazip5-dev is already the newest version (0.7.3-5ubuntu1).
qtmultimedia5-dev is already the newest version (5.9.5-0ubuntu1).
qttools5-dev is already the newest version (5.9.5-0ubuntu1).
cmake is already the newest version (3.10.2-1ubuntu2.18.04.1).
git is already the newest version (1:2.17.1-1ubuntu0.7).
libssl-dev is already the newest version (1.1.1-1ubuntu2.1~18.04.5).
python3-dev is already the newest version (3.6.7-1~18.04).
qtbase5-dev is already the newest version (5.9.5+dfsg-0ubuntu2.5).
qtbase5-private-dev is already the newest version (5.9.5+dfsg-0ubuntu2.5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Looks similar to https://github.com/olav-st/screencloud/issues/315.
@olav-st I do see that issue before posting another one and I think I have the latest version of quazip
This issue has had no activity in the last 60 days. Please add a reply if you want to keep this issue active, otherwise it will be automatically closed after 30 days.