ArcEmu: Snow Leopard Compiling Issue - ArcEmu

Jump to content

Toggle shoutbox Lastest Announcements

dfighter  : (07 December 2014 - 12:06 PM) Arcemu is in hibernation mode, please read http://arcemu.org/fo...showtopic=26903
dfighter  : (01 January 2013 - 05:56 PM) Arcemu wishes you all a happy new year!
Hasbro  : (12 September 2012 - 10:01 AM) Please excuse our outage from the web! Our web host had a major malfunction!
dfighter  : (01 September 2012 - 04:05 PM) Since the spam bots just don't want to stop, I've enabled admin verification when registering.
dfighter  : (23 January 2012 - 09:56 PM) Please note that from now on you will need to confirm your email on the wiki in order to edit it!
Hasbro  : (31 December 2011 - 12:50 PM) Happy New Years all!
Navid  : (26 December 2011 - 04:09 AM) Merry Christmas !!!!!! Happy holidays all :)
WAmadeus  : (24 December 2011 - 03:54 PM) Merry Christmas to all!
dfighter  : (24 December 2011 - 11:05 AM) The Arcemu team wishes y'all a Merry Christmukkah!
Hasbro  : (05 October 2011 - 12:53 PM) Looking for web designers for upcoming web related project. If you're interested in designing user interfaces contact me
dfighter  : (02 September 2011 - 03:47 PM) So who here wants vehicles in Arcemu? :P http://arcemu.org/fo...showtopic=25440
Hasbro  : (14 August 2011 - 03:25 PM) Join us on irc, grab an irc client and connect to irc.freenode.net join channel #arcemu /server irc.freenode.net:6667 /join #arcemu
jackpoz  : (03 August 2011 - 05:33 AM) to all Lua Engine (old one) users: please check http://arcemu.org/fo...showtopic=25274
Hasbro  : (20 May 2011 - 05:27 PM) Looking for people experienced with CMake configuration and setup! Contact me asap
Hasbro  : (15 May 2011 - 05:03 PM) ArcEmu is recruiting C++ programmers, contact Hasbro if interested.
paroxysm  : (03 May 2011 - 06:26 PM) Updated luabridge gossip example to describe the whole gossip creation process rather than just how to create menu. Gossip tutorial
paroxysm  : (23 April 2011 - 11:35 AM) Lua writers can refer to the Luabridge Tutorials section in the Wiki to learn how to write gossip code correctly.
Hasbro  : (20 April 2011 - 05:22 PM) Thank you for your continuous contribution of bug reports, we are working on them.
Hasbro  : (17 April 2011 - 03:20 AM) Please consider donating to support our bills. Donations can be sent using PayPal to donations@arcemu.org - Thank you for your support.
paroxysm  : (10 April 2011 - 12:43 AM) Refer to the Luabridge Tutorials section in the Wiki to learn the new syntax of luabridge.
Resize Shouts Area

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Snow Leopard Compiling Issue

#1 User is offline   xspence 

  • Member
  • Pip
  • Group: Members
  • Posts: 13
  • Joined: 05-May 09
  • Gender:Male
  • Location:California, USA
  • Interests:Music, Recording, Digital Music, Coding, Web Design, Mac/Unix development

Posted 03 April 2011 - 02:45 PM

Hi. I have been using Arcemu for quite a few years now, but recently made a switch to MaNGOS. I ended up not liking the emulator due to the lack of LUA scripting and usability. Just yesterday I decided to recompile Arcemu 3.3.5a for Mac OS X Snow Leopard. I'm running 64 bit version of 10.6.7.

I encountered a few errors. I tried both gcc and cmake.

GCC
When compiling with GCC, I ran into an error where the directory /trunk/src/collision/ didn't have a Makefile.in file.

Xspence:~ xspence$ cd trunk
Xspence:trunk xspence$  autoreconf -f -i 
glibtoolize: putting auxiliary files in `.'.
glibtoolize: copying file `./ltmain.sh'
glibtoolize: putting macros in `m4'.
glibtoolize: copying file `m4/libtool.m4'
glibtoolize: copying file `m4/ltoptions.m4'
glibtoolize: copying file `m4/ltsugar.m4'
glibtoolize: copying file `m4/ltversion.m4'
glibtoolize: copying file `m4/lt~obsolete.m4'
glibtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
glibtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
configure.ac:23: installing `./config.sub'
configure.ac:17: installing `./missing'
configure.ac:17: installing `./install-sh'
configure.ac:23: installing `./config.guess'
src/arcemu-crashreport/Makefile.am: installing `./depcomp'
configure.ac:275: required file `src/collision/Makefile.in' not found
autoreconf: automake failed with exit status: 1
Xspence:trunk xspence$ 


