Open spk921 opened 7 years ago
Sorry, I've never seen this error before. This repo is very outdated. I was using the freeimageplus lib only because opencv didn't support hdr image io back then. I believe the freeimageplus library is poorly maintained, so there's probably some inconsistency. Now that opencv3 supports hdr image io, the simplest solution is probably to replace the 1 or 2 lines in code that uses freeimageplus with opencv equivalents.
@sunweilun Could you refer the code where I should change?
@sunweilun
https://github.com/sunweilun/ObjRenderer/blob/master/ImageUtils.h#L30
How can I replace this FreeImage?
I have error with 'FreeImage_ConvertTo8Bits' with Ubuntu 16.04 OS.
When I do make I got error. I attached the error. It seems it has problem on libfreeimage.so.3 Do you have any solutions?
mkdir -p build/Release/GNU-Linux-x86 rm -f "build/Release/GNU-Linux-x86/makeMaterial.o.d" g++ -std=c++0x -c -O2
pkg-config --cflags opencv
pkg-config --cflags OpenEXR
-MMD -MP -MF "build/Release/GNU-Linux-x86/makeMaterial.o.d" -o build/Release/GNU-Linux-x86/makeMaterial.o makeMaterial.cpp mkdir -p dist/Release/GNU-Linux-x86 g++ -std=c++0x -o dist/Release/GNU-Linux-x86/objrenderer build/Release/GNU-Linux-x86/ObjRenderer.o build/Release/GNU-Linux-x86/ShaderData.o build/Release/GNU-Linux-x86/Viewer.o build/Release/GNU-Linux-x86/main.o build/Release/GNU-Linux-x86/makeMaterial.opkg-config --libs opencv
pkg-config --libs OpenEXR
-lGL -lglut -lGLU -lGLEW -lfreeimageplus /usr/bin/ld: build/Release/GNU-Linux-x86/ObjRenderer.o: undefined reference to symbol 'FreeImage_ConvertTo8Bits' //usr/lib/x86_64-linux-gnu/libfreeimage.so.3: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status nbproject/Makefile-Release.mk:66: recipe for target 'dist/Release/GNU-Linux-x86/objrenderer' failed make[2]: [dist/Release/GNU-Linux-x86/objrenderer] Error 1 make[2]: Leaving directory '/home/spk/git/ObjRenderer' nbproject/Makefile-Release.mk:63: recipe for target '.build-conf' failed make[1]: [.build-conf] Error 2 make[1]: Leaving directory '/home/spk/git/ObjRenderer' nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed make: *** [.build-impl] Error 2