Poblem building latest STK's git on Mac OSX

Poblem building latest STK's git on Mac OSX

Postby sNuntz » 06 Nov 2019, 00:32

I try to compile the last git on mac
at end of work occur the following error:

[100%] Linking CXX executable bin/supertuxkart.app/Contents/MacOS/supertuxkart
Undefined symbols for architecture x86_64:
"_EVP_CIPHER_CTX_reset", referenced from:
Crypto::Crypto(std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > const&, std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > const&) in client_lobby.cpp.o
Crypto::Crypto(std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > const&, std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > const&) in server_lobby.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [bin/supertuxkart.app/Contents/MacOS/supertuxkart] Error 1
make[1]: *** [CMakeFiles/supertuxkart.dir/all] Error 2
make: *** [all] Error 2

same problem on Sierra, High Sierra and Mojave
I think is an Xcode problem
Someone knows how to fix?
Thanks in advance
sNuntz
 
Posts: 15
Joined: 13 Jun 2019, 20:12

Re: Poblem building latest STK's git on Mac OSX

Postby benau » 06 Nov 2019, 03:28

seems that you have mulitple openssl version in your mac....

try keep only 1.1 openssl version in your /usr/local (or try use nettle instead in cmake)

not sure if you have interests to try ios stk lol! (visit irc for details)
Image
benau
STK Moderator
 
Posts: 505
Joined: 08 Dec 2015, 17:32

Re: Poblem building latest STK's git on Mac OSX

Postby sNuntz » 08 Nov 2019, 00:00

brew say: "openssl 1.0.2t is already installed and up-to-date"
i tried to remove it on brew
I can't fix the issue
I don't know how to use nettle

I'm interested to try stk for ios, which irc i have to visit? I couldn't find anything
Sorry
sNuntz
 
Posts: 15
Joined: 13 Jun 2019, 20:12

Re: Poblem building latest STK's git on Mac OSX

Postby benau » 08 Nov 2019, 04:16

Image
benau
STK Moderator
 
Posts: 505
Joined: 08 Dec 2015, 17:32

Re: Poblem building latest STK's git on Mac OSX

Postby sNuntz » 09 Nov 2019, 17:27

Installing openssl1.1.1d solved the problem

I don't know how to uninstall old version , just deleted a library file
Building success
Thanks
sNuntz
 
Posts: 15
Joined: 13 Jun 2019, 20:12

Re: Poblem building latest STK's git on Mac OSX

Postby markwilson » 30 Dec 2019, 08:41

On the macOS building problem of latest STK's, I got some error code but I can't decode the code, I don't know what type of error code of these, I am a developer (beginner level), I want a new version of STK, The problem which I faced it might be the new update of macOS which I recently got form mac, after update my macOS I had faced different problems like some verification problems, I can't log in my iCloud service, showing an error message icloud verification failed issue, https://iphonesupportnumber.com/blog/ho ... on-iphone/ and the 2nd problem I had faced is- some of the pcs games which I installed on my mac and after the update, I can't open the files there are some files are missing.
Last edited by markwilson on 31 Dec 2019, 07:58, edited 2 times in total.
markwilson
 
Posts: 1
Joined: 30 Dec 2019, 08:23

Re: Poblem building latest STK's git on Mac OSX

Postby benau » 30 Dec 2019, 16:01

Image
benau
STK Moderator
 
Posts: 505
Joined: 08 Dec 2015, 17:32

Re: Poblem building latest STK's git on Mac OSX

Postby sNuntz » 30 Aug 2020, 10:56

Hi!
The latest git downloaded yesterday don't compile on Mac OSX (I use 10.14.6 Mojave)
If i use -DSERVER_ONLY=ON build successfully
otherwise building stop after 23%

