Missing wayland headers files - linux

The error I'm getting:
error: gst/wayland/wayland.h: No such file or directory
In file included from ../QtService/videooverlay.cpp:1:
../QtService/videooverlay.h:11:10: fatal error: gst/wayland/wayland.h: No such file or directory
11 | #include <gst/wayland/wayland.h>
| ^~~~~~~~~~~~~~~~~~~~~~~
I reinstalled the library libgstreamer-plugins-bad1.0-dev but this also seems to be not working for me.

Related

llvm/Support/TargetRegistry.h: No such file or directory

I have this error when I make project in WSL(Ubuntu 20.04). And I have installed LLVM and Clang.Hou should I do?
Kconfig Makefile README.md build configs include resource scripts src tools
why#YOGA:~/ics2021/nemu$ make
+ CXX src/utils/disasm.cc
src/utils/disasm.cc:5:10: fatal error: llvm/Support/TargetRegistry.h: No such file or directory
5 | #include "llvm/Support/TargetRegistry.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [/home/why/ics2021/nemu/scripts/build.mk:40: /home/why/ics2021/nemu/build/obj-riscv32-nemu-interpreter/src/utils/disasm.o] Error 1```
Actually, It's part of the NJU ICS Course project, and the right path should be #include "llvm/MC/TargetRegistry.h". For llvm-11, the file is in "llvm/Support/TargetRegistry.h". But for llvm-14, it's in "llvm/MC/TargetRegistry.h". You should check where the TargetRegistry.h is. For me with Ubuntu, the file is at /usr/include/llvm/MC/.
to continue the pa0, just install llvm11 by apt-get install llvm-11 then follow the PA0 Guide to change the nemu/src/utils/filelist.mk

Cygwin -- installing `tcl-devel` packages does not provide header files

I have some makefile that is used to compile a program. During compilation I get an error:
In file included from kernel/driver.cc:20:
./kernel/yosys.h:81:12: fatal error: tcl.h: No such file or directory
81 | # include <tcl.h>
| ^~~~~~~
compilation terminated.
make: *** [Makefile:696: kernel/driver.o] Error 1
Then I rerun Cygwin setup application and install new package tcl-devel. I restart the Cygwin terminal and try again. The same error pops up. I don't understand! Why aren't headers found?
My tcl and tcl-devel are both of version 8.6.11-1.

npm install java fatal error: 'jni.h' file not found #include <jni.h>

I am trying to install java node package:
npm install java
And I am getting following error:
CXX(target) Release/obj.target/nodejavabridge_bindings/src/java.o
In file included from ../src/java.cpp:1:
../src/java.h:7:10: fatal error: 'jni.h' file not found
#include <jni.h>
^~~~~~~
1 error generated.
I have Java home path in .bash_profile as:
export JAVA_HOME=$(/usr/libexec/java_home -v 1.8);
// /Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home
I am on Big Sur Mac. I did check the folder /Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/include/darwin
and it does have have jni.h file.

fatal error: pthread/pthread_impl.h: No such file or directory #include <pthread/pthread_impl.h>

I have compiled and seen those error sentences
/usr/local/include/c++/4.8.1/pthread.h:57:34: fatal error:
pthread/pthread_impl.h: No such file or directory
#include <pthread/pthread_impl.h>
I have found pthread.h and pthread_impl.h independently but there is no header file named pthread/pthread_impl.h(Also I moved pthread.h and pthread_impl.h in compile path each but It made same error)
What should I do...?
Have you added the pthread compiler flag? (-pthread)
The correct include file is pthread.h.

IOTypes error OSTypes not found

I am using Theos and when I use Make Package, I get the error:
In file included from /Users/jordan/welcomer/theos/include/IOKit/IOKitLib.h:49:
/Users/jordan/welcomer/theos/include/IOKit/IOTypes.h:56:10: fatal error:
'libkern/OSTypes.h' file not found
#include <libkern/OSTypes.h>
^
1 error generated.
make[2]: *** [obj/Tweak.xm.fe4c9a81.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [Welcomer.all.tweak.variables] Error 2
I checked and the file OSTypes.h does exist in the libkern folder. I am using rpetrich's iPhone headers from his github.
Terminal:
Jordans-MacBook-Pro:welcomer jordan$ make package
/Users/jordan/welcomer/theos/makefiles/targets/Darwin/iphone.mk:41: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.
Making all for tweak Welcomer...
Preprocessing Tweak.xm...
Compiling Tweak.xm...
In file included from <built-in>:184:
In file included from <command line>:3:
In file included from /Users/jordan/welcomer/theos/Prefix.pch:4:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:10:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibility.h:13:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityAdditions.h:10:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIPickerView.h:11:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITableView.h:11:
In file included from /Users/jordan/welcomer/theos/include/UIKit/UISwipeGestureRecognizer.h:10:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UISwipeGestureRecognizer.h:9:
In file included from /Users/jordan/welcomer/theos/include/UIKit/UIGestureRecognizer.h:6:
In file included from /Users/jordan/welcomer/theos/include/UIKit/UIKit-Structs.h:15:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h:9:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CoreAnimation.h:30:
In file included from /Users/jordan/welcomer/theos/include/QuartzCore/CAValueFunction.h:9:
In file included from /Users/jordan/welcomer/theos/include/QuartzCore/QuartzCore-Structs.h:11:
In file included from /Users/jordan/welcomer/theos/include/IOSurface/IOSurface.h:20:
In file included from /Users/jordan/welcomer/theos/include/IOSurface/IOSurfaceAPI.h:12:
In file included from /Users/jordan/welcomer/theos/include/IOKit/IOKitLib.h:49:
/Users/jordan/welcomer/theos/include/IOKit/IOTypes.h:56:10: fatal error:
'libkern/OSTypes.h' file not found
#include <libkern/OSTypes.h>
^
1 error generated.
make[2]: *** [obj/Tweak.xm.fe4c9a81.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [Welcomer.all.tweak.variables] Error 2
Jordans-MacBook-Pro:welcomer jordan$
OSTypes.h is missing from the iPhoneOS.sdk, I copied it from the iPhoneSimulator.sdk as follows:
sudo cp /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/libkern/OSTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/libkern

Resources