Jump to content
TrinityCore

Compile or cmake problems


Joy
 Share

Recommended Posts

  • Replies 2.9k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Hello all, I am hoping some one can help me out. I have no idea what I am doing, and attempts to figure it out have just led to further confusion.

Here is what I am attempting to do. I am in the US Navy and will be spending months at a time at sea soon. I would like to set up a private server on my macbook pro 13" so that I can run the game with a lan or internet connection. I understand that this will make it so that I am the only player, I don't mind.

The problems I am having are due to my inexperience and lack of knowledge concerning the use of Terminal. I am not even sure I installed the Prerequisites properly.

I am following the directions here: http://www.trinitycore.info/How-to:Mac

I downloaded and successfully installed the Prereq's that have .dmg downloads (Xcode, Cmake, MySQL), but I'm not sure if GIT installed properly. Is there a way to check this?

I downloaded GNU Readline, but I'm pretty sure that didn't compile properly. Here is what it says to do:

Compile GNU Readline (no MacPorts)

  • Extract the source files somewhere in your computer (for example in (home dir)/Resources) and open the Terminal application.
  • In the Terminal, use these commands

cd WHERE/YOU/EXTRACTED/THE/FILES/readline-6.1

mkdir build

cd build

../configure --prefix=/opt/local

make -j2

sudo make install

Your library will be /opt/local/lib/libreadline.dylib and the header files will be present in /opt/local/include)

Which I adapt to :

cd /Users/joshuafarnworth/Desktop/Downloads/FromFirefox/readline

mkdir build

cd build

../configure --prefix=/opt/local

make -j2

sudo make install
And what I get when I do so:
Last login: Thu May 17 17:53:34 on ttys000

Joshua-Farnworths-MacBook-Pro:~ joshuafarnworth$ cd /Users/joshuafarnworth/Desktop/Downloads/FromFirefox/readline

Joshua-Farnworths-MacBook-Pro:readline joshuafarnworth$ mkdir build

mkdir: build: File exists

Joshua-Farnworths-MacBook-Pro:readline joshuafarnworth$ cd build

Joshua-Farnworths-MacBook-Pro:build joshuafarnworth$ ../configure --prefix=/opt/local

checking build system type... i386-apple-darwin10.8.0

checking host system type... i386-apple-darwin10.8.0


Beginning configuration for readline-6.2 for i386-apple-darwin10.8.0


checking whether make sets $(MAKE)... yes

checking for gcc... gcc

checking for C compiler default output file name... a.out

checking whether the C compiler works... yes

checking whether we are cross compiling... no

checking for suffix of executables...

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether gcc accepts -g... yes

checking for gcc option to accept ISO C89... none needed

checking how to run the C preprocessor... gcc -E

checking for grep that handles long lines and -e... /usr/bin/grep

checking for egrep... /usr/bin/grep -E

checking for ANSI C header files... rm: conftest.dSYM: is a directory

rm: conftest.dSYM: is a directory

yes

checking for sys/types.h... yes

checking for sys/stat.h... yes

checking for stdlib.h... yes

checking for string.h... yes

checking for memory.h... yes

checking for strings.h... yes

checking for inttypes.h... yes

checking for stdint.h... yes

checking for unistd.h... yes

checking minix/config.h usability... no

checking minix/config.h presence... no

checking for minix/config.h... no

checking whether it is safe to define __EXTENSIONS__... yes

checking whether gcc needs -traditional... no

checking for a BSD-compatible install... /usr/bin/install -c

checking for ar... ar

checking for ranlib... ranlib

checking for an ANSI C-conforming const... yes

checking for function prototypes... yes

checking whether char is unsigned... no

checking for working volatile... yes

checking return type of signal handlers... void

checking for size_t... yes

checking for ssize_t... yes

checking for ANSI C header files... (cached) yes

checking whether stat file-mode macros are broken... no

checking for dirent.h that defines DIR... yes

checking for library containing opendir... none required

checking for fcntl... yes

checking for kill... yes

checking for lstat... yes

checking for memmove... yes

checking for putenv... yes

checking for select... yes

checking for setenv... yes

