Skip to content

Conversation

trim21
Copy link

@trim21 trim21 commented May 17, 2025

close #1117

@trim21 trim21 mentioned this pull request May 17, 2025
cmake --build build


- run: ./build/mediainfo.exe --help
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test by at least doing mediainfo.exe mediainfo.exe as just doing --help does not test if it can load mediainfo.dll properly since you are using MEDIAINFO_DLL_RUNTIME.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer a static build by default (with option for dll runtime?) if not too complicated.
The test in the CI is currently with testing that the result of e.g. ".\MediaInfo.exe" "--Output=General;%Format_Profile%" "MediaInfo.exe" is the expected one.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually I think it won't work, I didn't add dll path to env.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made a local build with this PR and copied the dll but still fail Unable to load MediaInfo.dll

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I see what is going on now, zlib.dll is needed too.

Copy link
Author

@trim21 trim21 May 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer a static build by default (with option for dll runtime?) if not too complicated.

After hours trying, I think it's currently impossible to get a fullly static linked executable, there are some changes that must be done in the upstream packages.

I'll only test the dynamic linked version.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ya I keep getting zlib linking issues after trying many times too with my version that can build everything in one cmake command.

Copy link
Author

@trim21 trim21 May 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hope this won't be a blocker on this PR

@trim21 trim21 marked this pull request as ready for review May 17, 2025 17:36
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

Successfully merging this pull request may close these issues.

CMake support?
3 participants