Skip to content

[Build] "nsync_cpp" is not in any export set #16747

Description

@Cynede

Describe the issue

getting:

CMake Error: install(EXPORT "onnxruntimeTargets" ...) includes target "onnxruntime" which requires target "nsync_cpp" that is not in any export set.

I have nsync_cpp installed in system and seems like without onnxruntime_SHARED_LIB cmake flag I don't get the error, but I need shared library

Urgency

can't build shared library for onnxruntime using cmake

Target platform

Linux

Build script

cmake

  -DBUILD_SHARED_LIBS=1
  -Donnxruntime_ENABLE_TRAINING=FALSE
  -Donnxruntime_BUILD_UNIT_TESTS=OFF
  -Donnxruntime_RUN_ONNX_TESTS=OFF
  -DFLATBUFFERS_BUILD_SHAREDLIB=ON
  -DFLATBUFFERS_INSTALL=ON
  -DABSL_ENABLE_INSTALL=ON
  -DCMAKE_INSTALL_LIBDIR=lib
  -Donnxruntime_ENABLE_CPUINFO=OFF

..

make

Error / output

CMake Error: install(EXPORT "onnxruntimeTargets" ...) includes target "onnxruntime" which requires target "nsync_cpp" that is not in any export set.

Visual Studio Version

No response

GCC / Compiler Version

12.3.1 20230623

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildbuild issues; typically submitted using templatecontributions welcomeexternal contributions welcome

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions