I'm trying to compile iperf3 3.6 under MSYS2.
./configure (autoconf) reports "checking for SetProcessAffinityMask... yes", but at compile time I get following related error
iperf_api.c:67:10: fatal error: Windows.h: No such file or directory
#include <Windows.h>
I do not understand how it is possible that during ./configure tests it can detect the presence of SetProcessAffinityMask and during compile is unable.
Related
I installed the OpenVino on my Ubuntu 20.04 using the apt command.
sudo apt install intel-openvino-dev-ubuntu20-2021.3.394
I am trying to compile this simple program using gcc 1.c -linference_engine_c_api.
#include <stdio.h>
#include <c_api/ie_c_api.h>
int main() {
printf("C API Successfully Loaded!");
}
But the compilation fails with the following error:
1.c:2:10: fatal error: c_api/ie_c_api.h: No such file or directory
2 | #include <c_api/ie_c_api.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
How do I solve this?
You cannot directly call gcc for the 1.c file. You need to create a script to compile necessary dependencies (like CMake).
For example, in \opt\intel\openvino_2021.3.394\deployment_tools\inference_engine\samples\c there is build_sample.h script. This script is used to perform all compilation and it uses CMake. Same goes for gcc, to run the inference lib you need to compile the script first before calling ie_c_api.h. 1.c file cannot be run directly when gcc compiler does not support the operation.
Please go to Integrate the Inference Engine with Your Application - OpenVINO™ Toolkit (openvinotoolkit.org) for reference.
I am trying to build 32-bit breakpad on a 64-bit Linux system but I am getting the build error. I did the following as explained here.
./configure CXXFLAGS=-m32 CFLAGS=-m32 CPPFLAGS=-m32
make
In make, I am getting the following error:
src/common/stabs_reader.cc: In member function ‘bool google_breakpad::StabsReader::Process()’:
src/common/stabs_reader.cc:98:35: error: ‘N_UNDF’ was not declared in this scope
} else if (iterator_->type == N_UNDF && unitized_) {
^
Makefile:4678: recipe for target 'src/common/stabs_reader.o' failed
make: *** [src/common/stabs_reader.o] Error 1
Then I looked into the ./configure output and saw that it could be the problem with a.out.h because of the following output:
checking a.out.h usability... no
checking a.out.h presence... no
checking for a.out.h... no
Anyone else face this problem? Am I missing something?
Looks like a bug in the 32bit breakpad build.
I've submitted a patch to the project; in the interim, you can simply edit src/common/stabs_reader.h and replace:
#include <a.out.h>
with
#include <linux/a.out.h>
and configuring with:
env ac_cv_header_a_out_h=yes CXXFLAGS=-m32 CFLAGS=-m32 CPPFLAGS=-m32 ./configure
I am learning MPA using OpenMPI on my classes, but I cannot seem to make it work on my laptop using OpenSUSE.
I got OpenMPI from https://software.opensuse.org/package/openmpi and when trying to compile using:
mpicc hello.c -o hello
I get the following error msg saying that it cannot find mpi.h:
hello.c:3:17: fatal error: mpi.h: No such file or directory
#include "mpi.h"
^
compilation terminated
Is there something that I am missing? If so, what exactly do I need to do to make this work out?
You also need to install openmpi-devel package:
zypper install openmpi-devel
I need to compile C/C++ pthread and socket code in windows 8 where I've installed MicGW GCC and G++ 4.7.
When I compile my test code using g++ test.cpp -o test
Code is:
#include<iostream>
#include<sys/socket.h>
#include<sys/types.h>
using namespace std;
int main() {
cout<<"Got Socket";
}
This gives error fatal error: sys/socket.h not found and the
same occur with types.h
The error I found is that cygwin is using MicGW GCC and g++ but I want it to use its own instead of MinGW's so that I can include Linux libraries.
I have not been able to reproduce your problem on my Cygwin.
Are the headers present in /usr/include/sys?
Search the sys folder in [installed directory]/usr/include if the socket.h was not there download one Copy it there manually.
don't afraid of manual works ;-)
I already did ash.exe /bin/rebaseall -v without errors but I still get the following error when trying to ./configure:
Checking for program g++ or c++ : /usr/bin/g++
/node/wscript:232: error: could not configure a cxx compiler
I installed gcc4-g++ 4.5.x, openssl and all the needed dependencies.
Are you carefully following the steps from: github.com/joyent/node/wiki/Building-node.js-on-Cygwin-(Windows) ?
It suggests running another command and then rebooting after rebase.