MetaCall CLI Installation error on Windows - windows

So I'm trying to install the Metacall CLI on my Windows machine using their installation guide.
However, while running the last step i.e. cmake --build . --target install, I'm getting the following error:
C:\Users\USER>cd core
C:\Users\USER\core>cd build
C:\Users\USER\core\build>cmake --build . --target install
[ 1%] Built target version
[ 1%] Built target preprocessor
[ 2%] Built target environment
[ 3%] Built target format
[ 4%] Built target backtrace
[ 5%] Built target threading
[ 13%] Built target log
[ 15%] Built target memory
[ 16%] Built target portability
[ 18%] Built target adt
[ 19%] Built target filesystem
[ 20%] Linking CXX shared library ..\..\libdynlinkd.dll
CMakeFiles\dynlink.dir/objects.a(dynlink_impl_win32.c.obj): In function `dynlink_impl_interface_lib_path_win32':
C:/Users/USER/core/source/dynlink/source/dynlink_impl_win32.c:124: undefined reference to `EnumProcessModules#16'
C:/Users/USER/core/source/dynlink/source/dynlink_impl_win32.c:132: undefined reference to `GetModuleFileNameExA#16'
collect2.exe: error: ld returned 1 exit status
source\dynlink\CMakeFiles\dynlink.dir\build.make:171: recipe for target 'libdynlinkd.dll' failed
mingw32-make.exe[2]: *** [libdynlinkd.dll] Error 1
CMakeFiles\Makefile2:3839: recipe for target 'source/dynlink/CMakeFiles/dynlink.dir/all' failed
mingw32-make.exe[1]: *** [source/dynlink/CMakeFiles/dynlink.dir/all] Error 2
Makefile:154: recipe for target 'all' failed
mingw32-make.exe: *** [all] Error 2
C:\Users\USER\core\build>

Related

CMake selecting wrong version of `strip` on macOS, no `--strip-all`

I've been noticing a problem the last few times I've tried to build a CMake-based project on macOS 12 (M1 Mac Mini). Right now it's with DevilutionX but it's happened with various other CMake-based projects before.
The problem is that it attempts to use the --strip-all flag to the strip binary that ships with Xcode (at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip), as evidenced by the error log from running cmake on the aforementioned DevilutionX source tree:
[ 95%] Linking CXX executable ../stores_test
[ 95%] Built target path_test
[ 95%] Built target scrollrt_test
[ 95%] Built target stores_test
[ 95%] Built target player_test
[ 95%] Linking CXX executable ../utf8_test
[ 95%] Built target utf8_test
[ 95%] Linking CXX executable ../timedemo_test
[ 95%] Built target timedemo_test
[ 96%] Linking CXX executable ../writehero_test
[ 96%] Built target writehero_test
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: unrecognized option: --strip-all
Usage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip [-AnuSXx] [-] [-d filename] [-s filename] [-R filename] [-o output] file [...]
make[2]: *** [devilutionx.app/Contents/MacOS/devilutionx] Error 1
make[2]: *** Deleting file `devilutionx.app/Contents/MacOS/devilutionx'
make[1]: *** [CMakeFiles/devilutionx.dir/all] Error 2
make: *** [all] Error 2
But this is some old, Apple-specific strip that has never had a --strip-all flag. I believe that CMake thinks it's invoking LLVM's strip binary (which I also have on my machine at /opt/homebrew/opt/llvm/bin/llvm-strip) which does have that flag. But that's not the strip it actually selected.
This is causing CMake-based builds to just break unless I hack around it by, e.g., temporarily symlinking Apple's strip to llvm-strip. Is there a better solution/workaround? Is there something in the CMake config files I can set to tell it to use llvm-strip?

