Comments (10)
Yes, for now makesystem is dumb and doesn't do much to work with non-standard library installation paths. AFAIK libwebsockets installs by default to /usr/local, not /usr, so you can try installing libwebsockets to /usr as the plugin expects, to do so, use cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
instead of cmake ..
while building libwebsockets. Or you can use CFLAGS="-I/usr/local/include" make
when building bitlbee-discord.
src/discord-handlers.h:25:55: error: unknown type name ‘json_value’
This error, however, is not related to libwebsockets and looks like you have a rather old version of bitlbee.
from bitlbee-discord.
Oh, you specified bitlbee's version and 3.4.1 should have required structure. If the error still there when all libwebsockets errors are gone can you please post the output of the following command:
grep -n json_value /usr/include/bitlbee/json.h
from bitlbee-discord.
Hmm, looks like it installed to /usr/local/include/bitlbee/json.h. So I rebuilt bitlbee's dev files with:
configure --prefix=/usr
make
sudo make install-dev
Then I ran make clean
and make
on bitlbee-discord and still same error =/. https://gist.github.com/Kays/20c6daf6f941ecebde3a
Do I have to reinstall the entire bitlbee binary to the new /usr path as well?
from bitlbee-discord.
Did you do the stuff from my firs comment? Is there a /usr/include/libwebsockets.h?
from bitlbee-discord.
Ah, yes. I rebuild libwebsockets with prefix=/usr.
$> ls -al /usr/include/libwebsockets.h
-rw-r--r-- 1 root root 61453 Dec 31 09:25 /usr/include/libwebsockets.h
I also tried the CFLAGS make, but still not working: https://gist.github.com/Kays/1588601e69e6421718b4
Not sure if this helps, but the server is running Debian Wheezy:
$> cat /etc/debian_version
7.9
Really weird.
from bitlbee-discord.
Ok, json_value error is my own bug and it should be fixed by edffe8c.
As for libwebsockets issue: I wasn't keeping up with the development on their side and apparently they broke the API again in this commit. Thats what you get for using libraries that are still in development phase. I'll update bitlbee-discord accordingly when they bring their main repo at libwebsockets.org back up, as for now you can build libwebsockets prior to this commit and rebuild bitlbee-discord with it.
from bitlbee-discord.
Made libwebsockets changes in commit 2d12954, should compile fine with latest libwebsockets now.
from bitlbee-discord.
Works! Thank you very much. One change that I had to make in Makefile is:
install -Dm=755
to install -Dm 0755
because the equal sign results in install: invalid mode
=755'`
BTW: Happy New Year to you!
from bitlbee-discord.
Do you know if there's a way to not have two channels with the same name across multiple Discord servers clash in bitlbee? Currently, it just names it subsequent ones with _ suffices. I'm thinking maybe even #server.channel convention can work? Just a thought.
from bitlbee-discord.
Happy new year to you too.
Thanks for mentioning that install issue, commited a fix for that.
As for channelnames collisions - there is no way to avoid this at the moment. I've been thinking about server_channel convention, but from what I saw server/channel names tend to be quite long, so I definitely don't want this convention to be applied by default, I might implement it as an option though.
from bitlbee-discord.
Related Issues (20)
- Add variable auto_join_whitelist ?
- discord - Login error: Connection timeout HOT 2
- Https links appear in the wrong query HOT 1
- Embeds not showing
- Using CFLAGS and LDFLAGS on command line to find bitlbee includes and libs HOT 6
- Threads support HOT 3
- Backlog fetching blocks Discord websocket heartbeat, Bitlbee response to PING HOT 5
- Login in is broken with glib2 >2.68 HOT 11
- Failed to switch to websocket mode HOT 2
- token location described in README out of date HOT 3
- Status aliases broken - "/away DND - some text" works, "/away Busy - some text" does not HOT 4
- Will bitlbee-discord work with a big account? HOT 3
- No incoming messages HOT 7
- Provide way to manually request backlog HOT 3
- Seeing own messages after change to new usernames HOT 1
- joining a discord channel doesn't show anyone else messages HOT 1
- Crashes on discord_parse_message
- discord - Login error: Failed to switch to websocket mode (and 400 bad request from cloudflare) HOT 3
- Add support for turning custom stickers into URLs (e.g. larger custom emoji)
- All requests result in 403 errors in sessions after account is added
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitlbee-discord.