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
Trunk discussion / complains
Author Message
Warmonger 
VCMI programmer


Age: 28
Joined: 07 Jun 2008
Posts: 1545
Location: Warsaw, Poland
Posted: 2016-02-03, 08:02   

Didn't work :-(

Also, why do we use 64-bit (?) function in first place when there's alternative? VCMI is 32-bit application.
_________________
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: 561
Location: Russia
Posted: 2016-02-03, 11:25   

Warmonger wrote:
Didn't work :-(

Also, why do we use 64-bit (?) function in first place when there's alternative? VCMI is 32-bit application.


64bit zip is nothing about 64bit OS. Actually minizip will use "64bit" functions internally anyway.
 
     
AVS 

Joined: 25 Feb 2011
Posts: 561
Location: Russia
Posted: 2016-02-03, 12:27   

Warmonger wrote:
Didn't work :-(


Then do hardcore :) Just copy ioapi functions from ioapi.c to FileStream.cpp. FileIO will be rewritten in MapFormat branch anyway.
 
     
AVS 

Joined: 25 Feb 2011
Posts: 561
Location: Russia
Posted: 2016-02-04, 05:47   

Warmonger, lets make develop branch history linear. Please do not merge upstream develop to your local develop use pull fast-forward only or rebase local changes.
 
     
SXX 
VCMI programmer

Age: 25
Joined: 04 Jul 2014
Posts: 389
Posted: 2016-02-04, 13:31   

AVS wrote:
Warmonger, lets make develop branch history linear. Please do not merge upstream develop to your local develop use pull fast-forward only or rebase local changes.
What about merging develop into branches?
 
     
Warmonger 
VCMI programmer


Age: 28
Joined: 07 Jun 2008
Posts: 1545
Location: Warsaw, Poland
Posted: 2016-02-04, 15:13   

Tried Ivan's serialization branch:

Code:
Error    2    error C2280: 'std::unique_ptr<T,std::default_delete<_Ty>>::unique_ptr(const std::unique_ptr<_Ty,std::default_delete<_Ty>> &)' : attempting to reference a deleted function    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\vector    2144
Error    3    error C2280: 'std::unique_ptr<T,std::default_delete<_Ty>>::unique_ptr(const std::unique_ptr<_Ty,std::default_delete<_Ty>> &)' : attempting to reference a deleted function    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xmemory0    611
Error    4    error C2280: 'std::unique_ptr<T,std::default_delete<_Ty>>::unique_ptr(const std::unique_ptr<_Ty,std::default_delete<_Ty>> &)' : attempting to reference a deleted function    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xmemory0    611
Error    5    error C2280: 'std::unique_ptr<T,std::default_delete<_Ty>>::unique_ptr(const std::unique_ptr<_Ty,std::default_delete<_Ty>> &)' : attempting to reference a deleted function    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xmemory0    611
Error    6    error C2280: 'std::unique_ptr<T,std::default_delete<_Ty>>::unique_ptr(const std::unique_ptr<_Ty,std::default_delete<_Ty>> &)' : attempting to reference a deleted function    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xmemory0    611
Error    7    error C2280: 'std::unique_ptr<T,std::default_delete<_Ty>>::unique_ptr(const std::unique_ptr<_Ty,std::default_delete<_Ty>> &)' : attempting to reference a deleted function    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xmemory0    611
Error    8    error C2280: 'std::unique_ptr<T,std::default_delete<_Ty>>::unique_ptr(const std::unique_ptr<_Ty,std::default_delete<_Ty>> &)' : attempting to reference a deleted function    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xmemory0    611
Error    9    error C2280: 'std::unique_ptr<T,std::default_delete<_Ty>>::unique_ptr(const std::unique_ptr<_Ty,std::default_delete<_Ty>> &)' : attempting to reference a deleted function    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xmemory0    611
Error    10    error C2280: 'std::unique_ptr<T,std::default_delete<_Ty>>::unique_ptr(const std::unique_ptr<_Ty,std::default_delete<_Ty>> &)' : attempting to reference a deleted function    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xmemory0    611


Not very informative. Here's compilation log:

http://pastebin.com/hSRE1vVG
_________________
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: 561
Location: Russia
Posted: 2016-02-04, 21:21   

SXX wrote:
AVS wrote:
Warmonger, lets make develop branch history linear. Please do not merge upstream develop to your local develop use pull fast-forward only or rebase local changes.
What about merging develop into branches?

This is different question.(Also, I do not care about branches.) As for me I rebase small and my own branches and merge large long-term branches and branches with more than one contributor.
 
     
Kantor 

