Greetings.
Just got a new Raspberry Pi 2 and a small TV to test it with. Tried compiling Urho3D from the source on the github.io site and from the master, got this:
./cmake_generic.sh $URHO3D_HOME
-- The C compiler identification is GNU 4.6.3
-- The CXX compiler identification is GNU 4.6.3
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found Broadcom VideoCore firmware: /opt/vc/lib/libbcm_host.so;/opt/vc/lib/libEGL.so;/opt/vc/lib/libGLESv2.so /opt/vc/include;/opt/vc/include/interface/vcos/pthreads
-- Looking for include file stdint.h
-- Looking for include file stdint.h - not found.
-- Found ALSA: /usr/lib/arm-linux-gnueabihf/libasound.so (found version "1.0.25")
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/gcc
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Failed
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Failed
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Failed
-- Performing Test COMPILER_HAS_DEPRECATED
-- Performing Test COMPILER_HAS_DEPRECATED - Failed
cc1plus: error: bad value (cortex-a7) for -mcpu switch
CMake Error at CMake/Modules/Urho3D-CMake-common.cmake:756 (message):
The configured compiler toolchain in the build tree is not able to handle
all the compiler flags required to build the project with PCH enabled.
Please kindly update your compiler toolchain to its latest version. If you
are using MinGW then make sure it is MinGW-W64 instead of MinGW-W32 or
TDM-GCC (Code::Blocks default). Or disable the PCH build support by
passing the '-DURHO3D_PCH=0' when retrying to configure/generate the build
tree. However, if you think there is something wrong with our build system
then kindly file a bug report to the project devs.
Call Stack (most recent call first):
CMake/Modules/Urho3D-CMake-common.cmake:817 (enable_pch)
CMake/Modules/Urho3D-CMake-common.cmake:882 (setup_target)
Source/Urho3D/CMakeLists.txt:200 (setup_library)
-- Configuring incomplete, errors occurred!
Tried building it without sound as mentioned above and I got another error. Then tried the cross-compiling option and I get the same errors as above.
Additionally I checked out the arm7 package for the Pi 2 on the github.io page and it had some glitches including not being able to move the mouse cursor and the character model rendering strangely.
Thanks in advance for your help.