-
Posts
30 -
Joined
-
Last visited
-
Days Won
1
Posts posted by Oroduin
-
-
-
hm you can also use clang works too
try to add -DCMAKE_OSX_SYSROOT="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk"
-
-
nice thanks
works fine with gcc4.4.7 and apples clang 5.0x
-
anyone can fix this pls? :/
-
-- The CXX compiler identification is GNU 4.7.3
and same errors with gcc473 :/
/Users/jeremymeile/Downloads/TrinityCore/src/server/shared/Cryptography/OpenSSLCrypto.cpp: In function 'void threadIdCallback(CRYPTO_THREADID*)':/Users/jeremymeile/Downloads/TrinityCore/src/server/shared/Cryptography/OpenSSLCrypto.cpp:36:55: error: invalid conversion from 'ACE_thread_t {aka _opaque_pthread_t*}' to 'long unsigned int' [-fpermissive]In file included from /Users/jeremymeile/Downloads/TrinityCore/src/server/shared/Cryptography/OpenSSLCrypto.cpp:19:0:/Applications/gcc44/openssl/x86_64/include/openssl/crypto.h:435:6: error: initializing argument 2 of 'void CRYPTO_THREADID_set_numeric(CRYPTO_THREADID*, long unsigned int)' [-fpermissive]make[2]: *** [src/server/shared/CMakeFiles/shared.dir/Cryptography/OpenSSLCrypto.cpp.o] Error 1make[2]: *** Waiting for unfinished jobs.... -
Of course, I've also done so:
cmake ../ -DPREFIX="/trinityserver" -DTOOLS=1 -DSERVERS=1 -DSCRIPTS=1 -DWITHOUT_GIT=0 -DACE_LIBRARY="/trinityserver/lib/libACE.dylib" -DACE_INCLUDE_DIR="/Applications/gcc44/ace/include" -DREADLINE_LIBRARY="/trinityserver/lib/libreadline.6.2.dylib" -DREADLINE_INCLUDE_DIR="/Applications/gcc44/readline/include" -DMYSQL_CONFIG="/trinityserver/mysql/bin/mysql_config" -DWITH_WARNINGS=0 -DWITH_COREDEBUG=0 -DCMAKE_C_COMPILER="/Applications/gcc44/gcc/bin/gcc" -DCMAKE_CXX_COMPILER="/Applications/gcc44/gcc/bin/c++" -DUSE_SCRIPTPCH=0 -DUSE_COREPCH=0 -DOPENSSL_LIBRARIES="/trinityserver/lib/libssl.1.0.0.dylib" -DOPENSSL_CRYPTO_LIBRARIES="/trinityserver/lib/libcrypto.1.0.0.dylib" -DOPENSSL_SSL_LIBRARIES="/trinityserver/lib/libssl.1.0.0.dylib" -DOPENSSL_INCLUDE_DIR="/Applications/gcc44/openssl/x86_64/include" -DOPENSSL_ROOT_DIR="/Applications/gcc44/openssl/x86_64/bin" -
hm nothing changes if i add
-DOpenSSL_ROOT_DIR=/path/to/openssl1/bin
or / and
-DOPENSSL_LIBRARIES=/path/to/openssl1/lib/libssl.so
should I open a ticket?
-
same errors with -DOPENSSL_LIBRARIES
and my cmake says there is no -DOPENSSL_LIBRARIES:
-
i allready use:
-DOPENSSL_CRYPTO_LIBRARIES="/trinityserver/lib/libcrypto.1.0.0.dylib"-DOPENSSL_SSL_LIBRARIES="/trinityserver/lib/libssl.1.0.0.dylib"-DOPENSSL_INCLUDE_DIR="/Applications/gcc44/openssl/x86_64/include"-DOPENSSL_ROOT_DIR="/Applications/gcc44/openssl/x86_64"/Applications/gcc44/openssl is prefix folder of my compiled openssli copied the libs to /trinityserver/lib/ toobut like i said it also fails with all other openssl 1.0.x binaries (macports, home-brew fink etc)building openssl on osx (you can't do it wrong)#!/bin/bashOPENSSL_VERSION="1.0.0e"rm -d -f -r openssl-$OPENSSL_VERSION.tar.gzcurl -O http://www.openssl.org/source/openssl-$OPENSSL_VERSION.tar.gztar -xvzf openssl-$OPENSSL_VERSION.tar.gzcd openssl-1.0.0e/./Configure darwin64-x86_64-cc -shared --prefix=/Applications/gcc44/opensslmake -j $(sysctl -n hw.ncpu)make install -
Ok .. i have read all the threads in this forum and i know the FAQs..
- I know how to build TrinityCore on OSX
- I compiled OpenSSL 1.0.1e from http://www.openssl.org
- I use GCC4.4.7
cmake returns:
-- Found OpenSSL library: /trinityserver/lib/libssl.1.0.0.dylib;/trinityserver/lib/libcrypto.1.0.0.dylib-- Found OpenSSL headers: /Applications/gcc44/openssl/x86_64/includeAll fine.. but i alwas get this error (on all my macs with OSX 10.6-10.8 on both builds m32 and m64) :[ 6%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/Line.cpp.o/Users/jeremymeile/Downloads/TrinityCore/src/server/shared/Cryptography/OpenSSLCrypto.cpp: In function 'void threadIdCallback(CRYPTO_THREADID*)':/Users/jeremymeile/Downloads/TrinityCore/src/server/shared/Cryptography/OpenSSLCrypto.cpp:36: error: invalid conversion from '_opaque_pthread_t*' to 'long unsigned int'/Users/jeremymeile/Downloads/TrinityCore/src/server/shared/Cryptography/OpenSSLCrypto.cpp:36: error: initializing argument 2 of 'void CRYPTO_THREADID_set_numeric(CRYPTO_THREADID*, long unsigned int)'make[2]: *** [src/server/shared/CMakeFiles/shared.dir/Cryptography/OpenSSLCrypto.cpp.o] Error 1make[2]: *** Waiting for unfinished jobs....[ 6%] Building CXX object dep/g3dlite/CMakeFiles/g3dlib.dir/source/LineSegment.cpp.oi also tried macports and home-brews openssl .. nothing is working
Any other mac users here know to fix it??
Compile or cmake problems
in Help and Support
Posted