Jump to content
TrinityCore

Compile or cmake problems


Joy
 Share

Recommended Posts

Hi Posthumus, thanks for replying, I forgot that I had used a diff from here http://www.jeremymeile.ch/page0/page0.html while following his guide as well (https://raw.github.com/jeremymeile/jeremymeile/master/patches/Transmogrification.diff to be precise). But i've deleted, re-pulled the latest rev and still get stuck at the same (outputs in spoiler below).

 

Saguns-Mac-Pro:build sagun$ sudo cmake .. -GXcode -DMYSQL_ADD_INCLUDE_PATH=/usr/include -DMYSQL_LIBRARY=/usr/lib/libmysqlclient.a -DREADLINE_INCLUDE_DIR=/opt/include -DREADLINE_LIBRARY=/opt/lib/libreadline.dylib -DACE_INCLUDE_DIR=/opt/include -DACE_LIBRARY=/opt/lib/libACE.dylib -DOPENSSL_SSL_LIBRARIES=/opt/lib/libssl.dylib -DOPENSSL_CRYPTO_LIBRARIES=/opt/lib/libcrypto.dylib -DOPENSSL_INCLUDE_DIR=/opt/include -DPREFIX=/Users/Sagun/DEV/tcs -DCMAKE_OSX_DEPLOYMENT_TARGET=10.8 -DWITH_WARNINGS=1

Password:

-- Detected 64-bit platform

-- UNIX: Using default configuration directory

-- UNIX: Using default library directory

-- UNIX: Configuring uninstall target

-- UNIX: Created uninstall target

-- UNIX: Detected compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang

-- Clang: All warnings enabled

-- Found ACE library: /opt/lib/libACE.dylib

-- Found ACE headers: /opt/include

-- Found OpenSSL library: /opt/lib/libssl.dylib;/opt/lib/libcrypto.dylib

-- Found OpenSSL headers: /opt/include

-- Using mysql-config: /usr/bin/mysql_config

-- Found MySQL library: /usr/lib/libmysqlclient.a

-- Found MySQL headers: /usr/include

-- Found Readline library: /opt/lib/libreadline.dylib

-- Include dir is: /opt/include

-- Found git binary : /usr/bin/git



* TrinityCore revision : 38611a6d19e1 2014-03-18 20:01:14 +0100 (master branch)

* TrinityCore buildtype : Release



* Install core to : /Users/Sagun/DEV/tcs

* Install libraries to : /Users/Sagun/DEV/tcs/lib

* Install configs to : /Users/Sagun/DEV/tcs/etc



* Build world/auth : Yes (default)

* Build with scripts : Yes (default)

* Build map/vmap tools : No (default)

* Build core w/PCH : Yes (default)

* Build scripts w/PCH : Yes (default)

* Show all warnings : Yes

* Use coreside debug : No (default)

* Use GIT revision hash : Yes



-- SCRIPT PREPARATIONS

-> Prepared: Spells

-> Prepared: Commands

-> Prepared: Examples

-> Prepared: Custom

-> Prepared: World

-> Prepared: Outdoor PVP Zones

-> Prepared: Eastern Kingdoms

-> Prepared: Kalimdor

-> Prepared: Outland

-> Prepared: Northrend

-> Prepared: Events

-> Prepared: Pet

-- SCRIPT PREPARATION COMPLETE



-- Configuring done

-- Generating done

-- Build files have been written to: /Users/sagun/DEV/TrinityCore/build

Saguns-Mac-Pro:build sagun$ sudo xcodebuild -target install -config Debug ARCHS="x86_64"

Build settings from command line:

ARCHS = x86_64



=== BUILD AGGREGATE TARGET ZERO_CHECK OF PROJECT TrinityCore WITH CONFIGURATION Debug ===



Check dependencies



PhaseScriptExecution CMake Rules build/TrinityCore.build/Debug/ZERO_CHECK.build/Script-B621549E0CAD460A85D873FE.sh

