ArcEmu: Missing "in" In My Compile Using Ubuntu - 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
  • You cannot reply to this topic

Missing "in" In My Compile Using Ubuntu

#1 User is offline   Reyak 

  • Newbie
  • Group: Members
  • Posts: 2
  • Joined: 02-June 11
  • Gender:Male
  • Server OS:Linux

Posted 02 June 2011 - 07:52 PM

I was doing pretty well in the install using the wiki for Compiling: Linux until I went to compile the files.

I receive the follow error and I can't move onto the next steps.


arcemu@online:~/installer/arcemu/trunk/cmake$ cmake -DCMAKE_INSTALL_PREFIX=/home/arcemu/server
1
Configuring scripts :
        LuaEngine was skipped because BUILD_LUAENGINE is unchecked.
-- Configuring done
CMake Error in shared/CMakeLists.txt:
  Cannot find source file "IN".  Tried extensions .c .C .c++ .cc .cpp .cxx .m
  .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx


-- Build files have been written to: /home/arcemu/installer/arcemu/trunk/cmake


I've scoured the forums and wiki and can't find where I went wrong.

Any quick ideas?

Thanks!
0

#2 User is offline   paroxysm 

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

Posted 02 June 2011 - 10:44 PM

You sure you didn't edit the file? I don't seem to be getting this error.
0

#3 User is offline   Reyak 

  • Newbie
  • Group: Members
  • Posts: 2
  • Joined: 02-June 11
  • Gender:Male
  • Server OS:Linux

Posted 03 June 2011 - 03:56 AM

View Postparoxysm, on 02 June 2011 - 10:44 PM, said:

You sure you didn't edit the file? I don't seem to be getting this error.


Thank you for the quick response. I'm pretty sure that I didn't edit the file. So just in case I did, I went back through and deleted the installation directory and recreated them and re-downloaded the source files.

I receive the same error when running the cmake. Here is the the output.

Checked out revision 4243.
arcemu@online:~/installer/arcemu$ cd /home/arcemu/installer/arcemu/trunk/cmake
arcemu@online:~/installer/arcemu/trunk/cmake$ cmake -DCMAKE_INSTALL_PREFIX=/home/arcemu/server
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- 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
-- 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/lib/libz.so
-- Found PCRE: /usr/lib/libpcre.so
-- Found OpenSSL: /usr/lib/libssl.so
-- 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/libmysqlclient.so
Configuring scripts :
        LuaEngine was skipped because BUILD_LUAENGINE is unchecked.
-- Configuring done
CMake Error in shared/CMakeLists.txt:
  Cannot find source file "IN".  Tried extensions .c .C .c++ .cc .cpp .cxx .m
  .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx


-- Build files have been written to: /home/arcemu/installer/arcemu/trunk/cmake
arcemu@online:~/installer/arcemu/trunk/cmake$


I am running Ubuntu 9.10 32-bit if that helps at all.

Here is my CMakeList.txt file as well.

arcemu@online:~/installer/arcemu/trunk/cmake$ cat CMakeLists.txt
cmake_minimum_required(VERSION 2.6)
#Do system checking.

SET( GLOBAL_DEFINES "-DHAVE_CONFIG_H")

#check platform version.
IF( CMAKE_SYSTEM_PROCESSOR MATCHES "[xX]64" OR CMAKE_SYSTEM_PROCESSOR MATCHES "[xX]86_64" OR CMAKE_SYSTEM_PROCESSOR MATCHES "[aA][mM][dD]64" OR CMAKE_GENERATOR MATCHES Win64*)
        #define for 64bit
        SET( GLOBAL_DEFINES ${GLOBAL_DEFINES} -"DX64")
        SET( IS_64BIT TRUE)
        IF( CMAKE_GENERATOR MATCHES Visual* OR CMAKE_GENERATOR MATCHES NMake*)
                SET( GLOBAL_DEFINES ${GLOBAL_DEFINES} "-bigobj")
        ENDIF()
ENDIF()

#mac osx
IF( APPLE )
        SET( GLOBAL_DEFINES ${GLOBAL_DEFINES} "-DHAVE_DARWIN")
        SET( IS_MAC TRUE)
ELSEIF(UNIX)
        #mac has unix defined too but if 'if(APPLE)' fails, then it's not apple.

        #check for freebsd
        IF( ( CMAKE_SYSTEM_NAME  STREQUAL "FreeBSD" ) OR ( CMAKE_SYSTEM_NAME STREQUAL kFreeBSD ) )
                SET( GLOBAL_DEFINES ${GLOBAL_DEFINES} "-DUSE_KQUEUE")
                SET( IS_FREEBSD TRUE)
        ELSE()
                SET( GLOBAL_DEFINES ${GLOBAL_DEFINES} "-DUSE_EPOLL")
                SET( IS_LINUX TRUE)
        ENDIF()
ENDIF()

SET( ROOT_PATH  ${CMAKE_SOURCE_DIR}/..)

