views:

51

answers:

1

I'm trying to get glew to work under eclipse (mingw) in windows. Seems as if it is extremely unusual not to use Visual Studio in this context. The install instructions for glew is simply "use the project file in build/vc6/"...

The glew readme also writes: "If you wish to build GLEW from scratch (update the extension data from the net or add your own extension information), you need a Unix environment (including wget, perl, and GNU make). The extension data is regenerated from the top level source directory with: make extensions"

In order to get glew to work in eclipse and windows I have to compile it in a unix environment? Is there no other way? Sure, it would probably be a learning experience to pull that off (if I were to succeed) but I feel that my time is best spent actually working on my project. And even if I did manage to crosscompile everything, would it work in anything but Visual Studio?

Is the whole thing unfeasible and the best solution is to install Visual Studio?

Google haven't been of much help, I feel like I am the only one that has ever attempted to do this (is there a good reason this?).

A: 

Try the following:

  1. Download the Windows 32-bit binary for GLEW here: http://glew.sourceforge.net/index.html
  2. Follow the instruction to link your project to GLEW: http://glew.sourceforge.net/install.html
  3. Make sure your Eclipse is also setup to compile with mingw. (I assume you've done this.)
  4. cout << "Hello world!";
Xavier Ho
As a side comment, I've went through the entire labour of making cygwin to work with Eclipse. Not very pretty. I eventually went back to VS2008 for C++, and Eclipse for Java and Python. Your call.
Xavier Ho
Thanks, I've tried that and got a bunch of linkingproblems. I've spent quite some time with google on resolving this and I can't find anything relevant. Maybe I've just messed something up but I decided that this issue was taking way to much time and I've mentally prepared for installing visual studio and will probably do that later tonight. Thanks again.
echo
Care to share your error messages? (Or if you've given up by going to VS like I did, all's good. `;]`)
Xavier Ho