[ 22%] Building CXX object lib/irrlicht/CMakeFiles/stkirrlicht.dir/source/Irrlicht/CGUITreeView.cpp.o
[ 22%] Building CXX object lib/irrlicht/CMakeFiles/stkirrlicht.dir/source/Irrlicht/CGUIWindow.cpp.o
[ 22%] Building CXX object lib/irrlicht/CMakeFiles/stkirrlicht.dir/source/Irrlicht/CImage.cpp.o
In file included from /Users/NunziMacPro/stk-code/lib/irrlicht/source/Irrlicht/CImage.cpp:8:
/Users/MacPro/stk-code/lib/irrlicht/source/Irrlicht/CBlit.h:1165:12: warning: unused function 'StretchBlit' [-Wunused-function]
static s32 StretchBlit(eBlitter operation,
^
/Users/MacPro/stk-code/lib/irrlicht/source/Irrlicht/CBlit.h:1222:13: warning: unused function 'drawRectangle' [-Wunused-function]
static void drawRectangle(video::IImage* img, const core::rect<s32>& rect, const video::SColor &color)
^
/Users/MacPro/stk-code/lib/irrlicht/source/Irrlicht/CBlit.h:1230:13: warning: unused function 'drawLine' [-Wunused-function]
static void drawLine(video::IImage* img, const core::position2d<s32>& from,
^
3 warnings generated.
[ 22%] Building CXX object lib/irrlicht/CMakeFiles/stkirrlicht.dir/source/Irrlicht/CImageLoaderBMP.cpp.o
[ 22%] Building CXX object lib/irrlicht/CMakeFiles/stkirrlicht.dir/source/Irrlicht/CImageLoaderJPG.cpp.o
[ 22%] Building CXX object lib/irrlicht/CMakeFiles/stkirrlicht.dir/source/Irrlicht/CImageLoaderPNG.cpp.o
[ 22%] Building CXX object lib/irrlicht/CMakeFiles/stkirrlicht.dir/source/Irrlicht/CImageLoaderSVG.cpp.o
[ 23%] Building CXX object lib/irrlicht/CMakeFiles/stkirrlicht.dir/source/Irrlicht/CImageWriterBMP.cpp.o
[ 23%] Building CXX object lib/irrlicht/CMakeFiles/stkirrlicht.dir/source/Irrlicht/CImageWriterJPG.cpp.o
[ 23%] Building CXX object lib/irrlicht/CMakeFiles/stkirrlicht.dir/source/Irrlicht/CImageWriterPNG.cpp.o
[ 23%] Building CXX object lib/irrlicht/CMakeFiles/stkirrlicht.dir/source/Irrlicht/CIrrDeviceSDL.cpp.o
In file included from /Users/MacPro/stk-code/lib/irrlicht/source/Irrlicht/CIrrDeviceSDL.cpp:9:
In file included from /Users/MacPro/stk-code/lib/irrlicht/source/Irrlicht/CIrrDeviceSDL.h:15:
In file included from /Users/MacPro/stk-code/lib/irrlicht/source/Irrlicht/CIrrDeviceStub.h:10:
/Users/MacPro/stk-code/lib/irrlicht/include/SIrrCreationParameters.h:34:37: error: use of undeclared identifier
'SDL_WINDOWPOS_UNDEFINED'
WindowPosition(core::position2di(SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED)),
^
/Users/MacPro/stk-code/lib/irrlicht/include/SIrrCreationParameters.h:34:62: error: use of undeclared identifier
'SDL_WINDOWPOS_UNDEFINED'
WindowPosition(core::position2di(SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED)),
^
In file included from /Users/MacPro/stk-code/lib/irrlicht/source/Irrlicht/CIrrDeviceSDL.cpp:9:
In file included from /Users/MacPro/stk-code/lib/irrlicht/source/Irrlicht/CIrrDeviceSDL.h:20:
/Users/MacPro/Library/Frameworks/SDL.framework/Headers/SDL_syswm.h:58:10: fatal error: 'X11/Xlib.h' file not found
#include <X11/Xlib.h>
^~~~~~~~~~~~
3 errors generated.
make[2]: *** [lib/irrlicht/CMakeFiles/stkirrlicht.dir/source/Irrlicht/CIrrDeviceSDL.cpp.o] Error 1
make[1]: *** [lib/irrlicht/CMakeFiles/stkirrlicht.dir/all] Error 2
make: *** [all] Error 2
sNuntz
 
Posts: 15
Joined: 13 Jun 2019, 20:12

Re: Poblem building latest STK's git on Mac OSX

Postby benau » 30 Aug 2020, 12:46

Your sdl framework version seems to be outdated.....
Image
benau
STK Moderator
 
Posts: 505
Joined: 08 Dec 2015, 17:32

Re: Poblem building latest STK's git on Mac OSX

Postby sNuntz » 30 Aug 2020, 20:40

Yes, an SDL framework problem this time
solved for now
compiling successfully but I didn't understand how to
I had to change the names for SDL and SDL2 during compiling
both seem to be needed
maybe my system's library has problems
Thanks
sNuntz
 
Posts: 15
Joined: 13 Jun 2019, 20:12

Who is online

Users browsing this forum: No registered users and 1 guest