tvsn icon indicating copy to clipboard operation
tvsn copied to clipboard

Could you add more detail of building ObjRenderer?

Open spk921 opened this issue 7 years ago • 11 comments

I have install freeImageplus-dev. But was not able to build the ObjRenderer.

Do you have same problem while building the ObjRenderer?

"make" -f nbproject/Makefile-Release.mk QMAKE= SUBPROJECTS= .build-conf make[1]: Entering directory '/home/spk/git/ObjRenderer' "make" -f nbproject/Makefile-Release.mk dist/Release/GNU-Linux-x86/objrenderer make[2]: Entering directory '/home/spk/git/ObjRenderer' 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.o pkg-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

spk921 avatar Oct 09 '17 00:10 spk921

I got the same error msg

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.o pkg-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

Does anybody know how to resolve this?

kyungjaelee avatar Oct 11 '17 12:10 kyungjaelee

@spk921 @kyungjaelee sorry for late response, Unfortunately, I have no idea what is going on here, I didn't write ObjRenderer code, you might want to contact original author.

silverbottlep avatar Oct 19 '17 03:10 silverbottlep

@silverbottlep Thank you for your reply. However, how did you generate the data if you was not able to compile ObjRenderer? Do you have no problem during compiling? @silverbottlep Since many of people encounter error of compiling it then could you upload the training set and test set? If the code is here to reproduce then the dataset should be upload with it which most of opensource do that. I think it is good for people as well to share the dataset at least to try out.

spk921 avatar Oct 19 '17 06:10 spk921

@spk921 I had no problem to build objrenderer. I didn't put the rendered images here since they are huge. I put rendered chair images on google drive(chair), could you try this?

silverbottlep avatar Oct 25 '17 14:10 silverbottlep

@silverbottlep Thank you for the data. What is your computer environment for compiling the ObjRenderer?

spk921 avatar Oct 28 '17 09:10 spk921

@spk921 what do you mean by environment?, it was ubuntu 14.04

silverbottlep avatar Oct 28 '17 19:10 silverbottlep

@silverbottlep Yes OS. I am using ubuntu 16.04.03. Thank you for the information. @kyungjaelee I assume that this make the compiling issue.

spk921 avatar Oct 29 '17 10:10 spk921

@silverbottlep @spk921 Hi, I'm the same guy as @kyungjaelee I had a trouble when I was using @kyungjaelee 's computer and I finally resolve the problem. As I remove all codes after I finished my work, I cannot remember the exact file name that I modified in the ObjRenderer folder. However, if you look into some codes in the ObjRenderer for compile, you can find a file that contains line with "pkg-config --libs opencv pkg-config --libs OpenEXR -lGL -lglut -lGLU -lGLEW -lfreeimageplus" options.

At the end of the option, adding "-lfreeimage" solves the problem.

The missing option "-lfreeimage" to use libfreeimage (not libfreeimageplus) for compile yields the error msg and it seems that "-lfreeimageplus" option does not automatically link to libfreeimage.

itswyri avatar Oct 30 '17 10:10 itswyri

You can find it at line 67 of nbproject/Makefile-Release.mk

itswyri avatar Oct 30 '17 11:10 itswyri

@itswyri Thanks!

silverbottlep avatar Oct 30 '17 15:10 silverbottlep

Hi @silverbottlep , can you please share rendered car images too?

ashwinpathak20 avatar Sep 06 '18 16:09 ashwinpathak20