#We have our own custom modules that we use. This tells cmakes where to find them.
SET( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ROOT_PATH}/cmake_modules )
SET( DEPENDENCY_ROOT ${ROOT_PATH}/dep )
SET( DEPENDENCY_SOURCES ${DEPENDENCY_ROOT}/src)
SET( DEPENDENCY_LIBS ${DEPENDENCY_ROOT}/lib)
SET( DEPENDENCY_INCLUDE_ROOT ${DEPENDENCY_ROOT}/include)
SET( DEPENDENCY_DLLS ${DEPENDENCY_ROOT}/dll)
SET( DEPENDENCY_DLLS64 ${DEPENDENCY_ROOT}/dll64)

#Install libmysql.dll required for our core to run.
IF( WIN32)
        IF(IS_64BIT )
                SET( INSTALLED_DEPENDENCIES ${DEPENDENCY_DLLS64}/libmysql.dll ${DEPENDENCY_DLLS64}/libeay32.dll)
        ELSE()
                SET( INSTALLED_DEPENDENCIES ${DEPENDENCY_DLLS}/libmysql.dll ${DEPENDENCY_DLLS}/libeay32.dll)
        ENDIF()
ENDIF(WIN32)

#Our configurable variables.
SET(ARCEMU_CONFIGSFILE_PATH etc CACHE PATH "Path where the arcemu config files are.")
SET(ARCEMU_SCRIPTLIB_PATH "modules" CACHE PATH "The directory which contains the 'lib' directory that has the script libraries." )
SET(BUILD_ARCEMUSCRIPTS TRUE CACHE BOOL "Set to false to NOT build script libraries." )
SET(VISUALSTUDIO_COMPILERHEAPLIMIT 200 CACHE STRING "Visual Studio compiler heap limit. Ignore on darwin and unix platforms." )

include(CompilerVersion)
if( CMAKE_GENERATOR MATCHES Unix* )
        add_definitions(-Wno-deprecated)
        #Extract Revision
        execute_process(WORKING_DIRECTORY ${ROOT_PATH} COMMAND sh extract_svn_revision.sh )

        #Check support for unordered_map/set
        GetCompilerVersion( gcc_version)
        IF( DEFINED gcc_version AND ( ${gcc_version} VERSION_EQUAL "4" OR ${gcc_version} VERSION_GREATER "4" ) AND NOT APPLE )
                add_definitions(-DHAS_CXX0X -std=c++0x)
        ENDIF()

ELSEIF( CMAKE_GENERATOR MATCHES Visual* )
        #Extract revision
        execute_process(WORKING_DIRECTORY ${ROOT_PATH}/src/arcemu-shared COMMAND RevisionExtractor)
        add_definitions(-D_CRT_SECURE_NO_WARNINGS)

        #Check support for unordered_map/set
        GetCompilerVersion( msvc_version)
        IF(DEFINED ${msvc_version} AND ${msvc_version} GREATER "1599" )
                add_definitions(-DHAS_CXX0X)
        ENDIF()

        #This fixes PCH issues 'Inconsistent values for /Ym'
        IF( CMAKE_GENERATOR MATCHES Visual* )
                STRING( REGEX REPLACE "(/Zm)([0-9]+)" "\\1${VISUALSTUDIO_COMPILERHEAPLIMIT}" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} )
                STRING( REGEX REPLACE "(/Zm)([0-9]+)" "\\1${VISUALSTUDIO_COMPILERHEAPLIMIT}" CMAKE_C_FLAGS ${CMAKE_C_FLAGS} )
                SET( CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} CACHE STRING "CMAKE_CXX_FLAGS" FORCE)
                SET( CMAKE_C_FLAGS ${CMAKE_C_FLAGS} CACHE STRING "CMAKE_C_FLAGS" FORCE)
        ENDIF( CMAKE_GENERATOR MATCHES Visual* )
ENDIF()

