# Integrating External Libraries into NuttX Applications

DevFeed: [Integrating External Libraries into NuttX Applications](<https://devfeed.tech/articles/integrating-external-libraries-into-nuttx-applications-13735.md>)

Original publisher: [Read original article](<https://developer.espressif.com/blog/2025/11/nuttx-external-lib/>)

Author: John Lee

Published: 2025-11-19T00:00:00Z

Content type: tutorial

Language: en

Sources: [Blog on Developer Portal](<https://devfeed.tech/sources/blog-on-developer-portal.md>)

Topics: [NuttX](<https://devfeed.tech/topics/nuttx.md>), [Library](<https://devfeed.tech/topics/library.md>), [Simulation](<https://devfeed.tech/topics/simulation.md>), [ESP32-C6](<https://devfeed.tech/topics/esp32-c6.md>), [RISC-V](<https://devfeed.tech/topics/riscv.md>), [x86](<https://devfeed.tech/topics/x86.md>)

Tags: [blog](<https://devfeed.tech/tags/blog.md>), [compilation](<https://devfeed.tech/tags/compilation.md>), [cross-compilation](<https://devfeed.tech/tags/cross-compilation.md>), [esp32-c6](<https://devfeed.tech/tags/esp32-c6.md>), [guide](<https://devfeed.tech/tags/guide.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [libraries](<https://devfeed.tech/tags/libraries.md>), [library](<https://devfeed.tech/tags/library.md>), [nuttx](<https://devfeed.tech/tags/nuttx.md>), [practitioner](<https://devfeed.tech/tags/practitioner.md>), [risc-v](<https://devfeed.tech/tags/risc-v.md>), [simulation](<https://devfeed.tech/tags/simulation.md>), [x86](<https://devfeed.tech/tags/x86.md>)

## AI overview

This guide explains how to integrate an external application library into NuttX using a static library and cross-compilation. It covers building the library on x86, testing it in the NuttX simulation environment, and cross-compiling it for RISC-V to run on the ESP32-C6.

## Source excerpt

This guide demonstrates how to integrate external libraries into NuttX applications using static libraries and cross-compilation. Learn how to build a library on x86, integrate it into the NuttX simulation environment, and cross-compile for RISC-V targets like the ESP32-C6, all without moving your entire codebase into the NuttX directory structure.