|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Hello:
I downloaded povray source code for windows and am trying to build it on windows
xp using visual studio 2005. I installed boost 1.37 using boostpro's installer.
I am getting the following errors while building the unmodified source code:
3>------ Build started: Project: vfewin, Configuration: Debug Win32 ------
3>Compiling...
2>octree.cpp
3>vfe.cpp
3>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h(56)
: warning C4005: 'MAX_PATH' : macro redefinition
3> c:\work\povwin-src-3.7\vfe\win\syspovconfig.h(281) : see previous
definition of 'MAX_PATH'
2>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h(56)
: warning C4005: 'MAX_PATH' : macro redefinition
2> c:\work\povwin-src-3.7\vfe\win\syspovconfig.h(281) : see previous
definition of 'MAX_PATH'
2>c:\work\povwin-src-3.7\source\backend/support/octree.h(178) : error C2872:
'IStream' : ambiguous symbol
2> could be 'C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\objidl.h(4444) : IStream'
2> or 'c:\work\povwin-src-3.7\source\base/fileinputoutput.h(189) :
pov_base::IStream'
2>..\..\source\backend\support\octree.cpp(1355) : error C2872: 'IStream' :
ambiguous symbol
2> could be 'C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\objidl.h(4444) : IStream'
2> or 'c:\work\povwin-src-3.7\source\base/fileinputoutput.h(189) :
pov_base::IStream'
2>..\..\source\backend\support\octree.cpp(1377) : error C2039: 'getline' : is
not a member of 'IStream'
2> C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\objidl.h(4444) : see declaration of 'IStream'
2>..\..\source\backend\support\octree.cpp(1377) : error C2228: left of '.eof'
must have class/struct/union
2>..\..\source\backend\support\octree.cpp(1377) : fatal error C1903: unable to
recover from previous error(s); stopping compilation
2>blob.cpp
3>..\vfe.cpp(288) : error C2872: 'IStream' : ambiguous symbol
3> could be 'C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\objidl.h(4444) : IStream'
3> or 'c:\work\povwin-src-3.7\source\base/fileinputoutput.h(189) :
pov_base::IStream'
3>..\vfe.cpp(289) : error C2556: 'IStream
*vfe::vfePlatformBase::CreateIStream(const unsigned int)' : overloaded function
differs only by return type from 'pov_base::IStream
*vfe::vfePlatformBase::CreateIStream(const unsigned int)'
3> c:\work\povwin-src-3.7\vfe\vfe.h(176) : see declaration of
'vfe::vfePlatformBase::CreateIStream'
3>..\vfe.cpp(289) : error C2371: 'vfe::vfePlatformBase::CreateIStream' :
redefinition; different basic types
3> c:\work\povwin-src-3.7\vfe\vfe.h(176) : see declaration of
'vfe::vfePlatformBase::CreateIStream'
3>..\vfe.cpp(290) : error C2872: 'IStream' : ambiguous symbol
3> could be 'C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\objidl.h(4444) : IStream'
3> or 'c:\work\povwin-src-3.7\source\base/fileinputoutput.h(189) :
pov_base::IStream'
3>..\vfe.cpp(290) : error C2259: 'IStream' : cannot instantiate abstract class
3> due to following members:
3> 'HRESULT IUnknown::QueryInterface(const IID &,void **)' : is abstract
3> C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\unknwn.h(113) : see declaration of
'IUnknown::QueryInterface'
3> 'ULONG IUnknown::AddRef(void)' : is abstract
3> C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\unknwn.h(117) : see declaration of 'IUnknown::AddRef'
3> 'ULONG IUnknown::Release(void)' : is abstract
3> C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\unknwn.h(119) : see declaration of 'IUnknown::Release'
3> 'HRESULT ISequentialStream::Read(void *,ULONG,ULONG *)' : is abstract
3> C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\objidl.h(4265) : see declaration of
'ISequentialStream::Read'
There are a whole bunch of other error messages which are similar to these below
this one so I did not paste them. Has anyone seem this message? How can I fix
this?
The pov version comment is the following:
* $File: //depot/povray/smp/source/backend/shape/blob.cpp $
* $Revision: #34 $
* $Change: 4715 $
* $DateTime: 2009/02/21 10:00:39 $
* $Author: chrisc $
This is from blob.cpp.
Please let me know if you need further information. I followed the installation
instructions by installing boost, adding boost include folder in VS 2005
default include directories (at the end of the other include paths) and hit the
build button. Is this because of some ordering issue of include paths?
I would highly appreciate if someone replies. This is my first post here, so
please ignore my newbie-ness.
Regards,
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"madiyaan damha" <nomail@nomail> wrote:
> I am getting the following errors while building the unmodified source code:
>
> 3>------ Build started: Project: vfewin, Configuration: Debug Win32 ------
> 3>Compiling...
> 2>octree.cpp
> 3>vfe.cpp
> 3>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h(56)
> : warning C4005: 'MAX_PATH' : macro redefinition
....
> 3>..\vfe.cpp(288) : error C2872: 'IStream' : ambiguous symbol
> 3> could be 'C:\Program Files\Microsoft Visual Studio
> 8\VC\PlatformSDK\include\objidl.h(4444) : IStream'
> 3> or 'c:\work\povwin-src-3.7\source\base/fileinputoutput.h(189) :
> pov_base::IStream'
....
You seem to be doing something strange. I just tried this with the beta.31
source code freshly downloaded, with the following results:
- no MAX_PATH warning for vfe.cpp (nor any other file)
- no IStream error for vfe.cpp (nor any other file)
In addition, I get vfewin as 2nd, not 3rd, project to be built (building the
povwin project).
Project builds & runs fine.
Some questions that may help find the reason for your trouble:
- Did you ever knowingly install a Platform SDK?
- Exactly what version of Visual Studio are you using?
- What are your environment settings?
- What project do you try to compile?
> I would highly appreciate if someone replies. This is my first post here, so
> please ignore my newbie-ness.
Don't panic - despite all rumors we're *not* eating newbies for breakfast ;)
Post a reply to this message
|
|
| |
| |
|
|
From: Thorsten Froehlich
Subject: Re: Compile errors with VS 2005 on Windows XP
Date: 1 Mar 2009 18:57:04
Message: <49ab20d0@news.povray.org>
|
|
|
| |
| |
|
|
clipka wrote:
> - Exactly what version of Visual Studio are you using?
Not to mention, did you install the Service Pack 1 for VS2005?
Thorsten
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Thorsten Froehlich <tho### [at] trfde> wrote:
> clipka wrote:
> > - Exactly what version of Visual Studio are you using?
>
> Not to mention, did you install the Service Pack 1 for VS2005?
>
> Thorsten
Thank you for the quick replies.
I did not install the platform SDK by myself. Some other application might have
installed it.
I am using Visual Studio 2005 (no service pack installed). Should I install SP1
for Visual Studio and then give it a try? This is the regular edition of VS
2005 (not the express one). Here is the version info:
Microsoft Visual Studio 2005
Version 8.0.50727.42 (RTM.050727-4200)
Microsoft .NET Framework
Version 2.0.50727
Installed Edition: Professional
Microsoft Visual Basic 2005 77626-009-0000007-41098
Microsoft Visual Basic 2005
Microsoft Visual C# 2005 77626-009-0000007-41098
Microsoft Visual C# 2005
Microsoft Visual C++ 2005 77626-009-0000007-41098
Microsoft Visual C++ 2005
Microsoft Visual J# 2005 77626-009-0000007-41098
Microsoft Visual J# 2005
Microsoft Visual Web Developer 2005 77626-009-0000007-41098
Microsoft Visual Web Developer 2005
Crystal Reports AAC60-G0CSA4B-V7000AY
Crystal Reports for Visual Studio 2005
I am trying to compile the entire solution (povray) and 3 projects are failing,
including povwin.
In my environment, I have added boost's include path directly into VS 2005
include directories and BOOST_ROOT is also set to the same path.
Please let me know if you need more/specific information. I am sure I overlooked
something minor because this is my first time building it.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"madiyaan damha" <nomail@nomail> wrote:
> I did not install the platform SDK by myself. Some other application might
> have installed it.
Visual Studio did I guess; just wanted to make sure you didn't overwrite the
thing that came with VS with a different SDK version.
> I am using Visual Studio 2005 (no service pack installed). Should I install
> SP1 for Visual Studio and then give it a try?
Probably, yes.
> Microsoft Visual Studio 2005
> Version 8.0.50727.42 (RTM.050727-4200)
Same here.
> Microsoft .NET Framework
> Version 2.0.50727
"2.0.50727 SP1" here.
> Installed Edition: Professional
"Standard" here.
> Microsoft Visual C++ 2005 77626-009-0000007-41098
> Microsoft Visual C++ 2005
"77633-235-7976321-41179" here.
> In my environment, I have added boost's include path directly into VS 2005
> include directories and BOOST_ROOT is also set to the same path.
Can you run "set" in a command window and post the output so we can have a look
whether there are any peculiarities about your environment variables?
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"clipka" <nomail@nomail> wrote:
> "madiyaan damha" <nomail@nomail> wrote:
> > I did not install the platform SDK by myself. Some other application might
> > have installed it.
>
> Visual Studio did I guess; just wanted to make sure you didn't overwrite the
> thing that came with VS with a different SDK version.
>
> > I am using Visual Studio 2005 (no service pack installed). Should I install
> > SP1 for Visual Studio and then give it a try?
>
> Probably, yes.
>
> > Microsoft Visual Studio 2005
> > Version 8.0.50727.42 (RTM.050727-4200)
>
> Same here.
>
> > Microsoft .NET Framework
> > Version 2.0.50727
>
> "2.0.50727 SP1" here.
>
> > Installed Edition: Professional
>
> "Standard" here.
>
> > Microsoft Visual C++ 2005 77626-009-0000007-41098
> > Microsoft Visual C++ 2005
>
> "77633-235-7976321-41179" here.
>
> > In my environment, I have added boost's include path directly into VS 2005
> > include directories and BOOST_ROOT is also set to the same path.
>
> Can you run "set" in a command window and post the output so we can have a look
> whether there are any peculiarities about your environment variables?
Thank you again for your quick reply.
Here is the output of set when I type it in VS 2005 command prompt (not the
regular command prompt).
I highly appreciate you looking into this matter.
Regards,
C:\Program Files\Microsoft Visual Studio 8\vc\bin>set
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\Administrator\Application Data
BOOST_ROOT=C:\Program Files\boost\boost_1_37
CLIENTNAME=Console
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=EVEREST
ComSpec=C:\WINDOWS\system32\cmd.exe
DevEnvDir=C:\Program Files\Microsoft Visual Studio 8\Common7\IDE
FP_NO_HOST_CHECK=NO
FrameworkDir=C:\WINDOWS\Microsoft.NET\Framework
FrameworkSDKDir=C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0
FrameworkVersion=v2.0.50727
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\Administrator
INCLUDE=C:\Program Files\Microsoft Visual Studio 8\VC\ATLMFC\INCLUDE;C:\Program
Files\Microsoft Visual Studio 8\VC\INCLUDE;C:\Program Files\Microsoft Visual Stu
dio 8\VC\PlatformSDK\include;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0
\include;
LIB=C:\Program Files\Microsoft Visual Studio 8\VC\ATLMFC\LIB;C:\Program Files\Mi
crosoft Visual Studio 8\VC\LIB;C:\Program Files\Microsoft Visual Studio 8\VC\Pla
tformSDK\lib;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\lib;
LIBPATH=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft
Visual Studio 8\VC\ATLMFC\LIB
LOGONSERVER=\\EVEREST
NUMBER_OF_PROCESSORS=2
OS=Windows_NT
Path=C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;C:\Program Files\Mic
rosoft Visual Studio 8\VC\BIN;C:\Program Files\Microsoft Visual Studio 8\Common7
\Tools;C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\bin;C:\Program F
iles\Microsoft Visual Studio 8\VC\PlatformSDK\bin;C:\Program Files\Microsoft Vis
ual Studio 8\SDK\v2.0\bin;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Progr
am Files\Microsoft Visual Studio 8\VC\VCPackages;C:\WINDOWS\system32;C:\WINDOWS;
C:\WINDOWS\System32\Wbem;c:\Program Files\Microsoft SQL Server\90\Tools\binn\
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 Stepping 6, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=1706
ProgramFiles=C:\Program Files
PROMPT=$P$G
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
TMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
USERDOMAIN=EVEREST
USERNAME=Administrator
USERPROFILE=C:\Documents and Settings\Administrator
VCINSTALLDIR=C:\Program Files\Microsoft Visual Studio 8\VC
VS80COMNTOOLS=C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\
VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio 8
WecVersionForRosebud.26C=2
windir=C:\WINDOWS
_ACP_ATLPROV=C:\Program Files\Microsoft Visual Studio 8\VC\Bin\ATLProv.dll
_ACP_INCLUDE=C:\Program Files\Microsoft Visual Studio 8\VC\include;C:\Program Fi
les\Microsoft Visual Studio 8\VC\atlmfc\include;C:\Program Files\Microsoft Visua
l Studio 8\VC\PlatformSDK\include;C:\Program Files\Microsoft Visual Studio 8\SDK
\v2.0\include;C:\Program Files\boost\boost_1_37
_ACP_LIB=C:\Program Files\Microsoft Visual Studio 8\VC\lib;C:\Program Files\Micr
osoft Visual Studio 8\VC\atlmfc\lib;C:\Program Files\Microsoft Visual Studio 8\V
C\atlmfc\lib\i386;C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib;
C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\lib;C:\Program Files\Microso
ft Visual Studio 8\;C:\Program Files\Microsoft Visual Studio 8\lib
_ACP_PATH=C:\Program Files\Microsoft Visual Studio 8\VC\bin;C:\Program Files\Mic
rosoft Visual Studio 8\VC\PlatformSDK\bin;C:\Program Files\Microsoft Visual Stud
io 8\Common7\Tools\bin;C:\Program Files\Microsoft Visual Studio 8\Common7\tools;
C:\Program Files\Microsoft Visual Studio 8\Common7\ide;C:\Program Files\HTML Hel
p Workshop;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin;C:\WINDOWS\Mi
crosoft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft Visual Studio 8\;C:\
Program Files\Microsoft Visual Studio 8\\SDK\v2.0\bin;C:\WINDOWS\SysWow64;;C:\WI
NDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Program Files\Microsoft SQ
L Server\90\Tools\binn\
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"clipka" <nomail@nomail> wrote:
> "madiyaan damha" <nomail@nomail> wrote:
> > I did not install the platform SDK by myself. Some other application might
> > have installed it.
>
> Visual Studio did I guess; just wanted to make sure you didn't overwrite the
> thing that came with VS with a different SDK version.
>
> > I am using Visual Studio 2005 (no service pack installed). Should I install
> > SP1 for Visual Studio and then give it a try?
>
> Probably, yes.
>
> > Microsoft Visual Studio 2005
> > Version 8.0.50727.42 (RTM.050727-4200)
>
> Same here.
>
> > Microsoft .NET Framework
> > Version 2.0.50727
>
> "2.0.50727 SP1" here.
>
> > Installed Edition: Professional
>
> "Standard" here.
>
> > Microsoft Visual C++ 2005 77626-009-0000007-41098
> > Microsoft Visual C++ 2005
>
> "77633-235-7976321-41179" here.
>
> > In my environment, I have added boost's include path directly into VS 2005
> > include directories and BOOST_ROOT is also set to the same path.
>
> Can you run "set" in a command window and post the output so we can have a look
> whether there are any peculiarities about your environment variables?
Sorry about the double post. Just want to let you know that I am currently
downloading VS 2005 SP1 and will install it after it gets done. I will post
here again after trying to compile with VS 2005 SP1.
Regards,
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"madiyaan damha" <nomail@nomail> wrote:
> "clipka" <nomail@nomail> wrote:
> > "madiyaan damha" <nomail@nomail> wrote:
> > > I did not install the platform SDK by myself. Some other application might
> > > have installed it.
> >
> > Visual Studio did I guess; just wanted to make sure you didn't overwrite the
> > thing that came with VS with a different SDK version.
> >
> > > I am using Visual Studio 2005 (no service pack installed). Should I install
> > > SP1 for Visual Studio and then give it a try?
> >
> > Probably, yes.
> >
> > > Microsoft Visual Studio 2005
> > > Version 8.0.50727.42 (RTM.050727-4200)
> >
> > Same here.
> >
> > > Microsoft .NET Framework
> > > Version 2.0.50727
> >
> > "2.0.50727 SP1" here.
> >
> > > Installed Edition: Professional
> >
> > "Standard" here.
> >
> > > Microsoft Visual C++ 2005 77626-009-0000007-41098
> > > Microsoft Visual C++ 2005
> >
> > "77633-235-7976321-41179" here.
> >
> > > In my environment, I have added boost's include path directly into VS 2005
> > > include directories and BOOST_ROOT is also set to the same path.
> >
> > Can you run "set" in a command window and post the output so we can have a look
> > whether there are any peculiarities about your environment variables?
>
> Sorry about the double post. Just want to let you know that I am currently
> downloading VS 2005 SP1 and will install it after it gets done. I will post
> here again after trying to compile with VS 2005 SP1.
>
> Regards,
I am seeing the same errors with VS 2005 SP1. Is there something obviously
missing or wrong with my environment?
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"madiyaan damha" <nomail@nomail> wrote:
> I am seeing the same errors with VS 2005 SP1. Is there something obviously
> missing or wrong with my environment?
Nothing that I could identify so far. I'll have another look at it tomorrow,
when my eyes are awake again ;)
Post a reply to this message
|
|
| |
| |
|
|
From: Chris Cason
Subject: Re: Compile errors with VS 2005 on Windows XP
Date: 10 Mar 2009 08:26:37
Message: <49b65c7d@news.povray.org>
|
|
|
| |
| |
|
|
madiyaan damha wrote:
> I downloaded povray source code for windows and am trying to build it on windows
> xp using visual studio 2005. I installed boost 1.37 using boostpro's installer.
>
> I am getting the following errors while building the unmodified source code:
Don't know if this is any help being you posted a week ago, but the
messages you show are typical of what happens when the windows headers are
pulled into the main POV source in the wrong place. Some of the boost
headers have an annoying habit of including windows.h (unavoidable I
suppose but meh). That said you should not get different results than us,
so I can't say whether or not it's boost at fault.
What I do in circumstances like this is turn on the 'show include files'
option in the Visual Studio options for the povcore project, compile one of
the files that generates the errors, then look for where the windows.h is
coming from.
Please let me know if you resolve this.
-- Chris
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |