IOTypes error OSTypes not found - theos

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

Related

Missing wayland headers files

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.

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.

PULP SDK build process

I'm new to this website and it is the first time I've worked with the RISC-V processor. I'm following the tutorial of the PULP SDK build process "https://github.com/pulp-platform/pulp-sdk".
But, I'm blocked at the stage of SDK build when I tape the command "$ make all" and I can't understand what's mean these errors.
Below the errors:
sdk:json-tools:build: make all install
make[1]: Entering directory '/home/pulp/project/pulpissimo/pulp-sdk/json-tools'
#### Building in /home/pulp/project/pulpissimo/pulp-sdk/build/sdk/json-tools
#### Release type is RelWithDebInfo
#### Installing to /home/pulp/project/pulpissimo/pulp-sdk/pkg/sdk/dev/install/ws
( cd /home/pulp/project/pulpissimo/pulp-sdk/build/sdk/json-tools ; make all VERBOSE=0 )
make[2]: Entering directory '/home/pulp/project/pulpissimo/pulp-sdk/build/sdk/json-tools'
make[2]: *** No rule to make target 'all'. Stop.
make[2]: Leaving directory '/home/pulp/project/pulpissimo/pulp-sdk/build/sdk/json-tools'
Makefile:46: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/pulp/project/pulpissimo/pulp-sdk/json-tools'
Reached EOF with exit status 2
FATAL ERROR: the command 'build' has failed
Makefile:6: recipe for target 'all' failed
make: *** [all] Error 255
Thank you in advance
Have you selected the target as advised in the documentation before running make all?
By running source configs/pulpissimo.sh for example.
I selected the target as advised in the documentation before running make all. In fact, it was a Vivado cmake problem that starts automatically when I run the make all command and it's an old version of cmake.
I solved this problem by uncommenting the line source /opt/Xilinx/Vivado/2018.3/settings64.sh. The day I need to launch Vivado I have to run this line on the command line in the terminal.

Cross-Compile Kernel Module - error fixdep : no such file or directory

I am trying to cross-compile a TP-Link module for ARM920T of which the
details are following -
Module Source - $HOME/Desktop/ashish/TL-WN725N_V2_150911/Driver/
Toolchain Path - /usr/local/3.4/arm-linux-uclibc/bin/arm-linux-uclibc-gcc
I have exported path for my toolchain using -
export PATH=$PATH:/usr/local/3.4/arm-linux-uclibc/bin
I am running the following from the top level kernel source directory
($HOME/lhotse/products/p101/sw/branches/release4.X/kernel/linux-2.6.8.1)
of my target system
make ARCH=arm CROSS_COMPILE=arm-linux-uclibc- M=/home/gauravmittal/Desktop/ashish/TL-WN725N_V2_150911/Driver/ modules
The command throwing the following error -
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
CC [M] /home/gauravmittal/Desktop/ashish/TL-WN725N_V2_150911/Driver/core/rtw_cmd.o
mv: cannot stat
`/home/gauravmittal/Desktop/ashish/TL-WN725N_V2_150911/Driver/core/.tmp_rtw_cmd.o':
No such file or directory
make[2]: *** [/home/gauravmittal/Desktop/ashish/TL-WN725N_V2_150911/Driver/core/rtw_cmd.o]
Error 1
make[1]: *** [_module_/home/gauravmittal/Desktop/ashish/TL-WN725N_V2_150911/Driver]
Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-23-generic'
make: *** [modules] Error 2
When I do a just make on the top level driver directory, it successfully
creates a .ko file for me and I am able to install the module on my
workstion (running on kernel 2.6.24-23-generic), but couldn't find
where am I going wrong during cross-compiling the same.
Just that I am not able to understand how to move forward, as
relatively new to Embedded Development, any kind of help would be
appreciated.
EDIT 2 :
Started things from scratch again.
I have downloaded the linux source compatible to by target (linux-2.6.8.1) and have included the module source in linux-2.6.8.1/drivers/net/wireless/tplink
I have also copied the content of Kconfig from module source directory under wireless Kconfig to get it appearing in the make menuconfig menu. I did a make menuconfig and enabled the option for the same.
Now I did
make ARCH=arm CROSS_COMPILE=arm-linux-uclibc- KSRC=/usr/src/linux-headers-2.6.24.23-generic/ M=${PWD}/drivers/net/wireless/tplink/ modules
The output is as under -
CC [M] /home/gauravmittal/Desktop/ashish/linux-2.6.8.1/drivers/net/wireless/tpwifi/core/rtw_cmd.o
fixdep: /home/gauravmittal/Desktop/ashish/linux-2.6.8.1/drivers/net/wireless/tpwifi/core/.rtw_cmd.o.d:
No such file or directory
make[1]: *** [/home/gauravmittal/Desktop/ashish/linux-2.6.8.1/drivers/net/wireless/tpwifi/core/rtw_cmd.o]
Error 2
make: *** [_module_/home/gauravmittal/Desktop/ashish/linux-2.6.8.1/drivers/net/wireless/tpwifi]
Error 2
I have tried searching a lot on the Internet but could not fix this. I am stuck at this from long..any help would be greatly appreciated.

glfw makefile fails upon "generating html documentation" on Ubuntu

I am trying to compile and install glfw 3.1.1 for Ubuntu 14.10. The cmake finished successfully, however, when I go to execute the makefile through make it fails at the following:
[ 98%] Building C object tests/CMakeFiles/windows.dir/windows.c.o
Linking C executable windows
[ 98%] Built target windows
Scanning dependencies of target docs
[100%] Generating HTML documentation
Error: tag HTML_HEADER: header file `/home/dennis/Documents/LearningOpenGL/glfw-3.1.1/docs/header.html' does not exist
docs/CMakeFiles/docs.dir/build.make:52: recipe for target 'docs/CMakeFiles/docs' failed
make[2]: *** [docs/CMakeFiles/docs] Error 1
CMakeFiles/Makefile2:1184: recipe for target 'docs/CMakeFiles/docs.dir/all' failed
make[1]: *** [docs/CMakeFiles/docs.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2
At first I thought that it is failing an optional step but then I realized that I can't compile my test project as it complains about the glfw header:
main.cpp:2:24: fatal error: GLFW/glfw3.h: No such file or directory
#include <GLFW/glfw3.h>
Thanks
Found the answer! I had to disable the "build documentation" option in the cmake gui.
It seems you just skip compiling the doc instead of fix it.
Simply go to docs/CMakeFiles/docs.dir, modify the file build.make.
For the build target docs/CMakeFiles/docs:, change the doxygen command
from:
doxygen.exe
to
doxygen.exe .

Resources