GithubHelp home page GithubHelp logo

Build Error about bitlbee-discord HOT 10 CLOSED

Kays avatar Kays commented on July 19, 2024
Build Error

from bitlbee-discord.

Comments (10)

sm00th avatar sm00th commented on July 19, 2024

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.

sm00th avatar sm00th commented on July 19, 2024

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.

Kays avatar Kays commented on July 19, 2024

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.

sm00th avatar sm00th commented on July 19, 2024

Did you do the stuff from my firs comment? Is there a /usr/include/libwebsockets.h?

from bitlbee-discord.

Kays avatar Kays commented on July 19, 2024

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.

sm00th avatar sm00th commented on July 19, 2024

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.

sm00th avatar sm00th commented on July 19, 2024

Made libwebsockets changes in commit 2d12954, should compile fine with latest libwebsockets now.

from bitlbee-discord.

Kays avatar Kays commented on July 19, 2024

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.

Kays avatar Kays commented on July 19, 2024

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.

sm00th avatar sm00th commented on July 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.