03-02-2014, 01:21 AM
Use Vector.Length.
AntiCheat
|
03-02-2014, 01:21 AM
Use Vector.Length.
Thanks given by: daniel0916
03-09-2014, 01:11 AM
My AntiCheat Source can't compiled on Linux.
Error: Code: Entities/libEntities.a(Player.cpp.o): In function `cPlayer::TossHeldItem(char)': Code: https://github.com/daniel0916/MCServer/tree/AntiCheat
03-09-2014, 02:29 AM
Looks like cFastDropChecker isn't included?
03-09-2014, 03:01 AM
But it is included.
#include "../AntiCheat/FastDropChecker.h"
03-09-2014, 03:03 AM
Is it added to the cmakelists.txt? (AFAIK that's where you need to add it, but ask tycho).
03-09-2014, 04:41 AM
Youve got a glob so it should be included. Have you tried rerunning cmake?
03-09-2014, 05:02 AM
(This post was last modified: 03-09-2014, 05:29 AM by daniel0916.)
(03-09-2014, 04:41 AM)worktycho Wrote: Youve got a glob so it should be included. Have you tried rerunning cmake? What do you mean with rerun? I'm using: Code: cmake -DCMAKE_BUILD_TYPE=RELEASE .. && make Should i redownload the code and then try to compile it? Edit: Redownload and compile make the same error.
03-09-2014, 07:49 AM
It's a new folder, would that still be included in the glob?
I can't see anything wrong. Might need to have a play with it tomorrow.
@bearbin He's added his folder to the folders list and added a CMakelist to the directory so it should all be set up. Got It now. The problem is that you haven't added a library dependency between AntiCheat and Entities. I set the system up to compile each folder as a library to reduce link times. And Entities is being linked before anticheat so its missing relocations. To fix this you need to move AntiCheat before Entities in the folders list then add Code: target_link_libraries(Entities AntiCheat) Thanks given by: daniel0916
03-09-2014, 11:01 PM
Thanks for your help . Now it's working.
https://github.com/daniel0916/MCServer/c...761d9107ca |
« Next Oldest | Next Newest »
|