When trying to put another Makefile.in from a separate directory (dumb idea, I know...), it only complicates the issue by referencing separate directories.

CMake

When compiling via cmake, it seems as though the compiler doesn't even see the cpp and h files within the directory.

Xspence:~ xspence$ cd trunk3
Xspence:trunk3 xspence$ cd cmake
Xspence:cmake xspence$ mkdir build && cd buildXspence:build xspence$ cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
1
-- Found ZLIB: /usr/include (found version "1.2.3")
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- Found MySQL: /usr/lib/mysql/libmysqlclient.dylib
-- Found OpenSSL: /usr/lib/libssl.dylib;/usr/lib/libcrypto.dylib 
-- Found PCRE: /usr/local/lib/libpcre.dylib 
WARNING,BUILD_ARCEMUSCRIPTS option is set to false. Script libraries will not be built.
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/xspence/trunk3/cmake/build
Xspence:build xspence$ make
Scanning dependencies of target g3dlite

[1-28%: OK]

[ 29%] Building CXX object shared/CMakeFiles/arcemu-shared.dir/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp.o
In file included from /Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:25:
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.h:24:19: error: mysql.h: No such file or directory
In file included from /Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:25:
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.h:31: error: ISO C++ forbids declaration of ‘MYSQL’ with no type
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.h:31: error: expected ‘;’ before ‘*’ token
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.h:70: error: expected `)' before ‘*’ token
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.h:76: error: ISO C++ forbids declaration of ‘MYSQL_RES’ with no type
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.h:76: error: expected ‘;’ before ‘*’ token
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp: In destructor ‘virtual MySQLDatabase::~MySQLDatabase()’:
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:31: error: ‘struct MySQLDatabaseConnection’ has no member named ‘MySql’
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:31: error: ‘mysql_close’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp: In member function ‘virtual bool MySQLDatabase::Initialize(const char*, unsigned int, const char*, const char*, const char*, uint32, uint32)’:
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:55: error: ‘MYSQL’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:55: error: ‘temp’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:56: error: ‘temp2’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:58: error: ‘my_bool’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:58: error: expected `;' before ‘my_true’
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:72: error: ‘mysql_init’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:76: error: ‘MYSQL_SET_CHARSET_NAME’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:76: error: ‘mysql_options’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:79: error: ‘MYSQL_OPT_RECONNECT’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:79: error: ‘my_true’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:79: error: ‘mysql_options’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:82: error: ‘mysql_real_connect’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:85: error: ‘mysql_error’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:86: error: ‘mysql_close’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:91: error: ‘struct MySQLDatabaseConnection’ has no member named ‘MySql’
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp: In member function ‘virtual std::string MySQLDatabase::EscapeString(std::string)’:
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:104: error: ‘struct MySQLDatabaseConnection’ has no member named ‘MySql’
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:104: error: ‘mysql_real_escape_string’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp: In member function ‘virtual void MySQLDatabase::EscapeLongString(const char*, uint32, std::stringstream&)’:
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:120: error: ‘struct MySQLDatabaseConnection’ has no member named ‘MySql’
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:120: error: ‘mysql_real_escape_string’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp: In member function ‘virtual std::string MySQLDatabase::EscapeString(const char*, DatabaseConnection*)’:
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:133: error: ‘struct MySQLDatabaseConnection’ has no member named ‘MySql’
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:133: error: ‘mysql_real_escape_string’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp: In member function ‘virtual void MySQLDatabase::Shutdown()’:
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:143: error: ‘mysql_library_end’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp: In member function ‘virtual bool MySQLDatabase::_SendQuery(DatabaseConnection*, const char*, bool)’:
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:149: error: ‘struct MySQLDatabaseConnection’ has no member named ‘MySql’
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:149: error: ‘mysql_query’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:152: error: ‘struct MySQLDatabaseConnection’ has no member named ‘MySql’
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:152: error: ‘mysql_errno’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:160: error: ‘struct MySQLDatabaseConnection’ has no member named ‘MySql’
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:160: error: ‘mysql_error’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp: At global scope:
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:184: error: expected `)' before ‘*’ token
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp: In destructor ‘virtual MySQLQueryResult::~MySQLQueryResult()’:
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:191: error: ‘mResult’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:191: error: ‘mysql_free_result’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp: In member function ‘virtual bool MySQLQueryResult::NextRow()’:
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:197: error: ‘MYSQL_ROW’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:197: error: expected `;' before ‘row’
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:198: error: ‘row’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:202: error: ‘row’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp: In member function ‘virtual QueryResult* MySQLDatabase::_StoreQueryResult(DatabaseConnection*)’:
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:211: error: ‘MYSQL_RES’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:211: error: ‘pRes’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:211: error: ‘struct MySQLDatabaseConnection’ has no member named ‘MySql’
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:211: error: ‘mysql_store_result’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:212: error: ‘struct MySQLDatabaseConnection’ has no member named ‘MySql’
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:212: error: ‘mysql_affected_rows’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:213: error: ‘struct MySQLDatabaseConnection’ has no member named ‘MySql’
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:213: error: ‘mysql_field_count’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:218: error: ‘mysql_free_result’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp: In member function ‘bool MySQLDatabase::_Reconnect(MySQLDatabaseConnection*)’:
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:231: error: ‘MYSQL’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:231: error: ‘temp’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:231: error: ‘temp2’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:233: error: ‘mysql_init’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:234: error: ‘mysql_real_connect’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:237: error: ‘mysql_error’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:238: error: ‘mysql_close’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:242: error: ‘struct MySQLDatabaseConnection’ has no member named ‘MySql’
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:243: error: ‘struct MySQLDatabaseConnection’ has no member named ‘MySql’
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:243: error: ‘mysql_close’ was not declared in this scope
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:245: error: ‘struct MySQLDatabaseConnection’ has no member named ‘MySql’
make[2]: *** [shared/CMakeFiles/arcemu-shared.dir/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp.o] Error 1
make[1]: *** [shared/CMakeFiles/arcemu-shared.dir/all] Error 2
make: *** [all] Error 2
Xspence:build xspence$ 


