react-native nativeProxy.cpp - react-native

I have react-native#.70 and when i run this command npx react-native run-android project run successfully. but it given be these warnings
> Task :react-native-reanimated:buildCMakeDebug[arm64-v8a]
C/C++: ninja: Entering directory `C:\repos\Mobile Apps\ParkingZone\node_modules\react-native-reanimated\android\.cxx\Debug\441224z2\arm64-v8a'
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:357:11: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:357:11: note: remove std::move call here
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:360:11: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:360:11: note: remove std::move call here
> Task :react-native-reanimated:buildCMakeDebug[armeabi-v7a]
C/C++: ninja: Entering directory `C:\repos\Mobile Apps\ParkingZone\node_modules\react-native-reanimated\android\.cxx\Debug\441224z2\armeabi-v7a'
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:357:11: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:357:11: note: remove std::move call here
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:360:11: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:360:11: note: remove std::move call here
> Task :react-native-reanimated:buildCMakeDebug[x86]
C/C++: ninja: Entering directory `C:\repos\Mobile Apps\ParkingZone\node_modules\react-native-reanimated\android\.cxx\Debug\441224z2\x86'
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:357:11: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:357:11: note: remove std::move call here
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:360:11: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:360:11: note: remove std::move call here
> Task :react-native-reanimated:buildCMakeDebug[x86_64]
C/C++: ninja: Entering directory `C:\repos\Mobile Apps\ParkingZone\node_modules\react-native-reanimated\android\.cxx\Debug\441224z2\x86_64'
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:357:11: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:357:11: note: remove std::move call here
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:360:11: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
C/C++: ../../../../src/main/cpp/NativeProxy.cpp:360:11: note: remove std::move call here
and its take abiut 30 min to run this command.

Related

ccache: error: configuration setting "cache_dir" must not be the empty string

I'm using Buildroot to add a package, it shows the following error in buiding step
cmake3 --build . --target install --config Release
...
ccache: error: configuration setting "cache_dir" must not be the empty string
ninja: build stopped: subcommand failed.
ERROR Backend subprocess exited when trying to invoke build_wheel
I tried rebuiding host-ccache, and in menuconfig, I checked Enable compiler cache, but it doesn't work. Can I get some help, pls?

CMake Error: Problem with archive_write_finish_entry(): Can't restore time

