10-24-2015, 05:51 PM
iirc, when I was switching to rpi2, i had to block compile NEON/armv7 stuff
(i've read somewhere, some time ago that rpi2's cpu has/had(?) problems with NEON, or was it not compatible with it?, i dunno now, also, my old compile from rpi worked okay while i couldn't compile or run(segfault) rpi2 armv7 build)
so code-wise I had to comment out in CmakeLists.txt":
-armv7 detection
- and NEON-related stuff
see if that'll fix anything. If not, I'll try to extract from CMakeCache.txt the values I've used.
(i've read somewhere, some time ago that rpi2's cpu has/had(?) problems with NEON, or was it not compatible with it?, i dunno now, also, my old compile from rpi worked okay while i couldn't compile or run(segfault) rpi2 armv7 build)
so code-wise I had to comment out in CmakeLists.txt":
-armv7 detection
Code:
# Detect CPU from CMAKE configuration. Toolchains should set this up
if(CMAKE_SYSTEM_PROCESSOR)
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^arm")
set(ARM ON)
# if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^armv7")
# set(ARMV7 ON)
# endif()
elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^x86" OR
${CMAKE_SYSTEM_PROCESSOR} MATCHES "^amd64" OR
${CMAKE_SYSTEM_PROCESSOR} MATCHES "i.86")
set(X86 ON)
elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^mips")
set(MIPS ON)
endif()
endif()Code:
set(CommonExtra)
if(ARM)
set(CommonExtra ${CommonExtra}
Common/ArmCPUDetect.cpp
Common/ArmThunk.cpp)
# Common/ColorConvNEON.cpp)see if that'll fix anything. If not, I'll try to extract from CMakeCache.txt the values I've used.