Age: 23
Joined: 28 Dec 2013
Posts: 89
Location: Poland
Posted: 2016-02-13, 16:46   

I recently tried to compile VCMI via MinGW/CMake and encountered this error:
Code:
[  1%] Built target minizip
[  1%] Building CXX object lib/CMakeFiles/vcmi.dir/filesystem/FileStream.cpp.obj

D:\C++\VCMI_BUILD\VCMI\Source\lib\filesystem\FileStream.cpp: In function 'void* fopen64_file_func(voidpf, const void*, int)':
D:\C++\VCMI_BUILD\VCMI\Source\lib\filesystem\FileStream.cpp:22:58: error: 'fopen64' was not declared in this scope
 #define FOPEN_FUNC(filename, mode) fopen64(filename, mode)
                                                          ^
D:\C++\VCMI_BUILD\VCMI\Source\lib\filesystem\FileStream.cpp: In function 'fpos_t ftell64_file_func(voidpf, voidpf)':
D:\C++\VCMI_BUILD\VCMI\Source\lib\filesystem\FileStream.cpp:23:44: error: 'ftello64' was not declared in this scope
 #define FTELLO_FUNC(stream) ftello64(stream)
                                            ^
D:\C++\VCMI_BUILD\VCMI\Source\lib\filesystem\FileStream.cpp: In function 'long int fseek64_file_func(voidpf, voidpf, fpos_t, int)':
D:\C++\VCMI_BUILD\VCMI\Source\lib\filesystem\FileStream.cpp:24:76: error: 'fseeko64' was not declared in this scope
 #define FSEEKO_FUNC(stream, offset, origin) fseeko64(stream, offset, origin)
                                                                            ^
lib\CMakeFiles\vcmi.dir\build.make:357: recipe for target 'lib/CMakeFiles/vcmi.dir/filesystem/FileStream.cpp.obj' failed
mingw32-make[2]: *** [lib/CMakeFiles/vcmi.dir/filesystem/FileStream.cpp.obj] Error 1
CMakeFiles\Makefile2:139: recipe for target 'lib/CMakeFiles/vcmi.dir/all' failed
mingw32-make[1]: *** [lib/CMakeFiles/vcmi.dir/all] Error 2
Makefile:148: recipe for target 'all' failed
mingw32-make: *** [all] Error 2


Is there a way to fix it?
 
     
AVS 

Joined: 25 Feb 2011
Posts: 561
Location: Russia
Posted: 2016-02-13, 17:39   

Kantor wrote:
I recently tried to compile VCMI via MinGW/CMake and encountered this error:
D:\C++\VCMI_BUILD\VCMI\Source\lib\filesystem\FileStream.cpp:22:58: error: 'fopen64' was not declared in this scope
Is there a way to fix it?


I think update MinGW is the only solution. What is your versions of MinGW itself and gcc?
 
     
Kantor 

Age: 23
Joined: 28 Dec 2013
Posts: 89
Location: Poland
Posted: 2016-02-13, 18:05   

I'm currently using gcc 5.1.0, but if there is newer version I'll certainly update it, thanks.
BTW, I didn't install Qt5 package, which is needed just by launcher (if I'm not mistaken), and version 5.1.0 of gcc seems to be still the latest one for windows.
 
     
AVS 

Joined: 25 Feb 2011
Posts: 561
Location: Russia
Posted: 2016-02-13, 19:51   

gcc 5.1.0 is more than enough, but what is "version of MinGW itself"?
 
     
AVS 

Joined: 25 Feb 2011
Posts: 561
Location: Russia
Posted: 2016-02-13, 20:03   

Also try add
Code:
#define __USE_MINGW_ANSI_STDIO 0


before

Code:
#include <cstdio>


In FileStream.cpp
 
     
Kantor 

Age: 23
Joined: 28 Dec 2013
Posts: 89
Location: Poland
Posted: 2016-02-13, 21:22   

Hmm, honestly I don't know how to figure it out :oops: . I'm using TDM-GCC package, which has required toolchain included. For now I managed to get version of mingw32-make, which is 3.82.90; in other hand headers and libraries are from version 3.20.
 
     
AVS 

Joined: 25 Feb 2011
Posts: 561
Location: Russia
Posted: 2016-02-13, 21:59   

I`m using MinGW-w64, never tried TDM. May be it`s a TDM bug.
 
     
Kantor 

Age: 23
Joined: 28 Dec 2013
Posts: 89
Location: Poland
Posted: 2016-02-13, 22:35   

Ok, seems like it works now :) with your package, many thanks.
 
     
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: 12