checking for setlocale... yes

checking for strcasecmp... yes

checking for strpbrk... yes

checking for tcgetattr... yes

checking for vsnprintf... yes

checking for isascii... yes

checking for isxdigit... yes

checking for getpwent... yes

checking for getpwnam... yes

checking for getpwuid... yes

checking for working strcoll... yes

checking fcntl.h usability... yes

checking fcntl.h presence... yes

checking for fcntl.h... yes

checking for unistd.h... (cached) yes

checking for stdlib.h... (cached) yes

checking varargs.h usability... no

checking varargs.h presence... no

checking for varargs.h... no

checking stdarg.h usability... yes

checking stdarg.h presence... yes

checking for stdarg.h... yes

checking for string.h... (cached) yes

checking for strings.h... (cached) yes

checking limits.h usability... yes

checking limits.h presence... yes

checking for limits.h... yes

checking locale.h usability... yes

checking locale.h presence... yes

checking for locale.h... yes

checking pwd.h usability... yes

checking pwd.h presence... yes

checking for pwd.h... yes

checking for memory.h... (cached) yes

checking termcap.h usability... yes

checking termcap.h presence... yes

checking for termcap.h... yes

checking termios.h usability... yes

checking termios.h presence... yes

checking for termios.h... yes

checking termio.h usability... no

checking termio.h presence... no

checking for termio.h... no

checking sys/pte.h usability... no

checking sys/pte.h presence... no

checking for sys/pte.h... no

checking sys/stream.h usability... no

checking sys/stream.h presence... no

checking for sys/stream.h... no

checking sys/select.h usability... yes

checking sys/select.h presence... yes

checking for sys/select.h... yes

checking sys/file.h usability... yes

checking sys/file.h presence... yes

checking for sys/file.h... yes

checking for sys/ptem.h... no

checking for special C compiler options needed for large files... no

checking for _FILE_OFFSET_BITS value needed for large files... no

checking for type of signal functions... posix

checking if signal handlers must be reinstalled when invoked... no

checking for presence of POSIX-style sigsetjmp/siglongjmp... present

checking for lstat... yes

checking whether or not strcoll and strcmp differ... no

checking whether the ctype macros accept non-ascii characters... yes

checking whether getpw functions are declared in pwd.h... yes

checking whether termios.h defines TIOCGWINSZ... yes

checking for sig_atomic_t in signal.h... yes

checking whether signal handlers are of type void... yes

checking for TIOCSTAT in sys/ioctl.h... yes

checking for FIONREAD in sys/ioctl.h... yes

checking for speed_t in sys/types.h... no

checking for struct winsize in sys/ioctl.h and termios.h... sys/ioctl.h

checking for struct dirent.d_ino... yes

checking for struct dirent.d_fileno... yes

checking for tgetent... no

checking for tgetent in -ltermcap... yes

checking which library has the termcap functions... using libtermcap

checking wctype.h usability... yes

checking wctype.h presence... yes

checking for wctype.h... yes

checking wchar.h usability... yes

checking wchar.h presence... yes

checking for wchar.h... yes

checking langinfo.h usability... yes

checking langinfo.h presence... yes

checking for langinfo.h... yes

checking for mbrlen... yes

checking for mbscasecmp... no

checking for mbscmp... no

checking for mbsnrtowcs... yes

checking for mbsrtowcs... yes

checking for mbschr... no

checking for wcrtomb... yes

checking for wcscoll... yes

checking for wcsdup... no

checking for wcwidth... yes

checking for wctype... yes

checking for wcswidth... yes

checking whether mbrtowc and mbstate_t are properly declared... yes

checking for iswlower... yes

checking for iswupper... yes

checking for towlower... yes

checking for towupper... yes

checking for iswctype... yes

checking for nl_langinfo and CODESET... yes

checking for wchar_t in wchar.h... yes

checking for wctype_t in wctype.h... yes

checking for wint_t in wctype.h... yes

checking configuration for building shared libraries... supported

configure: creating ./config.status

config.status: creating Makefile

config.status: creating doc/Makefile

config.status: creating examples/Makefile

config.status: creating shlib/Makefile

