Skip to content

Instantly share code, notes, and snippets.

@sonOfRa
Created September 21, 2013 13:40
Show Gist options
  • Save sonOfRa/6650769 to your computer and use it in GitHub Desktop.
Save sonOfRa/6650769 to your computer and use it in GitHub Desktop.
./configure --host="i686-pc-mingw32" CFLAGS="-march=i686 -mtune=generic" --prefix=/usr/i686-pc-mingw32 --with-sysroot=/usr/i686-pc-mingw32
make
cd . && /bin/sh ./config.status libtoxcore.pc
config.status: creating libtoxcore.pc
make all-recursive
make[1]: Entering directory `/home/simon/repos/tox'
Making all in build
make[2]: Entering directory `/home/simon/repos/tox/build'
CC ../toxcore/libtoxcore_la-DHT.lo
CC ../toxcore/libtoxcore_la-network.lo
CC ../toxcore/libtoxcore_la-Lossless_UDP.lo
CC ../toxcore/libtoxcore_la-net_crypto.lo
CC ../toxcore/libtoxcore_la-friend_requests.lo
CC ../toxcore/libtoxcore_la-LAN_discovery.lo
CC ../toxcore/libtoxcore_la-Messenger.lo
CC ../toxcore/libtoxcore_la-ping.lo
CC ../toxcore/libtoxcore_la-tox.lo
CC ../toxcore/libtoxcore_la-util.lo
CC ../toxcore/libtoxcore_la-group_chats.lo
CCLD libtoxcore.la
libtool: link: warning: library `/usr/i686-pc-mingw32/lib/libsodium.la' was moved.
../toxcore/.libs/libtoxcore_la-network.o:network.c:(.text+0xbd8): undefined reference to `inet_ntop'
../toxcore/.libs/libtoxcore_la-network.o:network.c:(.text+0xc1b): undefined reference to `inet_ntop'
../toxcore/.libs/libtoxcore_la-network.o:network.c:(.text+0xce7): undefined reference to `inet_pton'
../toxcore/.libs/libtoxcore_la-network.o:network.c:(.text+0xd1f): undefined reference to `inet_pton'
collect2: error: ld returned 1 exit status
make[2]: *** [libtoxcore.la] Error 1
make[2]: Leaving directory `/home/simon/repos/tox/build'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/simon/repos/tox'
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment