Skip to content

Build improvements#4

Open
amitrahman1026 wants to merge 19 commits into
unstablefrom
build-improvements
Open

Build improvements#4
amitrahman1026 wants to merge 19 commits into
unstablefrom
build-improvements

Conversation

@amitrahman1026
Copy link
Copy Markdown
Owner

No description provided.

…t... not sure if this could change in future macos
cc::Build::try_compile uses whatever compiler the build environment provides (Clang/GCC/MSVC), respects CFLAGS, and writes to OUT_DIR without needing a temp file

smoke.c references epan_get_version by address (function-to-pointer decay in C), so the compiler must see a matching declaration in the header — wrong or missing header version fails the compile
@amitrahman1026 amitrahman1026 self-assigned this Apr 26, 2026
Comment thread epan-sys/build.rs
_metadata_config: &MetadataConfig,
) -> Result<WiresharkConfig, BuildError> {
// TODO: Should test this in CI, currently just going off what Google says
let search_configs = vec![(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@amitrahman1026 This worked for me on a machine using the default Wireshark install location, but that location is not the same for every install. I think it would be better to query the registry for the Wireshark installation directory. Registry key HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Wireshark.exe should give the path to the per-user Wireshark install directory. Use HKLM instead of HKCU if Wireshark was installed for all users. I have access to a Windows machine to test and would be happy to put together a PR if you want.

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