Jump to content
TrinityCore
Sign in to follow this  
neurobomber

[SOLVED]Compiling with an ARM Processor

Recommended Posts

Hey guys, I was trying to compile a WoW server on my Raspberry Pi. Currently using Raspbian. I know that the requirements state that is requires an SSE2 supported processor but I was able to compile it successfully with this forked repo: trinitycore-portable

Unfortunately that fork hasn't been kept up to date for years and the documentation for getting it updated is basically non-existent. I guess I could just use an older version of TrinityCore but I can't seem to get the version of that forked repo anywhere so I can't figure out which sql files I need to download to get it to work.

Anyway, whenever I try to compile I get an error message of:

Run Build Command:"/usr/bin/make" "cmTryCompileExec778052740/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec778052740.dir/build.make CMakeFiles/cmTryCompileExec778052740.dir/build
make[1]: Entering directory '/home/pi/TrinityCore/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/pi/TrinityCore/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec778052740.dir/CheckIncludeFiles.c.o
/usr/bin/cc   -std=gnu99 -msse2 -mfpmath=sse    -o CMakeFiles/cmTryCompileExec778052740.dir/CheckIncludeFiles.c.o   -c /home/pi/TrinityCore/build/CMakeFiles/CMakeTmp/CheckIncludeFiles.c
cc: error: unrecognized command line option ‘-msse2’
cc: error: unrecognized command line option ‘-mfpmath=sse’

CMakeFiles/cmTryCompileExec778052740.dir/build.make:57: recipe for target 'CMakeFiles/cmTryCompileExec778052740.dir/CheckIncludeFiles.c.o' failed
make[1]: *** [CMakeFiles/cmTryCompileExec778052740.dir/CheckIncludeFiles.c.o] Error 1
make[1]: Leaving directory '/home/pi/TrinityCore/build/CMakeFiles/CMakeTmp'
Makefile:118: recipe for target 'cmTryCompileExec778052740/fast' failed
make: *** [cmTryCompileExec778052740/fast] Error 2

Source:
/* */
#include <pthread.h>
int main(){return 0;}

I bolded where I think the main error is.The portable trinitycore repo offered the options to use -DSKIP_SSE2=1 -DSTANDARDIZE_ASM=1 in order to skip using SSE2 but it appears this isn't available in the main repo. Is there any way at all I can get this work on a Pi? Anybody have any luck with this or have any suggestions? I've seen a bunch of mentions in the past of people claiming to have this work but nobody offers any advice on how to do it.

Share this post


Link to post
Share on other sites

Here's my output (if that helps):

 cmake ../ -DSKIP_SSE2=1 -DSTANDARDIZE_ASM=1
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- 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 32-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
-- Found OpenSSL library: /usr/lib/arm-linux-gnueabihf/libssl.so;/usr/lib/arm-linux-gnueabihf/libcrypto.so
-- Found OpenSSL headers: /usr/include
-- Looking for include file pthread.h
-- Looking for include file pthread.h - not found
CMake Error at /usr/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:136 (message):
  Could NOT find Threads (missing: Threads_FOUND)
Call Stack (most recent call first):
  /usr/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:343 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.0/Modules/FindThreads.cmake:178 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:60 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/pi/TrinityCore/build/CMakeFiles/CMakeOutput.log".
See also "/home/pi/TrinityCore/build/CMakeFiles/CMakeError.log".

 

Share this post


Link to post
Share on other sites

--- Canned message start --- It appears the issue in the original post was solved, so this thread shall be closed. Should you encounter any other difficulties, please open a new thread. --- Canned message end ---

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...