在 MIPS 上编译 - ASM
Compiling on MIPS - ASM
我正在尝试在我的新 Ci20 上编译 Plex 家庭影院,但我遇到了一些我认为与 ASM 相关的构建错误,我对 ASM 一无所知我想知道是否有人能够提供任何帮助。
构建错误
[ 19%] Building CXX object xbmc/CMakeFiles/xbmc.dir/GUIInfoManager.cpp.o
In file included from /home/ci20/plex-home-theater-public/xbmc/linux/PlatformInclude.h:25:0,
from /home/ci20/plex-home-theater-public/xbmc/system.h:254,
from /home/ci20/plex-home-theater-public/xbmc/network/Network.h:26,
from /home/ci20/plex-home-theater-public/xbmc/GUIInfoManager.cpp:21:
/home/ci20/plex-home-theater-public/xbmc/linux/XHandlePublic.h:41:1: warning: ‘__stdcall__’ attribute directive ignored [-Wattributes]
In file included from /home/ci20/plex-home-theater-public/xbmc/linux/PlatformInclude.h:27:0,
from /home/ci20/plex-home-theater-public/xbmc/system.h:254,
from /home/ci20/plex-home-theater-public/xbmc/network/Network.h:26,
from /home/ci20/plex-home-theater-public/xbmc/GUIInfoManager.cpp:21:
/home/ci20/plex-home-theater-public/xbmc/linux/XTimeUtils.h:28:39: warning: ‘__stdcall__’ attribute directive ignored [-Wattributes]
In file included from /home/ci20/plex-home-theater-public/xbmc/GUIInfoManager.cpp:55:0:
/home/ci20/plex-home-theater-public/xbmc/utils/MathUtils.h: In function ‘int MathUtils::round_int(double)’:
/home/ci20/plex-home-theater-public/xbmc/utils/MathUtils.h:150:6: error: unknown register name ‘st’ in ‘asm’
make[2]: *** [xbmc/CMakeFiles/xbmc.dir/GUIInfoManager.cpp.o] Error 1
make[1]: *** [xbmc/CMakeFiles/xbmc.dir/all] Error 2
make: *** [all] Error 2
/xbmc/utils/MathUtils.h
https://github.com/plexinc/plex-home-theater-public/blob/pht-frodo/xbmc/utils/MathUtils.h
非常感谢任何指导!
问题是 DISABLE_MATHUTILS_ASM_ROUND_INT
没有设置,所以,由于没有 MIPS 版本,编译器试图编译默认的 x86 asm 版本,这显然是行不通的。
仔细观察,您可能应该扩展从第 35 行开始的条件以检测您的 MIPS 并禁用 asm 代码。或者,作为一种快速破解,您可以在第 50 行将无条件 #define DISABLE_MATHUTILS_ASM_ROUND_INT
和 #define DISABLE_MATHUTILS_ASM_TRUNCATE_INT
一起粘贴以使其编译。
代码的逻辑似乎有缺陷,他们应该专门只在他们有 asm 代码的架构上启用 asm 代码,而不是相反...
我正在尝试在我的新 Ci20 上编译 Plex 家庭影院,但我遇到了一些我认为与 ASM 相关的构建错误,我对 ASM 一无所知我想知道是否有人能够提供任何帮助。
构建错误
[ 19%] Building CXX object xbmc/CMakeFiles/xbmc.dir/GUIInfoManager.cpp.o
In file included from /home/ci20/plex-home-theater-public/xbmc/linux/PlatformInclude.h:25:0,
from /home/ci20/plex-home-theater-public/xbmc/system.h:254,
from /home/ci20/plex-home-theater-public/xbmc/network/Network.h:26,
from /home/ci20/plex-home-theater-public/xbmc/GUIInfoManager.cpp:21:
/home/ci20/plex-home-theater-public/xbmc/linux/XHandlePublic.h:41:1: warning: ‘__stdcall__’ attribute directive ignored [-Wattributes]
In file included from /home/ci20/plex-home-theater-public/xbmc/linux/PlatformInclude.h:27:0,
from /home/ci20/plex-home-theater-public/xbmc/system.h:254,
from /home/ci20/plex-home-theater-public/xbmc/network/Network.h:26,
from /home/ci20/plex-home-theater-public/xbmc/GUIInfoManager.cpp:21:
/home/ci20/plex-home-theater-public/xbmc/linux/XTimeUtils.h:28:39: warning: ‘__stdcall__’ attribute directive ignored [-Wattributes]
In file included from /home/ci20/plex-home-theater-public/xbmc/GUIInfoManager.cpp:55:0:
/home/ci20/plex-home-theater-public/xbmc/utils/MathUtils.h: In function ‘int MathUtils::round_int(double)’:
/home/ci20/plex-home-theater-public/xbmc/utils/MathUtils.h:150:6: error: unknown register name ‘st’ in ‘asm’
make[2]: *** [xbmc/CMakeFiles/xbmc.dir/GUIInfoManager.cpp.o] Error 1
make[1]: *** [xbmc/CMakeFiles/xbmc.dir/all] Error 2
make: *** [all] Error 2
/xbmc/utils/MathUtils.h
https://github.com/plexinc/plex-home-theater-public/blob/pht-frodo/xbmc/utils/MathUtils.h
非常感谢任何指导!
问题是 DISABLE_MATHUTILS_ASM_ROUND_INT
没有设置,所以,由于没有 MIPS 版本,编译器试图编译默认的 x86 asm 版本,这显然是行不通的。
仔细观察,您可能应该扩展从第 35 行开始的条件以检测您的 MIPS 并禁用 asm 代码。或者,作为一种快速破解,您可以在第 50 行将无条件 #define DISABLE_MATHUTILS_ASM_ROUND_INT
和 #define DISABLE_MATHUTILS_ASM_TRUNCATE_INT
一起粘贴以使其编译。
代码的逻辑似乎有缺陷,他们应该专门只在他们有 asm 代码的架构上启用 asm 代码,而不是相反...