I downloaded Halide binaries for Linux. For compiling the tutorial programs(especially the autoscheduler program), I need to install g++ version 5.3. But, I am not able to install this particular version. How to solve the problem? Please find the instructions below copied from the link : https://github.com/halide/Halide/releases
Update 1: I ran the command sudo apt install g++-5.3 . I got the error "Unable to locate the package g++5.3"
Update 2: These are some of the errors I get.
Update 4: I want to run this program : https://halide-lang.org/tutorials/tutorial_lesson_21_auto_scheduler_generate.html. The linux command is given at the very top of the above link. I am pasting it below: g++ lesson_21_auto_scheduler_generate.cpp ../tools/GenGen.cpp -g -std=c++11 -fno-rtti -I ../include -L ../bin -lHalide -lpthread -ldl -o lesson_21_generate
Additionally, I moved the "libHalide.a" file from the lib folder to the bin folder and executed the commmand.
The problem is that you're on Windows, as your references to x86_64-pc-cygwin
and /cygdrive/c
in your screenshot indicate, but you're trying to use the Linux binaries. Cygwin is only source-compatible with Linux programs, not binary-compatible. Here's your choices:
g++
instead of g++-5.3
, and then use the Linux download there