cd /Users/sagun/DEV/TrinityCore

/bin/sh -c /Users/sagun/DEV/TrinityCore/build/TrinityCore.build/Debug/ZERO_CHECK.build/Script-B621549E0CAD460A85D873FE.sh

echo ""



make -f /Users/sagun/DEV/TrinityCore/build/CMakeScripts/ReRunCMake.make

make[1]: `/Users/sagun/DEV/TrinityCore/build/CMakeFiles/cmake.check_cache' is up to date.



=== BUILD TARGET g3dlib OF PROJECT TrinityCore WITH CONFIGURATION Debug ===



Check dependencies



CompileC build/dep/g3dlite/TrinityCore.build/Debug/g3dlib.build/Objects-normal/x86_64/AABox.o dep/g3dlite/source/AABox.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler

cd /Users/sagun/DEV/TrinityCore


------- Shortened for post ---------



=== BUILD TARGET shared OF PROJECT TrinityCore WITH CONFIGURATION Debug ===



Check dependencies



ProcessPCH++ /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/com.apple.DeveloperTools/5.0.2-5A3005/Xcode/SharedPrecompiledHeaders/sharedPCH-gfxqfhzaxrcdgzbcjbfjdqsylese/sharedPCH.h.pch src/server/shared/PrecompiledHeaders/sharedPCH.h normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler

cd /Users/sagun/DEV/TrinityCore

setenv LANG en_US.US-ASCII

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++-header -arch x86_64 -fmessage-length=123 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -DCMAKE_INTDIR="Debug" -DSCRIPTS -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.8 -g -Wno-sign-conversion -I/Users/sagun/DEV/TrinityCore/build/src/server/shared/Debug/include -I/opt/include -I/Users/sagun/DEV/TrinityCore/build/src/server/shared -I/Users/sagun/DEV/TrinityCore/build -I/Users/sagun/DEV/TrinityCore/dep/recastnavigation/Detour -I/Users/sagun/DEV/TrinityCore/dep/SFMT -I/Users/sagun/DEV/TrinityCore/dep/sockets/include -I/Users/sagun/DEV/TrinityCore/dep/utf8cpp -I/Users/sagun/DEV/TrinityCore/src/server -I/Users/sagun/DEV/TrinityCore/src/server/shared -I/Users/sagun/DEV/TrinityCore/src/server/shared/Configuration -I/Users/sagun/DEV/TrinityCore/src/server/shared/Cryptography -I/Users/sagun/DEV/TrinityCore/src/server/shared/Database -I/Users/sagun/DEV/TrinityCore/src/server/shared/DataStores -I/Users/sagun/DEV/TrinityCore/src/server/shared/Debugging -I/Users/sagun/DEV/TrinityCore/src/server/shared/Dynamic -I/Users/sagun/DEV/TrinityCore/src/server/shared/Logging -I/Users/sagun/DEV/TrinityCore/src/server/shared/Packets -I/Users/sagun/DEV/TrinityCore/src/server/shared/Threading -I/Users/sagun/DEV/TrinityCore/src/server/shared/Utilities -I/Users/sagun/DEV/TrinityCore/src/server/game/Entities/Object -I/Users/sagun/DEV/TrinityCore/build/src/server/shared/TrinityCore.build/Debug/shared.build/DerivedSources/x86_64 -I/Users/sagun/DEV/TrinityCore/build/src/server/shared/TrinityCore.build/Debug/shared.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Users/sagun/DEV/TrinityCore/build/src/server/shared/Debug -W -Wall -Wextra -Winit-self -Wfatal-errors -Woverloaded-virtual -D_BUILD_DIRECTIVE="Debug" --serialize-diagnostics /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/com.apple.DeveloperTools/5.0.2-5A3005/Xcode/SharedPrecompiledHeaders/sharedPCH-gfxqfhzaxrcdgzbcjbfjdqsylese/sharedPCH.h.dia -MMD -MT dependencies -MF /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/com.apple.DeveloperTools/5.0.2-5A3005/Xcode/SharedPrecompiledHeaders/sharedPCH-gfxqfhzaxrcdgzbcjbfjdqsylese/sharedPCH.h.d -c /Users/sagun/DEV/TrinityCore/src/server/shared/PrecompiledHeaders/sharedPCH.h -o /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/com.apple.DeveloperTools/5.0.2-5A3005/Xcode/SharedPrecompiledHeaders/sharedPCH-gfxqfhzaxrcdgzbcjbfjdqsylese/sharedPCH.h.pch

In file included from /Users/sagun/DEV/TrinityCore/src/server/shared/PrecompiledHeaders/sharedPCH.h:6:

In file included from /Users/sagun/DEV/TrinityCore/src/server/shared/Database/SQLOperation.h:24:

In file included from /Users/sagun/DEV/TrinityCore/src/server/shared/Database/QueryResult.h:25:

/Users/sagun/DEV/TrinityCore/src/server/shared/Database/Field.h:24:10: fatal error: 'mysql.h' file not found

#include 

^

1 error generated.



2014-03-19 22:51:30.100 xcodebuild[55210:6b03] DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-3575/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:78

Details: Failed to load dependencies output contents from ``/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/com.apple.DeveloperTools/5.0.2-5A3005/Xcode/SharedPrecompiledHeaders/sharedPCH-gfxqfhzaxrcdgzbcjbfjdqsylese/sharedPCH.h.d''. Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “sharedPCH.h.d” couldn’t be opened because there is no such file." UserInfo=0x7feefd74de50 {NSFilePath=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/com.apple.DeveloperTools/5.0.2-5A3005/Xcode/SharedPrecompiledHeaders/sharedPCH-gfxqfhzaxrcdgzbcjbfjdqsylese/sharedPCH.h.d, NSUnderlyingError=0x7fef0062f980 "The operation couldn’t be completed. No such file or directory"}. User info: {

NSFilePath = "/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/com.apple.DeveloperTools/5.0.2-5A3005/Xcode/SharedPrecompiledHeaders/sharedPCH-gfxqfhzaxrcdgzbcjbfjdqsylese/sharedPCH.h.d";

NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 "The operation couldnU2019t be completed. No such file or directory"";

}.

Function: void XCGccMakefileDependenciesParsePathsFromRuleFile(NSString *__strong, F) [F = ]

Thread: {name = (null), num = 9}

Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.

** BUILD FAILED **





The following build commands failed:

ProcessPCH++ /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/com.apple.DeveloperTools/5.0.2-5A3005/Xcode/SharedPrecompiledHeaders/sharedPCH-gfxqfhzaxrcdgzbcjbfjdqsylese/sharedPCH.h.pch src/server/shared/PrecompiledHeaders/sharedPCH.h normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler

(1 failure)

 

my ~/.profile :

##
# Your previous /Users/sagun/.profile file was backed up as /Users/sagun/.profi$
##

export PATH=$PATH:/opt/bin:/usr/local/mysql/bin
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/opt/lib:/usr/local/mysql/lib

 

 

I'll try using jeremy's guide again since it's more mavericks oriented.

Edited by Smoke
Link to comment
Share on other sites

  • Replies 2.9k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Is this worth worrying about?

[ 13%] Building CXX object src/server/shared/CMakeFiles/shared.dir/Utilities/Util.cpp.o
In file included from /home/icey/TrinityCore/src/server/shared/Utilities/Util.cpp:22:0:
/home/icey/TrinityCore/dep/SFMT/SFMT.h: In member function ‘void SFMTRand::RandomInit(int)’:
/home/icey/TrinityCore/dep/SFMT/SFMT.h:172:29: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
         ((uint32_t*)state)[0] = y;



[ 16%] [ 13%] Building CXX object src/server/shared/CMakeFiles/shared.dir/Utilities/Util.cpp.o
In file included from /home/icey/TrinityCore/src/server/shared/Utilities/Util.cpp:22:0:
/home/icey/TrinityCore/dep/SFMT/SFMT.h: In member function ‘void SFMTRand::RandomInit(int)’:
/home/icey/TrinityCore/dep/SFMT/SFMT.h:172:29: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
         ((uint32_t*)state)[0] = y;
                             ^

Link to comment
Share on other sites

I get the same warnings, so far I haven't had any Segmentation Faults, crashes, etc... after the latest pull from Gunship addition.

Did you modify CMakeLists, after upgrading gcc ?

yes i modified my CMakelists, after i upgraded my gcc to 4.8  using http://www.guyrutenberg.com/2014/01/05/enabling-c11-c0x-in-cmake/

 

but now i get 


icey@ubuntu:~/TrinityCore/build$ make
-- Detected 64-bit platform
-- UNIX: Using jemalloc
-- UNIX: Using default configuration directory
-- UNIX: Using default library directory
-- UNIX: Configuring uninstall target
-- UNIX: Created uninstall target
-- UNIX: Detected compiler: /usr/bin/gcc
CMake Error at cmake/compiler/gcc/settings.cmake:7 (message):
  GCC: TrinityCore requires version 4.7.2 to build but found
Call Stack (most recent call first):
  cmake/platform/unix/settings.cmake:37 (include)
  cmake/macros/CheckPlatform.cmake:15 (include)
  CMakeLists.txt:48 (include)


-- Configuring incomplete, errors occurred!
make: *** [cmake_check_build_system] Error 1
icey@ubuntu:~/TrinityCore/build$ g++ --version
g++ (Ubuntu/Linaro 4.7.3-2ubuntu1~12.04) 4.7.3
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Link to comment
Share on other sites

This helped me out awhile back, I had the same problem where my g++ was still the original 4.6.3

doing a gcc -v and g++ -v should give you the same version, but in your case, it looks to be conflicting.

http://ubuntuhandbook.org/index.php/2013/08/install-gcc-4-8-via-ppa-in-ubuntu-12-04-13-04/

I had to fix my alternatives so that they looked at newer versions and do a complete clean reinstall

 

Upgrade to 4.8.1 following that link.

Then add exactly from Guy Rutenburgs blog for cmake.

Just in case, this is exactly what I did...

https://gist.github.com/CDawg/9731264

Then blow away your ~/TrinityCore/build directory and do another make.

 

That should do it!

Link to comment
Share on other sites

iceyn@ubuntu:~/TrinityCore/build$ cmake ../ -DPREFIX=/home/icey/server -DWITH_WARNINGS=1
-- 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
-- Detected 64-bit platform
-- UNIX: Using jemalloc
-- UNIX: Using default configuration directory
-- UNIX: Using default library directory
-- UNIX: Configuring uninstall target
-- UNIX: Created uninstall target
-- UNIX: Detected compiler: /usr/bin/gcc
CMake Error at cmake/compiler/gcc/settings.cmake:7 (message):
  GCC: TrinityCore requires version 4.7.2 to build but found
Call Stack (most recent call first):
  cmake/platform/unix/settings.cmake:37 (include)
  cmake/macros/CheckPlatform.cmake:15 (include)
  CMakeLists.txt:49 (include)
 
 
-- Configuring incomplete, errors occurred!
icey@ubuntu:~/TrinityCore/build$ make
make: *** No targets specified and no makefile found.  Stop.
battlestation@ubuntu:~/TrinityCore/build$ g++ --version
g++ (Ubuntu 4.8.1-2ubuntu1~12.04) 4.8.1
Copyright © 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Link to comment
Share on other sites

Hello, I just got started with TrinityCore today since I am told it is the one with the most working content. I am trying to compile but it ends up with 35 errors, all in regards to items relating to the icecrown citadel gunship battle. I have no idea what could be causing it. Any assistance is appreciated. P.S. sorry if this is in the wrong place, was not sure if the bug tracker is for compiling issues or not.

Link to comment
Share on other sites

ok so i took these lines out from cmake/compiler/gcc/settings.cmake and i can compile again but i get 

 
+set(GCC_EXPECTED_VERSION 4.7.2)     +     +if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS GCC_EXPECTED_VERSION)     + message(FATAL_ERROR "GCC: TrinityCore requires version ${GCC_EXPECTED_VERSION} to build but found ${CMAKE_CXX_COMPILER_VERSION}")     +endif()
[ 13%] Building CXX object src/server/shared/CMakeFiles/shared.dir/Utilities/Util.cpp.o
In file included from /home/icey/TrinityCore/src/server/shared/Utilities/Util.cpp:22:0:
/home/battlestation/TrinityCore/dep/SFMT/SFMT.h: In member function ‘void SFMTRand::RandomInit(int)’:
/home/icey/TrinityCore/dep/SFMT/SFMT.h:172:29: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
         ((uint32_t*)state)[0] = y;
                             ^


[ 99%] Building CXX object src/server/worldserver/CMakeFiles/worldserver.dir/TCSoap/TCSoap.cpp.o
In file included from /home/icey/TrinityCore/dep/gsoap/soapStub.h:13:0,
                 from /home/icey/TrinityCore/dep/gsoap/soapH.h:13,
                 from /home/icey/TrinityCore/src/server/worldserver/TCSoap/TCSoap.cpp:19:
/home/icey/TrinityCore/dep/gsoap/stdsoap2.h:1468:70: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix]
 #  define DBGFUN1(FNAME, FMT, ARG) DBGLOG(TEST, SOAP_MESSAGE(fdebug, "%s(%d): %s("FMT")n", __FILE__, __LINE__, FNAME, (ARG)))
                                                                      ^
/home/icey/TrinityCore/dep/gsoap/stdsoap2.h:1469:84: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix]
 #  define DBGFUN2(FNAME, FMT1, ARG1, FMT2, ARG2) DBGLOG(TEST, SOAP_MESSAGE(fdebug, "%s(%d): %s("FMT1", "FMT2")n", __FILE__, __LINE__, FNAME, (ARG1), (ARG2)))
                                                                                    ^
/home/icey/TrinityCore/dep/gsoap/stdsoap2.h:1469:101: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix]
 #  define DBGFUN2(FNAME, FMT1, ARG1, FMT2, ARG2) DBGLOG(TEST, SOAP_MESSAGE(fdebug, "%s(%d): %s("FMT1", "FMT2")n", __FILE__, __LINE__, FNAME, (ARG1), (ARG2)))
                                                                                                     ^
/home/icey/TrinityCore/dep/gsoap/stdsoap2.h:1470:96: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix]
 #  define DBGFUN3(FNAME, FMT1, ARG1, FMT2, ARG2, FMT3, ARG3) DBGLOG(TEST, SOAP_MESSAGE(fdebug, "%s(%d): %s("FMT1", "FMT2", "FMT3")n", __FILE__, __LINE__, FNAME, (ARG1), (ARG2), (ARG3)))
                                                                                                ^
/home/icey/TrinityCore/dep/gsoap/stdsoap2.h:1470:113: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix]
 #  define DBGFUN3(FNAME, FMT1, ARG1, FMT2, ARG2, FMT3, ARG3) DBGLOG(TEST, SOAP_MESSAGE(fdebug, "%s(%d): %s("FMT1", "FMT2", "FMT3")n", __FILE__, __LINE__, FNAME, (ARG1), (ARG2), (ARG3)))
                                                                                                                 ^
/home/icey/TrinityCore/dep/gsoap/stdsoap2.h:1470:121: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix]
 #  define DBGFUN3(FNAME, FMT1, ARG1, FMT2, ARG2, FMT3, ARG3) DBGLOG(TEST, SOAP_MESSAGE(fdebug, "%s(%d): %s("FMT1", "FMT2", "FMT3")n", __FILE__, __LINE__, FNAME, (ARG1), (ARG2), (ARG3)))
                                                                                                                         ^
[ 99%] Building CXX object src/server/worldserver/CMakeFiles/worldserver.dir/WorldThread/WorldRunnable.cpp.o
[ 99%] Building CXX object src/server/worldserver/CMakeFiles/worldserver.dir/Main.cpp.o
[ 99%] Building CXX object src/server/worldserver/CMakeFiles/worldserver.dir/Master.cpp.o
[100%] Building CXX object src/server/worldserver/CMakeFiles/worldserver.dir/PrecompiledHeaders/worldPCH.cpp.o
Linking CXX executable worldserver
[100%] Built target worldserver

and make install runs all fine

Link to comment
Share on other sites

sorry about that, the error code was "non-aggregates cannot be initialized with initialiser list", also, sorry about making a new thread, was not sure if it was an actual cmake/compile issue or an issue with the latest build since at the time of download it had been modified only 1/2 an hour earlier, the file that had the issue was "boss_icecrown_gunship_battle.cpp, several errors (there are 35 in total) mention MuradinExitPath and go from line 222-231, the next one which is SaurfangExitPath goes from line 237-249, next error features a few syntax errors on line 2337 of the file as well as an Relocate offset not allowing 0 arguements error, next error is an illegal else without matching if error on line 2338 followed by a bunch of syntax errors on line 2339 and finally a "cannot open input file '..scriptsReleasescripts.lib' " error in the worldserver project, all bar the last one are in the scripts project.

Link to comment
Share on other sites

sorry about that, the error code was "non-aggregates cannot be initialized with initialiser list", also, sorry about making a new thread, was not sure if it was an actual cmake/compile issue or an issue with the latest build since at the time of download it had been modified only 1/2 an hour earlier, the file that had the issue was "boss_icecrown_gunship_battle.cpp, several errors (there are 35 in total) mention MuradinExitPath and go from line 222-231, the next one which is SaurfangExitPath goes from line 237-249, next error features a few syntax errors on line 2337 of the file as well as an Relocate offset not allowing 0 arguements error, next error is an illegal else without matching if error on line 2338 followed by a bunch of syntax errors on line 2339 and finally a "cannot open input file '..scriptsReleasescripts.lib' " error in the worldserver project, all bar the last one are in the scripts project.

 

Hey Kira, need some more details...

What version of the compiler are you using

What version of cmake you are using

You can paste a snippet of the error you see and wrap it in 'code' tags

example...

[code]
my error code here
[/code]
Link to comment
Share on other sites

 

Hey Kira, need some more details...

What version of the compiler are you using

What version of cmake you are using

You can paste a snippet of the error you see and wrap it in 'code' tags

example...

[code]
my error code here
[/code]

I am using Cmake 2.8, I tried compiling using the Visual Studio 2010/2012 compilers and it errors out with:

 "C:trinitytestCMakeFilesCMakeTmpcmTryCompileExec348435668.vcxproj"
(default target) (1) ->
(Link target) -> 
LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt [C:trinitytestCMakeFilesCMakeTmpcmTryCompileExec348435668.vcxproj]

which is when I tried setting it to visual studio 2011, this worked.  The other errors (the compiling ones) are as described in my previous post, all are either syntax errors, non-aggregates being unable to be initialized with initialiser list or a bad link in the world project, my previous post describes the exact lines it picks up the errors on and what they all say.

 

This is with the master build I downloaded yesterday (my local time), the master had been edited 1/2  an hour prior as I said above.

Edited by kira1000
Link to comment
Share on other sites

Hello there, 

 

I'am trying to compile my own core but i met with some errors.

My OS is Ubuntu 13.10 32 bit.

This is the error from my terminal:


Linking CXX executable mmaps_generator

/usr/bin/ld: /usr/local/lib/l​ibACE.so: undefined reference to symbol 'pthread_getspec​ific@@GLIBC_2.0'​

/lib/i386-linux-​gnu/libpthread.s​o.0: error adding symbols: DSO missing from command line

collect2: error: ld returned 1 exit status

src/tools/mmaps_​generator/CMakeF​iles/mmaps_gener​ator.dir/build.m​ake:171: polecenia dla obiektu 'src/tools/mmaps​_generator/mmaps​_generator' nie powiodły się

make[2]: *** [src/tools/mmaps​_generator/mmaps​_generator] Błąd 1

CMakeFiles/Makef​ile2:1308: polecenia dla obiektu 'src/tools/mmaps​_generator/CMake​Files/mmaps_gene​rator.dir/all' nie powiodły się

make[1]: *** [src/tools/mmaps​_generator/CMake​Files/mmaps_gene​rator.dir/all] Błąd 2

Makefile:113: polecenia dla obiektu 'all' nie powiodły się

make: *** [all] Błąd 2

Anyone can help me with this error?

Thanks and cheers.

 

 

Link to comment
Share on other sites

i have Debian 6.0.7 and still have this Error "libncurses5-dev " is not work here

apt-get install libncurses5-dev
apt-get: /usr/local/lib/libz.so.1: no version information available (required by /usr/lib/libapt-pkg.so.4.10)
Reading package lists... Done
Building dependency tree
Reading state information... Done
libncurses5-dev is already the newest version.
libncurses5-dev set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  • Upvote 1
Link to comment
Share on other sites

sloved for me with rename this file /usr/local/lib/libz.so.123 i rename this file a few days ago for some bug in networking gui in debian 6.0.7 to libz.so.123.backup so i simply rename it back to orginal and problem solved..

  • Upvote 1
Link to comment
Share on other sites

Bump guys, i really need help with this error

 

 

I'm assuming you mean this?

/usr/bin/ld: /usr/local/lib/l​ibACE.so: undefined reference to symbol 'pthread_getspec​ific@@GLIBC_2.0'​

What else do you need help with?

Your ace is broke or outdated

Link to comment
Share on other sites

Hello,

 

I would like to create a wow server on a Linux server, so I train on a linux machine. I tried instaling a core, but i block during compilation. Here's what i have :

-- Detected 64-bit platform
-- UNIX: Using jemalloc
-- UNIX: Using default configuration directory
-- UNIX: Using default library directory
-- UNIX: Configuring uninstall target
-- UNIX: Created uninstall target
-- UNIX: Detected compiler: /usr/bin/cc
-- GCC: Enabled c++11 support
-- GCC: Enabled C99 support
-- GCC: SFMT enabled, SSE2 flags forced
-- GCC: All warnings enabled
-- Found ACE library: /usr/lib/libACE.so
-- Found ACE headers: /usr/include
-- Configuring incomplete, errors occurred!

CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
  Could NOT find OpenSSL (missing: OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
  cmake/macros/FindOpenSSL.cmake:176 (find_package_handle_standard_args)
  CMakeLists.txt:56 (find_package)

I followed the installation tutorial. I own a machine Ubuntu 13.04 64 bit. Is would this can play? Do you have any advice for me? And in this case, between a 32-bit version and 64-bit, is that the differences in handling and use are huge? I know with windows you could install a core 32-bit on 64-bit, but then I do not know at all. Thank you in advance for your help.

 

 

Link to comment
Share on other sites

Could NOT find OpenSSL (missing: OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIR)

 

What version of openssl and libssl-dev do you have running?

I'm not sure if Ubuntu version 13+ needs a downgrade (I doubt it), but need to check the compatibilities.

If by chance they are installed, they need to be installed globally or path them to your bin directory where you run your binaries.

Link to comment
Share on other sites

  • Aokromes changed the title to Compile or cmake problems
  • Aokromes locked this topic
  • Carbenium unlocked this topic
  • Aokromes pinned and locked this topic
  • Aokromes featured and featured this topic
  • Aokromes pinned this topic
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.


×
×
  • Create New...