llnl / llnl/LEAP

Build error linking leapct libraries to python site-packages on Windows 10

Open
#127 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Cuda
Stars
249
Forks
37
PR merge metrics
No merged PRs in 30d

Description

"pip install ." fails to link the leapct libraries resulting in a dll not found at runtime. Resolution is to manually link or copy library, and then the demos work. Error is below.

cmake version 3.18.4, VS2019, Python 3.10.0, pip 24.2:

Creating library H:/Documents/LEAP/win_build/lib/Release/leapct.lib and object H:/Documents/LEAP/win_build/lib/Release/leapct.exp
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library [H:\Documents\LEAP\win_build\src\leapct.vcxproj]
leapct.vcxproj -> H:\Documents\LEAP\win_build\bin\Release\libleapct.dll
Building Custom Rule H:/Documents/LEAP/CMakeLists.txt
The syntax of the command is incorrect.
running bdist_wheel

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the Windows 10 failure with `pip install .` using the reported CMake, Visual Studio, and Python versions. Start with CMakeLists.txt and the bdist_wheel step, then verify that the leapct libraries are linked into the Python package and the demos run without a missing-DLL error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.