They're clearly there, and the specific location are in the code, yet there's some sort of disconnect. When it hits 29% or so.

---

As you can see, these are two significant errors, both leading me astray. Would anyone care to enlighten me on what I might be missing or doing wrong.

Thanks! :P
0

#2 User is offline   dfighter 

  • Titles are overrated
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Administrator
  • Posts: 5,189
  • Joined: 14-June 08
  • IRC:dfighter
  • Gender:Male
  • Server OS:Linux

Posted 03 April 2011 - 03:15 PM

View Postxspence, on 03 April 2011 - 02:45 PM, said:

[ 29%] Building CXX object shared/CMakeFiles/arcemu-shared.dir/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp.o
In file included from /Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.cpp:25:
/Users/xspence/trunk3/src/arcemu-shared/Database/MySQLDatabase.h:24:19: error: mysql.h: No such file or directory

They're clearly there, and the specific location are in the code, yet there's some sort of disconnect. When it hits 29% or so.

---

As you can see, these are two significant errors, both leading me astray. Would anyone care to enlighten me on what I might be missing or doing wrong.

Thanks! :P

It just somehow cannot find the header.
I suppose we need to whip Parox until he fixes it.
"The demand for free goods is infinite."
0

#3 User is offline   paroxysm 

  • Chatty Cathy
  • Group: Retired
  • Posts: 320
  • Joined: 25-June 08
  • Gender:Male
  • Server OS:Windows

Posted 03 April 2011 - 03:24 PM

Give me some time to get it working.
1

#4 User is offline   xspence 

  • Member
  • Pip
  • Group: Members
  • Posts: 13
  • Joined: 05-May 09
  • Gender:Male
  • Location:California, USA
  • Interests:Music, Recording, Digital Music, Coding, Web Design, Mac/Unix development

Posted 03 April 2011 - 03:35 PM

Sure thing. Thanks for the speedy feedback.

In that case, for future reference, should I use gcc or cmake for compiling?
0

#5 User is offline   paroxysm 

  • Chatty Cathy
  • Group: Retired
  • Posts: 320
  • Joined: 25-June 08
  • Gender:Male
  • Server OS:Windows

Posted 03 April 2011 - 03:53 PM

cmake configures the project so that your compiler will compile it properly.
0

#6 User is offline   xspence 

  • Member
  • Pip
  • Group: Members
  • Posts: 13
  • Joined: 05-May 09
  • Gender:Male
  • Location:California, USA
  • Interests:Music, Recording, Digital Music, Coding, Web Design, Mac/Unix development

Posted 03 April 2011 - 06:57 PM

I see. So the makefile.in and makefile.am reference the various sources and cmake configures the references so when it comes time to compile, it is able to pull the available files and put it together. Is that kinda it?
0

#7 User is offline   paroxysm 

  • Chatty Cathy
  • Group: Retired
  • Posts: 320
  • Joined: 25-June 08
  • Gender:Male
  • Server OS:Windows

Posted 03 April 2011 - 07:03 PM

Just google cmake, you'll understand how it works.
0

#8 User is offline   xspence 

  • Member
  • Pip
  • Group: Members
  • Posts: 13
  • Joined: 05-May 09
  • Gender:Male
  • Location:California, USA
  • Interests:Music, Recording, Digital Music, Coding, Web Design, Mac/Unix development

Posted 03 April 2011 - 08:00 PM

Did. I get it now. :P Thanks.

Will the fix be on the repo?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users