Valkaari / HOT4D

hot4D plugins
GNU General Public License v2.0
38 stars 6 forks source link

Error building the plugin with S24 and VS2019 #3

Open IRONIC3D opened 3 years ago

IRONIC3D commented 3 years ago

Hi Valkaari

I am trying to build the plugin on S24 using VS2019 like the following:

msbuild "C:\Program Files\Maxon Cinema 4D R24\plugins\HOT4D\project\hot4d.vcxproj" /p:configuration=release /p:platform=x64

but getting the following error repeatadly:

..\source\OceanSimulation\OceanSimulation_impl.cpp(762,34): error C2039: 'numeric_limits': is not a member of 'std' [C:
\Program Files\Maxon Cinema 4D R24\plugins\HOT4D\project\hot4d.vcxproj]
C:\Program Files\Maxon Cinema 4D R24\frameworks\core.framework\source\maxon/block.h(18): message : see declaration of '
std' [C:\Program Files\Maxon Cinema 4D R24\plugins\HOT4D\project\hot4d.vcxproj]
..\source\OceanSimulation\OceanSimulation_impl.cpp(762,1): error C2065: 'numeric_limits': undeclared identifier [C:\Pro
gram Files\Maxon Cinema 4D R24\plugins\HOT4D\project\hot4d.vcxproj]
..\source\OceanSimulation\OceanSimulation_impl.cpp(762,56): error C2275: 'maxon::Float': illegal use of this type as an
 expression [C:\Program Files\Maxon Cinema 4D R24\plugins\HOT4D\project\hot4d.vcxproj]
..\source\OceanSimulation\OceanSimulation_impl.cpp(762): message : see declaration of 'maxon::Float' [C:\Program Files\
Maxon Cinema 4D R24\plugins\HOT4D\project\hot4d.vcxproj]
..\source\OceanSimulation\OceanSimulation_impl.cpp(762,64): error C2039: 'min': is not a member of '`global namespace''
 [C:\Program Files\Maxon Cinema 4D R24\plugins\HOT4D\project\hot4d.vcxproj]
..\source\OceanSimulation\OceanSimulation_impl.cpp(762,1): error C3861: 'min': identifier not found [C:\Program Files\M
axon Cinema 4D R24\plugins\HOT4D\project\hot4d.vcxproj]
Done Building Project "C:\Program Files\Maxon Cinema 4D R24\plugins\HOT4D\project\hot4d.vcxproj" (default targets) -- F
AILED.

Build FAILED.

"C:\Program Files\Maxon Cinema 4D R24\plugins\HOT4D\project\hot4d.vcxproj" (default target) (1) ->
(ClCompile target) ->
  ..\source\OceanSimulation\OceanSimulation_impl.cpp(762,34): error C2039: 'numeric_limits': is not a member of 'std' [
C:\Program Files\Maxon Cinema 4D R24\plugins\HOT4D\project\hot4d.vcxproj]
  ..\source\OceanSimulation\OceanSimulation_impl.cpp(762,1): error C2065: 'numeric_limits': undeclared identifier [C:\P
rogram Files\Maxon Cinema 4D R24\plugins\HOT4D\project\hot4d.vcxproj]
  ..\source\OceanSimulation\OceanSimulation_impl.cpp(762,56): error C2275: 'maxon::Float': illegal use of this type as
an expression [C:\Program Files\Maxon Cinema 4D R24\plugins\HOT4D\project\hot4d.vcxproj]
  ..\source\OceanSimulation\OceanSimulation_impl.cpp(762,64): error C2039: 'min': is not a member of '`global namespace
'' [C:\Program Files\Maxon Cinema 4D R24\plugins\HOT4D\project\hot4d.vcxproj]
  ..\source\OceanSimulation\OceanSimulation_impl.cpp(762,1): error C3861: 'min': identifier not found [C:\Program Files
\Maxon Cinema 4D R24\plugins\HOT4D\project\hot4d.vcxproj]

    0 Warning(s)
    5 Error(s)

Trying to build by opening the project in VS2019 fails as well with the following error code:

This project doesn't contain the Configuration and Platform combination of Debug|Win32

Any advise on how to resolve this error is appreciated.

Thank you

Valkaari commented 3 years ago

Hi, You need to have a project directory. Unzip the sdk.zip that is in your cinema4D's directory. inside plugin you have a project directory. Change the projectdefinition.txt accordingly to include hot4D directory. Run the projecttool on the directory that contain your framework and your plugins directory.

Use the release mode for better performance.

Cheers, Manuel