How do I tell Make where to find "omp.h" when compiling openMVG in MacOS? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I'm trying to build openMVG on my MacBook running Catalina. When I run "make" I get an error that it can't find 'omp.h'.
jaireaux#Johns-MBP ~/Downloads/software/openMVG/build % make
[ 9%] Built target lib_CoinUtils
[ 12%] Built target lib_Osi
[ 21%] Built target lib_clp
[ 21%] Built target lib_OsiClpSolver
[ 22%] Built target openMVG_stlplus
[ 24%] Built target openMVG_lemon
[ 24%] Built target main_svgSample
[ 33%] Built target openMVG_cxsparse
[ 55%] Built target openMVG_ceres
[ 56%] Built target openMVG_easyexif
[ 57%] Built target openMVG_fast
[ 57%] Built target openMVG_exif
[ 57%] Building CXX object openMVG/features/CMakeFiles/openMVG_features.dir/akaze/AKAZE.cpp.o
In file included from /Users/jaireaux/Downloads/software/openMVG/src/openMVG/features/akaze/AKAZE.cpp:9:
In file included from /Users/jaireaux/Downloads/software/openMVG/src/openMVG/features/akaze/AKAZE.hpp:39:
In file included from /Users/jaireaux/Downloads/software/openMVG/src/openMVG/image/image_container.hpp:12:
In file included from /Users/jaireaux/Downloads/software/openMVG/src/third_party/eigen/Eigen/Dense:1:
/Users/jaireaux/Downloads/software/openMVG/src/third_party/eigen/Eigen/Core:247:10: fatal error: 'omp.h' file not found
#include <omp.h>
^~~~~~~
1 error generated.
make[2]: *** [openMVG/features/CMakeFiles/openMVG_features.dir/akaze/AKAZE.cpp.o] Error 1
make[1]: *** [openMVG/features/CMakeFiles/openMVG_features.dir/all] Error 2
make: *** [all] Error 2
How do I tell make where to find 'omp.h' (which is in /usr/local/include.)

class_loader failed when cross compiling ROS Melodic for aarch64 with buildroot

I'm trying to cross compiling ROS Melodic for aarch64 on raspberry pi 3 with toolchain that created by buildroot.
I followed the document http://wiki.ros.org/ROS/CrossCompiling/RaspberryPi/Cross-Compile%20ROS%20for%20the%20RaspberryPi, the source of ROS I try to build comes from:
rosinstall_generator ros_comm --rosdistro melodic --deps --tar > melodic-ros_comm.rosinstall
wstool init -j8 src melodic-ros_comm.rosinstall
And I got the error messages like these:
[100%] Linking CXX shared library /home/developer/ros_pi/ros_catkin_ws/devel_isolated/class_loader/lib/libclass_loader.so
/home/developer/buildroot-2020.02.1/output/host/lib/gcc/aarch64-buildroot-linux-gnu/8.4.0/../../../../aarch64-buildroot-linux-gnu/bin/ld: /home/developer/buildroot-2020.02.1/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libboost_thread.so: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status
CMakeFiles/class_loader.dir/build.make:180: recipe for target '/home/developer/ros_pi/ros_catkin_ws/devel_isolated/class_loader/lib/libclass_loader.so' failed
make[2]: *** [/home/developer/ros_pi/ros_catkin_ws/devel_isolated/class_loader/lib/libclass_loader.so] Error 1
CMakeFiles/Makefile2:195: recipe for target 'CMakeFiles/class_loader.dir/all' failed
make[1]: *** [CMakeFiles/class_loader.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
<== Failed to process package 'class_loader':
Command '['/home/developer/ros_pi/ros_catkin_ws/install_isolated/env.sh', 'make', '-j8', '-l8']' returned non-zero exit status 2
Reproduce this error by running:
==> cd /home/developer/ros_pi/ros_catkin_ws/build_isolated/class_loader && /home/developer/ros_pi/ros_catkin_ws/install_isolated/env.sh make -j8 -l8
Command failed, exiting.
This is my toolchain.cmake:
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_VERSION 1)
set(CMAKE_LIBRARY_ARCHITECTURE aarch64)
set( CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES "/home/developer/buildroot-2020.02.1/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/")
set( CMAKE_C_COMPILER aarch64-linux-gcc)
set( CMAKE_CXX_COMPILER aarch64-linux-g++)
set(CMAKE_FIND_ROOT_PATH "/home/developer/buildroot-2020.02.1/output/host/aarch64-buildroot-linux-gnu/sysroot")
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
include_directories(/home/developer/buildroot-2020.02.1/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/)
I guess the problem comes from boost?
The version of boost which I used is 1.65.1
All the steps I tried is contained in Dockerfile as link as below:
https://github.com/i-am-neet/cc-ros/blob/master/Dockerfile
Thank you for your patience

error when compile pgrouting in mac osx

