Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can’t make it work in raspberry pi #1

Closed
ea3iav opened this issue Jan 19, 2021 · 17 comments
Closed

Can’t make it work in raspberry pi #1

ea3iav opened this issue Jan 19, 2021 · 17 comments

Comments

@ea3iav
Copy link

ea3iav commented Jan 19, 2021

Hello! I downloaded the zip, unzipped it and the executed make

Looks like the rpi can't find the paralell port...
is there I am missing
I am placing the file in the same folder as transfolio is
image
image

Thank you

@gavinlew
Copy link

I have now built the same as you with the cable - however, I believe the RPi needs a specific build of transfolio to work with the GPIO header.

Install WiringPi
cd /tmp
wget https://project-downloads.drogon.net/wiringpi-latest.deb
sudo dpkg -i wiringpi-latest.deb

Then try make pifolio
and run the compiled file that gets outputted - do you have any more success?

@ea3iav
Copy link
Author

ea3iav commented Jan 30, 2021

Ok! I followed your instructions
Everything fine but when I try
Make pofolio Ii says that "there is no eule to build the target "pifolio"

@gavinlew
Copy link

Hi

have you installed build-essentials ?

Try sudo make pifolio if your not a root user

Are you trying the gpio version?

@ea3iav
Copy link
Author

ea3iav commented Jan 30, 2021 via email

@gavinlew
Copy link

gavinlew commented Jan 30, 2021 via email

@skudi
Copy link
Owner

skudi commented Jan 30, 2021

Hi,

gavinlew made small typo, Makefile target for Rasbperry Pi binary is "rpfolio", so the proper command is "make rpfolio". I've added INSTALL_PI.md document with short instruction.

The "sudo" shouldn't be necessary for running rpfolio, just ensure that you user is in group "gpio":
$ id
uid=1000(pi) gid=1000(pi) groups=1000(pi),4(adm),20(dialout),24(cdrom),27(sudo),29(audio),44(video),46(plugdev),60(games),100(users),101(input),108(netdev),997(gpio),998(i2c),999(spi)

I was using only transfolio (PC/Linux) binary, but will get my portfolio fron the shelf a test it.

@gavinlew
Copy link

gavinlew commented Jan 30, 2021 via email

@gavinlew
Copy link

gavinlew commented Jan 30, 2021 via email

@ea3iav
Copy link
Author

ea3iav commented Jan 30, 2021

Ok i have so many folders and attemps that I think my rpi is far away from getting it done.
I followed your first command
clone or unpack sources, and go into repository dir: git clone git@github.com:skudi/transfolio.git cd transfolio
But i get an error. I need to specify the repository or something

In which directory do I need to execute make rpfolio? It sais it is in the last version

I think i may need to do it agian from scratch

@gavinlew
Copy link

gavinlew commented Jan 30, 2021 via email

@skudi
Copy link
Owner

skudi commented Jan 30, 2021

sorry, those are two separate commands, but joined because badly formatted .md

  1. get the repository from git or zip, for example:
git clone git@github.com:skudi/transfolio.git
  1. then enter repository folder:
cd transfolio
  1. and then do
make rpfolio
  1. you can run it from there
./rpfolio -l "*.*"
  1. or copy to "bin" folder (i.e. /home/pi/bin/), which is automatically added to your PATH variable so you can run rpfolio without specyfying path from any directory.

@skudi skudi pinned this issue Jan 30, 2021
@skudi
Copy link
Owner

skudi commented Jan 31, 2021

I've assembled "testing bench". Compiled rpfolio on fresh rasbpian-lite image. Made cable and added cable pinout to INSTALL_RPI.md ( and i think that you crossed output with input lines, check them again ).
I suspected some problems, but it is working without any problems :)

@LennartHennigs
Copy link

LennartHennigs commented Mar 14, 2022

Hey,
I am also trying to install transfolio on a Pi Zero (on Raspbian Lite).
I get a compile error when I run make:

cc -DRASPIWIRING -IwiringPi -lwiringPi -O3 transfolio.c -o rpfolio
/usr/bin/ld: /tmp/cculme8e.o: in function `openPort':
transfolio.c:(.text+0x4): undefined reference to `wiringPiSetup'
/usr/bin/ld: transfolio.c:(.text+0x18): undefined reference to `pinMode'
/usr/bin/ld: transfolio.c:(.text+0x24): undefined reference to `pinMode'
/usr/bin/ld: transfolio.c:(.text+0x30): undefined reference to `pinMode'
/usr/bin/ld: transfolio.c:(.text+0x3c): undefined reference to `pinMode'
/usr/bin/ld: /tmp/cculme8e.o: in function `receiveByte':
...

It seems that the file does not find / include the wiringPi.h library.

Here are my steps on the clean Raspbian Lite install:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git git-core

cd /tmp
wget https://project-downloads.drogon.net/wiringpi-latest.deb
sudo dpkg -i wiringpi-latest.deb
sudo adduser pi gpio
gpio -v

cd
git clone https://github.com/skudi/transfolio.git
cd transfolio
make rpfolio

But WiringPi is correctly installed.
I checked it by successfully compiling this example.

@skudi
Copy link
Owner

skudi commented Mar 14, 2022

I have raspberry pi 2, and I'm compiling with wiringpi 2.50. Current "latest" (from your URL) wiringpi is 2.52 (dpkg -l wiringpi).
When I installed 2.52 I've got different error so I can not repeat your problem.

cc -DRASPIWIRING -IwiringPi -lwiringPi -O3 transfolio.c -o rpfolio
/usr/lib/gcc/arm-linux-gnueabihf/6/../../../libwiringPi.so: undefined reference to `fcntl@GLIBC_2.28'
collect2: error: ld returned 1 exit status

Can you try build with wiringpi version 2.50?

sudo apt install wiringpi=2.50

@LennartHennigs
Copy link

LennartHennigs commented Mar 14, 2022

Hey,
thanks for the quick reply.
Sure, I uninstalled 2.52.

$ sudo dpkg -r wiringpi
(Reading database ... 42578 files and directories currently installed.)
Removing wiringpi (2.52) ...
Processing triggers for man-db (2.9.4-2) ...

I chose that version because apt-getdid not find wiringpi before:

$ sudo apt install wiringpi=2.50
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Version '2.50' for 'wiringpi' was not found

$ sudo apt install wiringpi
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package wiringpi is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

It seems that wiringpi is missing from Bulleye.

After some searching I found this github repo and tried to install 2.5.

git clone https://github.com/WiringPi/WiringPi.git --branch final_official_2.50
cd WiringPi/
./build debian

...but that failed, too. 🤦
After that I tried the latest version from the repository and it compiled without problem.
But then the makecommand produced the same error as the other did.
So I am back to square one.

Got another idea?

@skudi
Copy link
Owner

skudi commented Mar 15, 2022

Wiringpi is deprecated.
You may be able to install the last release from the author's website which may or may not work on Bullseye.

transfolio needs to be rewritten with another library. I've created another issue:
#3

@skudi skudi closed this as completed Mar 15, 2022
@LennartHennigs
Copy link

Hey, for completions sake,
I installed Buster on the Pi Zero and these step DO work:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git git-core

sudo apt install wiringpi=2.50

git clone https://github.com/skudi/transfolio.git
cd transfolio
make rpfolio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants