opencv compile with clang ok, with gcc not ok os x 10.9

I am on OS X 10.9, with opencv-2.4.8.2 installed. I am trying to compile a simple code: #include <stdio.h> #include <opencv2/opencv.hpp> using namespace cv; int main(int argc, char** argv ) { ...

Trilinos - Make - arguments list too long

I need to compile my code which uses Trilinos. The problem is, every time I get this error: c++: error trying to exec '/usr/lib/gcc/x86_64-linux-gnu/4.9/cc1plus': execv: Argument list too long I...

Disambiguate class-member in multiple inheritance

Suppose I have this variadic base class-template: template <typename ... Types> class Base { public: // The member foo() can only be called when its template // parameter is contained...

Debian: dist-upgrade removes gnome and many other stuff

I am (was) running the Debian Sid and faced a major update problem few days ago. It was weekend and I was just going to upgrade stuff, did sudo apt-get update, then sudo apt-get upgrade. Then I...

Proper way to build clang and libc++ together (bootstrap)

I would like to build a recent clang + llvm + libc++. I'm currently on a system (based on CentOS 6.6) where I can't easily get binary packages of clang, but where I can set up a GCC recent enough...

Compile-time literal string as template argument

I'm trying to convert a C++ literal string into an instance of the following template: template <char ... C> struct string_literal { typedef string_constant type; static constexpr const char...

Unresolved symbols when linking libgio.so with libz.so (linux)

The Short Version Linking my executable against several libraries, including libgio-2.0.so.0.4800.1 (libgio-2.0.so) and libz.so.1.2.8 (libz.so), I get two unresolved symbols -...

How do I tell Android Studio to use GCC 4.9 with CMake?

I'm using NDK r12 with Android Studio 2.2. I need CMake to use GCC 4.9 instead of Clang to build our code base, however even if I provide the following it still uses clang: android { ...

std::vector<uint8_t> manually copying instead of calling memcpy when C++11/14 enabled

Using gcc 4.9, cross-compiling for ARM using the Linaro toolchain, I have found the compiled result of vector.assign() changes when adding -std=c++14, in a way that creates significant performance...

Linking position-dependent assembly on Debian

I'm having trouble linking position-dependent assembly using GCC on Debian 9. The following is the hello.s file in assembly: .section .rodata hello_str: .string "Hello world" .text .globl...

AOSP error - FAILED: /bin/bash -c "prebuilts/clang/host/linux-x86/clang-2690385/bin/clang++

[ 2% 247/11700] target SharedLib: lib...libart_intermediates/LINKED/libart.so) FAILED: /bin/bash -c "prebuilts/clang/host/linux-x86/clang-2690385/bin/clang++ -nostdlib -Wl,-soname,libart.so...

NDK Clang error: undefined reference to 'localeconv'

I am trying to build C++ NDK lib inside Android Studio.I have an external lib called json and the Clang compiler faild on localeconv. json.hpp:11867: error: undefined reference to...

Ubuntu14.04 gets stuck in a login loop

My Ubuntu14.04 gets stuck in a login loop. i can auto login to desktop as root,but other user gets stuck in a login loop. (It is a dual-boot system ,windows 7 and Ubuntu14.04) One day i chmod -R...

undeclared identifier 'setfscreation' AOSP

I'm trying to build AOSP but I get this strange error. It's about SELinux module i think. Anyone of you guys have ever encountered this kind of problem? [ 65% 22783/34570] target thumb C++:...

Fail to install gcc-4.9 in ubuntu17.04

While trying to build llvm 3.4 from source on Ubuntu 17.04, I have encountered some problems related to gcc 6.3 (described here), so I want to use gcc-4.9. However, when I run from terminal: sudo...

Compiling android .so library on visual studio error with android ndk 15c __signbit

i was using android ndk 13b with visual studio 2017 and i got an update for android ndk 15c which added one error. I am also using new Clang 5.0 (before it was 3.8). This is the error...

Gfortran can't compile NumPy

I'm working on a Raspberry-based project that needs SciPy, NumPy and scikit-learn. And we need to package our virtual environment in a .deb for distribution. For that, we use dh_virtualenv, which...

Compile error Facenet under ncappzoo modules

I forgot to mention about my system sorry. I am using Ubilinux 4 which is based on Debian Stretch. Its kernel is 4.9 LTS. Also my GCC is 7 and Movidius NCSDK is 2.04.00.06. Also I have installed...

Problems in linux kernel porting, stuck in paging_init function

reference board : i.mx6q sabresd, kernel version : 4.9.17 Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.9.17-04736-ga88711e-dirty...

Thrown exception never caught, but thread not killed?

This is happening on a Solaris sparc machine: -bash-3.2$ uname -a SunOS b2s-sol10spr-1 5.10 Generic_147147-26 sun4v sparc sun4v I'm seeing a strange issue with exception handling. Here's a log...

C - pointer to pointer to structure - segmentation fault

I learn C pointers, therefore I tried to create array of structs using pointer notation. I allocate array of pointers to struct User, I set names and identifiers, then I try to print it and then...

How to add c++ compiler to docker container?

I would like to create a dockerfile which will allow me to use gcc compiler into container. Currently I am using dockerfile generated by VS for my asp net core project. My dockerfile: FROM...

How to install old-time-1.1.0.3 in Windows 7

I try to install old-time-1.1.0.3 in windows 7 (GHC version: 8.4.2) using cabal intall old-time but not success, here is the error message: Configuring...

'std::exception' error when cross-compile OpenCV 4

When cross-comipile the OpenCV 4.0.1 got Error: /home/atmark/opencv-4.0.1/modules/core/src/parallel.cpp:267:14: error: ‘exception_ptr’ in namespace ‘std’ does not name a type ...

Add Eigen to android

Hello I'm having some issues trying to include Eigen into my android ndk project. This is the error message I get when trying to run the application: Build command failed. Error while executing...

How to properly port the "dynamic ftrace wtih registers" support to the Pixel 3a ARM64 kernel?

I'm currently working to integrate the ARM64 ftrace patches to enable the full support to "dynamic ftrace with registers". Specifically I'm working on the 4.9.200 kernel version for the Pixel 3a...

Unable to install sklearn when building docker image

When I try to install sklearn (scikit-learn) when building a docker image, it fails. These are the processed lines of the Dockerfile: FROM amancevice/pandas:0.25.0-alpine RUN apk update RUN apk...

Unable to build AOSP rom on Mac os High Sierra

I'm trying to build an Android 10 rom on Mac OS High Sierra (10.13.6) but even after establishing the build enviroment as it is stated here https://source.android.com/setup/build/initializing I am...

How to overlay 2 videos, one is main second one is overlaying it, and play sound simultaneously. using FFMPEG in ANDROID STUDIO

as title say I'm trying to overlay 2 videos and play sound simultaneously. So far i managed to put 1 video over another using this command: String[] command = {"-i", mainVideoPath, "-vf", ...

ModuleNotFoundError: No module named 'pyarrow' from dockler image with Alpine Pyspark

I have built an image from: https://archive.apache.org/dist/spark/spark-%242.4.4/spark-%242.4.4-bin-hadoop2.7.tgz Once is downloaded, I do: cd spark-2.4.4-bin-hadoop2.7 && bin/docker-image-tool.sh...