# Cannot disable static version of libpython in cmake config/build

**URL:** <https://forum.aousd.org/t/cannot-disable-static-version-of-libpython-in-cmake-config-build/1806>\
**Category:** Build and Deployment\
**Created:** [August 27, 2024, 10:49am UTC](https://forum.aousd.org/t/cannot-disable-static-version-of-libpython-in-cmake-config-build/1806 "2024-08-27T10:49:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![phaedon](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@phaedon](https://forum.aousd.org/u/phaedon)\
**Post date:** [August 27, 2024, 10:49am UTC](https://forum.aousd.org/t/cannot-disable-static-version-of-libpython-in-cmake-config-build/1806/1 "2024-08-27T10:49:24Z")

</div>

I am trying to build openUSD with the recommended flag for disabling the search for the static Python library, on Ubuntu:

`python build_scripts/build_usd.py ~/openusd-builds/ --build-args USD,"-DPXR_PY_UNDEFINED_DYNAMIC_LOOKUP=ON"`

Though I clearly have the dynamic versions, i.e. libpython3.12.so  
I wiped out and reinstalled Python (3.12) via Miniconda and also removed any cached cmake files, etc.

Is there another flag I should be passing in so that the generated cmake command does not try to look for the .a file which doesn’t exist in the conda installation?

Error:

```auto
-- Disabling boost-provided cmake config
CMake Error at /snap/cmake/1409/share/cmake-3.30/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
  Could NOT find Python3 (missing: Development Development.Embed) (found
  version "3.12.4")

      Reason given by package:
          Development: Cannot find the library "/home/fjsinis/miniconda3/lib/libpython3.12.a"

```
