Git Product home page Git Product logo

Comments (10)

aboutqx avatar aboutqx commented on June 15, 2024 1

Hi,i'm using cmake to generate files for vs2015 on win7 64,and still get errors below.I've download glfw64.zip,how shuold i replace the glfw?It got 3 files,glfw3.dll,glfw3.lib,glfw3dll.lib.

I jusr replaced the glfw3.lib in directory lib,still get errors.

While i built from source and choose win32 in cmake , it works.

Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol glewInit referenced in function main 1.getting_started_2.hello_triangle \LearnOpenGL_build\hellotriangle2.obj 1
Error LNK2001 unresolved external symbol __glewBufferData 1.getting_started_2.hello_triangle \LearnOpenGL_build\hellotriangle2.obj 1
Error LNK2001 unresolved external symbol __glewBindBuffer 1.getting_started_2.hello_triangle \LearnOpenGL_build\hellotriangle2.obj 1

from learnopengl.

JoeyDeVries avatar JoeyDeVries commented on June 15, 2024

It couldn't link properly with GLFW from the looks of it. Try building GLFW yourself (or get one of their pre-compiled binaries for your system if available). Link against that library and it should work

from learnopengl.

wguo68 avatar wguo68 commented on June 15, 2024

Yes,when I build glfw myself. It works.

from learnopengl.

gameengineer avatar gameengineer commented on June 15, 2024

That's a hassle though. You include the lib binaries so you should fix your build problem not us. Previous releases built fine.

from learnopengl.

JoeyDeVries avatar JoeyDeVries commented on June 15, 2024

It's been scratching my head for a while to indirectly link to GLFW's source in the CMAKE file and re-compile the library whenever the project is compiled for the first time, but I'm not an expert at CMAKE so I'll have to contribute quite some time to figure this out; time I don't have at the moment. I've put it on the list and plan to work on it soon.

from learnopengl.

gameengineer avatar gameengineer commented on June 15, 2024

I guess I hadn't thought of that. You have to account for a host of different builds with CMake. My apologies for coming across too abrupt with my comments to you. Your code and explanations have helped me immensely.

from learnopengl.

JoeyDeVries avatar JoeyDeVries commented on June 15, 2024

Not at all, they're not critical concerns, but valid concerns nonetheless. Once I'm a bit better at CMAKE I'll probably give it a shot again ;)

from learnopengl.

ylme avatar ylme commented on June 15, 2024

well, the glfw3.lib is now compiled with vs2015 . the lib not work in vs2012, i have to recompile glfw in vs2012. it works too.

from learnopengl.

zoozooll avatar zoozooll commented on June 15, 2024

Select WIN32 . NOT "X64". It runs OK

from learnopengl.

aboutqx avatar aboutqx commented on June 15, 2024

cmake option win32 works, don‘t need rebuild glfw from source.

from learnopengl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.