Open bwanaaa opened 4 years ago
Hey! glew.h is a header file from the project's folder, it doesn't have to be moved anywhere because it's exactly where it's supposed to be :) But, yYou're right, there is a problem to be solved - the thing that's not being found is the glew
library.
As stated here, glew is a required library (aka dependency), so you must install it first (if there would've been more, you would've had to install them all).
You can install most libraries (aka dependencies, or packages) with a package manager. I used NPM (node package manager), which is included in Node.js, a runtime environment for JavaScript (completely unrelated but NPM does the job). You can also use APT (the famous command apt-get in a Linux terminal), yum, RPM, Homebrew (aka brew) or others.
If you want the simple solution, go ahead and install Node.js (see this page), then press Windows Key+R
* and type cmd
, press Enter or click Run, and you should see the console appear. Type npm install glew
, press Enter and you're set! After it's done installing, you should be able run the executable file.
If you're on Mac, press Command Key+Space
to launch Spotlight and then type "Terminal". Type npm install glew
just the same way.
Sorry for taking long to reply, I wanted to flesh this answer out for anyone else having trouble. Hopefully it helped :)
Sorry I didn't properly look into your problem.
I edited VC++ Directories to be: ..\glew-2.2.0\lib\Release\x64;
Can you try editing them to glew-2.2.0\include
and recompiling everything? Does that fix the problem?
I have tried these changes:
and it still fails.
I also tried putting '\GL' after 'include and it still fails.
and even after I make these changes and save the project, I cannot find any mention of 'glew' in the list of files in the 'solution explorer'. Sorry but I am not familiar with the details of visual studio. I must be missing something fundamental.
@HackerPoet Sorry for tagging, but I have no idea what's going on either.
Yup same problem here, downloaded VS just for this (never used it before so maybe I just do something terribly wrong)
I added glew to NonEuclidean and changed all <GL/glew.h> to "GL/glew.h".
This solved all the problems with glew not being found but it creates 616 other errors, including suddenly not finding
I found this because I was having similar issues. Note that this was done in 2017 but hopefully it helps.
I downloaded the glew 2.1.0 binary and copied a few files over into the main NonEuclidean folder:
(some of these files are probably unnecessary)
Then, in the Project Properties (in Solution Explorer right click the project -> Properties) I added ./include (literally "./include") as an Additional Include Directory under C/C++ -> General -> Additional Include Directories. I also added ./lib under Linker -> General -> Additional Library Directories.
With this setup I'm able to build and run without any code changes.
That reminds me, I'm kind of surprised this is set up as a Visual Studio project. I heard that Visual Studio is awesome with C#, but personally I made the experience that with C++ it's even more disgusting than Eclipse.
I put a fresh copy of glew-2.2.0 into main non-Euclidean folder. I edited VC++ Directories to be: ..\glew-2.2.0\lib\Release\x64;$(LibraryPath) I edited C/C++ Additional Include Directories to be: ..\glew-2.2.0\;%(AdditionalIncludeDirectories) I edited
glew.h is there but is not being found. help??