compilation

why does cmake compiles everything after git commit

随声附和 提交于 2020-03-04 06:50:17
问题 Lets say I have a code compiling at some time with cmake 2.8 on linux. I change a file "my_changed_file", run cmake, and only this one file is built. So far so good. Now i want to commit this: git add my_changed_file git commit If I run cmake again, i'd expect nothing happens. But all my files are recompiled, despite I didn't touched anything! The timestamp appears to be untouched when I do ls -l. I do have these lines: execute_process( COMMAND git describe --abbrev=8 --dirty --always --tags

How to start a voice quality PESQ test?

大城市里の小女人 提交于 2020-02-26 09:59:26
问题 I'm trying to do a voice quality test (pesq), but I don't understand how to start. I trying to compile a public source code (http://www.itu.int/itu-t/recommendations/index.aspx?ser=P (p.862)) but can't start a test. Maybe anyone work with this? 回答1: You will need a C compiler (The ITU PESQ reference implementation is actually C, so you don't need a C++ compiler, although both should work just fine) For instance, on linux, you would enter the source directory and compile with gcc : $ cd

Flyway callbacks with Oracle compile

不打扰是莪最后的温柔 提交于 2020-02-25 13:51:45
问题 I try to add before migration and after migration scripts as callbacks to flyway for compiling my views, procedures, functions etc. Is there a possibility to stop it before a migration process or have a rollback when before or after scripts fail (or rather return a warning)? Cause the only thing I see right now is I receive warnings like this [WARNING] DB: Warning: execution completed with warning (SQL State: 99999 - Error Code: 17110) and it goes on, without stopping. I thought about

Flyway callbacks with Oracle compile

放肆的年华 提交于 2020-02-25 13:47:40
问题 I try to add before migration and after migration scripts as callbacks to flyway for compiling my views, procedures, functions etc. Is there a possibility to stop it before a migration process or have a rollback when before or after scripts fail (or rather return a warning)? Cause the only thing I see right now is I receive warnings like this [WARNING] DB: Warning: execution completed with warning (SQL State: 99999 - Error Code: 17110) and it goes on, without stopping. I thought about

field initializer is not constant g++ 4.8.4

核能气质少年 提交于 2020-02-25 13:14:09
问题 I tried to compile the following code on my laptop, using g++ 4.8.4: #include <algorithm> #include <iostream> #include <initializer_list> #include <tuple> struct Storage { static const int num_spatial_subset = 8; static constexpr std::initializer_list<std::initializer_list<double>> vectors{ {0,0,0}, {0,1,0}, {0,0,1}, {1,1,0}, {1,0,1}, {0,1,1}, {1,0,0}, {1,1,1} }; double storage[num_spatial_subset][vectors.size()]; }; int main() { } And I got this error message: error: field initializer is not

Cannot compile pcl examples with cmake

无人久伴 提交于 2020-02-25 06:47:09
问题 I just got the pcl installed and would like to run the examples in the folder /pcl-pcl-1.7.1/examples. The different examples each have CMakeLists.txt in them, so I thought I just do a cmake . in the terminal followed by make to compile it. After doing that in the terminal I got CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as cmake_minimum_required(VERSION 2.8) So I looked into the cmake file and the weird thing is that these cmake

AdaptRecursive StackOverflowError

筅森魡賤 提交于 2020-02-25 06:36:05
问题 While compiling my project I get: The system is out of resources. Consult the following stack trace for details. java.lang.StackOverflowError at com.sun.tools.javac.code.Type$WildcardType.isSuperBound(Type.java:435) at com.sun.tools.javac.code.Types$1.visitWildcardType(Types.java:102) at com.sun.tools.javac.code.Types$1.visitWildcardType(Types.java:98) at com.sun.tools.javac.code.Type$WildcardType.accept(Type.java:416) at com.sun.tools.javac.code.Types$MapVisitor.visit(Types.java:3232) at com

AdaptRecursive StackOverflowError

半世苍凉 提交于 2020-02-25 06:35:59
问题 While compiling my project I get: The system is out of resources. Consult the following stack trace for details. java.lang.StackOverflowError at com.sun.tools.javac.code.Type$WildcardType.isSuperBound(Type.java:435) at com.sun.tools.javac.code.Types$1.visitWildcardType(Types.java:102) at com.sun.tools.javac.code.Types$1.visitWildcardType(Types.java:98) at com.sun.tools.javac.code.Type$WildcardType.accept(Type.java:416) at com.sun.tools.javac.code.Types$MapVisitor.visit(Types.java:3232) at com

Why exponential enum keys are used here?

a 夏天 提交于 2020-02-24 15:00:13
问题 Here you can find this code: enum NodeFlags { None = 0, Let = 1, Const = 2, NestedNamespace = 4, Synthesized = 8, Namespace = 16, ExportContext = 32, ContainsThis = 64, And I've seen such numeric constants in other places too. What is the purpose of this? My guess was that it is done to add some new items later somewhere between the existing ones. Especially after seeing this: ThisNodeHasError = 32768, JavaScriptFile = 65536, ThisNodeOrAnySubNodesHasError = 131072, HasAggregatedChildData =

Python, ImportError: undefined symbol: g_utf8_skip

烈酒焚心 提交于 2020-02-24 11:13:07
问题 There are like tens of similar questions on StackOverflow, but after several hours of lurking I finally gave up. So I'm trying to write a C extension for Python. Let's call it mylib . Here is the header file: mylib.h #ifndef mylib_H #define mylib_H #include <Python.h> < ... > #include <glib.h> < ... > and setup.py: from distutils.core import setup, Extension include_list = [ "/usr/include/glib-2.0", "-lglib-2.0", "/usr/lib/x86_64-linux-gnu/glib-2.0/include" ] module = Extension('mylib', [