Compile or cmake problems

Hmm seemed like it didnt work on Windows 7 64, But i just installed Windows XP 32bit and now it worked:D

yay /emoticons/default_smile.png

Hello,

If the area is wrong please move.

I had an error when compiling.

Here is the compile excerpt:

[CODE]root@myserver:/home/trinitycore/build# make -j 4 && make install

Scanning dependencies of target jemalloc

Scanning dependencies of target g3dlib

Scanning dependencies of target gsoap

Scanning dependencies of target revision.h

– WARNING - No revision-information found

[ 0%] Built target revision.h

[ 0%] Building CXX object dep/gsoap/CMakeFiles/gsoap.dir/soapC.cpp.o

Scanning dependencies of target shared_pch_dephelp

[ 0%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/arena.c.o

[ 0%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/AABox.cpp.o

[ 1%] Building CXX object src/server/shared/CMakeFiles/shared_pch_dephelp.dir/shared_pch_dephelp.cxx.o

[ 1%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Any.cpp.o

[ 1%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/base.c.o

[ 1%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/chunk.c.o

Linking CXX static library libshared_pch_dephelp.a

[ 1%] Built target shared_pch_dephelp

[ 1%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/BinaryFormat.cpp.o

[ 1%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/chunk_dss.c.o

[ 1%] Building CXX object dep/gsoap/CMakeFiles/gsoap.dir/soapServer.cpp.o

[ 1%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/chunk_mmap.c.o

[ 2%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/BinaryInput.cpp.o

[ 2%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/chunk_swap.c.o

[ 2%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/ckh.c.o

[ 3%] Building CXX object dep/gsoap/CMakeFiles/gsoap.dir/stdsoap2.cpp.o

[ 3%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/ctl.c.o

[ 4%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/extent.c.o

[ 4%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/hash.c.o

[ 4%] Building C object dep/jemalloc/CMakeFiles/jemalloc.dir/src/huge.c.o

/home/trinitycore/trinitycore/dep/jemalloc/src/huge.c: In function ‘huge_ralloc’:

/home/trinitycore/trinitycore/dep/jemalloc/src/huge.c:235: error: ‘MREMAP_FIXED’ undeclared (first use in this function)

/home/trinitycore/trinitycore/dep/jemalloc/src/huge.c:235: error: (Each undeclared identifier is reported only once

/home/trinitycore/trinitycore/dep/jemalloc/src/huge.c:235: error: for each function it appears in.)

/home/trinitycore/trinitycore/dep/jemalloc/src/huge.c:236: error: too many arguments to function ‘mremap’

make[2]: *** [dep/jemalloc/CMakeFiles/jemalloc.dir/src/huge.c.o] Error 1

make[1]: *** [dep/jemalloc/CMakeFiles/jemalloc.dir/all] Error 2

make[1]: *** Waiting for unfinished jobs…

[ 4%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/BinaryOutput.cpp.o

[ 4%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Box.cpp.o

[ 4%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Capsule.cpp.o

[ 4%] [ 4%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/CollisionDetection.cpp.o

Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/CoordinateFrame.cpp.o

[ 4%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Crypto.cpp.o

[ 4%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Cylinder.cpp.o

[ 5%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/debugAssert.cpp.o

[ 5%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/FileSystem.cpp.o

[ 5%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/fileutils.cpp.o

[ 5%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/format.cpp.o

[ 5%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/g3dfnmatch.cpp.o

[ 5%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/g3dmath.cpp.o

[ 5%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Line.cpp.o

[ 5%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/LineSegment.cpp.o

[ 5%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Log.cpp.o

[ 6%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Matrix3.cpp.o

[ 6%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Matrix4.cpp.o

Linking CXX static library libgsoap.a

[ 6%] Built target gsoap

[ 6%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/MemoryManager.cpp.o

[ 6%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/PhysicsFrame.cpp.o

[ 6%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Plane.cpp.o

[ 6%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/prompt.cpp.o

[ 6%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Quat.cpp.o

[ 6%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Random.cpp.o

[ 7%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Ray.cpp.o

[ 7%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/ReferenceCount.cpp.o

[ 7%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/RegistryUtil.cpp.o

[ 7%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Sphere.cpp.o

[ 7%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/stringutils.cpp.o

[ 7%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/System.cpp.o

[ 7%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/TextInput.cpp.o

[ 7%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/TextOutput.cpp.o

[ 7%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Triangle.cpp.o

[ 8%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/uint128.cpp.o

[ 8%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/UprightFrame.cpp.o

[ 8%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Vector2.cpp.o

[ 8%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Vector3.cpp.o

[ 8%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Vector4.cpp.o

Linking CXX static library libg3dlib.a

[ 8%] Built target g3dlib

make: *** [all] Error 2[/CODE]

Please help me fast.

Greets,

BabylonHD

The same error occurs in "jemalloc"if I score in the "make"rather than “make-j 4” compile.

Hi

Build environment?(what version of linux)

Was cmake successful?

Hi,

i have a Linux Debian 4.0 Plesk 8.4 64 Bit vServer machine…

cmake was successful.

This cmake Code i have use:

cmake …/TrinityCore -DPREFIX=/home/TrinityCore/build

in the build directory.

From what I can read on the web it seems like your glibc version is too old.

http://manpages.courier-mta.org/htmlman2/mremap.2.html

Debian Etch comes standard with libc : libc6 2.2.3

Try updating. As far as I can see that in itself will be a problem. Repo no longer available @ http://ftp.debian.org/dists/

I have a good manual, how can I upgrade my system to Debian 5.0, but my server is not designed or the hardware does not meet the minimum standard of Debian Lenny.

What should I do exactly? I am familiar with the Linux system does not look so good and now I have zero idea what to do.

Running a console only server does not require much. It depends on the amount of players connecting to it.

As for upgrade. What are the specifications?( CPU, RAM, HDD, Optical Drive type)

This looks good. http://www.go2linux.org/upgrading-debian

It does not rely on using etch repo. The system should have internet access to do it.

My Hostsystem has the Virtuozzo-Version "Virtuozzo release 3.0.0 ". The Hostsystem need “Virtuozzo 4” for Debian 5.0. Server4You is a bad Host.

I asked the support. Actually, should the host system a long time “Virtuozzo 4” However there are problems. I’ve just created a ticket and ask it how long it takes until about Debian 5.0 is possible. I hope it takes not so long.

All the best of luck then. I hope they can help you soon.

Server4You is something totally real slow. For the first 5.0 Offers you have taken nearly 5 months after 5.0 came out.

Thank you for your hope. I hope that Server4You help me in any way.

Is it possible to somehow fiddle to the core so that it goes well with 4.0? At that time it went it.

Is my Google Translator English O.K?

After 2 hours, not 1 response from Server4You -.- I hate this company. It upsets me Beastly.

And TrinityCore Developer can do nothing ?

Not too long ago, it was yet too.

I think your problem is not server4you, your problem is that you use vServer.

The server i have worked for is from server4you but a root server, there where no problem to upgrade form debian etch to debian lenny.

BTW we are going more and more offtopic.

Maxx,

I have just learned from Server4You that it can be updated in theory already on Debian 5.0. Even if you virtouzzo 3 The problem with the whole thing is then in Plesk. Plesk requires more than 8.4 virtouzzo 4 and the host system from my virtual Server has virtouzzo 3.

Your root server has probably already virtouzzo 4 and, therefore, could you Easy on Debian Lenny.

lol,You should have made a build directory outside of the source.

Like this:

~/TrinityCore - source

~/build - build directory

~/server - server directory (Note: this is made during make)

cd ~/build
cmake ../TrinityCore/ DPREFIX=/home/<username>/server
make -j 4
sudo make install

Ähm… Ich make all as root. I make me later a User for Trinity and change the rules from the directorys…

Do you want to make a Tutorial where all make as root ? Then i can fix my German Tutorial.

I need tomorrow a running TrinityCore Server.

adduser <username>
visudo

Find:

[CODE]# User privilege specification

root ALL=(ALL) ALL[/CODE]Add:

[CODE]# User privilege specification

root ALL=(ALL) ALL

ALL=(ALL) ALL

[/CODE]

reboot

After reconnected:

su <username>Read me!

OK besides the fact of being lazy, and not knowing what you are doing, why are you using Plesk in the first place? it can all be done manually, and then you don’t have to pay 20-50 per 30-100 user license per month. Second, if you are still on debian 4 it is time to upgrade. I don’t have any of these problems on debian 5 64bit with or without plesk.

I would guess it isn’t server4you it is most likely a pebcac error.

At least in this post you are providing a little more information… unlike your last.

Hi everyone …

i just download trinity core in https://github.com/TrinityCore/TrinityCore.git… when compile using cmake everything look fine nothing erorr message found. But when i try to run the trinitycore.sln file i found an erorr like this …

[CODE]17>------ Build started: Project: worldserver, Configuration: Release Win32 ------

17>Compiling…

17>worldPCH.cpp

17>Compiling…

17>WheatyExceptionReport.cpp

17>Master.cpp

17>Main.cpp

17>WorldRunnable.cpp

17>TCSoap.cpp

17>RASocket.cpp

17>RARunnable.cpp

17>CliRunnable.cpp

17>Compiling resources…

17>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1

17>Copyright (C) Microsoft Corporation. All rights reserved.

17>Performing Pre-Link Event…

17>Linking…

17>LINK : fatal error LNK1181: cannot open input file ‘…\game\Release\game.lib’

17>Build log was saved at “file://d:\Game\TBuild\src\server\worldserver\worldserver.dir\Release\BuildLog.htm”

17>worldserver - 1 error(s), 0 warning(s)

18>------ Skipped Build: Project: INSTALL, Configuration: Release Win32 ------

18>Project not selected to build for this solution configuration

========== Build: 15 succeeded, 2 failed, 2 up-to-date, 1 skipped ==========

[/CODE]

it says “cannot open input file '…\game\Release\game.lib” …where should i find this file (game.lib) Pls help me … i’ve been trying to compile this core day and have no luck…

thanks and sorry for bad english grammar

Okaii,

LordPsyan ?

Do you have read ALL of the posts in this topic?