config.status: creating config.h

config.status: config.h is unchanged

config.status: executing default commands

Joshua-Farnworths-MacBook-Pro:build joshuafarnworth$ make -j2

test -d shlib || mkdir shlib

( cd shlib ; make - --jobserver-fds=3,4 -j all )

make[1]: Nothing to be done for `all'.

Joshua-Farnworths-MacBook-Pro:build joshuafarnworth$ sudo make install

Password:

/bin/sh ../support/mkinstalldirs /opt/local/include \

		/opt/local/include/readline /opt/local/lib \

		/opt/local/share/info /opt/local/share/man/man3

for f in readline.h chardefs.h keymaps.h history.h tilde.h rlstdc.h rlconf.h rltypedefs.h; do \

		/usr/bin/install -c -m 644 ../$f /opt/local/include/readline ; \

	done

( if test -d doc ; then \

		cd doc && \

		make  infodir=/opt/local/share/info DESTDIR= install; \

	  fi )

/bin/sh ../../support/mkdirs /opt/local/share/info /opt/local/share/man/man3

if test -n "" ; then \

		/bin/sh ../../support/mkdirs  ; \

	fi

if test -f readline.info; then \

		/usr/bin/install -c -m 644 readline.info /opt/local/share/info/readline.info; \

	else \

		/usr/bin/install -c -m 644 ../../doc/readline.info /opt/local/share/info/readline.info; \

	fi

if test -f rluserman.info; then \

		/usr/bin/install -c -m 644 rluserman.info /opt/local/share/info/rluserman.info; \

	else \

		/usr/bin/install -c -m 644 ../../doc/rluserman.info /opt/local/share/info/rluserman.info; \

	fi

if test -f history.info; then \

		/usr/bin/install -c -m 644 history.info /opt/local/share/info/history.info; \

	else \

		/usr/bin/install -c -m 644 ../../doc/history.info /opt/local/share/info/history.info; \

	fi

if /bin/sh -c 'install-info --version' >/dev/null 2>&1; then \

		install-info --dir-file=/opt/local/share/info/dir \

			/opt/local/share/info/readline.info ; \

		install-info --dir-file=/opt/local/share/info/dir \

			/opt/local/share/info/history.info ; \

		install-info --dir-file=/opt/local/share/info/dir \

			/opt/local/share/info/rluserman.info ; \

	else true; fi

/usr/bin/install -c -m 644 ../../doc/readline.3 /opt/local/share/man/man3/readline.3

/usr/bin/install -c -m 644 ../../doc/history.3 /opt/local/share/man/man3/history.3

if test -n "" ; then \

		if test -f readline.html; then \

			/usr/bin/install -c -m 644 readline.html /readline.html; \

		else \

			/usr/bin/install -c -m 644 ../../doc/readline.html /readline.html; \

		fi ; \

		if test -f history.html; then \

			/usr/bin/install -c -m 644 history.html /history.html; \

		else \

			/usr/bin/install -c -m 644 ../../doc/history.html /history.html; \

		fi ; \

		if test -f rluserman.html; then \

			/usr/bin/install -c -m 644 rluserman.html /rluserman.html; \

		else \

			/usr/bin/install -c -m 644 ../../doc/rluserman.html /rluserman.html; \

		fi ; \

	fi

test -d shlib || mkdir shlib

( cd shlib ; make  all )

make[1]: Nothing to be done for `all'.

( cd examples ; make  DESTDIR= install )

/bin/sh ../../support/mkdirs /opt/local/share/readline

mv /opt/local/lib/libreadline.a /opt/local/lib/libreadline.old

/usr/bin/install -c -m 644 libreadline.a /opt/local/lib/libreadline.a

test -n "ranlib" && ranlib /opt/local/lib/libreadline.a

mv /opt/local/lib/libhistory.a /opt/local/lib/libhistory.old

/usr/bin/install -c -m 644 libhistory.a /opt/local/lib/libhistory.a

test -n "ranlib" && ranlib /opt/local/lib/libhistory.a

( cd shlib ; make  DESTDIR= install )

/bin/sh ../../support/mkdirs /opt/local/lib

