artoolkitx / artoolkit5

ARToolKit v5.x
Other
108 stars 28 forks source link

VS2017 26 succeeded 5 failed #136

Closed ThorstenBux closed 6 years ago

ThorstenBux commented 6 years ago

Issue by mflux Wednesday Jan 17, 2018 at 23:04 GMT Originally opened as https://github.com/artoolkit/artoolkit5/issues/379


A few failures I can see...

26>C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\ucrt\stdio.h(1931): warning C4005: 'snprintf': macro redefinition
26>..\..\examples\nftSimple\nftSimple.c(62): note: see previous definition of 'snprintf'
26>C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\ucrt\stdio.h(1933): fatal error C1189: #error:  Macro definition of snprintf conflicts with Standard Library function declaration

27>------ Build started: Project: genMarkerSet, Configuration: Debug Win32 ------
21>LINK : fatal error LNK1181: cannot open input file 'ARosgd.lib'
21>Done building project "optical.vcxproj" -- FAILED.
28>------ Build started: Project: ARWrapper, Configuration: Debug Win32 ------
22>LINK : fatal error LNK1181: cannot open input file 'ARosgd.lib'
22>Done building project "opticalStereo.vcxproj" -- FAILED.

27>------ Build started: Project: genMarkerSet, Configuration: Debug Win32 ------
21>LINK : fatal error LNK1181: cannot open input file 'ARosgd.lib'
21>Done building project "optical.vcxproj" -- FAILED.
28>------ Build started: Project: ARWrapper, Configuration: Debug Win32 ------
22>LINK : fatal error LNK1181: cannot open input file 'ARosgd.lib'
22>Done building project "opticalStereo.vcxproj" -- FAILED.

31>..\..\examples\nftBook\nftBook.c(63): note: see previous definition of 'snprintf'
31>C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\ucrt\stdio.h(1933): fatal error C1189: #error:  Macro definition of snprintf conflicts with Standard Library function declaration
30>..\..\examples\simpleOSG\simpleOSG.c(62): note: see previous definition of 'snprintf'
30>C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\ucrt\stdio.h(1933): fatal error C1189: #error:  Macro definition of snprintf conflicts with Standard Library function declaration

Straight from git->vs2017->build

Windows 10

ThorstenBux commented 6 years ago

Comment by ThorstenBux Wednesday Jan 17, 2018 at 23:05 GMT


I've got it building using ARToolKitX https://github.com/artoolkitx/artoolkit5

it also already contains a VS 2017 project file

ThorstenBux commented 6 years ago

Comment by mflux Wednesday Jan 17, 2018 at 23:11 GMT


Thanks. Is this a maintained / fixed for of ARToolkit?

It looks like I was able to compile by commenting out the # define snprintf _snprintf in a few files although I'm unsure why that was necessary.

ThorstenBux commented 6 years ago

Comment by ThorstenBux Wednesday Jan 17, 2018 at 23:13 GMT


I can't tell you about snprintf but artoolkitX is the place where we continue to work on the project.

ThorstenBux commented 6 years ago

duplicate of #3 #4 #5