Problem of compilation on visual studio 2017

That is as output :

> 1>------ Build started: Project: cycles_osl_shaders, Configuration: Release x64 ------
> 2>------ Build started: Project: Cycles, Configuration: Release x64 ------
> 1>Generating node_add_closure.oso
> 1>‘-q’ n’est pas reconnu en tant que commande interne
> 1>ou externe, un programme exécutable ou un fichier de commandes.
> 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: “cmd.exe” exited with code 9009.
> 1>Done building project “cycles_osl_shaders.vcxproj” – FAILED.
> 2>server.lib(startup.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
> 2> Creating library C:/My_dev/Cycles_dev_2020/bin/lib/Release/Cycles.lib and object C:/My_dev/Cycles_dev_2020/bin/lib/Release/Cycles.exp
> 2>cycles_device.lib(device.obj) : error LNK2001: unresolved external symbol __imp___glewActiveTexture
> 2>cycles_device.lib(device.obj) : error LNK2001: unresolved external symbol __imp___glewBindBuffer
> 2>cycles_device.lib(device.obj) : error LNK2001: unresolved external symbol __imp___glewBufferData
> 2>cycles_device.lib(device.obj) : error LNK2001: unresolved external symbol __imp___glewDeleteBuffers
> 2>cycles_device.lib(device.obj) : error LNK2001: unresolved external symbol __imp___glewGenBuffers
> 2>cycles_device.lib(device.obj) : error LNK2001: unresolved external symbol __imp___glewMapBuffer
> 2>cycles_device.lib(device.obj) : error LNK2001: unresolved external symbol __imp___glewUnmapBuffer
> 2>cycles_device.lib(device.obj) : error LNK2001: unresolved external symbol __imp___glewAttachShader
> 2>cycles_device.lib(device.obj) : error LNK2001: unresolved external symbol __imp___glewCompileShader
> 2>cycles_device.lib(device.obj) : error LNK2001: unresolved external symbol __imp___glewCreateProgram
> 2>cycles_device.lib(device.obj) : error LNK2001: unresolved external symbol __imp___glewCreateShader
> 2>cycles_device.lib(device.obj) : error LNK2001: unresolved external symbol __imp___glewDeleteProgram
> 2>cycles_device.lib(device.obj) : error LNK2001: unresolved external symbol __imp___glewEnableVertexAttribArray
> 2>cycles_device.lib(device.obj) : error LNK2001: unresolved external symbol __imp___glewGetAttribLocation
> 2>cycles_device.lib(device.obj) : error LNK2001: unresolved external symbol __imp___glewGetProgramiv
> 2>cycles_device.lib(device.obj) : error LNK2001: unresolved external symbol __imp___glewGetShaderInfoLog
> 2>cycles_device.lib(device.obj) : error LNK2001: unresolved external symbol __imp___glewGetShaderiv
> 2>cycles_device.lib(device.obj) : error LNK2001: unresolved external symbol __imp___glewGetUniformLocation
> 2>cycles_device.lib(device.obj) : error LNK2001: unresolved external symbol __imp___glewLinkProgram
> 2>cycles_device.lib(device.obj) : error LNK2001: unresolved external symbol __imp___glewShaderSource
> 2>cycles_device.lib(device.obj) : error LNK2001: unresolved external symbol __imp___glewUniform1i
> 2>cycles_device.lib(device.obj) : error LNK2001: unresolved external symbol __imp___glewUniform2f
> 2>cycles_device.lib(device.obj) : error LNK2001: unresolved external symbol __imp___glewUseProgram
> 2>cycles_device.lib(device.obj) : error LNK2001: unresolved external symbol __imp___glewVertexAttribPointer
> 2>cycles_device.lib(device.obj) : error LNK2001: unresolved external symbol __imp___glewBindFragDataLocation
> 2>cycles_device.lib(device.obj) : error LNK2001: unresolved external symbol __imp___glewBindVertexArray
> 2>cycles_device.lib(device.obj) : error LNK2001: unresolved external symbol __imp___glewDeleteVertexArrays
> 2>cycles_device.lib(device.obj) : error LNK2001: unresolved external symbol __imp___glewGenVertexArrays
> 2>cycles_render.lib(osl.obj) : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl OpenImageIO_v1_8::TypeDesc::TypeDesc(struct OpenImageIO_v1_8::TypeDesc const &)” (_imp??0TypeDesc@OpenImageIO_v1_8@@QEAA@AEBU01@@Z)
> 2>cycles_kernel_osl.lib(osl_closures.obj) : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl OpenImageIO_v1_8::TypeDesc::TypeDesc(struct OpenImageIO_v1_8::TypeDesc const &)” (_imp??0TypeDesc@OpenImageIO_v1_8@@QEAA@AEBU01@@Z)
> 2>cycles_kernel_osl.lib(osl_services.obj) : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl OpenImageIO_v1_8::TypeDesc::TypeDesc(struct OpenImageIO_v1_8::TypeDesc const &)” (_imp??0TypeDesc@OpenImageIO_v1_8@@QEAA@AEBU01@@Z)
> 2>cycles_render.lib(attribute.obj) : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl OpenImageIO_v1_8::TypeDesc::TypeDesc(struct OpenImageIO_v1_8::TypeDesc const &)” (_imp??0TypeDesc@OpenImageIO_v1_8@@QEAA@AEBU01@@Z)
> 2>cycles_render.lib(mesh.obj) : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl OpenImageIO_v1_8::TypeDesc::TypeDesc(struct OpenImageIO_v1_8::TypeDesc const &)” (_imp??0TypeDesc@OpenImageIO_v1_8@@QEAA@AEBU01@@Z)
> 2>cycles_render.lib(shader.obj) : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl OpenImageIO_v1_8::TypeDesc::TypeDesc(struct OpenImageIO_v1_8::TypeDesc const &)” (_imp??0TypeDesc@OpenImageIO_v1_8@@QEAA@AEBU01@@Z)
> 2>cycles_kernel_osl.lib(osl_services.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __cdecl OpenImageIO_v1_8::TypeDesc::operator==(struct OpenImageIO_v1_8::TypeDesc const &)const " (_imp??8TypeDesc@OpenImageIO_v1_8@@QEBA_NAEBU01@@Z)
> 2>cycles_render.lib(attribute.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __cdecl OpenImageIO_v1_8::TypeDesc::operator==(struct OpenImageIO_v1_8::TypeDesc const &)const " (_imp??8TypeDesc@OpenImageIO_v1_8@@QEBA_NAEBU01@@Z)
> 2>cycles_render.lib(mesh.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __cdecl OpenImageIO_v1_8::TypeDesc::operator==(struct OpenImageIO_v1_8::TypeDesc const &)const " (_imp??8TypeDesc@OpenImageIO_v1_8@@QEBA_NAEBU01@@Z)
*> 2>cycles_render.lib(attribute.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class OpenImageIO_v1_8::ustring const & __cdecl OpenImageIO_v1_8::ustring::assign(char const )" (_imp?assign@ustring@OpenImageIO_v1_8@@QEAAAEBV12@PEBD@Z)
*> 2>cycles_render.lib(shader.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class OpenImageIO_v1_8::ustring const & __cdecl OpenImageIO_v1_8::ustring::assign(char const )" (_imp?assign@ustring@OpenImageIO_v1_8@@QEAAAEBV12@PEBD@Z)
*> 2>cycles_render.lib(nodes.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class OpenImageIO_v1_8::ustring const & __cdecl OpenImageIO_v1_8::ustring::assign(char const )" (_imp?assign@ustring@OpenImageIO_v1_8@@QEAAAEBV12@PEBD@Z)
> 2>cycles_render.lib(mesh.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: unsigned __int64 __cdecl OpenImageIO_v1_8::ustring::hash(void)const " (_imp?hash@ustring@OpenImageIO_v1_8@@QEBA_KXZ)
> 2>cycles_render.lib(mesh.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __cdecl OpenImageIO_v1_8::ustring::operator==(class OpenImageIO_v1_8::ustring const &)const " (_imp??8ustring@OpenImageIO_v1_8@@QEBA_NAEBV01@@Z)
> 2>cycles_render.lib(mesh.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __cdecl OpenImageIO_v1_8::ustring::operator!=(class OpenImageIO_v1_8::ustring const &)const " (_imp??9ustring@OpenImageIO_v1_8@@QEBA_NAEBV01@@Z)
> 2>cycles_render.lib(mesh.obj) : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl OpenImageIO_v1_8::ParamValue::ParamValue(void)” (_imp??0ParamValue@OpenImageIO_v1_8@@QEAA@XZ)
> 2>cycles_render.lib(mesh.obj) : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl OpenImageIO_v1_8::ParamValue::ParamValue(class OpenImageIO_v1_8::ParamValue const &)” (_imp??0ParamValue@OpenImageIO_v1_8@@QEAA@AEBV01@@Z)
> 2>cycles_render.lib(mesh.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class OpenImageIO_v1_8::ustring const & __cdecl OpenImageIO_v1_8::ParamValue::name(void)const " (_imp?name@ParamValue@OpenImageIO_v1_8@@QEBAAEBVustring@2@XZ)
> 2>cycles_render.lib(graph.obj) : error LNK2001: unresolved external symbol “__declspec(dllimport) public: __cdecl OpenImageIO_v1_8::ustring::ustring(class OpenImageIO_v1_8::ustring const &)” (_imp??0ustring@OpenImageIO_v1_8@@QEAA@AEBV01@@Z)
> 2>cycles_render.lib(graph.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __cdecl OpenImageIO_v1_8::ustring::operator<(class OpenImageIO_v1_8::ustring const &)const " (_imp??Mustring@OpenImageIO_v1_8@@QEBA_NAEBV01@@Z)
*> 2>cycles_render.lib(nodes.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: unsigned __int64 __cdecl OpenImageIO_v1_8::ustring::find(char const ,unsigned __int64)const " (_imp?find@ustring@OpenImageIO_v1_8@@QEBA_KPEBD_K@Z)
*> 2>cycles_render.lib(nodes.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __cdecl OpenImageIO_v1_8::ustring::operator!=(char const )const " (_imp??9ustring@OpenImageIO_v1_8@@QEBA_NPEBD@Z)
> 2>C:\My_dev\Cycles_dev_2020\bin\bin\Release\Cycles.dll : fatal error LNK1120: 41 unresolved externals
> 2>Done building project “Cycles.vcxproj” – FAILED.
> ========== Build: 0 succeeded, 2 failed, 13 up-to-date, 0 skipped ==========

and that too :
Severity Code Description Project File Line Suppression State
Error MSB6006 “cmd.exe” exited with code 9009. cycles_osl_shaders C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 209
Error LNK2001 unresolved external symbol __imp___glewActiveTexture Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_device.lib(device.obj) 1
Error LNK2001 unresolved external symbol __imp___glewBindBuffer Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_device.lib(device.obj) 1
Error LNK2001 unresolved external symbol __imp___glewBufferData Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_device.lib(device.obj) 1
Error LNK2001 unresolved external symbol __imp___glewDeleteBuffers Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_device.lib(device.obj) 1
Error LNK2001 unresolved external symbol __imp___glewGenBuffers Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_device.lib(device.obj) 1
Error LNK2001 unresolved external symbol __imp___glewMapBuffer Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_device.lib(device.obj) 1
Error LNK2001 unresolved external symbol __imp___glewUnmapBuffer Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_device.lib(device.obj) 1
Error LNK2001 unresolved external symbol __imp___glewAttachShader Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_device.lib(device.obj) 1
Error LNK2001 unresolved external symbol __imp___glewCompileShader Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_device.lib(device.obj) 1
Error LNK2001 unresolved external symbol __imp___glewCreateProgram Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_device.lib(device.obj) 1
Error LNK2001 unresolved external symbol __imp___glewCreateShader Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_device.lib(device.obj) 1
Error LNK2001 unresolved external symbol __imp___glewDeleteProgram Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_device.lib(device.obj) 1
Error LNK2001 unresolved external symbol __imp___glewEnableVertexAttribArray Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_device.lib(device.obj) 1
Error LNK2001 unresolved external symbol __imp___glewGetAttribLocation Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_device.lib(device.obj) 1
Error LNK2001 unresolved external symbol __imp___glewGetProgramiv Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_device.lib(device.obj) 1
Error LNK2001 unresolved external symbol __imp___glewGetShaderInfoLog Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_device.lib(device.obj) 1
Error LNK2001 unresolved external symbol __imp___glewGetShaderiv Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_device.lib(device.obj) 1
Error LNK2001 unresolved external symbol __imp___glewGetUniformLocation Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_device.lib(device.obj) 1
Error LNK2001 unresolved external symbol __imp___glewLinkProgram Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_device.lib(device.obj) 1
Error LNK2001 unresolved external symbol __imp___glewShaderSource Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_device.lib(device.obj) 1
Error LNK2001 unresolved external symbol __imp___glewUniform1i Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_device.lib(device.obj) 1
Error LNK2001 unresolved external symbol __imp___glewUniform2f Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_device.lib(device.obj) 1
Error LNK2001 unresolved external symbol __imp___glewUseProgram Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_device.lib(device.obj) 1
Error LNK2001 unresolved external symbol __imp___glewVertexAttribPointer Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_device.lib(device.obj) 1
Error LNK2001 unresolved external symbol __imp___glewBindFragDataLocation Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_device.lib(device.obj) 1
Error LNK2001 unresolved external symbol __imp___glewBindVertexArray Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_device.lib(device.obj) 1
Error LNK2001 unresolved external symbol __imp___glewDeleteVertexArrays Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_device.lib(device.obj) 1
Error LNK2001 unresolved external symbol __imp___glewGenVertexArrays Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_device.lib(device.obj) 1
Error LNK2001 unresolved external symbol “__declspec(dllimport) public: __cdecl OpenImageIO_v1_8::TypeDesc::TypeDesc(struct OpenImageIO_v1_8::TypeDesc const &)” (_imp??0TypeDesc@OpenImageIO_v1_8@@QEAA@AEBU01@@Z) Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_render.lib(osl.obj) 1
Error LNK2001 unresolved external symbol “__declspec(dllimport) public: __cdecl OpenImageIO_v1_8::TypeDesc::TypeDesc(struct OpenImageIO_v1_8::TypeDesc const &)” (_imp??0TypeDesc@OpenImageIO_v1_8@@QEAA@AEBU01@@Z) Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_kernel_osl.lib(osl_closures.obj) 1
Error LNK2001 unresolved external symbol “__declspec(dllimport) public: __cdecl OpenImageIO_v1_8::TypeDesc::TypeDesc(struct OpenImageIO_v1_8::TypeDesc const &)” (_imp??0TypeDesc@OpenImageIO_v1_8@@QEAA@AEBU01@@Z) Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_kernel_osl.lib(osl_services.obj) 1
Error LNK2001 unresolved external symbol “__declspec(dllimport) public: __cdecl OpenImageIO_v1_8::TypeDesc::TypeDesc(struct OpenImageIO_v1_8::TypeDesc const &)” (_imp??0TypeDesc@OpenImageIO_v1_8@@QEAA@AEBU01@@Z) Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_render.lib(attribute.obj) 1
Error LNK2001 unresolved external symbol “__declspec(dllimport) public: __cdecl OpenImageIO_v1_8::TypeDesc::TypeDesc(struct OpenImageIO_v1_8::TypeDesc const &)” (_imp??0TypeDesc@OpenImageIO_v1_8@@QEAA@AEBU01@@Z) Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_render.lib(mesh.obj) 1
Error LNK2001 unresolved external symbol “__declspec(dllimport) public: __cdecl OpenImageIO_v1_8::TypeDesc::TypeDesc(struct OpenImageIO_v1_8::TypeDesc const &)” (_imp??0TypeDesc@OpenImageIO_v1_8@@QEAA@AEBU01@@Z) Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_render.lib(shader.obj) 1
Error LNK2001 unresolved external symbol "__declspec(dllimport) public: bool __cdecl OpenImageIO_v1_8::TypeDesc::operator==(struct OpenImageIO_v1_8::TypeDesc const &)const " (_imp??8TypeDesc@OpenImageIO_v1_8@@QEBA_NAEBU01@@Z) Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_kernel_osl.lib(osl_services.obj) 1
Error LNK2001 unresolved external symbol "__declspec(dllimport) public: bool __cdecl OpenImageIO_v1_8::TypeDesc::operator==(struct OpenImageIO_v1_8::TypeDesc const &)const " (_imp??8TypeDesc@OpenImageIO_v1_8@@QEBA_NAEBU01@@Z) Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_render.lib(attribute.obj) 1
Error LNK2001 unresolved external symbol "__declspec(dllimport) public: bool __cdecl OpenImageIO_v1_8::TypeDesc::operator==(struct OpenImageIO_v1_8::TypeDesc const &)const " (_imp??8TypeDesc@OpenImageIO_v1_8@@QEBA_NAEBU01@@Z) Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_render.lib(mesh.obj) 1
Error LNK2001 unresolved external symbol “__declspec(dllimport) public: class OpenImageIO_v1_8::ustring const & __cdecl OpenImageIO_v1_8::ustring::assign(char const *)” (_imp?assign@ustring@OpenImageIO_v1_8@@QEAAAEBV12@PEBD@Z) Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_render.lib(attribute.obj) 1
Error LNK2001 unresolved external symbol “__declspec(dllimport) public: class OpenImageIO_v1_8::ustring const & __cdecl OpenImageIO_v1_8::ustring::assign(char const *)” (_imp?assign@ustring@OpenImageIO_v1_8@@QEAAAEBV12@PEBD@Z) Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_render.lib(shader.obj) 1
Error LNK2001 unresolved external symbol “__declspec(dllimport) public: class OpenImageIO_v1_8::ustring const & __cdecl OpenImageIO_v1_8::ustring::assign(char const *)” (_imp?assign@ustring@OpenImageIO_v1_8@@QEAAAEBV12@PEBD@Z) Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_render.lib(nodes.obj) 1
Error LNK2001 unresolved external symbol "__declspec(dllimport) public: unsigned __int64 __cdecl OpenImageIO_v1_8::ustring::hash(void)const " (_imp?hash@ustring@OpenImageIO_v1_8@@QEBA_KXZ) Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_render.lib(mesh.obj) 1
Error LNK2001 unresolved external symbol "__declspec(dllimport) public: bool __cdecl OpenImageIO_v1_8::ustring::operator==(class OpenImageIO_v1_8::ustring const &)const " (_imp??8ustring@OpenImageIO_v1_8@@QEBA_NAEBV01@@Z) Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_render.lib(mesh.obj) 1
Error LNK2001 unresolved external symbol "__declspec(dllimport) public: bool __cdecl OpenImageIO_v1_8::ustring::operator!=(class OpenImageIO_v1_8::ustring const &)const " (_imp??9ustring@OpenImageIO_v1_8@@QEBA_NAEBV01@@Z) Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_render.lib(mesh.obj) 1
Error LNK2001 unresolved external symbol “__declspec(dllimport) public: __cdecl OpenImageIO_v1_8::ParamValue::ParamValue(void)” (_imp??0ParamValue@OpenImageIO_v1_8@@QEAA@XZ) Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_render.lib(mesh.obj) 1
Error LNK2001 unresolved external symbol “__declspec(dllimport) public: __cdecl OpenImageIO_v1_8::ParamValue::ParamValue(class OpenImageIO_v1_8::ParamValue const &)” (_imp??0ParamValue@OpenImageIO_v1_8@@QEAA@AEBV01@@Z) Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_render.lib(mesh.obj) 1
Error LNK2001 unresolved external symbol "__declspec(dllimport) public: class OpenImageIO_v1_8::ustring const & __cdecl OpenImageIO_v1_8::ParamValue::name(void)const " (_imp?name@ParamValue@OpenImageIO_v1_8@@QEBAAEBVustring@2@XZ) Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_render.lib(mesh.obj) 1
Error LNK2001 unresolved external symbol “__declspec(dllimport) public: __cdecl OpenImageIO_v1_8::ustring::ustring(class OpenImageIO_v1_8::ustring const &)” (_imp??0ustring@OpenImageIO_v1_8@@QEAA@AEBV01@@Z) Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_render.lib(graph.obj) 1
Error LNK2001 unresolved external symbol "__declspec(dllimport) public: bool __cdecl OpenImageIO_v1_8::ustring::operator<(class OpenImageIO_v1_8::ustring const &)const " (_imp??Mustring@OpenImageIO_v1_8@@QEBA_NAEBV01@@Z) Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_render.lib(graph.obj) 1
Error LNK2001 unresolved external symbol "__declspec(dllimport) public: unsigned __int64 __cdecl OpenImageIO_v1_8::ustring::find(char const *,unsigned __int64)const " (_imp?find@ustring@OpenImageIO_v1_8@@QEBA_KPEBD_K@Z) Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_render.lib(nodes.obj) 1
Error LNK2001 unresolved external symbol "__declspec(dllimport) public: bool __cdecl OpenImageIO_v1_8::ustring::operator!=(char const *)const " (_imp??9ustring@OpenImageIO_v1_8@@QEBA_NPEBD@Z) Cycles C:\My_dev\Cycles_dev_2020\bin\src\lightwave\cycles_render.lib(nodes.obj) 1
Error LNK1120 41 unresolved externals Cycles C:\My_dev\Cycles_dev_2020\bin\bin\Release\Cycles.dll 1

So i have three main problem as -q to compile shader in *.oso, glew lib and some errors from cdecl_OpenImageIO, so how to resolve it ?

I compile in dll files to “Cycles for Lightwave” plugin. thanks.

It looks like a missing OSL compiler and missing library linking for GLEW and OpenImageIO.

Which code are you building exactly, which version? How did you configure it, how did you download library dependencies? We don’t maintain Cycles for Lightwave so any errors specific to that I can’t help with.

I compile all features for Cycles with last version, so I don’t change codes just configure the Cmake to make dll and disable for cycles standalone. I downloaded all lib from svn (blender) for dependencies, for cmake I have adding the link from lightwave lib to make to dll and the rest is making to main from Cycles to Lightwave(XCALL) then testing it but errors are show. However my old Cycles Dev was working well (blender 2.81)…

pretty sure this is oiio causing issues, the define OIIO uses to select static linking has changed in the latest round of lib updates and i have not gotten around to updating cycles standalone yet.

if you want to work around this, look for the define of OIIO_STATIC_BUILD and replace it with OIIO_STATIC_DEFINE

I think that should do the trick

Nope, that OIIO doesn’t resolve it… same errors…In other hand, I was looking in cmake for shader to compile all files .oso, apparently I don’t know if OSL_ROOT_DIR was defined in path or not ? (i have defined path nothing working too)… And GLEW I have linking as manually double checking but doesn’t work, same for OpenImageIO… Are there some changes internal from Cycles and Cmake than old Cycles ?

Is GLEW is defined as STATIC LIB ? That cause some errors when I have linking GLEW as normal ?

I’m somewhat suspicious since it is picking up oiio 1.8 while the current version we have in svn is 2.15 on top of that it is thinking it should be dynamically linked while we use static.

So i’d probably check where it is picking up the OIIO and GLEW headers/libs from and be sure your code and libs are up to date.

Are you pulling from the blender tree or the cycles standalone tree?

All are up to date, simply I think are file *.oso need to compile to make sure work Glew and OpenImageIO working with dependencies other libs? The problem is compiler oslc don’t find this program…

I am pulling from cycles standalone tree.

I’m not very concerned about oso files, if we can’t link/run the code it really doesn’t matter if these files are being made or not (that’s worries for future us)

In your build folder you should have a CMakeCache.txt can you attach a copy of yours?

CMakeCache.txt (18.0 KB)

There’s no references to the win64_vc15 folder in there what so ever, it’s like it didn’t pickup on any of the precompiled libs

i’d probably sprinkle some debug prints in src\cmake\precompiled_libs.cmake at this point just to see what’s going on there.

Actually, could you add /VERBOSE:LIB in the linker options in this spot in the IDE

and give the build output

It doesn’t show the linker in my visual studio 2017… cause i generated in cmake and show less for parameter. How you did to that to show all parameters ?

You right click on the cycles project (the row highlighted light gray on the left) and select properties

Severity Code Description Project File Line Suppression State
*Error MSB6006 “cmd.exe” exited with code 9009. cycles_osl_shaders C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets 209 *
*Warning C4244 ‘argument’: conversion from ‘_Cv_TiD’ to ‘int’, possible loss of data cycles_render C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\type_traits 16707566 *
*Warning C4244 ‘argument’: conversion from ‘_Cv_TiD’ to ‘int’, possible loss of data cycles_render C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\type_traits 16707566 *
*Error LNK1120 1 unresolved externals ALL_BUILD C:\My_dev\Cycles_dev_2020_2\bin\x64\Release\ALL_BUILD.dll 1 *
*Error LNK1181 cannot open input file ‘VERBOSE:LIB.obj’ Cycles C:\My_dev\Cycles_dev_2020_2\bin\src\lightwave\LINK 1 *
*Warning LNK4001 no object files specified; libraries used ALL_BUILD C:\My_dev\Cycles_dev_2020_2\bin\LINK 1 *
*Error (active) E1097 unknown attribute “no_init_all” Cycles C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h 3886 *
Error LNK2001 unresolved external symbol _DllMainCRTStartup ALL_BUILD C:\My_dev\Cycles_dev_2020_2\bin\LINK 1

sorry i was doing mistake for verbose, fixed this error i will show you last output in some times here.

You’ll need to look in the output panel for it’s output, bottom third of the screen in my screenshot.

output.txt (193.1 KB)

It is better to give you my source code as wip, so you can look inside what happen it ok

can you check this file C:\My_dev\Cycles_dev_2020_2\lib\win64_vc15\OpenImageIO\include\OpenImageIO\oiioversion.h and look for the following line

#define OIIO_VERSION_MAJOR 2
#define OIIO_VERSION_MINOR 1
#define OIIO_VERSION_PATCH 15

is that indeed 2.1.15 or 1.8?

if it is 2.1.15 Click on the Build pull down menu and then Clean solution and rebuild