# Brand, Spankin' New...Trying to Understand gpiod.h and riscv-64

**URL:** https://discourse.cmake.org/t/brand-spankin-new-trying-to-understand-gpiod-h-and-riscv-64/10702
**Category:** Code
**Tags:** os:linux, gen:makefiles, tool:cmake
**Created:** [April 20, 2024, 4:56am UTC](https://discourse.cmake.org/t/brand-spankin-new-trying-to-understand-gpiod-h-and-riscv-64/10702 "2024-04-20T04:56:17Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![silver2row](https://discourse.cmake.org/user_avatar/discourse.cmake.org/silver2row/32/4513_2.png) [@silver2row](https://discourse.cmake.org/u/silver2row)
#### Post date: [April 20, 2024, 4:56am UTC](https://discourse.cmake.org/t/brand-spankin-new-trying-to-understand-gpiod-h-and-riscv-64/10702/1 "2024-04-20T04:56:17Z")

</div>

Hello,

I have a BeagleV-Ahead I am using to natively compile via `cmake .. && make` and then using libgpiod-dev libs. via `#include <gpiod.h>` to get things going.

I am receiving this error after `cmake` and `make` commands.

```auto
Requested line as output failed
: Device or resource busy

```

I have done this before on an armhf machine and another aarch64 machine…

So, I am a bit confused as of now…

Seth

P.S. If you need any data from me, I am all ears! Oh…my locations of files to use on Linux are a bit different these days. Instead of `/sys/class/gpio/*`, I have locations with another location of files.

See, the odd things so far is that everything compiles but the error remains. Is cmake at fault, probably not. Am I, probably! Any assistance would be appreciated…

I will keep trying.

---

<div class="post-metadata">

### Author: ![silver2row](https://discourse.cmake.org/user_avatar/discourse.cmake.org/silver2row/32/4513_2.png) [@silver2row](https://discourse.cmake.org/u/silver2row)
#### Post date: [April 20, 2024, 9:45am UTC](https://discourse.cmake.org/t/brand-spankin-new-trying-to-understand-gpiod-h-and-riscv-64/10702/2 "2024-04-20T09:45:55Z")

</div>

I figured it out. In the end, it was me.

Seth

P.S. My source was a bit off even though it compiled. Sorry to bother you guys/gals.

If it would help anyone out there trying to get started, simple ideas are below for CMakeLists.txt…

```auto
cmake_minimum_required(VERSION 3.25)

project(gpiod LANGUAGES C)

add_executable(MySecond MySecond.c)
target_link_libraries(MySecond gpiod)

```
