|
Post by matthew on Dec 26, 2010 14:59:06 GMT -5
I've taken an old PyOpenGL routine & packaged it into a single executable. It works fine on my computer but I need other people to test it. Just download the file & run it. You should see a spinning cube on the screen but if it doesn't work I need to know what happened. Did it report an error saying that it couldn't find MSVCR90.dll & GLUT32.dll?
|
|
|
Post by shadow008 on Dec 26, 2010 16:50:07 GMT -5
Worked fine for me (Windows 7... if it matters). I manually installed glut32 a while ago so...
|
|
|
Post by matthew on Dec 26, 2010 18:38:07 GMT -5
Thanks for testing, if you're running Windows 7 you've probably already got the other dll installed on your system too.
|
|
|
Post by chris857 on Dec 26, 2010 21:52:38 GMT -5
When I try to run the program, it creates an error log that says:
(I'm running XP)
|
|
|
Post by matthew on Dec 26, 2010 22:24:16 GMT -5
Thanks for testing Chris, do you know whether you've got GLUT32.dll installed on your system?
|
|
|
Post by chris857 on Dec 26, 2010 23:45:05 GMT -5
In the SYSTEM32 folder, I see a GLU32.dll, but no GLUT32.dll, and I never personally installed it (never had a reason to).
|
|
|
Post by matthew on Dec 26, 2010 23:58:45 GMT -5
Ok, I've modified the script that builds the exe, it now copies GLUT32.dll & places it with the exe. You can download the new version here, I hope it works.
|
|
|
Post by chris857 on Dec 27, 2010 21:28:04 GMT -5
Works now.
|
|
|
Post by matthew on Dec 27, 2010 22:20:45 GMT -5
That's great news, you've probably also got the other dll installed somewhere on your computer too.
|
|
|
Post by DJLinux on Dec 28, 2010 15:06:48 GMT -5
3MB exe for one solid shaded rotating box + the size of the glut lib isn't small at all.
but it works here
|
|
|
Post by Supermonkey on Dec 28, 2010 16:27:34 GMT -5
I agree but I imagine the majority of that is python, that 3MB probably wouldn't increase much with the complexity of the program (until you start adding assets).
Anyway, works here too.
|
|
|
Post by PeterMaria on Dec 28, 2010 18:03:48 GMT -5
Your lucky day, no problem on my machine!
|
|
|
Post by chris857 on Dec 28, 2010 18:14:05 GMT -5
I searched my computer, and I have at least four copies of MSVCR90.dll (with two in the WINDOWS directory).
|
|
|
Post by matthew on Dec 28, 2010 18:56:13 GMT -5
PeterMaria Thanks for testing, glad it worked for you. @chris Apparently a lot of software written with Microsoft Visual C++ needs to install it. Yeah, 3MB is quite large but that was the first successful app that I've managed to create with Py2exe. I know for a fact that a lot of unnecessary & duplicate files got included, I reckon that I should be able to get it smaller.
|
|
|
Post by matthew on Dec 30, 2010 19:49:50 GMT -5
I modified a script that I found here on the py2exe site. It meant that I could compress all the files with 7zip & pack the dlls & exe with UPX. They now take up 2.3 MB & can be downloaded from here.
|
|