/bin/sh ../../support/mkdirs /opt/local/bin

/bin/sh ../../support/shlib-install -O darwin10.8.0 -V apple -d /opt/local/lib -b /opt/local/bin -i "/usr/bin/install -c -m 644" libhistory.6.2.dylib

/bin/sh ../../support/shlib-install -O darwin10.8.0 -V apple -d /opt/local/lib -b /opt/local/bin -i "/usr/bin/install -c -m 644" libreadline.6.2.dylib

install: you may need to run ldconfig

Joshua-Farnworths-MacBook-Pro:build joshuafarnworth$
So... I have no idea how to run ldconfig. And attempted to follow the next step.
Compile ACE ACE is a little bit harder to compile, but you're fortunate, as I found the easy way just for you :- ) After trying several configurations, I found out that you need to compile it statically and not dynamically due to the Apple's different ld options. That's not a problem, as it works like a charm. Notes: if you're compiling for Leopard, substitute 10.6 with 10.5, and snowleopard with leopard.
  • Download the ACE library from the download page (under the section Latest Release, the package with ACE only), in my case ACE-5.8.0.zip
  • Extract the files somewhere
  • In Terminal (this will create a bash profile to compile the library):
cd WHERE/YOU/EXTRACTED/ACE/ACE_wrappers export ACE_ROOT=$(pwd) echo "export ACE_ROOT=$ACE_ROOT" >> bash_profile echo "export LD_LIBRARY_PATH=$ACE_ROOT/ace:$ACE_ROOT/lib" >> bash_profile echo "export DYLD_LIBRARY_PATH=$ACE_ROOT/ace:$ACE_ROOT/lib" >> bash_profile echo "export MACOSX_DEPLOYMENT_TARGET=10.6" >> bash_profile
Which I adapt to:
cd /Users/joshuafarnworth/Desktop/Downloads/FromFirefox/ACE/ACE_wrappers

export ACE_ROOT=$(pwd)

echo "export ACE_ROOT=$ACE_ROOT" >> bash_profile

echo "export LD_LIBRARY_PATH=$ACE_ROOT/ace:$ACE_ROOT/lib" >> bash_profile

echo "export DYLD_LIBRARY_PATH=$ACE_ROOT/ace:$ACE_ROOT/lib" >> bash_profile

echo "export MACOSX_DEPLOYMENT_TARGET=10.6" >> bash_profile
I think it's important to note that I'm not sure if I should do this in a new terminal window or the same one. I used a new one. Here's what I got back:
Last login: Thu May 17 18:56:59 on ttys000

Joshua-Farnworths-MacBook-Pro:~ joshuafarnworth$ cd /Users/joshuafarnworth/Desktop/Downloads/FromFirefox/ACE/ACE_wrappers

Joshua-Farnworths-MacBook-Pro:ACE_wrappers joshuafarnworth$ export ACE_ROOT=$(pwd)

Joshua-Farnworths-MacBook-Pro:ACE_wrappers joshuafarnworth$ echo "export ACE_ROOT=$ACE_ROOT" >> bash_profile

Joshua-Farnworths-MacBook-Pro:ACE_wrappers joshuafarnworth$ echo "export LD_LIBRARY_PATH=$ACE_ROOT/ace:$ACE_ROOT/lib" >> bash_profile

Joshua-Farnworths-MacBook-Pro:ACE_wrappers joshuafarnworth$ echo "export DYLD_LIBRARY_PATH=$ACE_ROOT/ace:$ACE_ROOT/lib" >> bash_profile

Joshua-Farnworths-MacBook-Pro:ACE_wrappers joshuafarnworth$ echo "export MACOSX_DEPLOYMENT_TARGET=10.6" >> bash_profile
It seems odd to me that this doesn't appear to have done anything. but it changed the end of my command line and the step continues on without changing headers, so I figured that meant to continue in the same terminal window.
  • Create the file ACE_wrappers/ace/config.h with this text:
#include "ace/config-macosx-snowleopard.h"
And this is where I am pretty sure something went wrong. Here's what came back:

Last login: Thu May 17 19:02:20 on ttys000

Joshua-Farnworths-MacBook-Pro:~ joshuafarnworth$ cd /Users/joshuafarnworth/Desktop/Downloads/FromFirefox/ACE/ACE_wrappers

Joshua-Farnworths-MacBook-Pro:ACE_wrappers joshuafarnworth$ export ACE_ROOT=$(pwd)

Joshua-Farnworths-MacBook-Pro:ACE_wrappers joshuafarnworth$ echo "export ACE_ROOT=$ACE_ROOT" >> bash_profile

Joshua-Farnworths-MacBook-Pro:ACE_wrappers joshuafarnworth$ echo "export LD_LIBRARY_PATH=$ACE_ROOT/ace:$ACE_ROOT/lib" >> bash_profile

Joshua-Farnworths-MacBook-Pro:ACE_wrappers joshuafarnworth$ echo "export DYLD_LIBRARY_PATH=$ACE_ROOT/ace:$ACE_ROOT/lib" >> bash_profile

Joshua-Farnworths-MacBook-Pro:ACE_wrappers joshuafarnworth$ echo "export MACOSX_DEPLOYMENT_TARGET=10.6" >> bash_profile #include "ace/config-macosx-snowleopard.h"

Joshua-Farnworths-MacBook-Pro:ACE_wrappers joshuafarnworth$


Again... maybe its my untrained eye.... but this seems to have done nothing. Is there anyway to check? Should it have done something? Because I'm not sure if it worked or not, I continue on. Next Step:
  • Create the file ACE_wrappers/include/makeinclude/platform_macros.GNU with this text:
debug = 1 shared_libs = 0 static_libs = 1 include ${ACE_ROOT}/include/makeinclude/platform_macosx_snowleopard.GNU INSTALL_PREFIX = /opt/local
I paste the code directly into Terminal and this comes out.

Joshua-Farnworths-MacBook-Pro:ACE_wrappers joshuafarnworth$ debug = 1

-bash: debug: command not found

Joshua-Farnworths-MacBook-Pro:ACE_wrappers joshuafarnworth$ shared_libs = 0

-bash: shared_libs: command not found

Joshua-Farnworths-MacBook-Pro:ACE_wrappers joshuafarnworth$ static_libs = 1

-bash: static_libs: command not found

Joshua-Farnworths-MacBook-Pro:ACE_wrappers joshuafarnworth$ include ${ACE_ROOT}/include/makeinclude/platform_macosx_snowleopard.GNU

-bash: include: command not found

Joshua-Farnworths-MacBook-Pro:ACE_wrappers joshuafarnworth$ INSTALL_PREFIX = /opt/local

-bash: INSTALL_PREFIX: command not found

Joshua-Farnworths-MacBook-Pro:ACE_wrappers joshuafarnworth$


Now I am sure that something went wrong...

So, Any help? Advice? An easier way to do this? I also have eMux.app installed, but that uses Trinity Core right? So I need to finish the Trinity Core install before I can use it right?

Link to comment
Share on other sites

Well, I've got TrinityCore running on my Mac either 10.6.8 or 10.7.3(which I've been using now).

First, Xcode matters. Xcode 3.x is best for 10.6 and Xcode 4.1 is best for 10.7, nothing else will work :)

Second, I installed git, readline, cmake through MacPorts. MacPorts would do all the things for you. (PS: If your Xcode if 4.1 and above, git will be installed by default, so just do with the other two)

Third, I compiled ACE directly from source, step by step as the wiki said.

Fourth, follow the wiki and finish the rest.

Create the file ACE_wrappers/include/makeinclude/platform_macros.GNU with this text:

note: what follows is not bash commands, you should create a file with name mentioned above, and the content should be:

 

debug = 1

shared_libs = 0

static_libs = 1

include ${ACE_ROOT}/include/makeinclude/platform_macosx_snowleopard.GNU

INSTALL_PREFIX = /opt/local

Link to comment
Share on other sites

I am not familiar with macports and can't figure out how to use it to install anything. I even downloaded porticus to see if a GUI would help... but it didn't.

