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
VS 2015 compilation
Author Message
krs


Joined: 04 Sep 2012
Posts: 374
Posted: 2016-07-18, 17:37   VS 2015 compilation

Is anyone planning in the near future to make the VS2015 distribution compilable?
 
     
SXX 

Age: 25
Joined: 04 Jul 2014
Posts: 290
Posted: 2016-09-28, 07:28   

BTW Dydzio managed to get it compile with newer VS now.
 
     
Vicious

Joined: 24 Aug 2010
Posts: 10
Posted: 2016-10-02, 00:03   

Ran into a couple of problems when trying to compile with MSVC on a pretty early stage. First of all, the link for libraries pack download here http://wiki.vcmi.eu/index...(Windows/Cmake) doesn't work anymore. The second problem, is that vcmi_bundle package listed here http://wiki.vcmi.eu/index..._VCMI_(Windows) only provides mingw libs despite the fact that the page is clearly related to Visual Studio.

Anyone here got an up to date lib bundle for MSVC? I could compile the libs myself ofc, but I'd rather prefer not to.
 
     
Dydzio 
H3 fan, Noob coder

Joined: 27 Dec 2014
Posts: 23
Location: Poland
Posted: 2016-10-02, 16:12   

Download libraries separately. You need boost and zlib, additionally for VCMI_client you need sdl2 and ffmpeg. Boost, sdl2 and ffmpeg are easy to download from their websites. And you can get zlib using nuget package manager shipped with visual studio 2015: https://www.nuget.org/packages/zlib/

You also need qt for launcher but I do not play with launcher project.
 
     
Vicious

Joined: 24 Aug 2010
Posts: 10
Posted: 2016-10-02, 16:21   

Ye, I know - I know, my point is that the msvc bundle link is outdated and that the link that works, which is supposedly for msvc too, in fact only provides mingw libs
 
     
krs


Joined: 04 Sep 2012
Posts: 374
Posted: 2016-10-28, 16:48   

I got a compile error from missing QT modules in VCMI Launcher.

Error C1083 Cannot open include file: 'QtWidgets': No such file or directory VCMI_launcher c:\home\krs\work\vcmi\trunk\launcher\StdInc.h

I cannot find in my qt 5.7 distribution a file called QtWidgets.h. Could it be that I have not installed something?
 
     
Macron1 

Joined: 02 Apr 2013
Posts: 574
Posted: 2016-10-28, 16:52   

It will be good, if someone provides step-by-step instruction how to compile VCMI under VS2015.
I tried to do this not long ago (and still want to try), but got some compile errors not solved by me yet.
_________________
I'm not a member of VCMI developer group and my posts are not official. I'm just a fan.
 
     
Warmonger 
VCMI programmer


Age: 27
Joined: 07 Jun 2008
Posts: 1528
Location: Warsaw, Poland

Posted: 2016-11-28, 21:57   

I couldn't compile recent build with VS 2013 at all, so moved to VC 2015. Now it works.

I can submit MSVS 2015 project files unless someone objects.
_________________
Think twice if you really need to send me private message. Use public forum for general questions.
DJ Warmonger blog
beegee wrote:
Warmonger, you are the best!
 
 
     
krs


Joined: 04 Sep 2012
Posts: 374
Posted: 2016-11-30, 19:55   

Please do :)
 
     
krs


Joined: 04 Sep 2012
Posts: 374
Posted: 2016-12-02, 11:13   

Can you please share what Qt version are you using? Because for Qt 5.7 I have some missing includes
 
     
nuhoang911

Joined: 22 Dec 2016
Posts: 3
Posted: 2016-12-22, 23:20   

Anyone succeeded in compiling in VS2015? I followed the wiki, installed zlib, boost, ffmpeg, configured the lib path and include path, still have about 20 err (mostly missing include and LINK error)
 
     
Warmonger 
VCMI programmer


Age: 27
Joined: 07 Jun 2008
Posts: 1528
Location: Warsaw, Poland

Posted: 2016-12-23, 08:33   

I's always like that, for everyone ;). Fix paths in projects manually.
_________________
Think twice if you really need to send me private message. Use public forum for general questions.
DJ Warmonger blog
beegee wrote:
Warmonger, you are the best!
 
 
     
rhdsmnd

Joined: 15 Dec 2016
Posts: 3
Posted: 2016-12-23, 12:52   

nuhoang911 wrote:
Anyone succeeded in compiling in VS2015? I followed the wiki, installed zlib, boost, ffmpeg, configured the lib path and include path, still have about 20 err (mostly missing include and LINK error)


what are your missing include and LINK errors?
 
     
nuhoang911

Joined: 22 Dec 2016
Posts: 3
Posted: 2016-12-23, 22:07   

rhdsmnd wrote:
nuhoang911 wrote:
Anyone succeeded in compiling in VS2015? I followed the wiki, installed zlib, boost, ffmpeg, configured the lib path and include path, still have about 20 err (mostly missing include and LINK error)


what are your missing include and LINK errors?


See the screenshot below please. Not actually missing include but cannot open include file.

http://i.imgur.com/MJZbOTg.png

Not sure why zlib is still a problem for me because I'm sure that I installed zlib for every projects.
 
     
Warmonger 
VCMI programmer


Age: 27
Joined: 07 Jun 2008
Posts: 1528
Location: Warsaw, Poland

Posted: 2016-12-23, 22:13   

"No such file or directory" - can't find include file. This is perfectly clear to me. The same goes for linker which can't find .lib files.

If VCMI_Liblib is not created at all (compilation failed) or is created in wrong directory, you get this error.

Just navigate project settings (for each projectr, starting from VCMI_Lib) and make sure files are in specified include directories. Or, more precisely, make sure the directories are set where files are.
_________________
Think twice if you really need to send me private message. Use public forum for general questions.
DJ Warmonger blog
beegee wrote:
Warmonger, you are the best!
 
 
     
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.06 second. SQL queries: 12