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

SIGILL #241

Open
trlef19 opened this issue Jan 3, 2025 · 7 comments
Open

SIGILL #241

trlef19 opened this issue Jan 3, 2025 · 7 comments

Comments

@trlef19
Copy link

trlef19 commented Jan 3, 2025

When im trying to run my program with this library, gdb says illigal instruction. Any ideas? These is the code i have so far
kfr::audio_reader_wav<float> reader(kfr::open_file_for_reading("audio.wav")); const kfr::univector2d<float> audio = reader.read_channels(); kfr::univector<float> signal = audio[0]; int samperate = reader.format().samplerate;
Im using kfr via vcpkg(6.0.2) and im using a windows 11. Any ideas?

@dancazarin
Copy link
Member

Please provide more details about how you install KFR, exact commands, compiler version etc.

@trlef19
Copy link
Author

trlef19 commented Jan 3, 2025

Sorry.

I downloaded with vcpkg on manifest mode (I'll provide the json later). I'm using the latest clion and the embedded compiler inside ( I think mingw 11 with gcc 13). I'm also using cmake

@dancazarin
Copy link
Member

What triplet did you use for vcpkg? You can see it the vcpkg_installed subdirectory in your project (as long as you haven't changed the default paths).

@trlef19
Copy link
Author

trlef19 commented Jan 3, 2025

It's x64-windows

@dancazarin
Copy link
Member

x64-windows is a MSVC triplet. It isn't binary-compatible with MinGW builds. As of now, MinGW is no longer officially supported.

@trlef19
Copy link
Author

trlef19 commented Jan 3, 2025

Oof, what should I do then?

@trlef19
Copy link
Author

trlef19 commented Jan 9, 2025

okay, changed compiler to msvc (build tools 2022) but i still get an exception, 0xc0000005. Any help?

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