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

Still working? #2

Open
edikay opened this issue Dec 25, 2017 · 3 comments
Open

Still working? #2

edikay opened this issue Dec 25, 2017 · 3 comments

Comments

@edikay
Copy link

edikay commented Dec 25, 2017

Your library is still working? Because when Im trying ./get_code then I get errors:
root@multibooth:/rpi_ws281x# make all
mkdir -p java/com/github/h0ru5/neopixel
swig -java -package com.github.h0ru5.neopixel -outdir java/com/github/h0ru5/neopixel python/rpi_ws281x.i
cc -fPIC -I"/opt/jdk1.8.0_121/include/" -I"/opt/jdk1.8.0_121/include/"/linux -c python/rpi_ws281x_wrap.c -o rpi_ws281x_wrap.o
cc -shared -o librpi_ws281x.so ws2811.o dma.o pwm.o rpi_ws281x_wrap.o
cc main.c librpi_ws281x.so -L. -lrpi_ws281x -Wl,-rpath='RIGIN' -o demo
librpi_ws281x.so: undefined reference to mem_unlock' librpi_ws281x.so: undefined reference to unmapmem'
librpi_ws281x.so: undefined reference to mem_free' librpi_ws281x.so: undefined reference to mem_lock'
librpi_ws281x.so: undefined reference to mapmem' librpi_ws281x.so: undefined reference to rpi_hw_detect'
librpi_ws281x.so: undefined reference to pcm_pin_alt' librpi_ws281x.so: undefined reference to mbox_close'
librpi_ws281x.so: undefined reference to mbox_open' librpi_ws281x.so: undefined reference to mem_alloc'
collect2: error: ld returned 1 exit status

Can you help me? I know last update 2 years ago.

@h0ru5
Copy link
Owner

h0ru5 commented Jan 31, 2018

It seems you are missing the library file for librpi_ws281x.so
this repo just contains the binding code for java.

@h0ru5
Copy link
Owner

h0ru5 commented Jan 31, 2018

get_code.sh is/was just a terrible hackish way to get the code from here: https://github.com/jgarff/rpi_ws281x and compile it.
did you run in from the subdir? It might behave terrible in terms of working directory.

@h0ru5
Copy link
Owner

h0ru5 commented Jan 31, 2018

sorry, wrong lead above, the ereror is related to something that changed in the rpilib - my lousy script does not pin it to a commit or tag as it should.
best head over to the lib repo and get it to compile, then you can update get_code.sh accordingly (or better make it better - its painful reading the own code from years ago 🤣 )

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

2 participants