Little better
CMake Warning (dev) at Source/Android/android.toolchain.cmake:513 (elseif):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
Quoted variables like "ANDROID" will no longer be dereferenced when the
policy is set to NEW. Since the policy is not set the OLD behavior will be
used.
Call Stack (most recent call first):
CMakeFiles/3.1.0/CMakeSystem.cmake:6 (include)
CMakeLists.txt:48 (project)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at Source/Android/android.toolchain.cmake:1638 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
Quoted variables like "LIBRARY_OUTPUT_PATH_ROOT" will no longer be
dereferenced when the policy is set to NEW. Since the policy is not set
the OLD behavior will be used.
Call Stack (most recent call first):
CMakeFiles/3.1.0/CMakeSystem.cmake:6 (include)
CMakeLists.txt:48 (project)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Could NOT find Git (missing: GIT_EXECUTABLE)
armv7-a
Building for Android
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
EGL OpenGL interface enabled
Using shared zlib
Using static lzo from Externals
Using static libpng from Externals
-- libusb-1.0 not found.
Using static SFML 2.1 from Externals
Using PolarSSL from Externals
Using static SOIL from Externals
Using static iconv from Externals
-- Could NOT find Gettext (missing: GETTEXT_MSGMERGE_EXECUTABLE GETTEXT_MSGFMT_EXECUTABLE)
-- Configuring done
-- Generating done
-- Build files have been written to: D:/Download/dolphin-master
Somes linux command fail x)
[ 22%] Built target polarssl
Scanning dependencies of target SOIL
[ 22%] Building C object Externals/SOIL/CMakeFiles/SOIL.dir/image_DXT.c.o
[ 22%] Building C object Externals/SOIL/CMakeFiles/SOIL.dir/image_helper.c.o
[ 22%] Building C object Externals/SOIL/CMakeFiles/SOIL.dir/SOIL.c.o
[ 22%] Building C object Externals/SOIL/CMakeFiles/SOIL.dir/stb_image_aug.c.o
Linking C static library ..\..\libs\armeabi-v7a\libSOIL.a
[ 22%] Built target SOIL
Scanning dependencies of target iconv
[ 23%] Building C object Externals/libiconv-1.14/CMakeFiles/iconv.dir/lib/iconv.c.o
[ 23%] Building C object Externals/libiconv-1.14/CMakeFiles/iconv.dir/lib/relocatable.c.o
[ 23%] Building C object Externals/libiconv-1.14/CMakeFiles/iconv.dir/libcharset/lib/localcharset.c.o
Linking C static library ..\..\libs\armeabi-v7a\libiconv.a
[ 23%] Built target iconv
Scanning dependencies of target pch
[ 23%] Building CXX object Source/CMakeFiles/pch.dir/PCH/pch.h.o
Linking FAKELANG static library ..\libs\armeabi-v7a\libpch.a
'ln' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
Source\CMakeFiles\pch.dir\build.make:84: recipe for target 'libs/armeabi-v7a/libpch.a' failed
mingw32-make[2]: *** [libs/armeabi-v7a/libpch.a] Error 1
CMakeFiles\Makefile2:568: recipe for target 'Source/CMakeFiles/pch.dir/all' failed
mingw32-make[1]: *** [Source/CMakeFiles/pch.dir/all] Error 2
Makefile:146: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
This is the lines which cause somes problems
libs/armeabi-v7a/libpch.a: Source/CMakeFiles/pch.dir/link.txt
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --red --bold "Linking FAKELANG static library ..\libs\armeabi-v7a\libpch.a"
cd /d D:\Download\dolphin-master\Source && $(CMAKE_COMMAND) -P CMakeFiles\pch.dir\cmake_clean_target.cmake
cd /d D:\Download\dolphin-master\Source && ln -fs D:/Download/dolphin-master/Source/CMakeFiles/pch.dir/pch.h.o D:/Download/dolphin-master/Source/CMakeFiles/pch.dir/pch.h.gch
cd /d D:\Download\dolphin-master\Source && ln -fs D:/Download/dolphin-master/Source/CMakeFiles/pch.dir/pch.h.o D:/Download/dolphin-master/Source/CMakeFiles/pch.dir/pch.h.pch
cd /d D:\Download\dolphin-master\Source && cp D:/Download/dolphin-master/Source/PCH/pch.h D:/Download/dolphin-master/Source/CMakeFiles/pch.dir/pch.h
cd /d D:\Download\dolphin-master\Source && $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles\pch.dir\link.txt --verbose=$(VERBOSE)
need some help X_x
If you really want to compile yourself, and don't want to go through the hassle of actually installing Linux on your system, you can always use a virtual machine. I've never tried to build on Windows, but Linux is usually the easiest for Android-related things. I personally use Ubuntu, but it shouldn't matter.
(01-10-2015, 08:30 AM)SeannyM Wrote: [ -> ]If you really want to compile yourself, and don't want to go through the hassle of actually installing Linux on your system, you can always use a virtual machine. I've never tried to build on Windows, but Linux is usually the easiest for Android-related things. I personally use Ubuntu, but it shouldn't matter.
Yeah it's a good idea. Sonicadvance can help me with compiling under linux like that: p
Sonic xD
Need some help for Ubuntu
root@matyas-VirtualBox:/home/matyas/Downloads/dolphin-master# ANDROID_NDK="/home/matyas/Downloads/android-ndk-r10d" cmake -DANDROID=True -DANDROID_NATIVE_API_LEVEL=android-14 -DCMAKE_TOOLCHAIN_FILE=/home/matyas/Downloads/dolphin-master/Source/Android/android.toolchain.cmake -DANDROID_TOOLCHAIN_NAME=arm-linux-androideabi-clang3.5 -DUSE_GLES3=True
-- Could NOT find Git (missing: GIT_EXECUTABLE)
armv7-a
-- Performing Test FLAG_TYPE_LIMITS
-- Performing Test FLAG_TYPE_LIMITS - Failed
-- Performing Test FLAG_SIGN_COMPARE
-- Performing Test FLAG_SIGN_COMPARE - Failed
-- Performing Test FLAG_IGNORED_QUALIFIERS
-- Performing Test FLAG_IGNORED_QUALIFIERS - Failed
-- Performing Test FLAG_UNINITIALIZED
-- Performing Test FLAG_UNINITIALIZED - Failed
-- Performing Test FLAG_LOGICAL_OP
-- Performing Test FLAG_LOGICAL_OP - Failed
-- Performing Test FLAG_SHADOW
-- Performing Test FLAG_SHADOW - Failed
-- Performing Test FLAG_INIT_SELF
-- Performing Test FLAG_INIT_SELF - Failed
-- Performing Test FLAG_MISSING_DECLARATIONS
-- Performing Test FLAG_MISSING_DECLARATIONS - Failed
-- Performing Test FLAG_MISSING_VARIABLE_DECLARATIONS
-- Performing Test FLAG_MISSING_VARIABLE_DECLARATIONS - Failed
-- Performing Test FLAG_VISIBILITY_INLINES_HIDDEN
-- Performing Test FLAG_VISIBILITY_INLINES_HIDDEN - Failed
-- Performing Test FLAG_VISIBILITY_HIDDEN
-- Performing Test FLAG_VISIBILITY_HIDDEN - Failed
Building for Android
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
EGL OpenGL interface enabled
-- Found ZLIB: /home/matyas/Downloads/android-ndk-r10d/platforms/android-14/arch-arm/usr/lib/libz.so (found version "1.2.3")
Using shared zlib
Using static lzo from Externals
Using static libpng from Externals
-- libusb-1.0 not found.
Using static SFML 2.1 from Externals
Using PolarSSL from Externals
Using static SOIL from Externals
Using static iconv from Externals
-- Could NOT find Gettext (missing: GETTEXT_MSGMERGE_EXECUTABLE GETTEXT_MSGFMT_EXECUTABLE)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/matyas/Downloads/dolphin-master
root@matyas-VirtualBox:/home/matyas/Downloads/dolphin-master# make
Externals/Bochs_disasm/CMakeFiles/bdisasm.dir/depend.make:4: *** target pattern contains no `%'. Stop.
make[1]: *** [Externals/Bochs_disasm/CMakeFiles/bdisasm.dir/all] Error 2
make: *** [all] Error 2
Edit : Working, it's ok
Edit2: Hell no...
[ 90%] Building CXX object Source/Core/Core/CMakeFiles/core.dir/PowerPC/SignatureDB.cpp.o
[ 90%] Building CXX object Source/Core/Core/CMakeFiles/core.dir/PowerPC/JitInterface.cpp.o
In file included from /home/matyas/Downloads/dolphin-masterfinal/Source/Core/Core/PowerPC/JitInterface.cpp:30:
/home/matyas/Downloads/dolphin-masterfinal/Source/Core/Core/PowerPC/JitArm32/Jit.h:33:15: error:
static_assert expression is not an integral constant expression
...PPCSTATE_OFF(spr[1023]) > -4096 && PPCSTATE_OFF(spr[1023]) < 4096, "LDR ...
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/matyas/Downloads/dolphin-masterfinal/Source/Core/Core/PowerPC/JitArm32/Jit.h:30:28: note:
expanded from macro 'PPCSTATE_OFF'
#define PPCSTATE_OFF(elem) ((s32)STRUCT_OFF(PowerPC::ppcState, elem) - (...
^
/home/matyas/Downloads/dolphin-masterfinal/Source/Core/Core/PowerPC/JitArm32/Jit.h:33:15: note:
cast that performs the conversions of a reinterpret_cast is not allowed in
a constant expression
/home/matyas/Downloads/dolphin-masterfinal/Source/Core/Core/PowerPC/JitArm32/Jit.h:30:34: note:
expanded from macro 'PPCSTATE_OFF'
#define PPCSTATE_OFF(elem) ((s32)STRUCT_OFF(PowerPC::ppcState, elem) - (...
^
/home/matyas/Downloads/dolphin-masterfinal/Source/Core/Common/ArmEmitter.h:290:37: note:
expanded from macro 'STRUCT_OFF'
#define STRUCT_OFF(str,elem) ((u32)((u32)&(str).elem-(u32)&(str)))
^
In file included from /home/matyas/Downloads/dolphin-masterfinal/Source/Core/Core/PowerPC/JitInterface.cpp:30:
/home/matyas/Downloads/dolphin-masterfinal/Source/Core/Core/PowerPC/JitArm32/Jit.h:34:15: error:
static_assert expression is not an integral constant expression
...PPCSTATE_OFF(ps[0][0]) >= -1020 && PPCSTATE_OFF(ps[0][0]) <= 1020, "VLD...
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/matyas/Downloads/dolphin-masterfinal/Source/Core/Core/PowerPC/JitArm32/Jit.h:30:28: note:
expanded from macro 'PPCSTATE_OFF'
#define PPCSTATE_OFF(elem) ((s32)STRUCT_OFF(PowerPC::ppcState, elem) - (...
^
/home/matyas/Downloads/dolphin-masterfinal/Source/Core/Core/PowerPC/JitArm32/Jit.h:34:15: note:
cast that performs the conversions of a reinterpret_cast is not allowed in
a constant expression
/home/matyas/Downloads/dolphin-masterfinal/Source/Core/Core/PowerPC/JitArm32/Jit.h:30:34: note:
expanded from macro 'PPCSTATE_OFF'
#define PPCSTATE_OFF(elem) ((s32)STRUCT_OFF(PowerPC::ppcState, elem) - (...
^
/home/matyas/Downloads/dolphin-masterfinal/Source/Core/Common/ArmEmitter.h:290:37: note:
expanded from macro 'STRUCT_OFF'
#define STRUCT_OFF(str,elem) ((u32)((u32)&(str).elem-(u32)&(str)))
^
In file included from /home/matyas/Downloads/dolphin-masterfinal/Source/Core/Core/PowerPC/JitInterface.cpp:30:
/home/matyas/Downloads/dolphin-masterfinal/Source/Core/Core/PowerPC/JitArm32/Jit.h:35:15: error:
static_assert expression is not an integral constant expression
static_assert((PPCSTATE_OFF(ps[0][0]) % 4) == 0, "VLDR requires FPRs to ...
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/matyas/Downloads/dolphin-masterfinal/Source/Core/Core/PowerPC/JitArm32/Jit.h:35:16: note:
cast that performs the conversions of a reinterpret_cast is not allowed in
a constant expression
static_assert((PPCSTATE_OFF(ps[0][0]) % 4) == 0, "VLDR requires FPRs to ...
^
/home/matyas/Downloads/dolphin-masterfinal/Source/Core/Core/PowerPC/JitArm32/Jit.h:30:34: note:
expanded from macro 'PPCSTATE_OFF'
#define PPCSTATE_OFF(elem) ((s32)STRUCT_OFF(PowerPC::ppcState, elem) - (...
^
/home/matyas/Downloads/dolphin-masterfinal/Source/Core/Common/ArmEmitter.h:290:37: note:
expanded from macro 'STRUCT_OFF'
#define STRUCT_OFF(str,elem) ((u32)((u32)&(str).elem-(u32)&(str)))
^
3 errors generated.
make[2]: *** [Source/Core/Core/CMakeFiles/core.dir/PowerPC/JitInterface.cpp.o] Error 1
make[1]: *** [Source/Core/Core/CMakeFiles/core.dir/all] Error 2
make: *** [all] Error 2
This line cause problems :
// Some asserts to make sure we will be able to load everything
static_assert(PPCSTATE_OFF(spr[1023]) > -4096 && PPCSTATE_OFF(spr[1023]) < 4096, "LDR can't reach all of the SPRs");
static_assert(PPCSTATE_OFF(ps[0][0]) >= -1020 && PPCSTATE_OFF(ps[0][0]) <= 1020, "VLDR can't reach all of the FPRs");
static_assert((PPCSTATE_OFF(ps[0][0]) % 4) == 0, "VLDR requires FPRs to be 4 byte aligned");
Boarf...
Clang is up-in-date... Make is up-in-date... Cmake is up-in-date
Always this error
I'm off
Don't use clang to build Dolphin mobile, it's untested on ARMv7 and actually breaks AArch64.
I'd also recommend using native API level 16 or above since I'll be pushing some changes that will require that version minimum soon.
The "-DUSE_GLES3=True" option is no longer available, we detect everything at run time now.