Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

Reply
 
Thread Tools Display Modes
  #1  
Old 10-15-2014, 07:59 AM
CoryWalker
Fire Beetle
 
Join Date: Oct 2014
Posts: 23
Default Lots of zlog, mlog references but not included in source

It appears that some of the logging libraries are not included in the main source repository. Specifically, zlog and mlog appear to be used frequently but prevents world and zone - respectively - to compile.

I found a couple of good candidates that might be what is being used:

HardySimpson/zlog
zschoche/mlog

Is this right?
Reply With Quote
  #2  
Old 10-15-2014, 02:50 PM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,742
Default

https://github.com/EQEmu/Server/blob...ommon/logsys.h
Reply With Quote
  #3  
Old 10-15-2014, 03:08 PM
CoryWalker
Fire Beetle
 
Join Date: Oct 2014
Posts: 23
Default

Thanks for pointing me in the right direction.

Do I just need to add a -DDISABLE_LOGSYS compiler switch to satisfy these references?
Reply With Quote
  #4  
Old 10-15-2014, 03:08 PM
demonstar55
Demi-God
 
Join Date: Apr 2008
Location: MA
Posts: 1,164
Default

Dude, just use cmake and make.
Reply With Quote
  #5  
Old 10-15-2014, 03:54 PM
CoryWalker
Fire Beetle
 
Join Date: Oct 2014
Posts: 23
Default

"cmake / make" doesn't work on FreeBSD systems readily.

The existing cmake build system included with eqemu doesn't know how to link zone propertly. All other programs such as shared_memory and world instantly crash because they are not linked correctly.

I'm trying to determine the cause of these issues and therefore must reconstruct the compilation steps.
Reply With Quote
  #6  
Old 10-15-2014, 04:24 PM
demonstar55
Demi-God
 
Join Date: Apr 2008
Location: MA
Posts: 1,164
Default

What are the cmake commands you're running?

Back when I got it to compile on FreeBSD (didn't actually do any runtime testing) I had to override CC and CXX like

Code:
CC=/path/to/gcc-whatever.version CXX=/path/to/g++-whatever.version cmake -G "Unix Makefiles" -i ..
the '..' because I was building in a subfolder.
Reply With Quote
  #7  
Old 10-15-2014, 05:33 PM
CoryWalker
Fire Beetle
 
Join Date: Oct 2014
Posts: 23
Default

I run "cmake ." I then change the CMakeCache.txt file to target the CC, CXX compilers I want to use. Then I run make.

Everything works up until the zone link attempt is made. Both shared_memory and world are linked by this point - but running either one of them causes segmentation faults - so there is something not compatible happening with FreeBSD.
Reply With Quote
  #8  
Old 10-15-2014, 05:39 PM
demonstar55
Demi-God
 
Join Date: Apr 2008
Location: MA
Posts: 1,164
Default

Quote:
Originally Posted by CoryWalker View Post
I run "cmake ." I then change the CMakeCache.txt file to target the CC, CXX compilers I want to use. Then I run make.

Everything works up until the zone link attempt is made. Both shared_memory and world are linked by this point - but running either one of them causes segmentation faults - so there is something not compatible happening with FreeBSD.
you need to set it in the env variables before you run cmake, like I posted. Just changing those probably isn't doing everything right.
Reply With Quote
  #9  
Old 10-16-2014, 10:04 AM
CoryWalker
Fire Beetle
 
Join Date: Oct 2014
Posts: 23
Default

You can - but do not need to - set the CC and CXX environment variables in order to get the compiler settings you want with cmake. Cmake creates a CMakeCache.txt file and then you can tailor it to your needs by editing the cache file. This is exactly how the cmake build system works.

I have verified that the compiler commands that I want to use actually are being used by using gmake's VERBOSE=1 switch - so a misconfiguration of cmake is most certainly not the problem here.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 06:38 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3