Does Colmap Support CUDA 9.0? CUDA 8.0 LNK 2019 Unresolved extern symbols __imp_glBegin ?

169 views
Skip to first unread message

yihuili...@gmail.com

unread,
Nov 18, 2017, 10:39:50 PM11/18/17
to COLMAP
Bonjour! First of all, thank you Johannes for this awesome open source software COLMAP!

I am in win7, VS2013 update5.

I first tried to build COLMAP in CUDA 9.0 but VS error occured:

CMake Error at sift_gpu_generated_ProgramCU.cu.obj.Debug.cmake:222 (message):
Error generating
E:/Work2017/COLMAP_build/src/ext/SiftGPU/CMakeFiles/sift_gpu.dir//Debug/sift_gpu_generated_ProgramCU.cu.obj
mkwayrefine.c
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): error MSB6006: “cmd.exe” 已退出,代码为 1。(exit with code 1)

Then I install CUDA 8.0, but I did not uninstall CUDA 9.0, (does it matter???) the above errors did not show, the new errors are like that:
21>sift_gpu.lib(SiftGPU.obj) : error LNK2019: Unresolved extern symbols __imp_glBegin,used in function "private: void __cdecl SiftGPUEX::DisplayDebug(void)" (?DisplayDebug@SiftGPUEX@@AEAAXXZ)
.....etc. include: __imp_glBegin, __imp_glColor3f, __imp_glColor3fv, __imp_glDisableClientState, __imp_glDrawArrays ...

As I know these functions are declared in glew.h, I guess this kind of error means something wrong in glew32.lib, I add this lib in additional dependency (I am sure VS can find it because if I delete glew32.lib VS will show "cannot open glew32.lib").

I tried about 10 days and cannot solve this problem, T_T , HELP!!!

Cheers ^_^ 

Yours, Li Yi Hui







yihuili...@gmail.com

unread,
Nov 18, 2017, 11:08:49 PM11/18/17
to COLMAP

I am in x64 release

在 2017年11月19日星期日 UTC+8上午11:39:50,yihuili...@gmail.com写道:

Johannes Schönberger

unread,
Nov 19, 2017, 12:31:09 PM11/19/17
to COLMAP
Hi,

Can you try the automatic build script https://github.com/colmap/colmap/blob/dev/scripts/python/build.py in the dev branch?

Cheers,
Johannes
> --
> You received this message because you are subscribed to the Google Groups "COLMAP" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to colmap+un...@googlegroups.com.
> To post to this group, send email to col...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/colmap/a5322cc0-c3b5-4afd-8178-bac67ecaa28b%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

yihuili...@gmail.com

unread,
Nov 19, 2017, 8:56:57 PM11/19/17
to COLMAP
Thanks for reply. OK, I will try it...I did not use build.py because I have not learnt python. This time I will try it.

Cheers,
Li Yi Hui

在 2017年11月20日星期一 UTC+8上午1:31:09,Johannes Schönberger写道:

yihuili...@gmail.com

unread,
Nov 20, 2017, 12:38:49 AM11/20/17
to COLMAP

I tried build.py the cmd show like that

but in __install__ there is only some dll and glewinfo.exe and visualinfo.exe, no colmap.exe





在 2017年11月20日星期一 UTC+8上午1:31:09,Johannes Schönberger写道:
Hi,
Reply all
Reply to author
Forward
0 new messages