Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup #5

Open
volibear2 opened this issue Apr 8, 2018 · 2 comments
Open

setup #5

volibear2 opened this issue Apr 8, 2018 · 2 comments

Comments

@volibear2
Copy link

Hey,
I followed the setup_test.txt to install this core on my VM (Ubuntu) but i get stuck at compiling it.
The First error was:
CMake Error at CMakeLists.txt:87 (message): Could not find <sparsehash/dense_hash_map>.

so i installed (sudo apt-get libsparsehash-dev) the lib to get cmake working.
i hope that was correct.

Now i get (when doing make) the error:

[ 96%] Linking CXX executable mangosd ../game/libgame.a(Map.cpp.o): In function google::sparsehash_internal::sh_hashtable_settings<ObjectGuid, std::tr1::hash, unsigned long, 4>::hash(ObjectGuid const&) const': /usr/include/sparsehash/internal/hashtable-common.h:244: undefined reference tostd::tr1::hash::operator()(ObjectGuid) const' collect2: error: ld returned 1 exit status src/mangosd/CMakeFiles/mangosd.dir/build.make:244: recipe for target 'src/mangosd/mangosd' failed make[2]: *** [src/mangosd/mangosd] Error 1 CMakeFiles/Makefile2:930: recipe for target 'src/mangosd/CMakeFiles/mangosd.dir/all' failed make[1]: *** [src/mangosd/CMakeFiles/mangosd.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2

Any one got an solution for this?

@amaroc
Copy link

amaroc commented Jun 6, 2018

Same problem. Dear Shiro or anyone else can help us?

I tried on ubuntu 14.04 but there another problems, so i think he used ubuntu 16. There sparsehash files from 2014 year. On 14.04 from 2013, i will try replace them manualy. I have same problem and same error text. BTW: someone compare scriptdev2 - looks like its standart scripts without corecraft work?

@netherspite
Copy link

Append the src/game/ObjectGuid.h file with the following code:

namespace std
{
namespace tr1
{
template <>
struct hash<ObjectGuid>
{
    std::size_t operator()(const ObjectGuid& guid) const
    {
        return hash<uint64>()(guid.GetRawValue());
    }
};
}
}

It already contains similar code at the end, DO NOT remove it, just append this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants