Jump to content

[Mac OSX] Compiling Trouble. Undefined symbols


Recommended Posts

I have the same issue as you actually :D

dyld: Library not loaded: libtbb.dylib
 Referenced from: /usr/local/bin/./mangos-realmd
 Reason: image not found
Trace/BPT trap

Here is what I've done

//After git cloning, svn co, etc
autoreconf -if ..
../configure --prefix=/usr/local --datadir=/usr/local/share --sysconfdir=/usr/local/etc LIBS="-framework Carbon"

Then I opened build/dep/tbb/Makefile, changed

$(INSTALL) $(work_dir)/lib*.so* $(DESTDIR)$(libdir)

to

$(INSTALL) $(work_dir)/lib*.dyli* $(DESTDIR)$(libdir)

Then make, make install.

And then, ./mangos-realmd, and error!

Someone has an idea? :/

Link to comment
Share on other sites

Then I opened build/dep/tbb/Makefile, changed

$(INSTALL) $(work_dir)/lib*.so* $(DESTDIR)$(libdir)

to

$(INSTALL) $(work_dir)/lib*.dyli* $(DESTDIR)$(libdir)

After I made that change, I stopped getting the library error. Now I'm getting database update errors, which is another whole issue. One idea is to apply the mac patch after you do the git clone:

git clone git://github.com/mangos/mangos.git ~/source/mangos</pre>
~/source/mangos
curl [url]http://pastie.org/1129119.txt[/url] | git apply
git commit -am "Applied Mac patch."

for example, here's the entire installation process I did:

git clone git://github.com/mangos/mangos.git ~/source/mangos
~/source/mangos
curl [url]http://pastie.org/1129119.txt[/url] | git apply
git commit -am "Applied Mac patch."
svn co [url]https://scriptdev2.svn.sourceforge.net/svnroot/scriptdev2[/url] src/bindings/ScriptDev2
git apply src/bindings/scriptdev2/patches/MaNGOS-9519-ScriptDev2.patch
git commit -am "Using SD2."
mkdir -p build
cd build
autoreconf -if ..
../configure --prefix=/usr/local --datadir=/usr/local/share --sysconfdir=/usr/local/etc LIBS="-framework Carbon"
open ~/source/mangos/build/dep/tbb/Makefile

Make the .so to .dyli change

Then:

make -j 2
sudo make install
sudo cp /usr/local/etc/realmd.conf.dist /usr/local/etc/realmd.conf
sudo cp /usr/local/etc/mangosd.conf.dist /usr/local/etc/mangosd.conf

Link to comment
Share on other sites

Ok I finally managed to compile/install on OS X -_-

But now I have another error at startup :

Player::DeleteOldChars: Deleting all characters which have been deleted 30 days before...
WORLD: World initialized
SERVER STARTUP TIME: 0 minutes 11 seconds
../../../src/shared/Threading.cpp:231: Error: Assertion in setPriority failed: _ok == 0
Stack Trace:
Assertion failed: (STRINGIZE(_ok == 0) && 0), function setPriority, file ../../../src/shared/Threading.cpp, line 231.
<stack traces unsupported platform>Abort trap

Anyone had the same issue?

Edit : corrected, removed the MANGOS_ASSERT in Threading.cpp :)

Link to comment
Share on other sites

Ok I finally managed to compile/install on OS X -_-

But now I have another error at startup :

Player::DeleteOldChars: Deleting all characters which have been deleted 30 days before...
WORLD: World initialized
SERVER STARTUP TIME: 0 minutes 11 seconds
../../../src/shared/Threading.cpp:231: Error: Assertion in setPriority failed: _ok == 0
Stack Trace:
Assertion failed: (STRINGIZE(_ok == 0) && 0), function setPriority, file ../../../src/shared/Threading.cpp, line 231.
<stack traces unsupported platform>Abort trap

Anyone had the same issue?

Edit : correct, removed the MANGOS_ASSERT in Threading.cpp :)

I'm getting the same error now. Did you just manually edit Threading.cpp and re-compile?

/edit: works for me too. I just commented out line 231 and re-compiled

Link to comment
Share on other sites

Woohoo! I got the server configured, the maps and everything copied over, and the database installed. However, I'm seeing some bugs in the game when I go to play.

Everything seems to work fine on solid ground. However, once you start climbing buildings, things get a little hairy. For example, in the blood elf starting zone, I go to Falthrien Academy, which is a tower. When I climb up the tower, I target an Arcane Wraith. The Wraith turns to attack me, but falls through the floor down onto the ground below. Then I have to jump off the tower to kill and loot the wraith.

Any ideas? Is this a bug in mangos, or is it more likely that I've screwed something up? Thanks a lot!

/edit:

Use http://www.macupdate.com/info.php/id/34070/mmegx to extract maps and vmaps on a mac

Also, make sure you have permissions to edit the mangos configuration file. If it doesn't save your edits, you can't enable vmaps....

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use