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

Make error #8

Open
inyong37 opened this issue Apr 26, 2018 · 3 comments
Open

Make error #8

inyong37 opened this issue Apr 26, 2018 · 3 comments

Comments

@inyong37
Copy link

Hi, I had an error as below

obj/vl53l0x_api_calibration.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:44: recipe for target 'bin/vl53l0x_python' failed
make: *** [bin/vl53l0x_python] Error 1

and fixed this error with editing Makefile

$(CC) -sharde $^ $(PYTHON_INCLUDES) $(INCLUDES) -lithread -o [email protected]
$(CC) $(CFLAGS) $(PYTHON_INCLUDES) $(INCLUDES) $< -o $@

as below

$(CC) -sharde $^ $(PYTHON_INCLUDES) $(INCLUDES) -fPIC -lithread -o [email protected]
$(CC) $(CFLAGS) $(PYTHON_INCLUDES) $(INCLUDES) -fPIC $< -o $@

after editing

$ make clean
$ make

I hope to resolve the problem.

Environment: RPi 3 B & Ubuntu Mate 16

@clubnayra
Copy link

same issue on same platform

@lightwaver
Copy link

I has the same error - thx for the fix!

@chahatdeep
Copy link

Thanks! Fixed the problem on Nano Pi Core 2.

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