MantisBT - VCMI
View Issue Details
0002802VCMIOtherpublic2017-10-04 15:532023-11-21 13:06
moog 
 
highmajoralways
newopen 
LinuxDebianJessie powerpc
0.99 
 
0002802: VCMI from git fails to compile launcher on powerpc
Can't build the launcher.

Linking CXX executable ../bin/vcmiclient
CMakeFiles/vcmiclient.dir/CVideoHandler.cpp.o: In function `CVideoPlayer::nextFrame()':
/home/mdec/git/vcmi/client/CVideoHandler.cpp:281: undefined reference to `sws_scale'
/home/mdec/git/vcmi/client/CVideoHandler.cpp:294: undefined reference to `sws_scale'
CMakeFiles/vcmiclient.dir/CVideoHandler.cpp.o: In function `CVideoPlayer::close()':
/home/mdec/git/vcmi/client/CVideoHandler.cpp:358: undefined reference to `sws_freeContext'
CMakeFiles/vcmiclient.dir/CVideoHandler.cpp.o: In function `CVideoPlayer::open(std::string, bool, bool, bool)':
/home/mdec/git/vcmi/client/CVideoHandler.cpp:196: undefined reference to `sws_getContext'
/home/mdec/git/vcmi/client/CVideoHandler.cpp:226: undefined reference to `sws_getContext'
collect2: error: ld returned 1 exit status
git clone --recursive https://github.com/vcmi/vcmi.git [^]
mkdir build
cd build
cmake -DSWSCALE_INCLUDE_DIRS=/usr/include -DSWSCALE_LIBRARIES=/usr/lib/powerpc-linux-gnu/libswscale.so.3 ..
make
To reproduce this on another architecture simply change /usr/lib/powerpc-linux-gnu to another architecture's catalog.
No tags attached.
Issue History
2017-10-04 15:53moogNew Issue
2017-10-06 13:31SXXNote Added: 0007289
2017-10-06 13:45SXXNote Added: 0007290
2023-11-21 13:06PovelitelNote Added: 0008859

Notes
(0007289)
SXX   
2017-10-06 13:31   
Why do you need to specify path to swscale manually?

It's seems like at least 0.99 can be built fine on powerpc:
https://packages.debian.org/sid/games/vcmi [^]
(0007290)
SXX   
2017-10-06 13:45   
So yeah just in case, can you try to apply patches and build files from Debian version to latest VCMI?
(0008859)
Povelitel   
2023-11-21 13:06   
I wonder if the problem still exists or is no longer relevant?