ninja

Error when try to compile Chromium

三世轮回 提交于 2019-12-05 00:40:38
I try to use the command ninja -C out/Debug chrome to compile Chromium. However the error msg says that: ninja error loading 'build.ninja': the system cannot find the file specified ninja Entering dictory 'out/Debug' Could I know what's the problem? Thanks. The out directory and its contents (including build.ninja) are created by running python build\gyp_chromium or gclient runhooks Executing either command from within /src should allow your compile to proceed. After the switch to "gn" you could try: gn gen out/Debug On Windows machine! When I was running gn gen out/Default it also gave me an

CMake 3.8.0 generates wrong link command in makefiles

为君一笑 提交于 2019-12-04 17:29:20
Problem: After I run cmake to generate a project with a STATIC library, which completes successfully, both ninja and mingw32-make fail to make their targets at linking. For SHARED libraries or executables this same setup worked fine. I've tried this both for "Ninja" and "MinGW Makefiles" generators: ninja output: [2/2] Linking CXX static library hello_wsl.lib FAILED: hello_wsl.lib cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E remove hello_wsl.lib && "" qc hello_wsl.lib CMakeFiles/hello_wsl.dir/lib_hello_world.cpp.obj && cd ." """" no se reconoce como un comando interno o

星云精准测试对安卓底层驱动代码的测试案例分析

最后都变了- 提交于 2019-12-03 20:18:36
Android原生底层驱动应用面极广,但一直没有很好的办法进行质量追踪。本文借助星云精准测试的高可靠性的测试技术手段,针对Android原生底层驱动进行分析、插桩、编译、采集数据、数据分析等,逐步讲解精准测试是如何实现android原生底层驱动的对接。 在本文中,我们可以清晰地查看到如何进行技术对接的每一步,比如如何使用星云精准测试进行代码插桩、实现测试用例与采集底层驱动运行代码的数据追溯、对最终采集的数据进行一系列分析等。 一、安卓源码精准测试流程概述 经分析android源码的编译主要依靠Android.bp为纽带连接起来;在编译时,只需要在想要编译的模块目录下执行mm命令即可自动的根据当前目录下的Android.bp文件对其所包含的模块进行编译。 主要流程大致为:先将ZOA通信库源码复制进去并加入某一层次的Android.bp中,再通过对包含所有Android.bp编译信息的ninja文件的解析可以得到Shell认可的插桩json文件,Shell通过json文件对对应目录的代码进行插桩,插桩完成后,把对ZOA通信库的引用加入该模块的Android.bp中再放入ZoaInstru.h头文件后就可以正常编译出插桩程序了。 二、对安卓源码进行精准测试的准备工具 1.安卓原生8.1.0系统源码,放于/data/source2/目录下 2.shell.tar.gz插桩工具包放于

Building a x86 application with CMake, Ninja and Clang on x64 Windows

旧城冷巷雨未停 提交于 2019-12-02 02:16:26
I want to build an x86 Windows application on my x64 Windows machine. I use CMake, Ninja, clang-cl, lld-link and the VS Build Tools 2017 with the following CMakeLists cmake_minimum_required(VERSION 3.9) project(Test CXX) add_library(TestLib STATIC "") target_include_directories(TestLib PUBLIC TestLib/inc ) target_sources(TestLib PRIVATE TestLib/src/Flop.cpp TestLib/src/testClass.cpp ) add_executable(Test "") target_sources(Test PRIVATE src/main.cpp ) target_link_libraries(Test TestLib ) My setup works fine for x64 applications. I initialise the build environment with vcvars64 and call cmake

Building a x86 application with CMake, Ninja and Clang on x64 Windows

丶灬走出姿态 提交于 2019-12-02 01:59:34
问题 I want to build an x86 Windows application on my x64 Windows machine. I use CMake, Ninja, clang-cl, lld-link and the VS Build Tools 2017 with the following CMakeLists cmake_minimum_required(VERSION 3.9) project(Test CXX) add_library(TestLib STATIC "") target_include_directories(TestLib PUBLIC TestLib/inc ) target_sources(TestLib PRIVATE TestLib/src/Flop.cpp TestLib/src/testClass.cpp ) add_executable(Test "") target_sources(Test PRIVATE src/main.cpp ) target_link_libraries(Test TestLib ) My

GTest's output has no colors when built with cmake+ninja and executed automatically

有些话、适合烂在心里 提交于 2019-12-01 04:39:07
I'm trying to configure CMake and ninja as a build system for my project. Except the app itself I have an extra executable for unit tests powered by gtest. I thought it would be nice to have them executed automatically whenever they are built. Here's how I made it: ├── build └── source ├── CMakeLists.txt ├── main.cc └── ut ├── CMakeLists.txt ├── gtest │ ├── ... └── ut.cc source/CMakeLists.txt... cmake_minimum_required (VERSION 2.6) project (trial) add_subdirectory(ut) add_executable(trial main.cc) ...and source/ut/CMakeLists.txt: add_subdirectory(gtest) include_directories ("gtest/include")

Ninja equivalent of Make's “build from this directory down” feature (with CMake)?

徘徊边缘 提交于 2019-11-30 13:17:49
When building a project using CMake and Make, you can execute make from a subdirectory of your build tree (i.e. from a directory below whatever directory contains your top-level Makefile ), and make will (as far as I can tell) build all targets at or below that directory. This is because CMake generates a Makefile for every directory that contains targets, so when you're in a directory with targets, make finds the Makefile for building those targets. When CMake generates Ninja files, however, it only generates one build.ninja file, which is at the top level of the build tree. So calling ninja

CMake -G Ninja on Windows specify x64

隐身守侯 提交于 2019-11-30 04:53:39
I am using CMake on Windows with Ninja generator cmake -G Ninja .. This uses the default Windows x86 toolchain. How to specify x64 using the Ninja generator? PS: I know how to generate x64 with Visual Studio cmake -G "Visual Studio 12 2013 Win64 .. You have to set the compiler environment accordingly before calling Ninja generation. If you have Visual Studio 2013 installed at the standard installation path you call: "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x64 cmake.exe -G "Ninja" .. Edit : Thanks for the hint from @Antwane: "Or simply run CMake command from a

WebRTC : ninja build not working

冷暖自知 提交于 2019-11-29 08:50:23
Steps I followed for build of webRTC in UBUNTU env. Check out the code: gclient config https://webrtc.googlecode.com/svn/trunk echo "target_os = ['android', 'unix']" >> .gclient gclient sync --nohooks Generate ninja makefiles: cd trunk $./build/install-build-deps-android.sh $. build/android/envsetup.sh Defaulting GYP_GENERATORS to ninja $gclient runhooks $android_gyp result of android_gyp: GYP_GENERATORS set to 'ninja' Updating projects from gyp files... gyp: /home/user/webRTC/trunk/chrome/chrome_resources.gyp not found (cwd: /home/user/webRTC/trunk) gyp: /home/user/webRTC/trunk/tools/android

Building c++ project on Windows with CMake, Clang and Ninja

妖精的绣舞 提交于 2019-11-28 23:26:22
I currently have cmake, clang and ninja installed on windows. I am trying to use CMake to generate a ninja build file to compile a very simple hello world program. My CMakeLists.txt looks like this: cmake_minimum_required(VERSION 2.8) project(test_project) add_executable(main main.cpp) main.cpp is a simple hello world program. On the command line I run this: cmake -G Ninja .. and I get the following errors: -- The C compiler identification is Clang 3.5.0 clang.exe: error: no such file or directory: '/nologo' clang.exe: error: no such file or directory: '/showIncludes' -- The CXX compiler