Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when exporting FMU that contains other FMU #2228

Closed
larsviktorlarsson opened this issue May 30, 2024 · 1 comment
Closed

Error when exporting FMU that contains other FMU #2228

larsviktorlarsson opened this issue May 30, 2024 · 1 comment

Comments

@larsviktorlarsson
Copy link
Contributor

larsviktorlarsson commented May 30, 2024

When exporting a Hopsan model file that contains another FMU, the generator crashes with the following message:

Loaded hopsangenerator
Copying HopsanCore source, header and dependencies...
Copying C:/Program Files/Hopsan/HopsanCore
Copying default component library...
Copying C:/Program Files/Hopsan/componentLibraries/defaultLibrary
Generating C:/SVN/eVeber-FMI_branchViktor/test_area/test_models/Hopsan/fmu-build/fmu2_model.c
Exporting model assets
Unable to copy file: C/SVN/eVeber-FMI_branchViktor/test_area/get_fmu/local/fmu/L90LS_UD_banan_K__.fmu to C:/SVN/eVeber-FMI_branchViktor/test_area/test_models/Hopsan/fmu-stage/resources/C/SVN/eVeber-FMI_branchViktor/test_area/get_fmu/local/fmu/L90LS_UD_banan_K__.fmu
Generating C:/SVN/eVeber-FMI_branchViktor/test_area/test_models/Hopsan/fmu-build/model.hpp
Replacing namespace
------------------------------------------------------------------------
Compiling FMU source code
------------------------------------------------------------------------
Generating Makefile
Generating compilation script
Calling compilation script
g++ -c -std=c++14 -DHOPSAN_INTERNALDEFAULTCOMPONENTS -DHOPSAN_INTERNAL_EXTRACOMPONENTS -DHOPSANCORE_NOMULTITHREADING -I"HopsanCore/include" -I"componentLibraries/defaultLibrary" -I"HopsanCore/dependencies/rapidxml" -I"HopsanCore/dependencies/indexingcsvparser/include" -I"HopsanCore/dependencies/libnumhop/include" -I"HopsanCore/dependencies/sundials-extra/include" -I"HopsanCore/dependencies/sundials/include" -IC:/Program Files/Hopsan/dependencies/fmi4c/include -c fmu2_model.c -o fmu2_model.o

g++ -c -std=c++14 -DHOPSAN_INTERNALDEFAULTCOMPONENTS -DHOPSAN_INTERNAL_EXTRACOMPONENTS -DHOPSANCORE_NOMULTITHREADING -I"HopsanCore/include" -I"componentLibraries/defaultLibrary" -I"HopsanCore/dependencies/rapidxml" -I"HopsanCore/dependencies/indexingcsvparser/include" -I"HopsanCore/dependencies/libnumhop/include" -I"HopsanCore/dependencies/sundials-extra/include" -I"HopsanCore/dependencies/sundials/include" -IC:/Program Files/Hopsan/dependencies/fmi4c/include -c HopsanCore/src/Component.cpp -o Component.o
Makefile:21: recipe for target 'fmu2_model.o' failed

g++: error: Files/Hopsan/dependencies/fmi4c/include: No such file or directory
bin\mingw32-make.exe: *** [fmu2_model.o] Error 1
bin\mingw32-make.exe: *** Waiting for unfinished jobs....

File 'C:/SVN/eVeber-FMI_branchViktor/test_area/test_models/Hopsan/fmu-stage/binaries/win64/FMU_UQ.dll' not found in directory ''
@robbr48
Copy link
Contributor

robbr48 commented Jun 4, 2024

The issue is already resolved by #2202. The fix is included in release 2.22.0.

@robbr48 robbr48 closed this as completed Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants