VCMI and Fedora

Hi,
the packages for Fedora are outdated. So i tried to compile it myself. ```
cmake -S …/vcmi resulted in:

CMake Error at /usr/lib64/cmake/Qt5/Qt5Config.cmake:28 (find_package):
Could not find a package configuration file provided by “Qt5Svg” with any
of the following names:

Qt5SvgConfig.cmake
qt5svg-config.cmake

Add the installation prefix of “Qt5Svg” to CMAKE_PREFIX_PATH or set
“Qt5Svg_DIR” to a directory containing one of the above files. If “Qt5Svg”
provides a separate development package or SDK, be sure it has been
installed.

Call Stack (most recent call first):
CMakeLists.txt:510 (find_package)

So what to do? Is this a QT installation issue? Or is there something missing in the VCMI sources? I used the installation command from the web site. And i checked the whole file system for these files, and none found.

Easiest would of course be to update the Fedora packages :slight_smile:

Why am i trying to use latest version: I tried to modify necromancy so that if and inferno hero has it necromancy would rise demons instead of skeletons. So i added this as a specialty to all inferno heroes. And i found that it did simply nothing. I once had something similar working for a Pavillon hero with mummy specialty. I configured him to raise mummies instead of skeletons, and that worked. But that is long ago. So i wanted to try it with the latest version.

Now what to do? Or is this intentionally prohibited?

just install the Qt 5 SVG package, but unfortunately I don’t know its name. VCMI docs need to be updated to include that package.

Ok, thanks. There are actually 2 packages needed: qt5-qtsvg and qt5-qtsvg-devel. With these 2 cmake configuration worked. Tomorrow i’ll try to compile it.

for development you need the -devel one

The Fedora docs on how to make an rpm has moved: Packaging Tutorial :: Fedora Docs

Compilation succeeded :sweat_smile: so i go testing now. Maybe i’ll build an rpm later, but not that soon. First i have to learn how to do that. When i have such an rpm (tested and working), is there any place to upload it?

The launcher crashes on updating any mod:
Disaster happened.
Reason: Failed to open file '/home/sigipp/.cache/vcmi/downloads/hota.zip
Call stack information:
0# 0x00007FC635F3A04C in /home/sigipp/prj/vcmi/build/bin/libvcmi.so
1# 0x00007FC634C1EB9C in /lib64/libstdc++.so.6
2# std::unexpected() in /lib64/libstdc++.so.6
3# 0x00007FC634C1EE48 in /lib64/libstdc++.so.6
4# 0x00007FC635E0F308 in /home/sigipp/prj/vcmi/build/bin/libvcmi.so
5# 0x0000000000434B29 in ./vcmilauncher
6# 0x0000000000435DD0 in ./vcmilauncher
7# 0x0000000000419764 in ./vcmilauncher
8# 0x00007FC63525534B in /lib64/libQt5Core.so.5
9# 0x0000000000418D5F in ./vcmilauncher
10# 0x000000000041FC3B in ./vcmilauncher
11# 0x00007FC63525534B in /lib64/libQt5Core.so.5
12# QNetworkAccessManager::finished(QNetworkReply*) in /lib64/libQt5Network.so.5
13# 0x00007FC63685D5C1 in /lib64/libQt5Network.so.5
14# 0x00007FC635255235 in /lib64/libQt5Core.so.5
15# 0x00007FC6368CD1E5 in /lib64/libQt5Network.so.5
16# QObject::event(QEvent*) in /lib64/libQt5Core.so.5
17# QApplicationPrivate::notify_helper(QObject*, QEvent*) in /lib64/libQt5Widgets.so.5
18# QCoreApplication::notifyInternal2(QObject*, QEvent*) in /lib64/libQt5Core.so.5
19# QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) in /lib64/libQt5Core.so.5
20# 0x00007FC6352754CF in /lib64/libQt5Core.so.5
21# 0x00007FC631AEB863 in /lib64/libglib-2.0.so.0
22# 0x00007FC631AF47A8 in /lib64/libglib-2.0.so.0
23# g_main_context_iteration in /lib64/libglib-2.0.so.0
24# QEventDispatcherGlib::processEvents(QFlagsQEventLoop::ProcessEventsFlag) in /lib64/libQt5Core.so.5
25# QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) in /lib64/libQt5Core.so.5
26# QCoreApplication::exec() in /lib64/libQt5Core.so.5
27# 0x00000000004166B3 in ./vcmilauncher
28# 0x00007FC634A11575 in /lib64/libc.so.6
29# __libc_start_main in /lib64/libc.so.6
30# 0x0000000000418A65 in ./vcmilauncher

The mod i tried to update was HotA. Download worked. The file exists, and i can open it with xarchiver (f.ex.).

@Ivan any idea?

Known issue: VCMI Launcher not able to install Mods when minizip-ng is used instead of minizip (classic) · Issue #5415 · vcmi/vcmi · GitHub

Are you running VCMI 1.6.8 or VCMI 1.7.0? This issue might actually be fixed in 1.7

I’m running 1.6.7. There is no newer version for Fedora.

BTW: No problem if that takes some time. I currently have not much time for vcmi :slight_smile: