karosium / smbusb

USB SMBus Interface
GNU Lesser General Public License v2.1
141 stars 42 forks source link

Can't complete make command #28

Closed PsySc0rpi0n closed 3 years ago

PsySc0rpi0n commented 3 years ago

Hi. Little help please.

I was trying to compile the tarbal but I get the following error that some point:

$ make
Making all in firmware
make[1]: Entering directory '/home/psysc0rpi0n/Downloads/smbusb-1.0.1/firmware'
Makefile:6: ../fx2lib/lib/fx2.mk: No such file or directory
make[1]: *** No rule to make target '../fx2lib/lib/fx2.mk'.  Stop.
make[1]: Leaving directory '/home/psysc0rpi0n/Downloads/smbusb-1.0.1/firmware'
make: *** [Makefile:386: all-recursive] Error 1

What am I missing? I have pkg-config and libusb installed.

$ sudo apt install pkg-config
pkg-config is already the newest version (0.29-6).

$ sudo apt install libusb-1.0-0-dev
libusb-1.0-0-dev is already the newest version (2:1.0.22-2).

$ sudo apt install libusb-1.0-0
libusb-1.0-0 is already the newest version (2:1.0.22-2).
PsySc0rpi0n commented 3 years ago

Hello.

I have the fx2lib folder, yes.

I'm not sure I understood the last sentence/question. But yes, I tried to compile the source code inside ~/Downloads/smbusb folder. So I sohuld have totall access (r/w).

Could the discussion continue on github?

Em ter., 23 de mar. de 2021 às 10:08, 5ch4um1 @.***> escreveu:

do you have that fx2lib folder? is that file it complains about where it should be, is it readable?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/karosium/smbusb/issues/28#issuecomment-804778130, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHPFZSB3HMIYFKRZNVYENDTFBSATANCNFSM4ZUC4ZFA .

--

AtenciosamenteJosé Carlos Oliveira Ferreira

5ch4um1 commented 3 years ago

you might want to provide more information? operating system to begin with maybe? " compile the tarbal(l)" which tarball, link to the download? exact steps to reproduce the error?

PsySc0rpi0n commented 3 years ago

you might want to provide more information? operating system to begin with maybe? " compile the tarbal(l)" which tarball, link to the download? exact steps to reproduce the error?

Sure, my bad.

I'm on Debian Buster. And about the tarbal, well, there is only one in the releases page. https://github.com/karosium/smbusb/archive/refs/tags/1.0.1.tar.gz

Steps? I was following the instructions provided in the README.md file On *nix:

aclocal
libtoolize
autoconf
automake --add-missing
./configure (options: --disable-firmware, --disable-tools)
make
make install
karosium commented 3 years ago

The release is outdated, please build from the repo directly and let me know if you still have issues.

FWIW The commands you were missing are git submodule init and git submodule update but you'd run into other issues trying to build the firmware from that release with Buster's SDCC package.