In any case... I see my mistake was that I was trying to use the text as bash commands. To correct I have made the files to include the text, and placed them in the indicated directories. But now when I run the next instruction I end up with this....

Last login: Thu May 17 22:32:06 on ttys000

Joshua-Farnworths-MacBook-Pro:~ joshuafarnworth$

Joshua-Farnworths-MacBook-Pro:~ joshuafarnworth$ cd /Users/joshuafarnworth/Desktop/Downloads/FromFirefox/ACE/ACE_wrappers

Joshua-Farnworths-MacBook-Pro:ACE_wrappers joshuafarnworth$ export ACE_ROOT=$(pwd)

Joshua-Farnworths-MacBook-Pro:ACE_wrappers joshuafarnworth$ echo "export ACE_ROOT=$ACE_ROOT" >> bash_profile

Joshua-Farnworths-MacBook-Pro:ACE_wrappers joshuafarnworth$ echo "export LD_LIBRARY_PATH=$ACE_ROOT/ace:$ACE_ROOT/lib" >> bash_profile

Joshua-Farnworths-MacBook-Pro:ACE_wrappers joshuafarnworth$ echo "export DYLD_LIBRARY_PATH=$ACE_ROOT/ace:$ACE_ROOT/lib" >> bash_profile

Joshua-Farnworths-MacBook-Pro:ACE_wrappers joshuafarnworth$ echo "export MACOSX_DEPLOYMENT_TARGET=10.6" >> bash_profile

Joshua-Farnworths-MacBook-Pro:ACE_wrappers joshuafarnworth$ source bash_profile

Joshua-Farnworths-MacBook-Pro:ACE_wrappers joshuafarnworth$ cd ace

Joshua-Farnworths-MacBook-Pro:ace joshuafarnworth$ make -j2

/Users/joshuafarnworth/Desktop/Downloads/FromFirefox/ACE/ACE_wrappers/include/makeinclude/platform_macros.GNU:1: *** missing separator.  Stop.

make: *** [ACE] Error 2

make: *** Waiting for unfinished jobs....

/Users/joshuafarnworth/Desktop/Downloads/FromFirefox/ACE/ACE_wrappers/include/makeinclude/platform_macros.GNU:1: *** missing separator.  Stop.

make: *** [ACE_Qt4Reactor_moc] Error 2

Joshua-Farnworths-MacBook-Pro:ace joshuafarnworth$ sudo su

sh-3.2# cd ..

sh-3.2# source bash_profile

sh-3.2# cd ace

sh-3.2# make install

/Users/joshuafarnworth/Desktop/Downloads/FromFirefox/ACE/ACE_wrappers/include/makeinclude/platform_macros.GNU:1: *** missing separator.  Stop.

make: *** [install] Error 2

sh-3.2# exit

Link to comment
Share on other sites

Anyone?

It seems like this is the where the problem is,

Joshua-Farnworths-MacBook-Pro:ace joshuafarnworth$ make -j2

/Users/joshuafarnworth/Desktop/Downloads/FromFirefox/ACE/ACE_wrappers/include/makeinclude/platform_macros.GNU:1: *** missing separator. Stop.

make: *** [ACE] Error 2

make: *** Waiting for unfinished jobs....

/Users/joshuafarnworth/Desktop/Downloads/FromFirefox/ACE/ACE_wrappers/include/makeinclude/platform_macros.GNU:1: *** missing separator. Stop.

make: *** [ACE_Qt4Reactor_moc] Error 2

but I don't know how to fix it. My uncle is good with generic Unix knowledge, but he said I'm gonna need to talk to someone familiar with this process because he can't tell what's wrong.

Here is what I have as the text in the document ACE/ACE_wrappers/include/makeinclude/platform_macros.GNU

debug = 1

shared_libs = 0

static_libs = 1

include ${ACE_ROOT}/include/makeinclude/platform_macosx_snowleopard.GNU

INSTALL_PREFIX = /opt/local

Edited by etfarnworth
Link to comment
Share on other sites

Did a fresh new compile ...

TrinityCore rev. 2012-05-20 13:22:16 -0700 <69a4ac220904+> Win32

