libgpiod icon indicating copy to clipboard operation
libgpiod copied to clipboard

make install not working from tar.gz files.

Open YuzuSphynx opened this issue 9 months ago • 3 comments

Not sure if this is a good place to ask, attempting to install this on a xilinx board and running into issues. Downloading the 2.2.1 tarball, going into the extracted directory, and running various install commands fail. There appear to be two makefiles in the libgpiod-2.2.1 directory. specifying either with make does not appear to work either due to formatting errors (missing separator).

after cd-ing into the libgpiod-2.2.1 directory i've tried running:

make install returns: make: *** No rule to make target install. Stop.

make -f Makefile.in returns: Makefile.in:15: *** missing separator. Stop.

make -f Makefile.am returns: Makefile.am:19: *** missing separator. Stop.

I haven't tried building it directly, but am almost certainly doing something dumb.

YuzuSphynx avatar Mar 07 '25 17:03 YuzuSphynx

Hmm maybe I need to improve the docs a bit. In general you want to run:

tar -xvf libgpiod-2.2.1.xz
cd ./libgpiod-2.2.1
./configure <whatever flags you need>
make
sudo make install

brgl avatar Mar 07 '25 17:03 brgl

Thanks, not entirely sure but ./configure --enable-tools=yes complains when i run it... i get an error about some system clock but doing the same on an older version, 1.6.3, yields the expected behavior. after which sudo make install runs, i have to also run sudo ldconfig before i can call sudo gpiodetect (etc) successfully.

I'm guessing this works on 2.2.1 if i fix the system clock complaint on my end. not sure why 1.6.3 doesn't throw the same error though... I appreciate the help, sorry for the remedial question.

YuzuSphynx avatar Mar 14 '25 13:03 YuzuSphynx

I cannot help you if you don't at least post the output of configure.

brgl avatar Mar 14 '25 15:03 brgl