Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when building with "make" on Ubuntu 18.04 #30

Open
andikra opened this issue Jul 31, 2021 · 1 comment
Open

Error when building with "make" on Ubuntu 18.04 #30

andikra opened this issue Jul 31, 2021 · 1 comment

Comments

@andikra
Copy link

andikra commented Jul 31, 2021

Hello all,

I need a bit of help with building the repository. My specifications are as follows:

Ubuntu 18.04
libtorch v.1.0.0
OpenCV 3.2

I cloned the repo, created a build folder and used cmake .. , which went well.
When I use make, it gives me the following error:
cmake ..
-- Configuring done
-- Generating done
-- Build files have been written to: /home/andik/Schreibtisch/ML/libtorch-yolov3-deepsort/build
andik@andik-VirtualBox:/Schreibtisch/ML/libtorch-yolov3-deepsort/build$ make ..andik@andik-VirtualBox:/Schreibtisch/ML/libtorch-yolov3-deepsort/build$ make
Scanning dependencies of target detection
[ 5%] Building CXX object detection/CMakeFiles/detection.dir/src/Darknet.cpp.o
/home/andik/Schreibtisch/ML/libtorch-yolov3-deepsort/detection/src/Darknet.cpp:63:53: error: ‘torch::IntArrayRef’ has not been declared
torch::Tensor forward(torch::Tensor prediction, torch::IntArrayRef inp_dim) {
^~~~~
/home/andik/Schreibtisch/ML/libtorch-yolov3-deepsort/detection/src/Darknet.cpp: In member function ‘at::Tensor DetectionLayerImpl::forward(at::Tensor, int)’:
/home/andik/Schreibtisch/ML/libtorch-yolov3-deepsort/detection/src/Darknet.cpp:72:38: error: invalid types ‘int[int]’ for array subscript
int64_t stride[] = {inp_dim[0] / grid_size[0], inp_dim[1] / grid_size[1]};
^
/home/andik/Schreibtisch/ML/libtorch-yolov3-deepsort/detection/src/Darknet.cpp:72:65: error: invalid types ‘int[int]’ for array subscript
int64_t stride[] = {inp_dim[0] / grid_size[0], inp_dim[1] / grid_size[1]};
^
detection/CMakeFiles/detection.dir/build.make:62: recipe for target 'detection/CMakeFiles/detection.dir/src/Darknet.cpp.o' failed
make[2]: *** [detection/CMakeFiles/detection.dir/src/Darknet.cpp.o] Error 1
CMakeFiles/Makefile2:85: recipe for target 'detection/CMakeFiles/detection.dir/all' failed
make[1]: *** [detection/CMakeFiles/detection.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Has anyone experienced the same error?
Best regards
Andi

@andikra
Copy link
Author

andikra commented Jul 31, 2021

When I use "make -j12", the complete error log is different, I attached it in the txt file.
make_error_report.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant