I am trying to generate hal using hidl-gen tool from this http://devarea.com/android-hidl-and-project-treble/#.XJyyf0PhVuQ - android-source

make hidl-gen -j64
build/core/binary.mk:925: warning: ignoring old commands for target out/target/product/generic_x86/obj/STATIC_LIBRARIES/libv8_intermediates/src/base/atomicops_internals_x86_gcc.o'
Starting build with ninja
ninja: Entering directory.'
ninja: error: unknown target 'hidl-gen', did you mean 'idegen'?
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1

HIDL is supported from Android 8

Related

How to install humanoid_navigation ROS kinetic Ubuntu 16.04?

When installing ROS Kinetic packages (Ubuntu 16.04), namely humanoid_navigation, it throws an error when executing catkin_make. Without this package, catkin_make runs without error. Everything was done according to the instructions https://emanual.robotis.com/docs/en/platform/op3/recovery/#op3-manual-installation
[ 97%] Building CXX object humanoid_navigation/humanoid_localization/CMakeFiles/humanoidlocalization.dir/src/HumanoidLocalization.cpp.o
/home/user/catkin_ws/src/humanoid_navigation/humanoid_localization/src/HumanoidLocalization.cpp:23:42: fatal error: pcl/filters/uniform_sampling.h: No such file or directory
compilation terminated.
humanoid_navigation/humanoid_localization/CMakeFiles/humanoidlocalization.dir/build.make:62: recipe for target 'humanoid_navigation/humanoid_localization/CMakeFiles/humanoidlocalization.dir/src/HumanoidLocalization.cpp.o' failed
make[2]: *** [humanoid_navigation/humanoid_localization/CMakeFiles/humanoidlocalization.dir/src/HumanoidLocalization.cpp.o] Error 1
CMakeFiles/Makefile2:12108: recipe for target 'humanoid_navigation/humanoid_localization/CMakeFiles/humanoidlocalization.dir/all' failed
make[1]: *** [humanoid_navigation/humanoid_localization/CMakeFiles/humanoidlocalization.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 97%] Linking CXX executable /home/user/catkin_ws/devel/lib/footstep_planner/footstep_planner_node
[ 97%] Built target footstep_planner_node
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j2 -l2" failed
After this error, installed pcl from github https://github.com/PointCloudLibrary/pcl in src, ran catkin make, and gave an error
/home/user/catkin_ws/src/humanoid_navigation/humanoid_localization/src/HumanoidLocalization.cpp:23:42: fatal error: pcl/filters/uniform_sampling.h: No such file or directory
compilation terminated.
humanoid_navigation/humanoid_localization/CMakeFiles/humanoidlocalization.dir/build.make:62: recipe for target 'humanoid_navigation/humanoid_localization/CMakeFiles/humanoidlocalization.dir/src/HumanoidLocalization.cpp.o' failed
make[2]: *** [humanoid_navigation/humanoid_localization/CMakeFiles/humanoidlocalization.dir/src/HumanoidLocalization.cpp.o] Error 1
CMakeFiles/Makefile2:12108: recipe for target 'humanoid_navigation/humanoid_localization/CMakeFiles/humanoidlocalization.dir/all' failed
make[1]: *** [humanoid_navigation/humanoid_localization/CMakeFiles/humanoidlocalization.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Help please!
Did you terminate/interrupt any build recently? This might be due to the fact that the object code was not generated successfully. One way is to clean the build and devel folder's associated content with the package and then build again.
UPDATE!!!
So I replicated your problem and followed my steps to solve them. In my case I had issues with my ros_control package and pcl. Not it works. Cheers!!!
[100%] Linking CXX executable
/home/aadi/catkin_ws/devel/lib/robot_state_publisher/state_publisher
[100%] Built target joint_state_listener
[100%] Built target state_publisher
[100%] Built target robot_state_publisher
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j8 -l8" failed
The problem is that in PCL 1.7.2, UniformSampling is located in the "keypoints" module, and in 1.8.0, it has been moved to the "filters" module.
Please check your PCL version
Okay, I have a working solution:
nano /home/<user>/catkin_ws/src/humanoid_navigation/humanoid_localization/src/HumanoidLocalization.cpp
And change to following:
//#include <pcl/filters/uniform_sampling.h>
#include <pcl/keypoints/uniform_sampling.h>
Then go and run catkin_make with cd ~/catkin_ws && catkin_make.
It now should work without any errors.
You can try following
cd ~/catkin_ws/src
wget https://github.com/PointCloudLibrary/pcl/archive/refs/tags/pcl-1.8.1.zip
unzip pcl-1.8.1.zip
cd pcl-pcl-1.8.1
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
make -j4
sudo make install -j4
cd ~/catkin_ws && catkin_make
If you have installed another pcl version before go to this library and enter
sudo make uninstall
make uninstall
and then remove this directory.

Unresolved symbol when building AWS CPP SDK

I am trying to build AWS CPP SDK on Linux but the build fails with the following error (resolved symbol_:
Can anyone shed some light on this error? ( I use devtoolset-6 gcc 6.3.1 for STL library support and clang 3.8.)
=================================
[ RUN ] DefaultRateLimitTest.fractionalLimitTest
[ OK ] DefaultRateLimitTest.fractionalLimitTest (0 ms)
[----------] 11 tests from DefaultRateLimitTest (0 ms total)
[----------] Global test environment tear-down
[==========] 226 tests from 33 test cases ran. (4137 ms total)
[ PASSED ] 226 tests.
[100%] Built target aws-cpp-sdk-core-tests
[100%] Building CXX object aws-cpp-sdk-text-to-speech-tests/CMakeFiles/aws-cpp-sdk-text-to-speech-tests.dir/RunTests.cpp.o
[100%] Building CXX object aws-cpp-sdk-text-to-speech-tests/CMakeFiles/aws-cpp-sdk-text-to-speech-tests.dir/TextToSpeechManagerTests.cpp.o
[100%] Linking CXX executable aws-cpp-sdk-text-to-speech-tests
/opt/rh/devtoolset-6/root/bin/ld: ../aws-cpp-sdk-text-to-speech/libaws-cpp-sdk-text-to-speech.a(PulseAudioPCMOutputDriver.cpp.o): undefined reference to symbol 'pa_strerror##PULSE_0'
//lib64/libpulse.so.0: error adding symbols: DSO missing from command line
clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [aws-cpp-sdk-text-to-speech-tests/aws-cpp-sdk-text-to-speech-tests] Error 1
make[1]: *** [aws-cpp-sdk-text-to-speech-tests/CMakeFiles/aws-cpp-sdk-text-to-speech-tests.dir/all] Error 2
make: *** [all] Error 2
We recently pushed an update for this. It was missing -lpulse.
A fresh pull should fix the problem.

Building Cyanogenmod from source - recipe for target failed (libnativehelper.so)

I'm getting the following error about an hour into my build of Cyanogenmod 12.1 for hlte, using the latest repo checkout. I am using Debian testing, have all dependencies installed as listed in Google's build guide and am using OpenJDK 7. I also have all proprietary files under vendor/samsung. What am I missing or what direction should I look in to solve this problem?
...
libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
clang: error: linker command failed with exit code 1 (use -v to see invocation)
build/core/host_shared_library_internal.mk:44: recipe for target '/home/james/android/cm/out/host/linux-x86/obj32/lib/libnativehelper.so' failed
make: *** [/home/james/android/cm/out/host/linux-x86/obj32/lib/libnativehelper.so] Error 1

How to compile zsh on/for an iPhone?

Background
I recently changed from bash to zsh as my default shell and have quickly gotten used to the awesomeness that's added by associated tools (prezto, zaw and zsh-dwim).
I wanted to have a similar setup on iPhone as well. However, only zsh v.4.3.10 is available from the default repos and that's not supported by prezto:
Would you know how I should go about compiling zsh from source for the iPhone? I attempted to use Theos to build something on my Win7 box, but am greeted with the following errors after doing the make package install:
/home/blah/projects/ashrocks/theos/makefiles/targets/Cygwin/iphone.mk:38: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.
Bootstrapping CydiaSubstrate...
Compiling iPhoneOS CydiaSubstrate stub... default target? failed, what?
cp: cannot stat `_out/*': No such file or directory
cp: cannot stat `libsubstrate.dylib': No such file or directory
Generating substrate.h header...
Making all for tweak ashrocks...
Preprocessing Tweak.xm...
Compiling Tweak.xm...
/bin/sh: theos/toolchain/windows/iphone/bin/armv7-apple-darwin11-clang++: No such file or directory
/home/blah/projects/ashrocks/theos/makefiles/instance/rules.mk:144: recipe for target 'obj/Tweak.xm.666c9a3c.o' failed
make[2]: *** [obj/Tweak.xm.666c9a3c.o] Error 127
/home/blah/projects/ashrocks/theos/makefiles/instance/library.mk:19: recipe for target 'internal-library-all_' failed
make[1]: *** [internal-library-all_] Error 2
/home/blah/projects/ashrocks/theos/makefiles/master/rules.mk:54: recipe for target 'ashrocks.all.tweak.variables' failed
make: *** [ashrocks.all.tweak.variables] Error 2
Would you know how the command line tools availabe in Cydia were compiled ?
It's probably because you don't have the standard libraries compiled for the iPhone on your computer. Try setting up gcc on your iPhone by following these instructions. I have done this and have successfully compile various pieces of software.

throwing an instance of 'HPHP::RescheduleException' - Compile failed on CentOS 5

CentOS 5.8 --- Kenrel 2.6.18-308.11.1.el5 x86_64
This is strange error with 64bit CentOS 5, I ran out of luck...
[ 89%] Built target ext_hhvm_static
Scanning dependencies of target hphp
[ 89%] Building CXX object src/hphp/CMakeFiles/hphp.dir/main.cpp.o
In file included from /opt/hiphop/hiphop-php/src/hphp/main.cpp:44:
/opt/hiphop/hiphop-php/src/runtime/base/compiler_id.h:16:1: warning: "COMPILER_ID" redefined
<command-line>: warning: this is the location of the previous definition
[ 89%] Building CXX object src/hphp/CMakeFiles/hphp.dir/externals.cpp.o
Linking CXX executable hphp
Building hhvm
terminate called after throwing an instance of 'HPHP::RescheduleException'
terminate called recursively
Core dumped: Aborted
hphp failed
make[2]: *** [src/hphp/hphp] Error 255
make[1]: *** [src/hphp/CMakeFiles/hphp.dir/all] Error 2
make: *** [all] Error 2
Thanks in advance.
Now that HHVM is the default runtime, do a git pull and try again.