#Pass our configurable variables to the C++ preprocessor.
add_definitions( ${GLOBAL_DEFINES} -DCONFDIR=\"${ARCEMU_CONFIGSFILE_PATH}\" -DPREFIX=\"${ARCEMU_SCRIPTLIB_PATH}\")

#These are set by find_package or the zlib and pcre subprojects.
set(ZLIB_LIBRARIES "" CACHE INTERNAL "Zlib libraries.")
set(PCRE_LIBRARIES "" CACHE INTERNAL "PCRE libraries.")
set(PCRE_INCLUDE_DIRS "" CACHE INTERNAL "PCRE include dirs.")
#mark them as advanced so they don't show up on the gui.
mark_as_advanced(ZLIB_LIBRARIES PCRE_LIBRARIES PCRE_INCLUDE_DIRS)

set(GLOBAL_INCLUDE_DIRS
${ROOT_PATH}/src/arcemu-shared
${ROOT_PATH}/src/arcemu-world
${ROOT_PATH}/src/arcemu-logonserver
${DEPENDENCY_INCLUDE_ROOT}
${DEPENDENCY_INCLUDE_ROOT}/g3dlite
${DEPENDENCY_INCLUDE_ROOT}/pcre
${DEPENDENCY_INCLUDE_ROOT}/zlib )

#Find our needed libs
IF( NOT WIN32 )
        find_package(ZLIB REQUIRED)
        find_package(PCRE REQUIRED)
        find_package(OpenSSL REQUIRED)
        find_package(Threads REQUIRED)
        find_package(MySQL REQUIRED)
ELSE()
        add_subdirectory(zlib)
        add_subdirectory(pcre)
        SET(MYSQL_LIBRARY "")
ENDIF()

IF(WIN32)       #On windows, we have to specify the includes for libeay and mysql libs.
        SET( GLOBAL_INCLUDE_DIRS ${GLOBAL_INCLUDE_DIRS}
        ${DEPENDENCY_INCLUDE_ROOT}/openssl
        ${DEPENDENCY_INCLUDE_ROOT}/mysql )
ELSE()  #On apple n linux, mysql.h should have been found.
        SET( GLOBAL_INCLUDE_DIRS ${GLOBAL_INCLUDE_DIRS} ${MYSQL_INCLUDE_DIR} )
ENDIF()

#For windows, link to libeay and libmysql
SET( EXTRA_LIBS)
SET( EXTRA_LIBS_PATH)
if(WIN32)
        if( IS_64BIT )
                SET( EXTRA_LIBS libeay32_win64.lib )
                if(CMAKE_BUILD_TYPE STREQUAL "Debug")
                        SET(EXTRA_LIBS ${EXTRA_LIBS} libmysql_debug_x64.lib )
                else()
                        SET( EXTRA_LIBS ${EXTRA_LIBS} libmysql_release_x64.lib )
                endif()
        else(IS_64BIT )
                SET( EXTRA_LIBS libeay32_win32.lib )
                if(CMAKE_BUILD_TYPE STREQUAL "Debug")
                        SET(EXTRA_LIBS ${EXTRA_LIBS} libmysql_debug_win32.lib )
                else()
                        SET( EXTRA_LIBS ${EXTRA_LIBS} libmysql_release_win32.lib )
                endif()
        endif()
        #Needed for socket stuff and crash handler
        SET(EXTRA_LIBS ${EXTRA_LIBS} ws2_32.lib dbghelp.lib )
elseif(APPLE)
        SET( EXTRA_LIBS ${EXTRA_LIBS} "-framework Carbon" )
endif()

IF( APPLE )
        IF( NOT IS_64BIT )
                SET( EMPTY "" )
                STRING( REGEX REPLACE ".*-m64" "" CMAKE_C_FLAGS  "${CMAKE_C_FLAGS}" )
                STRING( REGEX REPLACE ".*-m 64" "" CMAKE_C_FLAGS  "${CMAKE_C_FLAGS}" )
                STRING( REGEX REPLACE ".*-m64" "" CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS}" )
                STRING( REGEX REPLACE ".*-m 64" "" CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS}" )
                STRING( REGEX REPLACE ".*-m64" "" CMAKE_EXE_LINKER_FLAGS  "${CMAKE_EXE_LINKER_FLAGS}" )
                STRING( REGEX REPLACE ".*-m 64" "" CMAKE_EXE_LINKER_FLAGS  "${CMAKE_EXE_LINKER_FLAGS}" )
                STRING( REGEX REPLACE ".*-m64" "" CMAKE_SHARED_LINKER_FLAGS  "${CMAKE_SHARED_LINKER_FLAGS}" )
                STRING( REGEX REPLACE ".*-m 64" "" CMAKE_SHARED_LINKER_FLAGS  "${CMAKE_SHARED_LINKER_FLAGS}" )
                STRING( REGEX REPLACE ".*-m64" "" CMAKE_MODULE_LINKER_FLAGS  "${CMAKE_MODULE_LINKER_FLAGS}" )
                STRING( REGEX REPLACE ".*-m 64" "" CMAKE_MODULE_LINKER_FLAGS  "${CMAKE_MODULE_LINKER_FLAGS}" )
                ADD_DEFINITIONS( -m32 )
                SET( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -m32" )
                SET( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -m32 -undefined dynamic_lookup" )
                SET( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -m32" )
        ENDIF( NOT IS_64BIT )
ENDIF( APPLE )

add_subdirectory(shared)
add_subdirectory(g3dlite)
add_subdirectory(logon)
add_subdirectory(world)
add_subdirectory( spellhandlers )
IF(NOT WIN32)
        add_subdirectory(crashreport)
ENDIF()
add_subdirectory(scripts)



INSTALL(FILES ${INSTALLED_DEPENDENCIES} DESTINATION .)
arcemu@online:~/installer/arcemu/trunk/cmake$

0

#4 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 June 2011 - 01:34 PM

I've started downloading 9.10, and will check this out later.
Maybe it's something about this old release that is causing the problem.

EDIT:
The CMakeList file came from out SVN so it's pointless to post it, unless you did change it, but you said you didn't. ;)

EDIT:
You issue has been confirmed, I will look into it.
Note: I've noticed that 9.10 has CMake version 2.6, maybe this is the issue, we will see :)

EDIT:
Confirmed the problem is due to your outdated version of CMake.
You should remove the default one, and install a new one from the CMake site :)

The CentOS wiki article has documentation on how to do this.
http://arcemu.org/wi...S#CMake_install

After I installed CMake 2.8 it built fine for me.
"The demand for free goods is infinite."
1

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

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