fstl-app / fstl

A fast STL file viewer
449 stars 105 forks source link

compile on Windows #39

Closed bjornthe closed 5 years ago

bjornthe commented 5 years ago

Hello, I've installed Qt 5.11.2 on Windows 10. Then I got linking error for glPolygonMode. If I comment out the three instances of glPolygonMode in canvas.cpp it compiles and run.

Error: canvas.obj : error LNK2019: unresolved external symbol __imp_glPolygonMode referenced in function "private: void __cdecl Canvas::draw_mesh(void)" (?draw_mesh@Canvas@@AEAAXXZ) release\fstl.exe : fatal error LNK1120: 1 unresolved externals

mkeeter commented 5 years ago

Have you done any searching for that error message? This Stack Overflow question looks relevant.

bjornthe commented 5 years ago

I'll try some more. That looks relevant.

DeveloperPaul123 commented 5 years ago

@bjornthe Are you still having issues?

bjornthe commented 4 years ago

In fstl.pro I added: LIBS += -lopengl32 reran "run qmake" and then it worked.