I am getting this problem when trying to cross compile OpenCV with VisualGDB
following this tutorial https://visualgdb.com/tutorials/raspberry/opencv/build/
I also get the same error when typing tar -xf b624b995ec9c439cbc2e9e6ee940d3a2-v0.1.1f.zip from command line.
Where in CMakeList is it using the command tar.exe? Is it possible to replace it with something that does not error out like 7zip? Or can this be fixed by updating tar?
I have not been able to remove or replace tar.exe from C:\windows\System32 even as administrator
Is there a workaround to this problem?
Looking around online, tar does not even support zip files, why is it trying to unzip a zip file?
Thanks
Performing Test HAVE_CXX_WNO_ENUM_COMPARE_SWITCH
Performing Test HAVE_CXX_WNO_ENUM_COMPARE_SWITCH - Failed
Performing Test HAVE_CXX_WNO_SUGGEST_OVERRIDE
Performing Test HAVE_CXX_WNO_SUGGEST_OVERRIDE - Success
Performing Test HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE
Performing Test HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE - Failed
Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH
Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH - Success
Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS
Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS - Success
Performing Test HAVE_CXX_WNO_CLASS_MEMACCESS
Performing Test HAVE_CXX_WNO_CLASS_MEMACCESS - Success
ADE: Download: v0.1.1f.zip
CMake Error: Problem with archive_write_finish_entry(): Can't restore time
CMake Error: Problem extracting tar: E:/Projects/temp/OpenCV/opencv/.cache/ade/b624b995ec9c439cbc2e9e6ee940d3a2-v0.1.1f.zip
CMake Error at cmake/OpenCVDownload.cmake:240 (message):
ADE: Unpack failed: 1
Call Stack (most recent call first):
modules/gapi/cmake/DownloadADE.cmake:5 (ocv_download)
modules/gapi/cmake/init.cmake:19 (include)
cmake/OpenCVModule.cmake:312 (include)
cmake/OpenCVModule.cmake:375 (_add_modules_1)
modules/CMakeLists.txt:7 (ocv_glob_modules)
Configuring incomplete, errors occurred!
See also "E:/Projects/temp/OpenCV/opencv/VisualGDB/Debug/CMakeFiles/CMakeOutput.log".
See also "E:/Projects/temp/OpenCV/opencv/VisualGDB/Debug/CMakeFiles/CMakeError.log".
CMake Deprecation Warning:
The 'cmake-server(7)' is deprecated. Please port clients to use the
'cmake-file-api(7)' instead.
Exception reported by CMake server: Configuration failed.
wh1+x: Exception reported by CMake server: Configuration failed.
at wh1.c2[_InType,_OutType](_InType a)
at g61.x(String[] a)
at g61.l_2(Hello a)
at wh1.m1()
...
Performing Test HAVE_CXX_WNO_CLASS_MEMACCESS - Success
ADE: Download: v0.1.1f.zip
CMake Error: Problem with archive_write_finish_entry(): Can't restore time
CMake Error: Problem extracting tar: E:/Projects/opencv/.cache/ade/b624b995ec9c439cbc2e9e6ee940d3a2-v0.1.1f.zip
CMake Error at cmake/OpenCVDownload.cmake:240 (message):
I traced the problem to cmake\opencvdownload.cmake where on line 236
execute_process(COMMAND "${CMAKE_COMMAND}" -E tar xzf "${CACHE_CANDIDATE}"
WORKING_DIRECTORY "${DL_DESTINATION_DIR}"
RESULT_VARIABLE res)
Where if I run the same command line I get this error:
opencv\.cache\ade>cmake -E tar xzf b624b995ec9c439cbc2e9e6ee940d3a2-v0.1.1f.zip
CMake Error: Problem with archive_write_finish_entry(): Can't restore time
CMake Error: Problem extracting tar: b624b995ec9c439cbc2e9e6ee940d3a2-v0.1.1f.zip
Whereas if I replace it with 7zip, it works fine
7z x b624b995ec9c439cbc2e9e6ee940d3a2-v0.1.1f.zip
However, CMake won't allow me to execute a 7zip command from command line
using "Cmake -E ..."
So the temporary solution until they either fix this in OpenCV or Cmake
Modify file cmake\opencvdownload.cmake on Line 236
change
execute_process(COMMAND "${CMAKE_COMMAND}" -E tar xzf "${CACHE_CANDIDATE}"
to
execute_process(COMMAND 7z x "${CACHE_CANDIDATE}"

Tensorflow bazel quantization build error

I am trying to build tensorflow tools package with bazel 0.18.0
following steps are ok
git clone https://github.com/tensorflow/tensoflow
bazel build --config=cuda //tensorflow/tools/pip_package:build_pip_package
bazel build --config=cuda //tensorflow/examples/label_image:label_image
until trying to run this command line
bazel build --config=cuda //tensorflow/contrib/quantization:quantize_graph
it show error, so should i give something else then quantize_graph? and what i can use or find?
root#24663fb1018d:/srv/wu/tensorflow-src/tensorflow# bazel build --config=cuda //tensorflow/contrib/quantization:quantize_graph
WARNING: Duplicate rc file: /srv/wu/tensorflow-src/tensorflow/tools/bazel.rc is read multiple times, most recently imported from /srv/wu/tensorflow-src/tensorflow/.bazelrc
WARNING: Processed legacy workspace file /srv/wu/tensorflow-src/tensorflow/tools/bazel.rc. This file will not be processedin the next release of Bazel. Please read https://github.com/bazelbuild/bazel/issues/6319 for further information, including how to upgrade.
Starting local Bazel server and connecting to it...
WARNING: The following configs were expanded more than once: [cuda]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior.
ERROR: Skipping '//tensorflow/contrib/quantization:quantize_graph': no such target '//tensorflow/contrib/quantization:quantize_graph': target 'quantize_graph' not declared in package 'tensorflow/contrib/quantization' defined by /srv/wu/tensorflow-src/tensorflow/tensorflow/contrib/quantization/BUILD
WARNING: Target pattern parsing failed.
ERROR: no such target '//tensorflow/contrib/quantization:quantize_graph': target 'quantize_graph' not declared in package 'tensorflow/contrib/quantization' defined by /srv/wu/tensorflow-src/tensorflow/tensorflow/contrib/quantization/BUILD
INFO: Elapsed time: 1.195s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (1 packages loaded)
and then i tried with tools path, no luck
bazel build --config=cuda //tensorflow/tools/quantization:quantize_graph
WARNING: Duplicate rc file: /srv/wu/tensorflow-src/tensorflow/tools/bazel.rc is read multiple times, most recently imported from /srv/wu/tensorflow-src/tensorflow/.bazelrcWARNING: Processed legacy workspace file /srv/wu/tensorflow-src/tensorflow/tools/bazel.rc. This file will not be processed in the next release of Bazel. Please read https://github.com/bazelbuild/bazel/issues/6319 for further information, including how to upgrade.WARNING: The following configs were expanded more than once: [cuda]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior.ERROR: Skipping '//tensorflow/tools/quantization:quantize_graph': no such package'tensorflow/tools/quantization': BUILD file not found on package pathWARNING: Target pattern parsing failed.
ERROR: no such package 'tensorflow/tools/quantization': BUILD file not found on package path
INFO: Elapsed time: 0.506s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
also the toco is not working
bazel build --config=cuda tensorflow/contrib/lite/toco:toco
WARNING: Duplicate rc file: /srv/wu/tensorflow-src/tensorflow/tools/bazel.rc is read multiple times, most recently imported from /srv/wu/tensorflow-src/tensorflow/.bazelrc
WARNING: Processed legacy workspace file /srv/wu/tensorflow-src/tensorflow/tools/bazel.rc. This file will not be processed in the next release of Bazel. Please read https://github.com/bazelbuild/bazel/issues/6319 for further information, including how to upgrade.WARNING: The following configs were expanded more than once: [cuda]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior.ERROR: Skipping 'tensorflow/contrib/lite/toco:toco': no such package 'tensorflow/contrib/lite/toco': BUILD file not found on package path
WARNING: Target pattern parsing failed.ERROR: no such package 'tensorflow/contrib/lite/toco': BUILD file not found on package pathINFO: Elapsed time: 0.500s
INFO: 0 processes.FAILED: Build did NOT complete successfully (0 packages loaded)
To verify where targets are, look into the BUILD file in the package directory.
The quantize_graph target has been moved to the //tensorflow/contrib/quantize package. This should work:
$ bazel build --config=cuda //tensorflow/contrib/quantize:quantize_graph
The toco target has been moved from //tensorflow/contrib/lite/toco to //tensorflow/lite/toco. Like quantize_graph, this should work:
$ bazel build --config=cuda //tensorflow/lite/toco:toco

cmake error with catkin_make, ROS installation

I have created a workspace as catkin_ws. Then, catkin_make was run successful.
After I type catkin_create_pkg ros_basics_tutorials std_msgs rospy roscpp and then the all folders and files created in ros_basics_tutorials folder.
However After this command, I type cd catkin_ws
and then catkin_make
Below error is shown Cmake Error, Could NOT find cpp (missing: cpp_DIR), cmake_check_build_system' failed
Base path: /home/selcuk/catkin_ws
Source space: /home/selcuk/catkin_ws/src
Build space: /home/selcuk/catkin_ws/build
Devel space: /home/selcuk/catkin_ws/devel
Install space: /home/selcuk/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/selcuk/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/selcuk/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/selcuk/catkin_ws/devel;/opt/ros/melodic
-- This workspace overlays: /home/selcuk/catkin_ws/devel;/opt/ros/melodic
-- Using PYTHON_EXECUTABLE: /home/selcuk/python/anaconda2/bin/python2
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/selcuk/catkin_ws/build/test_results
CMake Error: Target gtest has dependency information when it shouldn't.
Your cache is probably stale. Please remove the entry
gtest_LIB_DEPENDS
from the cache.
CMake Error: Target gtest_main has dependency information when it shouldn't.
Your cache is probably stale. Please remove the entry
gtest_main_LIB_DEPENDS
from the cache.
CMake Error: Target gmock has dependency information when it shouldn't.
Your cache is probably stale. Please remove the entry
gmock_LIB_DEPENDS
from the cache.
CMake Error: Target gmock_main has dependency information when it shouldn't.
Your cache is probably stale. Please remove the entry
gmock_main_LIB_DEPENDS
from the cache.
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.14
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 2 packages in topological order:
-- ~~ - ros_basics_tutorials
-- ~~ - naoqi_driver
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'ros_basics_tutorials'
-- ==> add_subdirectory(ros_basics_tutorials)
-- Could NOT find cpp (missing: cpp_DIR)
-- Could not find the required component 'cpp'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by "cpp" with any of
the following names:
cppConfig.cmake
cpp-config.cmake
Add the installation prefix of "cpp" to CMAKE_PREFIX_PATH or set "cpp_DIR"
to a directory containing one of the above files. If "cpp" provides a
separate development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
ros_basics_tutorials/CMakeLists.txt:10 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/selcuk/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/selcuk/catkin_ws/build/CMakeFiles/CMakeError.log".
Makefile:320: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed
I couldn't solve? How can solve it?
The error was due to anathor project folder which i canceled under the catkin_ws. I deleted it and complied again. The error solved.

Error while compiling apache APR make file not found

I tried to compile apache APR. The instruction sayed:
All you should have to do is this:
./configure
make
make install
After ./compile I get the following output:
configure: creating ./config.status
config.status: creating Makefile
config.status: creating include/apr.h
config.status: creating build/apr_rules.mk
config.status: creating build/pkg/pkginfo
config.status: creating apr-1-config
config.status: creating apr.pc
config.status: creating test/Makefile
config.status: creating test/internal/Makefile
config.status: creating include/arch/unix/apr_private.h
config.status: executing libtool commands
rm: cannot remove `libtoolT': No such file or directory
config.status: executing default commands
config.status: include/apr.h is unchanged
config.status: include/arch/unix/apr_private.h is unchanged
When I try to do "make" the make file could not be found:
-bash: make: command not found
What is wrong here?
Edit your configure file
Change the line
$RM "$cfgfile"
to
$RM -f "$cfgfile"
This will resolve the error
rm: cannot remove `libtoolT': No such file or directory
Then try run configure. That's it
Just running:
touch libtoolT
is sufficient to get it to build correctly. If you really want to edit the configure file to avoid the delete you can do that, but giving it a file to remove works too.
On apr-1.5.1 ,edit line 30145 of configure from
i.e bash# vi +30145 configure
$RM "$cfgfile"
to
$RM -f "$cfgfile"