Simul Support ExchangeCategory: External Plugin IssuesSimulOpenGLSample_MD not working
Narinder Pal Singh asked 2 years ago

Hi, 
For example from trueSky 4.3 not working, after installing “TrueSky_4.3.5aac6daae_x64_v142.exe”
when I try to run  : Simul/build/bin/Debug/SimulOpenGLSample_MD.exe and
getting  : “The procedure entry point  ??1CommandLineParams@crossplatform@simul@@QEAA@XZ could not be located in the dynamic link library …” error.
Actually I am trying to implement it in opengl project with visual studio and getting similar error.
 

Andrew Richards Staff replied 2 years ago

Hi Narinder,

I have confirmed your crash with SimulOpenGLSample_MD.exe. I will need to investigate this further.
I was able to run SimulOpenGLSample_MT.exe and so I was wondering if you are able to run that also. If so, you could use the static libraries for building your application, whilst we investigate this and get a solution to you.

I hope this helps you
Best Wishes,
Andrew.

Narinder Pal Singh replied 2 years ago

Thank you for assistance, So Can I build OpenGLSample.cpp with static libraries ?

Narinder Pal Singh replied 2 years ago

I tried to build OpenGLSample.cpp with static libraries, but got errors.

Build started…
1>—— Build started: Project: zecooEngine, Configuration: Debug x64 ——
1>SimulOpenGL_MTd.lib(glad.obj) : error LNK2005: gladLoadGL already defined in glad.obj
1>SimulOpenGL_MTd.lib(glad.obj) : error LNK2005: gladLoadGLLoader already defined in glad.obj
1>SimulOpenGL_MTd.lib(Effect.obj) : error LNK2019: unresolved external symbol __imp_wglGetProcAddress referenced in function “public: void __cdecl simul::opengl::EffectPass::SetTextureHandles(struct simul::crossplatform::DeviceContext &)” (?SetTextureHandles@EffectPass@opengl@simul@@QEAAXAEAUDeviceContext@crossplatform@3@@Z)
1>SimulOpenGL_MTd.lib(DisplaySurface.obj) : error LNK2019: unresolved external symbol __imp_wglDeleteContext referenced in function “public: virtual void __cdecl simul::opengl::DisplaySurface::InvalidateDeviceObjects(void)” (?InvalidateDeviceObjects@DisplaySurface@opengl@simul@@UEAAXXZ)
1>SimulOpenGL_MTd.lib(DisplaySurface.obj) : error LNK2019: unresolved external symbol __imp_wglGetCurrentContext referenced in function “public: virtual void __cdecl simul::opengl::DisplaySurface::RestoreDeviceObjects(struct HWND__ *,class simul::crossplatform::RenderPlatform *,bool,int,int,enum simul::crossplatform::PixelFormat)” (?RestoreDeviceObjects@DisplaySurface@opengl@simul@@UEAAXPEAUHWND__@@PEAVRenderPlatform@crossplatform@3@_NHHW4PixelFormat@63@@Z)
1>SimulOpenGL_MTd.lib(DisplaySurface.obj) : error LNK2019: unresolved external symbol __imp_wglGetCurrentDC referenced in function “public: virtual void __cdecl simul::opengl::DisplaySurface::RestoreDeviceObjects(struct HWND__ *,class simul::crossplatform::RenderPlatform *,bool,int,int,enum simul::crossplatform::PixelFormat)” (?RestoreDeviceObjects@DisplaySurface@opengl@simul@@UEAAXPEAUHWND__@@PEAVRenderPlatform@crossplatform@3@_NHHW4PixelFormat@63@@Z)
1>SimulOpenGL_MTd.lib(DisplaySurface.obj) : error LNK2019: unresolved external symbol __imp_wglMakeCurrent referenced in function “public: virtual void __cdecl simul::opengl::DisplaySurface::RestoreDeviceObjects(struct HWND__ *,class simul::crossplatform::RenderPlatform *,bool,int,int,enum simul::crossplatform::PixelFormat)” (?RestoreDeviceObjects@DisplaySurface@opengl@simul@@UEAAXPEAUHWND__@@PEAVRenderPlatform@crossplatform@3@_NHHW4PixelFormat@63@@Z)
1>LIBCMTD.lib(exe_main.obj) : error LNK2019: unresolved external symbol main referenced in function “int __cdecl invoke_main(void)” (?invoke_main@@YAHXZ)
1>E:\Projects\Projects_Chitkara\zecooEngine\x64\Debug\zecooEngine.exe : fatal error LNK1120: 6 unresolved externals
1>Done building project “zecooEngine.vcxproj” — FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

1 Answers
Roderick Kennedy Staff answered 2 years ago

Hi Narinder,
Thanks for letting us know, this issue will be fixed in the next upload.

Best regards
Roderick