You are not logged in.

#1 2015-07-23 10:08:51

Anticitizen
Member
Registered: 2014-10-27
Posts: 25

[Solved]Can't compile VCMI

As in thread, I can't compile VCMI, using aur/vcmi package. This is the error

/tmp/yaourt-tmp-lich/aur-vcmi/src/vcmi-0.98/lib/CArtHandler.cpp: In member function ‘boost::optional<std::vector<CArtifact*>&> CArtHandler::listFromClass(CArtifact::EartClass)’:
/tmp/yaourt-tmp-lich/aur-vcmi/src/vcmi-0.98/lib/CArtHandler.cpp:674:10: error: could not convert ‘nullptr’ from ‘std::nullptr_t’ to ‘boost::optional<std::vector<CArtifact*>&>’
   return nullptr;
          ^
In file included from /tmp/yaourt-tmp-lich/aur-vcmi/src/vcmi-0.98/lib/spells/CSpellHandler.h:15:0,
                 from /tmp/yaourt-tmp-lich/aur-vcmi/src/vcmi-0.98/lib/CArtHandler.cpp:18:
/tmp/yaourt-tmp-lich/aur-vcmi/src/vcmi-0.98/lib/spells/../int3.h: At global scope:
/tmp/yaourt-tmp-lich/aur-vcmi/src/vcmi-0.98/lib/spells/../int3.h:157:19: warning: ‘dirs’ defined but not used [-Wunused-variable]
 static const int3 dirs[] = { int3(0,1,0),int3(0,-1,0),int3(-1,0,0),int3(+1,0,0),
                   ^
lib/CMakeFiles/vcmi.dir/build.make:1343: recipe for target 'lib/CMakeFiles/vcmi.dir/CArtHandler.cpp.o' failed
make[2]: *** [lib/CMakeFiles/vcmi.dir/CArtHandler.cpp.o] Error 1
CMakeFiles/Makefile2:145: recipe for target 'lib/CMakeFiles/vcmi.dir/all' failed
make[1]: *** [lib/CMakeFiles/vcmi.dir/all] Error 2
Makefile:136: recipe for target 'all' failed
make: *** [all] Error 2

And it crashes, the same thing on vcmi-git package.

Last edited by Anticitizen (2015-07-23 19:04:31)

Offline

#2 2015-07-23 11:11:20

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,517
Website

Re: [Solved]Can't compile VCMI

Please always check comments on aur packages before opening new threads.  This exact error was noted and solved here:
https://aur4.archlinux.org/packages/vcmi/

EDIT: this is not a multimedia & games issue.  Moving to AUR issues.

Last edited by Trilby (2015-07-23 11:12:02)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2015-07-23 19:04:14

Anticitizen
Member
Registered: 2014-10-27
Posts: 25

Re: [Solved]Can't compile VCMI

Using aur4 package solved, the problem, waiting for yaourt to move to aur4.

Offline

#4 2015-07-23 22:11:47

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Can't compile VCMI

Anticitizen wrote:

waiting for yaourt to move to aur4.

It won't, as aur4 is a temporary thing going away soon.

Offline

Board footer

Powered by FluxBB