cmake编jrtplib在test_big_endian处报错

来源:互联网 发布:flv视频剪辑软件 编辑:程序博客网 时间:2024/06/05 12:50

【问题描述】

The C compiler identification is MSVC 16.0.30319.1

The CXX compiler identification is MSVC 16.0.30319.1

Check if the system is big endian

Searching 16 bit integer

CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/TestBigEndian.cmake:44 (message):
no suitable type found
Call Stack (most recent call first):
CMakeLists.txt:70 (test_big_endian)


【解决方案】进度为王,不求甚解:

参考http://www.ogre3d.org/forums/viewtopic.php?f=2&t=54782


jrtplib-3.9.1根目录下 CMakeLists.txt 注释如下语句:

if (CMAKE_CROSSCOMPILING)option (JRTPLIB_USE_BIGENDIAN "Target platform is big endian" FALSE)if (JRTPLIB_USE_BIGENDIAN)set(RTP_ENDIAN "#define RTP_BIG_ENDIAN")else (JRTPLIB_USE_BIGENDIAN)set(RTP_ENDIAN "// Little endian system")endif (JRTPLIB_USE_BIGENDIAN)else (CMAKE_CROSSCOMPILING)#test_big_endian(JRTPLIB_BIGENDIAN)#if (JRTPLIB_BIGENDIAN)#set(RTP_ENDIAN "#define RTP_BIG_ENDIAN")#else (JRTPLIB_BIGENDIAN)set(RTP_ENDIAN "// Little endian system")#endif (JRTPLIB_BIGENDIAN)endif (CMAKE_CROSSCOMPILING)


jrtplib编译参考资料http://www.cnblogs.com/skyseraph/archive/2012/04/07/2435540.html


0 0
原创粉丝点击