Thread: [Plib-devel] MSVC
Brought to you by:
sjbaker
From: <Va...@t-...> - 2000-07-22 16:07:49
|
Hi, I wanted to compile PLIB with MSVC (using my own workspace) and got some problems. - in os/DynLib.cpp MSVC couldn't find a "Pch.h" or a "Os.h". So I uncommented them. - after changing "__WIN32__" to "_WIN32" I could finally compile DynLib.cpp - pu.h made some problems as I had to define GLUT_IS_PRESENT. Couldn't we make it the default by changing the top of pu.h from: #ifndef PU_NOT_USING_GLUT # ifdef FREEGLUT_IS_PRESENT # include <GL/freeglut.h> # else # ifdef GLUT_IS_PRESENT # include <GL/glut.h> # else /* No GLUT?!? */ # endif # endif #endif to: #ifndef PU_NOT_USING_GLUT # ifdef FREEGLUT_IS_PRESENT # include <GL/freeglut.h> # else # include <GL/glut.h> # endif #endif - sl/slhack.cxx has a few functions that don't return a value although they have to. This happens in the lines 690, 704, 765 and 789. This also breakes MSVC. CU, Christian |
From: Wolfram K. <w_...@rz...> - 2000-09-09 11:44:28
|
I fixed a very small MSVC-compile-problem in ssgAux: If you have a default value for a parameter in the declaration and the definition, then MSVC says, this is an erroneous redefinition. I simply removed the default parameter in the definition and checked that it compiles under both Windo$ and Linux. BTW, fgfs had this problem also. I also added a MSVC-project file for ssgAux and compiled and tested PPE, which uses ssgAux. Steve, I didnt have time to look at the code :-( and dont know whether this is a PPE or PLIB question: Do you know from the top of your head whether you calculate the normals of a squished sphere like it is a perfect sphere or like the ellipsoid it is? If you do a very very squished "sphere", actually almost just a disc, the lighting looks a bit strange. Thank you for ssgAux, these are not only new features but can be used to learn how to do primitives with TriStrips/TriFans. Bye bye, Wolfram Kuss. |
From: Steve B. <sjb...@ai...> - 2000-09-09 15:54:50
|
Wolfram Kuss wrote: > > I fixed a very small MSVC-compile-problem in ssgAux: > > If you have a default value for a parameter in the declaration and the > definition, then MSVC says, this is an erroneous redefinition. > I simply removed the default parameter in the definition and checked > that it compiles under both Windo$ and Linux. BTW, fgfs had this > problem also. Yes - I tend to do that accidentally when I change my mind an turn an inline function into an non-inlined one. I copy the function definition and forget to remove the default parameter assignments. > Steve, I didnt have time to look at the code :-( and dont know whether > this is a PPE or PLIB question: > Do you know from the top of your head whether you calculate the > normals of a squished sphere like it is a perfect sphere or like the > ellipsoid it is? If you do a very very squished "sphere", actually > almost just a disc, the lighting looks a bit strange. Yep - you are exactly right - I assume it's a perfect sphere - and that's undoubtedly wrong. I'll fix that this evening (or so). -- Steve Baker HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://web2.airmail.net/sjbaker1 Projects : http://plib.sourceforge.net http://tuxaqfh.sourceforge.net http://tuxkart.sourceforge.net http://prettypoly.sourceforge.net |
From: Wolfram K. <w_...@rz...> - 2000-07-22 17:54:50
|
I just compiled all the projects from the workspace that is supplied with plib. I had no problems with pui or sl. The sl-project does NOT contain slHack.cxx. However, no os-project is included. Bye bye, Wolfram Kuss. |
From: Steve B. <sjb...@ai...> - 2000-07-29 20:19:13
|
Wolfram Kuss wrote: > > I just compiled all the projects from the workspace that is supplied > with plib. I had no problems with pui or sl. The sl-project does NOT > contain slHack.cxx. However, no os-project is included. So what do you guys want me to do (if anything) ? -- Steve Baker HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://web2.airmail.net/sjbaker1 Projects : http://plib.sourceforge.net http://tuxaqfh.sourceforge.net http://tuxkart.sourceforge.net http://prettypoly.sourceforge.net |
From: Wolfram K. <w_...@rz...> - 2000-07-29 21:09:31
|
Steve wrote: >Wolfram Kuss wrote: >> >> I just compiled all the projects from the workspace that is supplied >> with plib. I had no problems with pui or sl. The sl-project does NOT >> contain slHack.cxx. However, no os-project is included. > >So what do you guys want me to do (if anything) ? slHack.cxx exists, but isnt in the makefile. Is it used at all? There is a directoy os and one util? plib.sourceforge.net seems to say os is ul which we know is the directoy util. BTW, the link is broken. As I said, everythink compiled fine for me. So, the only problem MIGHT be that things (that are not needed for PPE) are missing. BTW, are you still on Siggraoh? Bye bye, Wolfram. |
From: Steve B. <sjb...@ai...> - 2000-07-29 23:29:05
|
Wolfram Kuss wrote: > > Steve wrote: > > >Wolfram Kuss wrote: > >> > >> I just compiled all the projects from the workspace that is supplied > >> with plib. I had no problems with pui or sl. The sl-project does NOT > >> contain slHack.cxx. However, no os-project is included. > > > >So what do you guys want me to do (if anything) ? > > slHack.cxx exists, but isnt in the makefile. Is it used at all? No - it shouldn't be in the distro or CVS - I put it in by accident. I've just removed it from CVS. > There is a directoy os and one util? plib.sourceforge.net > seems to say os is ul which we know is the directoy util. > BTW, the link is broken. > > As I said, everythink compiled fine for me. So, the only problem MIGHT > be that things (that are not needed for PPE) are missing. > > BTW, are you still on Siggraoh? No - I got back late last night (plane delayed 3 HOURS!) - I've just finished ploughing through all those emails. SigGraph is VERY exhausting - but AMAZINGLY good. If you have any interest in graphics at all, you should get your company to send you to SigGraph. It's impossible to go away without a million good ideas buzzing around in your head. I need to write a post explaining what I've been doing to PPE (LOTS!) but I'll start a new thread for that. -- Steve Baker HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://web2.airmail.net/sjbaker1 Projects : http://plib.sourceforge.net http://tuxaqfh.sourceforge.net http://tuxkart.sourceforge.net http://prettypoly.sourceforge.net |