I’m having an issue packaging my project with ROSIntegration and Mathworks Interface plugins.
The original project is the sample project of the MATLAB-UnrealEngine Co-simulation framework from MathWorks (MathWorks Interface), and I added ROSIntegration plugin to the project.
When packaging my project, the error LNK2005 occurred and the packaging failed.
I found a dozen of similar errors in the packaging log:
…
[21/22] Link AutoVrtlEnv.exe
AutoVrtlEnv.cpp.obj : error LNK2005: “wchar_t * GInternalProjectName” (?GInternalProjectName@@3PA_WA) は既に Module.ROSIntegration.cpp.obj で定義されています。
AutoVrtlEnv.cpp.obj : error LNK2005: “wchar_t const * const GForeignEngineDir” (?GForeignEngineDir@@3PEB_WEB) は既に Module.ROSIntegration.cpp.obj で定義されています。
AutoVrtlEnv.cpp.obj : error LNK2005: “wchar_t const * const GLiveCodingEngineDir” (?GLiveCodingEngineDir@@3PEB_WEB) は既に Module.ROSIntegration.cpp.obj で定義されています。
AutoVrtlEnv.cpp.obj : error LNK2005: “wchar_t const * const GLiveCodingProject” (?GLiveCodingProject@@3PEB_WEB) は既に Module.ROSIntegration.cpp.obj で定義されています。
…
I’m not sure which caused this issue: MathWorks Interface, ROSIntegration, the combination of them, or another cause. Does anyone have a similar issue? Could anyone teach me how to solve it?
Thank you!