Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Linux Servers

Support::Linux Servers Support forum for Linux EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 03-03-2013, 06:28 PM
addingice
Sarnak
 
Join Date: Jan 2013
Location: United States
Posts: 33
Default Trying to compile with Code::Blocks

Finally got a chance to setup a compile environment and work on this.

I had issues trying to get cmake to work for me on windows with visual studio 2010 (thousands and thousands of errors...um fuck that). I'm a linux guy anyways so I figured I would try things out in linux first instead.

So I switch over to my main environment, get the dependencies and ran cmake. Everything seems fine, great!

So I jump into Code::Blocks and compile and I get to about 11% compiled when I start seeing some warnings and finally an error

Code:
||=== EQEmu, all ===|
/Source/common/EmuTCPServer.h|23|warning: access declarations are deprecated in favour of using-declarations; suggestion: add the ‘using’ keyword [-Wdeprecated]|
/Source/common/EmuTCPServer.h|23|warning: access declarations are deprecated in favour of using-declarations; suggestion: add the ‘using’ keyword [-Wdeprecated]|
/Source/common/ipc_mutex.cpp||In destructor ‘EQEmu::IPCMutex::~IPCMutex()’:|
/Source/common/ipc_mutex.cpp|78|error: ‘close’ was not declared in this scope|
||=== Build finished: 1 errors, 2 warnings ===|
I'm not worried about the warnings at the moment, but the error is driving me nuts. I've scoured through and the error seems to be correct, close doesn't appear to be defined here. Surely someone else has compiled on linux and knows what I'm doing wrong here.
Reply With Quote
  #2  
Old 03-03-2013, 06:30 PM
Zamthos
Discordant
 
Join Date: Jan 2013
Posts: 284
Default

Ignore me, didn't realize it was about Linux.
Reply With Quote
  #3  
Old 03-03-2013, 06:32 PM
addingice
Sarnak
 
Join Date: Jan 2013
Location: United States
Posts: 33
Default

Quote:
#include "ipc_mutex.h"
#ifdef _WINDOWS
#include <Windows.h>
#else
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#endif
#include "types.h"
#include "eqemu_exception.h"
adding unistd.h seemed to have fixed it >.< seems like an odd problem though.
Reply With Quote
  #4  
Old 03-03-2013, 06:39 PM
addingice
Sarnak
 
Join Date: Jan 2013
Location: United States
Posts: 33
Default

more compile problems further in. Once i get all these figured out i'll make a pull request so we can get this compiling on linux as well =-P
Reply With Quote
  #5  
Old 03-03-2013, 07:03 PM
demonstar55
Demi-God
 
Join Date: Apr 2008
Location: MA
Posts: 1,165
Default

http://www.eqemulator.net/wiki/wikka...CMake#buildgcc
Reply With Quote
  #6  
Old 03-03-2013, 07:13 PM
addingice
Sarnak
 
Join Date: Jan 2013
Location: United States
Posts: 33
Default

yup demon, looks like i forgot the crypto dependencies. I got those fixed. Going back and checking to see if the problem was also what was causing issues with the ipc_mutex.cpp file. I'm doubting it though.
Reply With Quote
  #7  
Old 03-03-2013, 07:14 PM
addingice
Sarnak
 
Join Date: Jan 2013
Location: United States
Posts: 33
Default

yup. seems unistd.h is required for compile, it wasn't a dependencies issue.
Reply With Quote
  #8  
Old 03-04-2013, 02:05 PM
KLS
Administrator
 
Join Date: Sep 2006
Posts: 1,348
Default

Not sure who moved this, but this is clearly a development problem not a support problem.
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 04:36 PM.


 

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