Forum index VCMI Project - Heroes 3: WoG recreated
Forum of the project aiming to recreate best turn-based strategy ever!

FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  StatisticsStatistics
RegisterRegister  Log inLog in  AlbumAlbum  DownloadDownload

Previous topic :: Next topic
OS X Build Error 10.12: "Previous definition is here&qu
Author Message
javalor 

Age: 24
Joined: 11 Nov 2016
Posts: 2
Posted: 2016-11-11, 04:04   OS X Build Error 10.12: "Previous definition is here&qu

Hi,
I am dowloading the VCMI build for OS X, and after running "make -j4" from the instructions at http://wiki.vcmi.eu/index...ild_VCMI_(OS_X) I have been getting a "fatal error" that is a result of too many errors (specifically it says 20) when trying the redefine something. The error looks like this:

fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [client/CMakeFiles/vcmiclient.dir/widgets/AdventureMapClasses.cpp.o] Error 1
make[1]: *** [client/CMakeFiles/vcmiclient.dir/all] Error 2
make: *** [all] Error 2

The specific errors all look similar to this:

/Users/ME/sparkle/sparkle/vcmi/sparkle/vcmi/vcmi/client/gui/../../lib/GameConstants.h:40:12: note:
previous definition is here
const int SKILL_PER_HERO=8;

any chance you know what is going wrong? I am doing this on a macOS sierra version 10.12.1
 
     
javalor 

Age: 24
Joined: 11 Nov 2016
Posts: 2
Posted: 2016-11-11, 07:13   

somehow the file downloaded when I re-ran the code, but now getting error:

build "mydrive"$ cd ..
vcmi "mydrive"$ bin/vcmiclient.app/Contents/MacOS/vcmiclient
-bash: bin/vcmiclient.app/Contents/MacOS/vcmiclient: No such file or directory

with this preceding it:

[100%] Linking CXX executable ../../bin/vcmiclient.app/Contents/MacOS/vcmiclient
ld: warning: direct access in function 'void BinaryDeserializer::load<Bonus>(std::__1::shared_ptr<Bonus>&)' from file 'CMakeFiles/vcmiclient.dir/Client.cpp.o' to global weak symbol 'typeinfo name for std::__1::shared_ptr<Bonus>' from file 'CMakeFiles/vcmiclient.dir/CMT.cpp.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'std::__1::shared_ptr<Bonus> boost::any_cast<std::__1::shared_ptr<Bonus> >(boost::any&)' from file 'CMakeFiles/vcmiclient.dir/Client.cpp.o' to global weak symbol 'typeinfo name for std::__1::shared_ptr<Bonus>' from file 'CMakeFiles/vcmiclient.dir/CMT.cpp.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'std::__1::shared_ptr<Bonus> boost::any_cast<std::__1::shared_ptr<Bonus> >(boost::any&)' from file 'CMakeFiles/vcmiclient.dir/Client.cpp.o' to global weak symbol 'typeinfo name for std::__1::shared_ptr<Bonus>' from file 'CMakeFiles/vcmiclient.dir/CMT.cpp.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'boost::any::holder<std::__1::shared_ptr<Bonus> >::type() const' from file 'CMakeFiles/vcmiclient.dir/Client.cpp.o' to global weak symbol 'typeinfo for std::__1::shared_ptr<Bonus>' from file 'CMakeFiles/vcmiclient.dir/CMT.cpp.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
cp: /Users/"mydrive"/vcmi/osx/vcmibuilder.app: No such file or directory
make[2]: *** [../bin/vcmiclient.app/Contents/MacOS/vcmiclient] Error 1
make[2]: *** Deleting file `../bin/vcmiclient.app/Contents/MacOS/vcmiclient'
make[1]: *** [client/CMakeFiles/vcmiclient.dir/all] Error 2
make: *** [all] Error 2


any insight would be appreciated!
 
     
lonelywolf

Joined: 22 Jul 2010
Posts: 44
Posted: 2016-11-11, 20:25   

on this site you add bug reports:

http://bugs.vcmi.eu/my_view_page.php
 
     
Display posts from previous:   
Reply to topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Add this topic to your bookmarks
Printable version

Jump to:  

Powered by phpBB modified by Przemo © 2003 phpBB Group
Template Chronicles modified by Nasedo modified by Tow.
© VCMI Team
Page generated in 0.05 second. SQL queries: 13