Hi , I’m working with Visual Studio Code and in MacOS.
I managed to compile the project , however I’m getting errors while running the command
`CMake Error at /usr/local/Cellar/cmake/3.18.1/share/cmake/Modules/BundleUtilities.cmake:454 (message):
otool -l failed: 1
error: ‘@rpath/SDL2.framework/Versions/A/SDL2’: No such file or directory
Call Stack (most recent call first):
I noticed that there is some TODO comment in the CMakeLists.txt file
- There is problem with running fixup_bundle in main project after subdirectories.
Cmake put them after all install code of main CMakelists in cmake_install.cmake
Currently I just added extra add_subdirectory and CMakeLists.txt in osx directory to bypass that.
- Try to fix build with RPATH.
Currently if CMAKE_MACOSX_RPATH=1 then AI libs unable to find @rpath/libvcmi.dylib
I tried to set few different INSTALL_RPATH for all targets in AI directory, but nothing worked.`
but I didn’t understand what should I do to overcome the issue.
Will appreciate help with this , as I’m new to c++ (java developer :))