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

Which version of libwebsockets is compatible with mosquitto 1.4.10 #356

Closed
xero0001 opened this issue Jan 20, 2017 · 2 comments
Closed

Which version of libwebsockets is compatible with mosquitto 1.4.10 #356

xero0001 opened this issue Jan 20, 2017 · 2 comments

Comments

@xero0001
Copy link

xero0001 commented Jan 20, 2017

I'm using raspberry pi 3 and

I want to build mosquitto with WITH_WEBSOCKETS:=yes option.

I already installed libwebsockets from here: https://github.com/warmcat/libwebsockets
'git clone' and 'cmake'. It was fine.

But when I try to build mosquitto 1.4.10 it keeps showing error message.
I just used 'make' command.

error is like this:

mosquitto.o: In function 'main':
... undefined reference to 'lws_context_destroy'
... undefined reference to 'lws_service'
blah blah blah

Is the version of libwebsockets is a problem?

Thank you.

@ralight
Copy link
Contributor

ralight commented Jan 20, 2017

2.0.x definitely works, I've not yet tried 2.1. Using unreleased versions is a bad idea...

The function you're missing should exist in the git cloned version though, are you sure it isn't trying to link against a different version installed on your system?

@xero0001
Copy link
Author

Thank you so much ralight!
I'll check it out.
Maybe rasp has different version's file of libwebsockets.
Thanks!

@ralight ralight closed this as completed Feb 18, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Aug 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants