I want to build the patrace for android, and i use the ndk from the link in the manual, the sdk is the sdk_r24.4.1 because the version of sdk in the manual cannot be upgraded to acquire the android-23.
But i get the following error, could you give some advice?
Thank you.
./scripts/build.py patrace x11_x64 release
Command : cmake -H/home/paullee/ls/patrace-master/patrace/project/cmake -DCMAKE_TOOLCHAIN_FILE=toolchains/x11_x64.cmake -DCMAKE_INSTALL_PREFIX:PATH=/home/paullee/ls/patrace-master/install/patrace/x11_x64/release -DCMAKE_BUILD_TYPE=Release -DTEST_LIBRARY= -B/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release
Current directory : /home/paullee/ls/patrace-master
Command : cmake -H/home/paullee/ls/patrace-master/patrace/project/cmake -DCMAKE_TOOLCHAIN_FILE=toolchains/x11_x64.cmake -DCMAKE_INSTALL_PREFIX:PATH=/home/paullee/ls/patrace-master/install/patrace/x11_x64/release -DCMAKE_BUILD_TYPE=Release -DTEST_LIBRARY= -B/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release
-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - 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
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- main ar: /usr/bin/ar
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- libpng ar: /usr/bin/ar
-- link with x11: /usr/lib/x86_64-linux-gnu/libX11.so
-- link with x11: /usr/lib/x86_64-linux-gnu/libX11.so
-- link with x11: /usr/lib/x86_64-linux-gnu/libX11.so
-- link with x11: /usr/lib/x86_64-linux-gnu/libX11.so
-- link with x11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Found wxWidgets: -L/usr/lib/x86_64-linux-gnu;-pthread;;;-lwx_gtk2u_core-3.0;-lwx_baseu-3.0;-lwx_gtk2u_richtext-3.0 (found version "3.0.4")
-- -L/usr/lib/x86_64-linux-gnu-pthread-lwx_gtk2u_core-3.0-lwx_baseu-3.0-lwx_gtk2u_richtext-3.0
-- Configuring done
CMake Warning (dev) in pat_editor_gui/CMakeLists.txt:
Policy CMP0071 is not set: Let AUTOMOC and AUTOUIC process GENERATED files.
Run "cmake --help-policy CMP0071" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
For compatibility, CMake is excluding the GENERATED source file(s):
"/home/paullee/ls/patrace-master/patrace/src/common/call_parser.cpp"
from processing by AUTOMOC and AUTOUIC. If any of the files should be
processed, set CMP0071 to NEW. If any of the files should not be
processed, explicitly exclude them by setting the source file property
SKIP_AUTOGEN:
set_property(SOURCE file.h PROPERTY SKIP_AUTOGEN ON)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at fakedriver/CMakeLists.txt:19 (add_dependencies):
Policy CMP0046 is not set: Error on non-existent dependency in
add_dependencies. Run "cmake --help-policy CMP0046" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
The dependency target
"/home/paullee/ls/patrace-master/patrace/project/cmake/../../src/fakedriver/gles1/auto.cpp"
of target "GLESv1_CM" does not exist.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at fakedriver/CMakeLists.txt:9 (add_dependencies):
Policy CMP0046 is not set: Error on non-existent dependency in
add_dependencies. Run "cmake --help-policy CMP0046" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
The dependency target
"/home/paullee/ls/patrace-master/patrace/project/cmake/../../src/fakedriver/egl/auto.cpp"
of target "EGL" does not exist.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at fakedriver/CMakeLists.txt:29 (add_dependencies):
Policy CMP0046 is not set: Error on non-existent dependency in
add_dependencies. Run "cmake --help-policy CMP0046" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
The dependency target
"/home/paullee/ls/patrace-master/patrace/project/cmake/../../src/fakedriver/gles2/auto.cpp"
of target "GLESv2" does not exist.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
-- Build files have been written to: /home/paullee/ls/patrace-master/builds/patrace/x11_x64/release
Command : make install -j8 -C "/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release"
Current directory : /home/paullee/ls/patrace-master
Command : make install -j8 -C "/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release"
make: Entering directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
make[1]: Entering directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
make[2]: Entering directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
make[2]: Entering directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
make[2]: Entering directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
make[2]: Entering directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
make[2]: Entering directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
make[2]: Entering directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
make[2]: Entering directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
make[2]: Entering directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
Scanning dependencies of target eglproc_auto_src_generation
Scanning dependencies of target retrace_gles_auto_src_generation
Scanning dependencies of target snappy_bundled
Scanning dependencies of target md5
Scanning dependencies of target call_parser_src_generation
Scanning dependencies of target glxml_header
Scanning dependencies of target png_bundled
make[2]: Leaving directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
make[2]: Leaving directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
make[2]: Leaving directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
Scanning dependencies of target z_bundled
make[2]: Leaving directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
make[2]: Leaving directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
make[2]: Entering directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
make[2]: *** No rule to make target '/home/paullee/ls/patrace-master/thirdparty/opengl-registry/xml/gl.xml', needed by 'CMakeFiles/eglproc_auto_src_generation'. Stop.
make[2]: Leaving directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
make[2]: Entering directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/eglproc_auto_src_generation.dir/all' failed
make[1]: *** [CMakeFiles/eglproc_auto_src_generation.dir/all] Error 2
make[2]: Entering directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
make[1]: *** Waiting for unfinished jobs....
make[2]: Entering directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
make[2]: Entering directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
make[2]: *** No rule to make target '/home/paullee/ls/patrace-master/thirdparty/opengl-registry/xml/gl.xml', needed by 'CMakeFiles/glxml_header'. Stop.
make[2]: Leaving directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
CMakeFiles/Makefile2:131: recipe for target 'CMakeFiles/glxml_header.dir/all' failed
make[1]: *** [CMakeFiles/glxml_header.dir/all] Error 2
make[2]: Leaving directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
make[2]: Entering directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
make[2]: Leaving directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
[ 0%] Building C object md5/CMakeFiles/md5.dir/md5.c.o
[ 0%] Generating /home/paullee/ls/patrace-master/patrace/src/common/call_parser.cpp
make[2]: Entering directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
[ 0%] Building CXX object snappy/CMakeFiles/snappy_bundled.dir/snappy-sinksource.cc.o
[ 0%] Building CXX object snappy/CMakeFiles/snappy_bundled.dir/snappy-stubs-internal.cc.o
[ 0%] Building CXX object snappy/CMakeFiles/snappy_bundled.dir/snappy.cc.o
[ 0%] Building C object zlib/CMakeFiles/z_bundled.dir/adler32.c.o
make[2]: Leaving directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
make[2]: Entering directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
[ 1%] Building C object libpng/CMakeFiles/png_bundled.dir/png.c.o
Traceback (most recent call last):
File "/home/paullee/ls/patrace-master/patrace/project/cmake/../../src/retracer/retrace.py", line 8, in
import specs.gles12api as gles12api
File "/home/paullee/ls/patrace-master/patrace/project/cmake/../../src/retracer/../specs/gles12api.py", line 36, in
tree = ET.parse(os.path.join(script_dir, '../../../thirdparty/opengl-registry/xml/gl.xml'))
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse
tree.parse(source, parser)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 647, in parse
source = open(source, "rb")
IOError: [Errno 2] No such file or directory: '/home/paullee/ls/patrace-master/patrace/src/specs/../../../thirdparty/opengl-registry/xml/gl.xml'
Traceback (most recent call last):
File "/home/paullee/ls/patrace-master/patrace/project/cmake/../../src/common/call_parser.py", line 7, in
import specs.gles12api as gles12api
File "/home/paullee/ls/patrace-master/patrace/project/cmake/../../src/common/../specs/gles12api.py", line 36, in
tree = ET.parse(os.path.join(script_dir, '../../../thirdparty/opengl-registry/xml/gl.xml'))
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse
tree.parse(source, parser)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 647, in parse
source = open(source, "rb")
IOError: [Errno 2] No such file or directory: '/home/paullee/ls/patrace-master/patrace/src/specs/../../../thirdparty/opengl-registry/xml/gl.xml'
CMakeFiles/retrace_gles_auto_src_generation.dir/build.make:63: recipe for target 'CMakeFiles/retrace_gles_auto_src_generation' failed
make[2]: *** [CMakeFiles/retrace_gles_auto_src_generation] Error 1
make[2]: Leaving directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
CMakeFiles/Makefile2:163: recipe for target 'CMakeFiles/retrace_gles_auto_src_generation.dir/all' failed
make[1]: *** [CMakeFiles/retrace_gles_auto_src_generation.dir/all] Error 2
CMakeFiles/call_parser_src_generation.dir/build.make:66: recipe for target '/home/paullee/ls/patrace-master/patrace/src/common/call_parser.cpp' failed
make[2]: *** [/home/paullee/ls/patrace-master/patrace/src/common/call_parser.cpp] Error 1
make[2]: Leaving directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
CMakeFiles/Makefile2:99: recipe for target 'CMakeFiles/call_parser_src_generation.dir/all' failed
make[1]: *** [CMakeFiles/call_parser_src_generation.dir/all] Error 2
[ 1%] Building C object libpng/CMakeFiles/png_bundled.dir/pngerror.c.o
[ 1%] Building C object libpng/CMakeFiles/png_bundled.dir/pngget.c.o
[ 1%] Building C object zlib/CMakeFiles/z_bundled.dir/compress.c.o
[ 2%] Building C object zlib/CMakeFiles/z_bundled.dir/deflate.c.o
[ 2%] Building C object zlib/CMakeFiles/z_bundled.dir/crc32.c.o
[ 2%] Linking C static library libmd5.a
make[2]: Leaving directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
[ 2%] Built target md5
[ 2%] Building C object zlib/CMakeFiles/z_bundled.dir/gzclose.c.o
[ 2%] Building C object libpng/CMakeFiles/png_bundled.dir/pngmem.c.o
[ 2%] Building C object zlib/CMakeFiles/z_bundled.dir/gzlib.c.o
[ 2%] Building C object libpng/CMakeFiles/png_bundled.dir/pngpread.c.o
[ 3%] Building C object libpng/CMakeFiles/png_bundled.dir/pngread.c.o
[ 3%] Building C object libpng/CMakeFiles/png_bundled.dir/pngrio.c.o
[ 3%] Building C object zlib/CMakeFiles/z_bundled.dir/gzread.c.o
[ 3%] Building C object libpng/CMakeFiles/png_bundled.dir/pngrtran.c.o
[ 4%] Building CXX object snappy/CMakeFiles/snappy_bundled.dir/snappy-c.cc.o
[ 4%] Building C object libpng/CMakeFiles/png_bundled.dir/pngrutil.c.o
[ 5%] Building C object zlib/CMakeFiles/z_bundled.dir/gzwrite.c.o
[ 6%] Building C object libpng/CMakeFiles/png_bundled.dir/pngset.c.o
[ 6%] Building C object zlib/CMakeFiles/z_bundled.dir/inflate.c.o
[ 6%] Building C object libpng/CMakeFiles/png_bundled.dir/pngtrans.c.o
[ 6%] Building C object libpng/CMakeFiles/png_bundled.dir/pngwio.c.o
[ 6%] Linking CXX static library libsnappy_bundled.a
make[2]: Leaving directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
[ 6%] Building C object libpng/CMakeFiles/png_bundled.dir/pngwrite.c.o
[ 6%] Built target snappy_bundled
[ 7%] Building C object libpng/CMakeFiles/png_bundled.dir/pngwtran.c.o
[ 7%] Building C object libpng/CMakeFiles/png_bundled.dir/pngwutil.c.o
[ 7%] Building C object zlib/CMakeFiles/z_bundled.dir/infback.c.o
[ 7%] Building C object zlib/CMakeFiles/z_bundled.dir/inftrees.c.o
[ 8%] Building C object zlib/CMakeFiles/z_bundled.dir/inffast.c.o
[ 8%] Building C object zlib/CMakeFiles/z_bundled.dir/trees.c.o
[ 8%] Building C object zlib/CMakeFiles/z_bundled.dir/uncompr.c.o
[ 8%] Building C object zlib/CMakeFiles/z_bundled.dir/zutil.c.o
[ 8%] Linking C static library libpng_bundled.a
[ 9%] Linking C static library libz_bundled.a
make[2]: Leaving directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
[ 9%] Built target png_bundled
make[2]: Leaving directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
[ 9%] Built target z_bundled
make[1]: Leaving directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
make: Leaving directory '/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release'
The following command failed with error code 2:
make install -j8 -C "/home/paullee/ls/patrace-master/builds/patrace/x11_x64/release"