Compile went perfect, WorldServer loads fine ...

Just get two error messages and wondering ( I pray I didn't) ... did I miss an SQL update?

Here is the error lines ...

SmartAIMgr: EntryOrGuid 11455 using event<11> has invalid action type <0>, skipped.

SmartAIMgr: EntryOrGuid 11457 using event<10> has invalid action type <0>, skipped.

Link to comment
Share on other sites

Known error, will be fixed.

--- Canned message start<br /><br />It appears the issue in the original post was solved, so this thread shall be closed. Should you encounter any other difficulties, please open a new thread.<br /><br />--- Canned message end ---

Link to comment
Share on other sites

Hello, I am looking for someone to help me with compiling trinitycore into linux/Ubuntu.

I am new to linux, I have only been using it for a while.

If anyone could help me to set everything up, I can pay you with paypal.

PM me or reply to the thread!

Regards, Alertzz

Link to comment
Share on other sites

  • 3 weeks later...

I have a small server for test and experiments that have 1 Gb ram and 1 Gb swap.

When I try to compile the last trinity core I get this error:

[ 98%] Built target pch_Generate_worldserver

Linking CXX executable worldserver

collect2: ld terminated with signal 9 [Killed]

make[2]: *** [src/server/worldserver/worldserver] Error 1

make[1]: *** [src/server/worldserver/CMakeFiles/worldserver.dir/all] Error 2

make: *** [all] Error 2
In dmesg:
[ 4647.534122] Out of memory: Kill process 7016 (ld) score 921 or sacrifice child

[ 4647.534183] Killed process 7016 (ld) total-vm:1907404kB, anon-rss:902576kB, file-rss:24kB

[ 5186.478073] mysqld invoked oom-killer: gfp_mask=0x201da, order=0, oom_adj=0, oom_score_adj=0

The server is Ubuntu Server 12.04 LTS

gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)

GNU ld (GNU Binutils for Ubuntu) 2.22

How much memory I need for test server with 1-2 players?

Link to comment
Share on other sites

Depends entirely on how you configure your server. That hardware should work for what you want to do but if you're running out of memory you'll need to increase your swap or reduce the system memory usage by running less processes/applications or tweaking your configuration so stuff like MySQL uses less memory. Not sure if Ubuntu is too much of a hog for that little RAM though. Maybe. :)

  • Upvote 1
Link to comment
Share on other sites

Depends entirely on how you configure your server. That hardware should work for what you want to do but if you're running out of memory you'll need to increase your swap or reduce the system memory usage by running less processes/applications or tweaking your configuration so stuff like MySQL uses less memory. Not sure if Ubuntu is too much of a hog for that little RAM though. Maybe. :)

Thanks,

I will try to increase swap space. There is no other process on the machine. Only mysql server + ssh. (I exclude the OS processes).

I'll post result later.

Link to comment
Share on other sites

You can reduce MySQL memory usage if needed especially running a small server. For that matter you could disable it completely until after you compile the core. As cheap as RAM has become it's usually far easier to just add more memory. :)

Glad you got it working.

Link to comment
Share on other sites

  • 3 weeks later...

Hi all! How are you?

I'm having troubles to run worldserver.exe in windows XP, compiled in it with Visual Studio 2008 without any problem.

AuthServer run's without problems, but worlserver not :(.

If i debug, the crash is in MovementUtil.cpp, Line 31.

Crash files attached.

Thanks!!!

Gonzalo

EDIT1:

- If i compiled in Windows 7, it runs without problem.

Paste: 185yhubaeqxng

Archived_worldserver.exe_1-1_0-21-14.txt

Edited by gonzaloleon
Link to comment
Share on other sites

I seem to remember someone deciding it was a good idea to remove the old random number generator completely, and the new one requiring SSE2... because "They shouldn't be using such an old machine anyway" or something.

Link to comment
Share on other sites

  • Aokromes changed the title to Compile or cmake problems
  • Aokromes locked this topic
  • Carbenium unlocked this topic
  • Aokromes pinned and locked this topic
  • Aokromes featured and featured this topic
  • Aokromes pinned this topic
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.


×
×
  • Create New...