Skip to content

Windows support using vcpkg [x64-windows-static-md] - #4

Merged
MaxXSoft merged 2 commits into
MaxXSoft:masterfrom
EvansJahja:vcpkg
Oct 22, 2025
Merged

Windows support using vcpkg [x64-windows-static-md]#4
MaxXSoft merged 2 commits into
MaxXSoft:masterfrom
EvansJahja:vcpkg

Conversation

@EvansJahja

Copy link
Copy Markdown
Contributor

I am adding windows support using vcpkg,

vcpkg package management program version 2025-02-11-bec4296bf5289dc9ce83b4f5095943e44162f9c2

There are manual steps needed to be done by users, outlined in the readme.

I have verified that this works, at least readfst.exe can read my vst files

@MaxXSoft MaxXSoft left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks for your contribution! Here are some suggestions I made.

Comment thread fstapi/build.rs Outdated
@@ -1,26 +1,70 @@
use std::{env, path::PathBuf};
use std::{env, path::{self, PathBuf}};

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Suggested change
use std::{env, path::{self, PathBuf}};
use std::{env, path::PathBuf};

path::self can be removed.

@EvansJahja EvansJahja Oct 20, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thank you for your comments, I have addressed all of them (and tried clippy, let's see how the CI goes.)

Comment thread fstapi/build.rs Outdated
.emit_includes(true)
.find_package("zlib")
.unwrap();
let zlib_include_dir = path::PathBuf::from(zlib.include_paths[0].clone());

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Suggested change
let zlib_include_dir = path::PathBuf::from(zlib.include_paths[0].clone());
let zlib_include_dir = PathBuf::from(zlib.include_paths[0].clone());

Use PathBuf directly.

Comment thread fstapi/build.rs Outdated
Comment on lines +28 to +29
let mman_base_path = path::PathBuf::from(mman.include_paths[0].clone());
let mman_include_dir = mman_base_path.join(path::PathBuf::from("mman"));

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Suggested change
let mman_base_path = path::PathBuf::from(mman.include_paths[0].clone());
let mman_include_dir = mman_base_path.join(path::PathBuf::from("mman"));
let mman_base_path = PathBuf::from(mman.include_paths[0].clone());
let mman_include_dir = mman_base_path.join(PathBuf::from("mman"));

Comment thread fstapi/src/reader.rs Outdated
/// Creates a new hierarchy.
fn new(hier: &'a capi::fstHier) -> Self {
match hier.htyp as u32 {
match hier.htyp as c_int {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

This will fail on Linux, please check the CI output.

I think the following modification is okay:

Suggested change
match hier.htyp as c_int {
match hier.htyp as capi::fstHierType {

@MaxXSoft

Copy link
Copy Markdown
Owner

Thanks for the update!

Clippy reported some other issues, but that's okay, I'll fix them later.

@MaxXSoft
MaxXSoft merged commit 02022fa into MaxXSoft:master Oct 22, 2025
1 check failed
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.

2 participants