fatal error: backtrace/Backtrace.h: No such file or directory - android-source

I have downloaded AOSP source using repo and now trying to build it, when i run make i get following error during the build and compilation terminates...
dalvik/vm/interp/Stack.cpp:29:33: fatal error: backtrace/Backtrace.h: No such file or directory
Regards
-MS

You can just change the file "art/runtime/mem_map.cc" where it includes backtrace:
#include "backtrace/backtrace.h"
change to
#include "backtrace/Backtrace.h"

Related

deploying segnet-predict on jetson nano using matlab .:fatal error: opencv2/opencv.hpp: No such file or directory #include "opencv2/opencv.hpp"

i am working on jetson nano and trying to implement the example of segnet_predict deploy to jetson nao from the matlab.but when i run the command
codegen('-config ', cfg, 'segnet_predict', '-args', {img},'-report');
i get this error:
STDERR: /home/remoteBuildDir/MATLAB_ws/R2021b/C/Users/DELL/Documents/MATLAB/segnet_deploy/main.cu:10:10: fatal error: opencv2/opencv.hpp: No such file or directory
#include "opencv2/opencv.hpp"
^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [main.o] Error 1
make: *** Waiting for unfinished jobs....
STDOUT: make: Entering directory '/home/remoteBuildDir/MATLAB_ws/R2021b/C/Users/DELL/Documents/MATLAB/segnet_deploy/codegen/exe/segnet_predict'
------------------------------------------------------------------------
??? Build error: C++ compiler produced errors. See the Build Log for further details.
can you please help me resolving this error
i tried to change the path by locating the opencv path but could not solve it.
It seems like the issue is with the OpenCV library, which the code is trying to include but is unable to find. Check if the OpenCV library is installed on your Jetson Nano:
Run the command
pkg-config --modversion opencv
in the terminal. If the output is a version number, OpenCV is installed.
If OpenCV is not installed, install it using the command
sudo apt-get install libopencv-dev
Ensure that the path to the OpenCV header files is included in the compiler search path:
Locate the path to the OpenCV header files (opencv2/opencv.hpp) on your system.
In your MATLAB code, add the path to the OpenCV header files to the compiler search path using the "-I" option in the "codegen" function. For example:
codegen('-config ', cfg, 'segnet_predict', '-args', {img},'-report', '-I /path/to/opencv/headers');
Make sure that the OpenCV libraries are in the library search path:
Locate the path to the OpenCV libraries on your system.
In your MATLAB code, add the path to the OpenCV libraries to the library search path using the "-L" option in the "codegen" function. For example:
codegen('-config ', cfg, 'segnet_predict', '-args', {img},'-report', '-L /path/to/opencv/libraries');

Swift error on Windows: invalidManifestFormat: Missing or empty JSON output from manifest compilation

I've installed Swift 5.6.1 on my Windows 10 machine, including all the necessary Visual Studio components, but I can't seem to build anything. Even just running the following set of commands in git bash results in an error:
mkdir swiftTest
cd swiftTest
swift package init --type executable
swift build
Specifically, the swift build command gives the following errors:
warning: Failed creating default cache location, Error Domain=NSCocoaErrorDomain Code=256 "(null)"
'swiftTest': error: invalidManifestFormat("Missing or empty JSON output from manifest compilation for swiftTest", diagnosticFile: nil)
The error message seems surprisingly rare -- the top google results were the source of the program that generated that error, and an unrelated error with similar wording from a ReactJS application.
Do I just have to add some flags to the swift build command, or is there something else wrong with my setup?
In my case what fixed it was invoking the command from a Visual Studio Developer Command prompt.

Target dart2js failed No such file or directory

I am running into an issue where on GH Actions my dart build is failing with lots of lines like
Compiling lib/main.dart for the Web...
Target dart2js failed: Exception: lib/api/file_a.dart:00:0:
Error: Error when reading 'lib/models/file_b.dart': Error reading 'lib/models/file_b.dart' (No such file or directory)
import "/models/file_b.dart";
Posted to answer right away in case it helps someone else.
My issue was because I changed the capitalization of files in git. from /File.dart to /file.dart.
The way to fix this was for each import unable to be found to git mv /File.dart /file.dart

fatal error: 'Flutter/Flutter.h' file not found #import <Flutter/Flutter.h>,this fatal error is shown after i debug my flutter code what should i do?

fatal error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in parallel
Could not build the application for the simulator.
Error launching application on iPhone 13.
Just remove ios/Flutter/Flutter.podspec: rm ios/Flutter/Flutter.podspec
Then run flutter clean
Run your app again.
Boom! Your Error might be solved.
if won't work follow this doc. https://fluttercorner.com/error-flutter-flutter-h-file-not-found-when-flutter-run-on-ios/

fatal error: 'gtk/gtk.h' file not found

So I'm trying to install Gtk-Perl-0.7000 from http://search.cpan.org/dist/Gtk-Perl/ on a mac
I already successfully followed the steps to instal gtk+ at http://www.gtk.org/
when I run the Makefile.pl from Gtk-Perl-0.7000 it gives me:
gtkvertmp.c:3:10: fatal error: 'gtk/gtk.h' file not found
#include <gtk/gtk.h>
^
1 error generated.
Unable to find Gtk version...
Invoking gendefs.pl with [].
Please wait, this may take a moment...
gtktypexp.c:1:10: fatal error: 'gtk/gtktypeutils.h' file not found
#include <gtk/gtktypeutils.h>
^
1 error generated.
I have:
echo $PKG_CONFIG_PATH
:/Users/one/gtk/source/gtk+-2.24.16/gtk:/Users/one/gtk/inst/include/gtk-2.0/gtk:/Users/one/gtk/inst/lib/pkgconfig
I do have the gtk.h file in my system. I've searched online but haven't gotten Gtk-Perl to compile.
Your Mac OS need libgtk to be installed to run the script properly.