Giter Site home page Giter Site logo

mellowagain / rpc-wine Goto Github PK

View Code? Open in Web Editor NEW
115.0 5.0 5.0 46 KB

discord-rpc.dll implementation for Wine allowing your Wine games to interact with your native Discord instance

License: MIT License

CMake 2.40% Python 0.96% C++ 86.25% Shell 10.39%
wine discord-rpc discord c cpp hacktoberfest

rpc-wine's Issues

Fortnite crashes when the dll is loaded

Shortly after starting, fortnite loads discord-rpc.dll, and subsequently fails with a EXCEPTION_ACCESS_VIOLATION. This does not occur when the bundled native dll is loaded. If you need more information (WINEDEBUG=+seh or something), please tell me.

Aur does not compile

Like the title says. I think some of the libraries are to new so it is complaining. If I can get around to it I may open a pr but I have very little experience with C++ and none whatsoever with cmake.

Scanning the source directories...
Generating project files...
.
Detected Wine failing to add 32-bit flags, fixing...
wineg++ -c -march=native -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -m32 -I. -o common/rpc_register.o common/rpc_register.cpp
wineg++ -c -march=native -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -m32 -I. -o connections/connection.o connections/connection.cpp
wineg++ -c -march=native -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -m32 -I. -o connections/io_thread.o connections/io_thread.cpp
wineg++ -c -march=native -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -m32 -I. -o connections/rpc_connection.o connections/rpc_connection.cpp
wineg++ -c -march=native -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -m32 -I. -o rpc_wine.o rpc_wine.cpp
wineg++ -c -march=native -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -m32 -I. -o serialization/allocators.o serialization/allocators.cpp
wineg++ -c -march=native -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -m32 -I. -o serialization/serialization.o serialization/serialization.cpp
wineg++ -c -march=native -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -m32 -I. -o serialization/writers.o serialization/writers.cpp
wineg++ -c -march=native -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -m32 -I. -o utils/backoff.o utils/backoff.cpp
wineg++ -c -march=native -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -m32 -I. -o utils/utils.o utils/utils.cpp
wineg++ -shared discord_rpc.spec -m32 -o discord_rpc.dll.so common/rpc_register.o connections/connection.o connections/io_thread.o connections/rpc_connection.o rpc_wine.o serialization/allocators.o serialization/serialization.o serialization/writers.o utils/backoff.o utils/utils.o -lpthread -lodbc32 -lole32 -loleaut32 -lwinspool -lodbccp32 -luuid
/usr/bin/ld: cannot find -lodbc32: No such file or directory
/usr/bin/ld: cannot find -lole32: No such file or directory
/usr/bin/ld: cannot find -loleaut32: No such file or directory
/usr/bin/ld: cannot find -lwinspool: No such file or directory
/usr/bin/ld: cannot find -lodbccp32: No such file or directory
/usr/bin/ld: skipping incompatible /usr/lib/libuuid.so when searching for -luuid
/usr/bin/ld: cannot find -ladvapi32: No such file or directory
/usr/bin/ld: cannot find -luser32: No such file or directory
/usr/bin/ld: cannot find -lwinecrt0: No such file or directory
/usr/bin/ld: cannot find -lkernel32: No such file or directory
/usr/bin/ld: cannot find -lntdll: No such file or directory
/usr/bin/ld: skipping incompatible /usr/lib/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/libstdc++.a when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
collect2: error: ld returned 1 exit status
winegcc: /usr/bin/g++ failed
make: *** [Makefile:123: discord_rpc.dll.so] Error 2

AUR package

This isn't really an issue, I just wanted to tell you that I've created an AUR package for this. It's called discord-rpc-wine-git and I've also tested it on osu!. If you want, you can include it in your README :)
Thanks a lot for the library by the way :)

Error when compiling for mac

rpc-wine/src/serialization/writers.cc:42:24: error: no member named 'to_string' in namespace 'std'
    writer.String(std::to_string(nonce).c_str());

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.