Comments (10)
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.
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.
Yes,when I build glfw myself. It works.
from learnopengl.
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.
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.
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.
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.
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.
Select WIN32 . NOT "X64". It runs OK
from learnopengl.
cmake option win32 works, don‘t need rebuild glfw from source.
from learnopengl.
Related Issues (20)
- Add tutorial on screen to world?
- need update assimp head file HOT 1
- if u want to compile Xcode project running on MAcOsx,pls run command line below: HOT 5
- normal mapping tangent vector multiplied by normal matrix
- Tutorial case guest_2021_2.csm not working
- Correction for "getNormalFromMap()" in PBR Texturing Tutorial HOT 3
- Later version of glw may cause problem in 6.1 coordinate system code
- AdvancedOpenGL: 11.1_anti_aliasing_msaa lack of "glfwWindowHint(GLFW_SAMPLES, 4)" HOT 1
- How to build project with visual studio code and msys minGW-w64 gcc 12.2.0 HOT 1
- example `5.x.framebuffers*` forgot to release the frameBuffer on exit HOT 1
- skeleton Animation demo crash
- oit: "'binding' : not supported for this version or the enabled extensions" HOT 1
- Does not build on FreeBSD 13.2-RELEASE
- Mac M1 fails to launch: the platform is not currently connected HOT 1
- Mistake in SSAO HOT 1
- Minor error in renderSphere
- WebP Format for jpg images HOT 1
- Does "Exploding Objects" in charpter "Geometry shader" makes scense?
- Confused by your explanation of "irradiance map"
- Maths in parallax occlusion mapping shader.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from learnopengl.