Siftgpu: Problems with compiling SIFTGPU-unresolved external symbols glutinit

Source: Internet
Author: User

OpenCV has an orb feature and a GPU version of surf,

Reference: OpenCV on GPU version surf feature points and Orb feature points extraction and matching examples as to what parallel APIs are used for the time being not explored.

But no opencv-sift GPU was found to be used. Need to compile, reference: Compile OpenCV GPU, use cuda acceleration


Siftgpu's original library can be compiled through. However, it is not available and leads to a series of 96 compilation errors when used.

1.Glew function Error

1>flatten.obj:error LNK2001: unresolved external symbols __imp____glewgetshaderinfolog
1>flatten.obj:error LNK2001: unresolved external symbols __imp____glewgetshaderiv
1>flatten.obj:error LNK2001: unresolved external symbols __imp____glewgetprograminfolog
1>flatten.obj:error LNK2001: unresolved external symbols __imp____glewgetprogramiv
1>flatten.obj:error LNK2001: unresolved external symbols __imp____glewuseprogram
1>flatten.obj:error LNK2001: unresolved external symbols __imp____glewlinkprogram
1> Flatten.obj:error LNK2001: unresolved external symbols __imp____glewattachshader
1>flatten.obj:error LNK2001: unresolved external symbols __imp__ __glewcreateprogram
1>flatten.obj:error LNK2001: unresolved external symbols __imp____glewcompileshader
1>flatten.obj : Error LNK2001: unresolved external symbols __imp____glewshadersource
1>flatten.obj:error LNK2001: unresolved external symbols __imp____ Glewcreateshader
1>flatten.obj:error LNK2019: unresolved external symbols __imp__glewissupporte

Workaround:

Update Glew to version 2.0


2. After updating the Glew, the display still contains the unresolved glut function body for the original Globalutil.obj project:

1>siftgpu.lib (globalutil.obj): Error LNK2001: unresolved external symbol glutinit
1>siftgpu.lib (globalutil.obj): Error LNK2001: unresolved external symbol Glutinitdisplaymode
1>siftgpu.lib (globalutil.obj): Error LNK2001: unresolved external symbols Glutinitwindowposition
1>siftgpu.lib (globalutil.obj): Error LNK2001: unresolved external symbols Glutcreatewindow
1> Siftgpu.lib (globalutil.obj): Error LNK2001: unresolved external symbol Glutdestroywindow
1>siftgpu.lib (globalutil.obj): Error LNK2001: unresolved external symbol Glutgetwindow
1>siftgpu.lib (globalutil.obj): Error LNK2001: unresolved external symbol Glutsetwindow
1 >siftgpu.lib (globalutil.obj): Error LNK2001: unresolved external symbol Gluthidewindow
1>e:\codebase\codevalidsource\slam \orb_slam_wish\build\win\orbslam\x64\release\slamframe.exe:fatal error Lnk1120:8 an unresolved external command

The appropriate glut version could not be found and could not be resolved for the time being.

Correction Method:

2.1. Remove all #include "GlobalUtil.h" statements from the original SIFT project

This method is not desirable.

2.2. Log off all glut functions in GlobalUtil.cpp


Results:

The entire display interface is not available and therefore does not have to be used. The question of glut has also become a hanging problem.

However, it cannot be used and there is a problem during initialization, so the glut problem must be resolved.


Workaround:

The 64-bit version uses the 32-bit version problem.

32-bit version is very easy to find, a bunch of online, but the 64-bit version of the relatively difficult, more people said glut does not support the development of 64-bit, make a small dish once want to give up. Just as I was about to give up, a great God jumped up and said to me, Nani, who said no 64bit ....

Not much to say, directly to the URL: http://download.csdn.net/detail/knownall/6799947 This is glut3.7.6, which contains debug/release,32bit and 64bit.

Of course, you can choose to download the source code of their own compilation: http://download.csdn.net/detail/knownall/6799967 their own compiled should feel more cool, the side dishes is so do drip.

Use the 64-bit version of GLUT. Download Address: http://download.csdn.net/download/knownall/6799947


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.