请选择 进入手机版 | 继续访问电脑版
设为首页收藏本站

 找回密码
 立即注册

QQ登录

只需一步,快速开始

FuzzyCorrs

已有 3634 次阅读2014-11-9 17:57 |个人分类:work|系统分类:计算机图形学| Kim--FuzzyCorrs

http://www.cs.princeton.edu/~vk/ Vladimir G. Kim 的一篇SIGGRAPH 2012文章, Exploring Collections of 3D Models using Fuzzy Correspondences, 见 http://www.cs.princeton.edu/~vk/projects/CorrsFuzzy/. 他给的代码可以说很大吧,编译较困难,这里给出些经验,方便大家调通代码, compile the code: ******************************************************************************** I) Compiling the Code, all the links are in "http://www.cs.princeton.edu/~vk/projects/CorrsFuzzy/doc_code.php". Step 1:     Verify that the following libraries are installed: OpenGL, GLUT, LAPACK and BLAS, FLANN, OpenCollada (optional) Step 2.1:     Download the FuzzyCorrs 1.0 sourcecode, and compile (just type 'make'). Step 2.2:     Download the gaps (spherical harmonics) sourcecode, and compile (just type 'make'). Step 2.3:     Download the SurfCode 2.1 (blended intrinsic maps) sourcecode, and compile (just type 'make'). Problems: ******************************************************************************** [ 1]  error: ‘sleep’ was not declared in this scope     #include [ 2]  error: ‘stderr’ was not declared in this scope     #include [ 3]  flann/flann.hpp: No such file or directory     flann Installation not OK, need "sudo make install". [ 4]  ‘glBindFramebuffer’ was not declared in this scope     #define GL_GLEXT_PROTOTYPES [ 5]  error: ‘std::ofstream’ has not been declared       error: ‘std::ifstream’ has not been declared     #include     #include [ 6]  ‘rand’,‘system’ was not declared in this scope     #include [ 7]  ‘sort’ is not a member of ‘std’        #include [ 8]  ‘stderr','fprintf' was not declared in this scope        #include [ 9]  ‘NULL’ was not declared in this scope     #include         NULL is not a keyword. It's an identifier defined in some standard headers. You can include [10]  ‘fopen/fread/fclose' was not declared in this scope           #include [11]  ‘ptrdiff_t’ does not name a type ‘cLinearSearchSize’ was not declared in this scope     #include [12]  出现如下的错误:        R3Draw.C:(.text+0x23a3): undefined reference to `gluQuadricNormals'        R3Draw.C:(.text+0x23c4): undefined reference to `gluQuadricTexture'        R3Draw.C:(.text+0x23d9): undefined reference to `gluQuadricDrawStyle'        R3Draw.C:(.text+0x2400): undefined reference to `gluSphere'        R3Draw.C:(.text+0x241a): undefined reference to `gluQuadricNormals'        R3Draw.C:(.text+0x242f): undefined reference to `gluQuadricTexture'        R3Draw.C:(.text+0x2444): undefined reference to `gluQuadricDrawStyle'        R3Draw.C:(.text+0x246b): undefined reference to `gluSphere'        R3Draw.C:(.text+0x24a5): undefined reference to `gluQuadricNormals'        R3Draw.C:(.text+0x24c6): undefined reference to `gluQuadricTexture'        R3Draw.C:(.text+0x24d1): undefined reference to `gluNewQuadric'     … 注意一定是库的引用顺序错误:例如FuzzyCorrs1.0/makefiles/Makefile.apps Ori: LIBS=$(USER_LIBS) $(PKG_LIBS_FILES) $(EXT_LIBS_FILES) $(OPENGL_LIBS) $ (GAPS_LIB) 注意这里的  OPENGL_LIBS 为:        # opengl        OPENGL_LIBS= -lglut -lGLU -lGL -lm    而 $(GAPS_LIB)里的GAPS_LIB 为:        GAPS_LIB=-L$(GAPS)/lib/$(ARCH)/ -lR3Graphics -lR3Shapes -lR2Shapes -lRNBasics -ljpeg 里面的函数要调用OPENGL_LIB里的函数,被调用的库应放在后面,故 New: LIBS=$(USER_LIBS) $(PKG_LIBS_FILES) $(EXT_LIBS_FILES) $(GAPS_LIB) $(OPENGL_LIBS) 另外, Ori:           # math        EXT_LIBS_FILES = -llapack -lcblas  -latlas -lz 这里的liblapack要用到后面的libcblas,libatlas,及没有写的libblas,所以-llapack必须放在最前方,而且要用道的库一个都不能少,否则就会报错:例如 /usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib/liblapack.a(dtrti2.o): In function `dtrti2_': dtrti2.f:(.text+0x175): undefined reference to `dtrmv_' dtrti2.f:(.text+0x2e4): undefined reference to `dtrmv_' … 另外这里要加上 -lgfortran, 可能要用到fortran的函数,即        # math        EXT_LIBS_FILES = -llapack -latlas -lcblas -lgfortran -lz 然后就OK了。 ******************************************************************************** 需要预先配置一些库,各自均有说明,然后compile codes,出现错误按上述改正即可。 然后执行,将 kim.rar 解压到~/Downloads/下,直接make即可,会出现 交互界面如下: haha.png kim.rar 下载地址:http://pan.baidu.com/s/1jGJwOaq 百度网盘,若有问题,发邮件chh2010529@yeah.net给我,这里日志有限制,300M的东西传不上去!

路过

鸡蛋

鲜花

握手

雷人

评论 (0 个评论)

facelist doodle 涂鸦板

您需要登录后才可以评论 登录 | 立即注册

Archiver|手机版|视觉计算研究论坛 ( 京ICP备09019267号 )  

GMT+8, 2017-11-19 09:04 , Processed in 0.201573 second(s), 29 queries , Gzip On.

Powered by SIGVC.org

© 2012- , Beijing, China

回顶部