Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I tried to use imagemagick in Linux. I installed it by using sudo apt-get instal

ID: 3872272 • Letter: I

Question

I tried to use imagemagick in Linux. I installed it by using

sudo apt-get install libmagick++-dev

But I do not know what I should add to the makefile.

The makefile I currrently use:

# check for OS Type UNAME-S := $(shell uname -s) # Linux ifeq ($(UNAME_S), Linux) CC=g++ LIBSSDL2-LGLEW-IGLlassimp LMagickcore-6.Q16 # Mac else CC=clang++ LIBS1SDL2 framework OpenGL -framework Cocoa -1GLEW -stdlib-libc++ endif directories, library directories; in all: if used # Paths, use this to set Include #PATH1=-1/usr/local/include/ #PATHL=-L/usr/local/lib/ or uncomment #compiler Flags CXXFLAGSg -Wall -std-c++0x-I/usr/include/ImageMagick-6 # .0 compilation 0-FILES=nain.o ca era. o engine.o graphics . o object .o shader.o window. # Point to includes of local directories INDLUDES=-1 . . /include all: $(O FILES) $(CC) $(CXXFLAGS) -o Tutorial $(0-FILES) $(LIBS) #$(PATH!) $(PATHL) main.o: ../src/main.cpp (CC) $(CXXFLAGS) -c ../src/main.cpp -o main.o $(INDLUDES) camera.: ../src/camera.cpp $(CC) $(CXXFLAGS) -c ../src/camera.cpp -o camera.o $(INDLUDES) $(CC) $(CXXFLAGS) -c/src/engine.cpp-o engine.o $(INDLUDES) (CC) $(CXXFLAGS) -c ../src/graphics.cpp o graphics.o $(INDLUDES) (CC) $(CXXFLAGS) -c ../src/object.cpp o object.o $(INDLUDES) $(CC) $(CXXFLAGS) -c ../src/shader.cpp -o shader.o $(INDLUDES) $(CC) $(CXXFLAGS) -c/src/window.cppo window.o $(INDLUDES) $(CC) $(CXXFLAGS) -c ../src/ogldev_texture.cpp -o ogldev_texture.o $(INDLUDES) engine.o: ../src/engine.cpp graphics.o: ../src/graphics.cpp object.o: ../src/object.cpp shader.o: ../src/shader.cpp window.o: ../src/window.cpp ogldev_texture.o: ../src/ogldev texture.cpp clean: @if rm .o Tutorial 2>/dev/null II true; then echo "Main Removed" else echo "No Main" fi

Explanation / Answer

Make sure you give absolute path to all .cpp files that are referred in .o files.

Add the path of imagemagick in bashrc files.

Since there are no errors shown in above image. These are the maximum edits I can comment. Please provide the result page.