Skip to content

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

Open
@yurivict

Description

@yurivict

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildbuild issues; typically submitted using template

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions