Unable to build in Windows

Report any bugs here and we'll post fixes

Moderators: Sascha Willems, Thomas

Unable to build in Windows

Postby bdpdonp » Sun Sep 13, 2015 7:09 pm

i get the error that
timespec: struct type redefinition

I am using vs 2015 community.
bdpdonp
 
Posts: 3
Joined: Sun Sep 13, 2015 7:04 pm

Re: Unable to build in Windows

Postby Julio Jerez » Sun Sep 13, 2015 7:24 pm

I have not build the code with visual studio 2015
what version you use.
Julio Jerez
Moderator
Moderator
 
Posts: 11048
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Unable to build in Windows

Postby bdpdonp » Sun Sep 13, 2015 8:35 pm

the community (free) version of 2015
bdpdonp
 
Posts: 3
Joined: Sun Sep 13, 2015 7:04 pm

Re: Unable to build in Windows

Postby Julio Jerez » Sun Sep 13, 2015 9:25 pm

ok I download it and I see the problem
it seems visual studio 2015 runtime libraries now declare a structure that already existed in pthread
I hate when Microsoft does this kind of heavy handed tricks.
you can add this define to you command line of the pthread project: HAVE_STRUCT_TIMESPEC

also you can add this to file ..\coreLibrary_300\source\core\dgTypes.h
Code: Select all
#ifdef _MSC_VER
   #ifdef _M_X64
      #ifndef _WIN_64_VER
         #define _WIN_64_VER
      #endif
   #else       
      #ifndef _WIN_32_VER
         #define _WIN_32_VER
      #endif
   #endif

// add this to here
#if _MSC_VER >= 1400
   #define HAVE_STRUCT_TIMESPEC
#endif
#endif

after I did that it compilied fine.

there are lots of warnings because I have the have to reusing variable with ther same name, I will fix that and check in a VS 2015 project later
other than the heavy handed blows to pthread VS 2015 seem very cool.
Julio Jerez
Moderator
Moderator
 
Posts: 11048
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Unable to build in Windows

Postby bdpdonp » Sun Sep 13, 2015 10:19 pm

Thank you
bdpdonp
 
Posts: 3
Joined: Sun Sep 13, 2015 7:04 pm

Re: Unable to build in Windows

Postby Julio Jerez » Mon Sep 14, 2015 2:19 pm

I committed the fixed for VS 2015, you can try again.
Julio Jerez
Moderator
Moderator
 
Posts: 11048
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Unable to build in Windows

Postby tanzfisch » Tue Mar 29, 2016 4:50 am

Julio Jerez wrote:I committed the fixed for VS 2015, you can try again.


does not work for me ...
using the todays head (a7844f84b06fb6ccc27a3025f71e314890f2d34c)

still get the build error about the redefinition in VS2015

do I still have to set some definitions in order to build?
tanzfisch
 
Posts: 34
Joined: Fri Feb 05, 2016 5:17 am

Re: Unable to build in Windows

Postby Julio Jerez » Tue Mar 29, 2016 9:20 am

Oh I see I made the change local in my system, but I forget to copy to github.

I use torstoi svn locally in my machine because I can work on several feature simultaneously and then merge them when they are ready, but I have all third party libs excluded, that's why is was not copied over to github.
I committed it now, it seem to build fine with few warning mainly from wxwidget.

all you nee to do is open the Visual studio 2013 project and accept the conversion, it should work
Julio Jerez
Moderator
Moderator
 
Posts: 11048
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Unable to build in Windows

Postby tanzfisch » Tue Mar 29, 2016 9:36 am

build is error free now. thanks
tanzfisch
 
Posts: 34
Joined: Fri Feb 05, 2016 5:17 am


Return to Bugs and Fixes

Who is online

Users browsing this forum: No registered users and 1 guest