Closed attila-balint-kul closed 1 week ago
Can you try to create a CMake project form the FMU by selecting Tools > Create CMake Project...
in the FMPy GUI and build the FMU with CMake?
Thank you for the quick reply. I have created a CMake project as you instructed using the GUI and ran the cmake .
command from the terminal in the project directory (please let me know if did it incorrectly).
I got the following error messages:
❯ cmake .
-- The C compiler identification is AppleClang 14.0.3.14030022
-- The CXX compiler identification is AppleClang 14.0.3.14030022
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:72 (add_custom_command):
No TARGET 'PackageName.TableTest' has been created in this directory.
There seems to be a problem with the OpenModelica FMU export even with the latest version (v1.24.2). I've create an issue https://github.com/OpenModelica/OpenModelica/issues/13260.
I am having trouble with the compilation of any Modelica model from linux to MacOS that contains a
Modelica.Blocks.Tables.CombiTable1Ds
. I am running OMEdit through XQuartz using theopenmodelica/openmodelica:v1.21.0-gui
docker image from an Intel MacBook Pro runningMacOS 13.4.1
. The project runs in virtual environment usingpython 3.10
withFMPy-0.3.16
installed.With C code compilation I reached the end of my knowledge and would appreciate the support.
Clang:
I created a simplest possible model to reproduce with 1 input, 1 output and a CombiTable.
I needed to cut part of the logs, but can provide the full if needed.