Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.tw/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2018-12-28 00:00:00Z and 2018-12-29 00:00:00Z
Avatar
Do you guys code on windows?
11:13
GWfroggyMonkaChrist
Avatar
So on which OS ? 😅
11:24
debian
11:24
9
11:25
but thats just me
Avatar
yea its simplier than windows
Avatar
I had the "pleasure" of coding on windows couple weeks ago. Your best bet is to avoid msvc and use mingw for C/C++
11:35
And use msys for everything, windows cmd is just insane
Avatar
yeah 😂
Avatar
Hi, how can I create the DMG-file for DDNet?
Avatar
make package_default
13:51
This template specifically for IT companies Berbid server that is turned on and translated. Any copying of it is religiously forbidden
ha
Avatar
@tyurderi Here's how we build the official releases: https://github.com/ddnet/ddnet-scripts/blob/master/ddnet-release.sh#L47
The magic scripts that make DDNet run. Contribute to ddnet/ddnet-scripts development by creating an account on GitHub.
Avatar
@deen which is the osxcross git repository?
Avatar
https://github.com/tpoechtrager/osxcross/ But it's only required to build OSX release from Linux
OS X cross toolchain for Linux, *BSD and Windows (Cygwin) - tpoechtrager/osxcross
14:58
Works fine, thank you :)
Avatar
[ddnet/ddnet] New branch created: borderless
16:29
608683b Disable borderless on Mac - def-
16:30
aa7e6ff Disable borderless on Mac (fixes #1413) - def-
16:30
Anyone got a bug number or knows why this doesn't work in SDL2 right now? Or are we doing something wrong?
Avatar
Hey! I cannot download release. This link: https://ddnet.tw/downloads/DDNet-11.6.1-osx.dmg seems to be broken.
Avatar
How can I build a DDNet-debug release for better debugging?
16:52
:)
Avatar
Have a look in ddnet-script repo
16:53
there's a script ddnet-release or something like that
Avatar
@Deleted User fixed, forgot to upload 😄
Avatar
Oh, thank you
16:55
Works fine
Avatar
@tyurderi cmake -DCMAKE_BUILD_TYPE=Debug and then make
Avatar
thank you
Avatar
same as with every cmake project btw
Avatar
im not that familiar with cmake yet :)
Avatar
There's also RelWithDebInfo if Debug is too slow for you
Avatar
How to properly start the DDNet-debug executable? I mean, is there now a difference?
Avatar
nope, same way
16:58
you're supposed to have two different build directories for Release and Debug
16:58
so that you can keep doing incremental builds and know where you are
Avatar
ah, sure
17:01
Hmm, now randomly I get this error /usr/local/include/opus/opusfile.h:109:11: fatal error: 'ogg/ogg.h' file not found
Avatar
I guess you have /usr/local/include/ogg/ogg.h?
Avatar
Yep, it does exist
Avatar
strange, release build works?
Avatar
Neither now
17:03
I did make clean ofc
17:03
:c
Avatar
post the clean cmake build output on gist or pastebin
Avatar
ok, wait
Avatar
ogg found, what's the compile command that fails?
Avatar
[ 57%] Building CXX object CMakeFiles/DDNet.dir/src/engine/client/sound.cpp.o In file included from /Users/tm-rm/dev/cpp/ddnet/src/engine/client/sound.cpp:17: /usr/local/include/opus/opusfile.h:109:11: fatal error: 'ogg/ogg.h' file not found # include <ogg/ogg.h> ^~~~~~~~~~~ 1 error generated. make[3]: *** [CMakeFiles/DDNet.dir/src/engine/client/sound.cpp.o] Error 1 make[2]: *** [CMakeFiles/DDNet.dir/all] Error 2 make[1]: *** [CMakeFiles/DDNet.dir/rule] Error 2 make: *** [DDNet] Error 2
Avatar
as an easy workaround you can use -DPREFER_BUNDLED_LIBS=ON in cmake
17:07
or add VERBOSE=1 to the make
17:08
and check what the exact command is and what's missing
Avatar
the "easy workaround" doesn't work here
Avatar
There should be a -I/usr/local/include in the command
Avatar
Have you tried removing the entire build directory to clean it?
Avatar
Yup, actually its a clean "build-debug" directory
Avatar
hm, actually locally I also don't get the bundled ogg/opus. need to look into that later
17:10
VERBOSE=1 then
Avatar
Ok, cleaned the directory again now it worked
Avatar
seems like the workaround works
17:13
Ever had an error like this? $ ./DDNet dyld: Symbol not found: __ZTI11IGameClient Referenced from: /Users/tm-rm/dev/cpp/ddnet/build-debug/./DDNet Expected in: flat namespace in /Users/tm-rm/dev/cpp/ddnet/build-debug/./DDNet Abort trap: 6
Avatar
seems like a linker error
17:14
never used mac but dyld looks like dynamic linker or something
17:16
It only appears when adding new methods in gameclient.h and additionally in client.h
Avatar
destructor of IGameClient missing I'd guess
17:16
try implementing it
17:18
c++filt "_ZTI11IGameClient" -> typeinfo for IGameClient
17:18
IGameClient is supposed to be an interface, not have actual function definitions
17:19
add the pure virtual function in IGameClient and then overload it in CGameClient and define it there
Avatar
I've added two new function definitions in IGameClient, defined it the same way in CGameClient (gameclient.h) and define their functionality in gameclient.cpp like the other methods too.
17:22
I dunno, found a difference
17:23
Long time ago I worked in C++
Avatar
DDNet server ports should be TCP or UDP?
Avatar
udp
Avatar
@tyurderi show the full source code I guess, then someone could help
Avatar
@deen yet its working :) but I got a nother linking issue... I guess I like bam more than make
Avatar
oh ehm
22:12
characters aren't "snapped" when you're writing
Avatar
snapped?
Avatar
yeah
22:15
== you can't see them
22:16
ok I discovered the problem
22:16
xd
22:16
seems to be about NetworkClip
Avatar
aaaaaaaaaaaaah ok
Avatar
huh never noticed that
Avatar
bcdec94 Update view target when spectating with chat open - def-
Avatar
@Deleted User there you go ^
Avatar
hoo 😄
Exported 105 message(s)