I cannot compile the pgrouting. The error message shows like below :
[ 5%] Built target apsp_warshall
[ 11%] Built target astar
[ 17%] Built target kdijkstra
[ 20%] Building CXX object src/apsp_johnson/src/CMakeFiles/apsp_johnson.dir/apsp_johnson_boost_wrapper.cpp.o
clang: error: unknown argument: '-fno-delete-null-pointer-checks'
make[2]: *** [src/apsp_johnson/src/CMakeFiles/apsp_johnson.dir/apsp_johnson_boost_wrapper.cpp.o] Error 1
make[1]: *** [src/apsp_johnson/src/CMakeFiles/apsp_johnson.dir/all] Error 2
make: *** [all] Error 2
Can some guide me how to solve this. I'm using OSX Mavericks. Any info would be appreciated. Thank you.
I found that marking the flag below makes compile successful in file src/apsp_johnson/src/CMakeLists.txt :
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-delete-null-pointer-checks")

Problems Compiling PySide on MacOSX

I'm trying to compile PySide on a Mac (to use it with a software that has its own Python interpreter, that's why I can't use the binaries installers), and I have some issues I don't know how to solve...
I am using mac 10.8, and all dependencies (Cmake, XCode...) are up-to-date.
I don't know what's wrong, and I am now out of ideas.
here is the last part of what the compiler tells me:
Linking CXX executable testcontainer
[ 39%] Built target testcontainer
[ 39%] Generating testctorinformation.moc
Scanning dependencies of target testctorinformation
[ 39%] Building CXX object ApiExtractor/tests/CMakeFiles/testctorinformation.dir/testctorinformation.cpp.o
1 warning generated.
Linking CXX executable testcodeinjection
Undefined symbols for architecture x86_64:
"QCoreApplication::QCoreApplication(int&, char**, int)", referenced from:
TestCodeInjections::testReadFileUtf8() in testcodeinjection.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [ApiExtractor/tests/testcodeinjection] Error 1
make[1]: *** [ApiExtractor/tests/CMakeFiles/testcodeinjection.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
In file included from /Users/jle_guen/Desktop/C4D MAC/BuildScripts-master/shiboken/ApiExtractor/tests/testconversionruletag.cpp:26:
In file included from /Users/jle_guen/Desktop/C4D MAC/BuildScripts-master/shiboken/ApiExtractor/tests/testutil.h:27:
In file included from /Users/jle_guen/Desktop/C4D MAC/BuildScripts-master/shiboken/ApiExtractor/abstractmetabuilder.h:28:
/Users/jle_guen/Desktop/C4D MAC/BuildScripts-master/shiboken/ApiExtractor/abstractmetalang.h:1347:10: warning:
private field 'm_reserveIn file included from /Users/jle_guen/Desktop/C4D MAC/BuildScripts-master/shiboken/ApiExtractor/tests/testconversionoperator.cpp:26:
In file included from /Users/jle_guen/Desktop/C4D MAC/BuildScripts-master/shiboken/ApiExtractor/tests/testutil.h:27:
In file included from /Users/jle_guen/Desktop/C4D MAC/BuildScripts-master/shiboken/ApiExtractor/abstractmetabuilder.h:28:
/Users/jle_guen/Desktop/C4D MAC/BuildScripts-master/shiboken/ApiExtractor/abstractmetalang.h:1347:10: warning:
private field 'm_reserved' is not used [-Wunused-private-field]
d' is not used [-Wunused-private-field]
uint m_reserved : 31;
^
uint m_reserved : 31;
^
1 warning generated.
Linking CXX executable testconversionruletag
[ 39%] Built target testconversionruletag
1 warning generated.
Linking CXX executable testconversionoperator
[ 39%] Built target testconversionoperator
In file included from /Users/jle_guen/Desktop/C4D MAC/BuildScripts-master/shiboken/ApiExtractor/tests/testctorinformation.cpp:25:
In file included from /Users/jle_guen/Desktop/C4D MAC/BuildScripts-master/shiboken/ApiExtractor/abstractmetabuilder.h:28:
/Users/jle_guen/Desktop/C4D MAC/BuildScripts-master/shiboken/ApiExtractor/abstractmetalang.h:1347:10: warning:
private field 'm_reserved' is not used [-Wunused-private-field]
uint m_reserved : 31;
^
1 warning generated.
Linking CXX executable testctorinformation
[ 39%] Built target testctorinformation
make: *** [all] Error 2

Resources