Package Details: vcmi 1.5.7-2

Git Clone URL: https://aur.archlinux.org/vcmi.git (read-only, click to copy)
Package Base: vcmi
Description: Open-source engine for Heroes of Might and Magic III
Upstream URL: http://vcmi.eu
Keywords: homm homm3 vcmi
Licenses: GPL-2.0-or-later AND CC-BY-SA-4.0
Conflicts: vcmi
Provides: vcmi
Submitter: Raziel23
Maintainer: Gigas002
Last Packager: Gigas002
Votes: 50
Popularity: 0.78
First Submitted: 2013-03-12 14:11 (UTC)
Last Updated: 2024-09-06 16:07 (UTC)

Pinned Comments

Gigas002 commented on 2024-05-29 15:08 (UTC)

PKGBUILD tweaks

If you want to build with clang, add this part to cmake flags:

    -DCMAKE_CXX_COMPILER='clang++' \
    -DCMAKE_C_COMPILER='clang' \

If you want to use bundled fuzzylite:

    -DFORCE_BUNDLED_FL=ON \

If you want to use innoextract (system-wide installation won't work since vcmi has a temporary? fork of innoextract for now):

    -DENABLE_INNOEXTRACT=ON \

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 Next › Last »

Crandel commented on 2024-05-12 09:58 (UTC) (edited on 2024-05-12 09:59 (UTC) by Crandel)

I have the same error with chinese.qm, as was mentioned already.

Also I've tried to change compiler from ccache to clang as was mentioned in pinned comment, but have this error:

[ 39%] Linking CXX shared library ../bin/libvcmi.so
CMakeFiles/vcmi.dir/StdInc.cpp.o: file not recognized: file format not recognized
collect2: error: ld returned 1 exit status
make[2]: *** [lib/CMakeFiles/vcmi.dir/build.make:4606: bin/libvcmi.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:621: lib/CMakeFiles/vcmi.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

michaldybczak commented on 2024-05-12 08:54 (UTC)

I have the same compile error with the chinese.qm path.

A_Bart commented on 2024-05-11 21:02 (UTC) (edited on 2024-05-11 21:03 (UTC) by A_Bart)

Hello, compiling is fine but packaging fails with:

CMake Error at launcher/cmake_install.cmake:82 (file):
  file INSTALL cannot find
  "/home/antonio/.cache/paru/clone/vcmi/src/vcmi-1.5.0/build/launcher/translation/chinese.qm":
  No such file or directory.
Call Stack (most recent call first):
  cmake_install.cmake:62 (include)

That file is present in the parent directory however, probably it's just a path issue

Gigas002 commented on 2024-05-10 17:07 (UTC) (edited on 2024-05-13 13:05 (UTC) by Gigas002)

Building the 1.5.0 release may cause some compiler warnings with gcc, but should compile and work without problems anyway. If you don't want to see that nasty stuff - compile with clang instead, add these lines to PKGBUILD:

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  mkdir -p build && cd build
  cmake -B. -H.. \
    -DCMAKE_INSTALL_PREFIX='/usr' \
    -DCMAKE_INSTALL_RPATH='/usr/lib/vcmi' \
    -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE \
    -DCMAKE_SKIP_RPATH='FALSE' \
    -DENABLE_TEST=OFF \
    -DFORCE_BUNDLED_FL=OFF \
    -DCMAKE_BUILD_TYPE='Release' \
    -DCMAKE_CXX_COMPILER_LAUNCHER='ccache' \
    -DCMAKE_C_COMPILER_LAUNCHER='ccache' \
    -DENABLE_INNOEXTRACT='FALSE' \
    -DCMAKE_CXX_COMPILER='clang++' \
    -DCMAKE_C_COMPILER='clang' \
    -Wno-dev
  make
}

Gigas002 commented on 2024-01-04 10:09 (UTC)

@xuhcc thanks for the note, I'll update the package when the next release comes (in order not to trigger rebuild for everyone because of this minor change for now)

xuhcc commented on 2023-12-29 12:08 (UTC)

tbb in depends should probably be replaced with onetbb (from Extra). Besides that, everything works well. Thanks @Gigas002

Gigas002 commented on 2023-12-13 12:57 (UTC)

I've added a qt5-tools runtime dependency, please let me know, if it works for you. Also tested a clang build lately, compile time is better (10 mins against 15 mins on my machine), should I make it default in cmake flags?

xcom commented on 2023-12-11 13:32 (UTC)

yay -S qt6-tools-desktop is needed.

Wintershade commented on 2023-10-22 23:42 (UTC)

This package makedepends on qt5-tools, the build won't start without it installed.

Gigas002 commented on 2023-05-01 05:40 (UTC)

Added a patch from this issue: https://github.com/vcmi/vcmi/issues/1971#issuecomment-1529109450

Game should work fine for now