-
Notifications
You must be signed in to change notification settings - Fork 628
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Source files (src/glew.c, src/glewinfo.c) are missing so msvcx projects can't be used. #13
Comments
The sources are available via the GLEW homepage, either the 1.10.0 release, or the more recent snapshots. http://glew.sourceforge.net/ |
You have to go into the auto folder and make there first. |
thanks, thecodethinker! nigels-com, can you update the README to reflect this requirement? top-level make produces this error in OSX 10.9: |
Generating the source code is discussed here: I'd welcome patches to the README, of course. |
@nigels-com If you want, you could add this to
This way, it will invoke make in the auto folder only if glew.c and/or glewinfo.c are missing. |
That's an interesting idea, but it's likely to fail on Windows, right?
|
I just tried on my Windows VM with MinGW. It works fine. I had to add here's what I did:
And it worked! here's the output:
|
That is impressive indeed. Time to update the instructions, I think! |
Glad I could help. |
This does not seem to have ever happened? I was running into this until I found this issue. Could we actually get this added? I'd be happy to do so if @nigels-com or @mchiasson does not have the time. |
I concur. I hit the same problem on 1.13.0 just now. |
There is currently no plan to put the generated sources in revision control. See the related issue for some of the reasons. #31 |
@nigels-com I'm not asking for the generated sources to be added to the revision control, just that the cmake addition that @mchiasson created be added. This, and a change to the README, would make compiling this massively easier for people who are new to the project or have never compiled it before. |
Ah, the thin layer over the make file. For Linux and Mac ONLY? |
The downside is that source generation can fail due to upstream changes in the OpenGL extension specifications. I don't want an angry bug report every time that happens, it's pretty much to be expected. There are good reasons I steer folks to the pre-built (and tested) releases. |
New to Glew - Please at least add this to the README. Compiling glew without this information is frustrating to say the least. |
It still hasn't been added to the README. It's a small change that would make life easier for anyone new to the project just trying to clone the repo. |
If it's possible to steer folks away from building from scratch, that would be much better, from a maintainer's point of view. There are carefully vetted and tested releases for a good reason, use those, please. |
Yes, i agree. But then i think it should be explicitly said somewhere. I think the text in the website "An up-to-date copy is also available using git: (As a personal anecdote, I am inserted in a CG class and A LOT of people tried (some succeeded some didn't) to build the project from scratch.) |
Is there any way to get full source (and/or prebuild libs) for windows with help of some script? I'd like to add CI to my project which is using GLEW, but i don't want to include generated glew sources directly in my project source. I also don't have direct access to build server, so I can't just copy already downloaded files there. I can do it only by calling some utility from cmd or powershell script. |
For fetching full source, I'd suggest the following script:
And for Windows binaries:
|
Thanks |
Hello to every one glew developers and users.
What is your thoughts if CMake will be do that? For now active stage of creation CMake file is on pause. Even custom.txt processing not finish: I do not recognize what of algorithm to create from one extension from glfixes to several extenation placed in one auto folder at glew >>. Personally for projects in what I use glew I use modifier variant of @mchiasson - just direct call of make tool:
To structure early created by next CMake code:
But only for Linux systems. On Windows it steal used snapshot. With respect, user of glew library. |
Hello. In my previous message in this thread I propose generate missed source files by CMake. Well, regex engine that have last one not so power like have perl. So I implemented such 'generator' by using C++ 11 (support to build at Visual Studio 2013 and gcc 5.4). Idea next – all users of library that have C++ 11 compiler can generate missed source automatic, in case of Visual Studio before first run. What about generated source C files (glew.c, glewinfo.c, ..)? Well mostly different that spaces, but sometimes alternative implementation (C++11, reference – that is exists make/perl/python) get even more for some of glew version, for example some tokens at egl head file (sRGB for example, exist regex at perl script probably missed in order to small register char ‘s’). Also some missed name string get by this implementation, for example such that have (legacy) (some of file from glfixes have such) at one line at specification. That implementation can be used to improve exists now – for example:
Implementation used perl script as data source and internally execute bash script on data in list. Parsing of make file not implemented, so if it will globally changed addition work should be done – writing C++11 variant or implement parsing of last one in same way like done with bash script. No addition libraries required, however for developing purpose you can connect pugixml as xml back end. Honestly dev branch, that not uploaded at gist, totally based on that library together with google test. In Debug mode pugixml much more performance than internal implementation, but for Release I choose no addition dependence as original propose - only C++ 11 compiler. Thank you for your attention. Update 2019.01.22: Update 2019.05.06: |
I hope this version is more understandable for people just reading the Readme I had to go read #13 first to understand what this meant.
Currently in |
Man.... if this was added to the README page that would be nice. Should I make a PR ? Imagine though that this is such a popular question, then better documentation is required! |
8(
The text was updated successfully, but these errors were encountered: