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: 2017-01-07, 14:47   

I have some free time now.

I've tried again to compile the whole thing I still get the same old error when compiling 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?

Can someone help?
 
     
Warmonger 
VCMI programmer


Age: 28
Joined: 07 Jun 2008
Posts: 1545
Location: Warsaw, Poland
Posted: 2017-01-07, 16:17   

In my QT 5.1.1, QtWidgets is a folder.
_________________
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: 2017-01-07, 21:27   

Same for me in Qt 5.7. QtWidgets is a folder no .h

but at the same time in launcher/Stdinc.h there is this line ...
#include <QtWidgets>

It does not look like anything to me.
 
     
nuhoang911

Joined: 22 Dec 2016
Posts: 3
Posted: 2017-01-18, 06:35   

krs wrote:
Same for me in Qt 5.7. QtWidgets is a folder no .h

but at the same time in launcher/Stdinc.h there is this line ...
#include <QtWidgets>

It does not look like anything to me.


I didn't encounter this error. Not sure if this would help but I found QtWidgets in my boost folder.

Anyway, I was finally successfully solved those "cannot find..." errors. Now the only type of error I have left is the LINK error (there are like ~10 LINK errors). I looked it up and it seems like it has something to do with Linker -> Input under Properties. Any ideas to solve this?
 
     
krs


Joined: 04 Sep 2012
Posts: 374
Posted: 2017-01-18, 18:58   

@Warmonger Any idea why the file included from launcher/Stdinc.h " #include <QtWidgets> " is not present in Qt?

If you have also QTWidgets only as a folder, how come the include works for you?

I am really stuck here since a long time and I cannot come forward without some help :(
 
     
Warmonger 
VCMI programmer


Age: 28
Joined: 07 Jun 2008
Posts: 1545
Location: Warsaw, Poland
Posted: 2017-01-18, 19:04   

http://doc.qt.io/qt-5/qtwidgets-index.html

There ineed is a file "QTWidgets" inside my QTWidgets folder, but it has no extension. In particular it's not .h file.
_________________
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: 2017-01-19, 21:41   

Ok I have the file aswell. I just thought its must be a .h or .hpp.

The next problem is that it works if I use an absolute path, but no matter what I put in Additional Include directories it does not find the file <QtWidgets>

this works:
#include "c:\Home\Krs\Work\VCMI\Qt\5.7\msvc2015\include\QtWidgets\QtWidgets"

this does not
#include <QtWidgets> (with #include "c:\Home\Krs\Work\VCMI\Qt\5.7\msvc2015\include\QtWidgets" in Include additional dirs for project VCMI_Launcher)
 
     
Warmonger 
VCMI programmer


Age: 28
Joined: 07 Jun 2008
Posts: 1545
Location: Warsaw, Poland
Posted: 2017-01-19, 22:00   

Well, it always can be tricky - but for me it just works :P Make sure you don't have any messed-up extra characters in this field.

Include QTWidgets.png
901 Time(s) 8.92 KB

_________________
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: 2017-01-19, 23:48   

I had exactly the same... nevertheless I redid the whole thing from scratch..

From a fresh repository I had to:

move VCMI../libs/*.* into VCMI../libs/x86/*.*
In VCMILauncher I had to go to .prj and replace all QT paths
In VCAI I had to create a new macro called FUZZYLITE with value ../FuzzyLite/FuzzyLite
ERM project is not compiling -> out of build configuration (I just dont care about it)

And finally it builds!!!

Thanks for the help.
 
     
krs


Joined: 04 Sep 2012
Posts: 374
Posted: 2017-01-19, 23:51   

Is Editor not supposed to be built? Why is it not marked for building in configuration?
 
     
krs


Joined: 04 Sep 2012
Posts: 374
Posted: 2017-01-20, 00:10   

minizip outputs to VCMI/lib through some magic :). OtputDir for the minizip project is set to VCMIout=solutionDir !?
 
     
Warmonger 
VCMI programmer


Age: 28
Joined: 07 Jun 2008
Posts: 1545
Location: Warsaw, Poland
Posted: 2017-01-20, 10:53   

krs wrote:
Is Editor not supposed to be built? Why is it not marked for building in configuration?

It is not, as it doesn't really work yet. All editor stuff we got so far were compiled by AVS himself.
_________________
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!
 
 
     
AVS 

Joined: 25 Feb 2011
Posts: 563
Location: Russia
Posted: 2017-01-20, 13:29   

krs wrote:
Is Editor not supposed to be built? Why is it not marked for building in configuration?

editor attempt inside main repo has been abandoned. My has own repo.
 
     
krs


Joined: 04 Sep 2012
Posts: 374
Posted: 2017-01-21, 21:24   

Just curious.... What does RD stand for in RD Configuration
 
     
AVS 

Joined: 25 Feb 2011
Posts: 563
Location: Russia
Posted: 2017-01-21, 23:31   

krs wrote:
Just curious.... What does RD stand for in RD Configuration

Release with debug info
 
     
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

Hosting provided by DigitalOcean
Page generated in 0.03 second. SQL queries: 15