DLR-RM / 3DObjectTracking

Algorithms and Publications on 3D Object Tracking
MIT License
624 stars 121 forks source link

LNK110:Unable open file "glfw.lib" #35

Closed luoxiali closed 1 year ago

luoxiali commented 1 year ago

emm,i encounter this problem when i build icg solution. then i already installed glfw3.1.2 in path:c:/program Filles(x86)/GLFW , and i just find the glfw3.lib in subfolder(/lib) of the folder: image

i search on net,and i only find glfw3.lib,and nowhere about glfw.lib,so i am dejected of this problem,I would appreciate it if someone konw it?

in addtion,i rename the glfw.lib to glfw3.lib in the attach dependece place in visual studio, and it can't work yet, i got many LNK2019 errors.

Myzhencai commented 1 year ago

@luoxiali can you share the steps for dealing with this issue,:-)

luoxiali commented 1 year ago

@Myzhencai i have a little bit short memory。but if you can try this it may be work: 1.change the cmakeconfig file in folder path:C:\Program Files (x86)\GLFW\lib\cmake\glfw (perhaps any other path you install the glfw,mine is here by defualt) 2.replace the follow lines set_and_check(GLFW3_INCLUDE_DIR "${PACKAGE_PREFIX_DIR}/include") set_and_check(GLFW3_LIBRARY_DIR "${PACKAGE_PREFIX_DIR}/lib") to set_and_check(GLFW3_INCLUDE_DIR "${PACKAGE_PREFIX_DIR}/../../../include") set_and_check(GLFW3_LIBRARY_DIR "${PACKAGE_PREFIX_DIR}/../../../lib") 3.in addition, CMAKE SETTING, SET THE glfw3_DIR:C:/Program Files (x86)/GLFW/lib/cmake/glfw that's my glfw's setting of this problem.