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

[Build] .pc file asks for -lonnxruntime but onnxruntime.a isn't installed #23959

Open
yurivict opened this issue Mar 9, 2025 · 0 comments
Open
Labels
build build issues; typically submitted using template

Comments

@yurivict
Copy link
Contributor

yurivict commented Mar 9, 2025

Describe the issue

Here is what pkg-config prints:

$ pkg-config --cflags --libs libonnxruntime
-I/usr/local/include/onnxruntime -L/usr/local/lib -lonnxruntime

Here is the list of libraries that onnxruntime installs:

lib/libonnxruntime_common.a
lib/libonnxruntime_flatbuffers.a
lib/libonnxruntime_framework.a
lib/libonnxruntime_graph.a
lib/libonnxruntime_lora.a
lib/libonnxruntime_mlas.a
lib/libonnxruntime_optimizer.a
lib/libonnxruntime_providers.a
lib/libonnxruntime_providers_shared.so
lib/libonnxruntime_session.a
lib/libonnxruntime_util.a

Version: 1.21.0

Urgency

No response

Target platform

FreeBSD 14.2

Build script

n/a

Error / output

n/a

Visual Studio Version

No response

GCC / Compiler Version

No response

@yurivict yurivict added the build build issues; typically submitted using template label Mar 9, 2025
@yurivict yurivict changed the title [Build] .pc file asks for -lonnxruntime but onnxruntime.so isn't installed [Build] .pc file asks for -lonnxruntime but onnxruntime.a isn't installed Mar 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build build issues; typically submitted using template
Projects
None yet
Development

No branches or pull requests

1 participant