oneTBB
oneTBB copied to clipboard
Error during Built target PREFIX
I am using oneTBB as a submodule in my project (Link: https://github.com/openPupil/PyPupilEXT)
In the CMakeLists.txt
, the tbb libs are installed using the following command
include(ExternalProject)
ExternalProject_Add(PREFIX ${PROJECT_SOURCE_DIR}
SOURCE_DIR ${PROJECT_SOURCE_DIR}/3rdparty/oneTBB
TMP_DIR "3rdparty/oneTBB/"
STAMP_DIR "3rdparty/oneTBB/"
LOG_DIR "3rdparty/oneTBB/"
BINARY_DIR "3rdparty/oneTBB/"
INSTALL_DIR "3rdparty/oneTBB/"
CMAKE_ARGS -DTBB_TEST=OFF -DCMAKE_INSTALL_PREFIX=build -DCMAKE_OSX_ARCHITECTURES=x86_64
)
However, when I try to build the program I receive the following error
[ 20%] Built target PREFIX
3rdparty/oneTBB/src/tbbmalloc/CMakeFiles/tbbmalloc.dir/build.make:62: src/tbbmalloc/CMakeFiles/tbbmalloc.dir/depend.make: No such file or directory
3rdparty/oneTBB/src/tbbmalloc/CMakeFiles/tbbmalloc.dir/build.make:64: src/tbbmalloc/CMakeFiles/tbbmalloc.dir/compiler_depend.make: No such file or directory
3rdparty/oneTBB/src/tbbmalloc/CMakeFiles/tbbmalloc.dir/build.make:67: src/tbbmalloc/CMakeFiles/tbbmalloc.dir/progress.make: No such file or directory
3rdparty/oneTBB/src/tbbmalloc/CMakeFiles/tbbmalloc.dir/build.make:70: src/tbbmalloc/CMakeFiles/tbbmalloc.dir/flags.make: No such file or directory
make[2]: *** No rule to make target `src/tbbmalloc/CMakeFiles/tbbmalloc.dir/flags.make'. Stop.
make[1]: *** [3rdparty/oneTBB/src/tbbmalloc/CMakeFiles/tbbmalloc.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
I checked the directory and the folders are available. Interestingly, when running the CMake command twice, everything builds fine.
Steps to reproduce on macOS (Intel)
git clone --recurse-submodules https://github.com/openPupil/PyPupilEXT
conda create -n pypupilenv python=3.9
conda activate pypupilenv
conda install numpy
conda install matplotlib
conda install pandas
python -m pip install --upgrade pip
python -m pip install opencv-python
cd PyPupilEXT
conda activate pypupilenv
python setup.py sdist bdist_wheel
Any idea how to solve this error?
Hi @BZandi, sorry for the late response! Was you able figure out the problem. Is it still relevant?