Last active
September 24, 2020 19:20
-
-
Save Swyter/98074d2d42cd7f7c0e5f86ef619969d3 to your computer and use it in GitHub Desktop.
build-discord-rpc-linux-32-bits.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/discordapp/discord-rpc && cd discord-rpc/ | |
mkdir build && cd build/ | |
cmake -DCMAKE_CXX_FLAGS="-m32 -static-libstdc++ -static-libgcc -Wl,--hash-style=both -flto" -DCMAKE_C_FLAGS="-m32 -static-libstdc++ -static-libgcc -Wl,--hash-style=both -flto" -DBUILD_SHARED_LIBS=ON .. | |
ldd src/libdiscord-rpc.so | |
nm src/libdiscord-rpc.so | grep @@GLIBC | sort -t@ -k3,3 | |
strip -R --all src/libdiscord-rpc.so | |
-- | |
ldd src/libdiscord-rpc.so | |
linux-gate.so.1 (0xf7fa6000) | |
libpthread.so.0 => /usr/lib32/libpthread.so.0 (0xf7e70000) | |
libm.so.6 => /usr/lib32/libm.so.6 (0xf7da0000) | |
libc.so.6 => /usr/lib32/libc.so.6 (0xf7bc0000) | |
/usr/lib/ld-linux.so.2 (0xf7f78000) | |
du -h src/libdiscord-rpc.so | |
352K src/libdiscord-rpc.so | |
-- | |
make -n -i | |
cd /root/discord-rpc/osxbuild/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/discord-rpc.dir/link.txt --verbose= | |
osxcross: error: cannot find libc++ headers | |
osxcross: error: while detecting target | |
cd strace -f /usr/bin/cmake -E cmake_link_script CMakeFiles/discord-rpc.dir/link.txt --verbose= | |
> pid 11864] stat("/usr/local/osx-ndk-x86/bin/../SDK/MacOSX10.11.sdk/usr/include/c++/v1", 0x7ffca6e33450) = -1 ENOENT (No existe el fichero o el directorio) | |
Paste headers from https://releases.llvm.org/7.0.1/libcxx-7.0.1.src.tar.xz (include folder) into /usr/local/osx-ndk-x86/SDK/MacOSX10.11.sdk/usr/include/c++/v1 to fix the problem. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't have the libdiscord-rpc.so file in the src folder.
When I try to run this command:
ldd src/libdiscord-rpc.so
I get this error:No such file or directory
what am i doing wrong?