Skip to content

Missing yaml-cppd.dll after upgrade to yaml-cpp 0.7 #103

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

Open
kyllingstad opened this issue Jun 30, 2022 · 1 comment
Open

Missing yaml-cppd.dll after upgrade to yaml-cpp 0.7 #103

kyllingstad opened this issue Jun 30, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@kyllingstad
Copy link
Member

kyllingstad commented Jun 30, 2022

Building, installing and running the Debug version of cosim.exe from the dist folder now causes Windows to complain that yaml-cppd.dll is missing.

Apparently, the yaml-cpp package has added a "d" suffix to the DLL filename when build_type=Debug, and we're not importing that file to dist/ – only yaml-cpp.dll. The problem was probably introduced with the recent upgrade of libcosim's yaml-cpp dependency to 0.7 (open-simulation-platform/libcosim#705).

I'm not sure what is the best way to fix it within the current conanfile.txt. Is there any way to conditionalise on the build type in the [imports] section, or do we have to switch to conanfile.py?

Workarounds: Copy the file from the Conan package directory to dist manually, change the DLL filename in conanfile.txt manually, or compile in Release mode.

@kyllingstad kyllingstad added the bug Something isn't working label Jun 30, 2022
@markaren
Copy link
Contributor

Use wildcard?

bin, yaml-cpp*.dll -> ./dist/bin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants