[Bf-committers] Compiling NDOF plugin on VC2005ce

sfogoros sfogoros at att.net
Wed Jul 11 15:17:46 CEST 2007


Hi Ettore,

Thanks so much for your support and work on Blender. I notice you 
represent 3dConnexion. I appreciate the opportunity to work with you on 
this project.

I based my question regarding atl and COM on the cityfly demo in 
3DxWare-SDK_v2-0-4_win32.zip version of the SDK. I didn't research it 
and I'm not very familiar with atl and COM programming. I mentioned COM 
in my post because I didn't notice COM being used in cityfly. COM 
shouldn't be a problem in vc2005ce. atl on vc2005ce is missing 
atltypes.h I got the following errors during build:

d:\program files\microsoft platform sdk for windows server 2003 
r2\include\atl\atlcom.h(3242) : error C2065: '_Module' : undeclared 
identifier
d:\program files\microsoft platform sdk for windows server 2003 
r2\include\atl\atlcom.h(3242) : error C2228: left of '.Lock' must have 
class/struct/union
         type is ''unknown-type''
d:\program files\microsoft platform sdk for windows server 2003 
r2\include\atl\atlcom.h(3244) : error C2228: left of '.Unlock' must have 
class/struct/union
         type is ''unknown-type''
d:\program files\microsoft platform sdk for windows server 2003 
r2\include\atl\atlcom.h(3366) : error C2228: left of '.CreateInstance' 
must have class/struct/union
         type is ''unknown-type''
d:\program files\microsoft platform sdk for windows server 2003 
r2\include\atl\atlcom.h(3373) : error C2228: left of '.Lock' must have 
class/struct/union
         type is ''unknown-type''
d:\program files\microsoft platform sdk for windows server 2003 
r2\include\atl\atlcom.h(3375) : error C2228: left of '.Unlock' must have 
class/struct/union
         type is ''unknown-type''
d:\program files\microsoft platform sdk for windows server 2003 
r2\include\atl\atlcom.h(3641) : error C2228: left of 
'.m_csTypeInfoHolder' must have class/struct/union
         type is ''unknown-type''
d:\program files\microsoft platform sdk for windows server 2003 
r2\include\atl\atlcom.h(3658) : error C2228: left of '.AddTermFunc' must 
have class/struct/union
         type is ''unknown-type''
d:\program files\microsoft platform sdk for windows server 2003 
r2\include\atl\atlcom.h(3667) : error C2228: left of 
'.m_csTypeInfoHolder' must have class/struct/union
         type is ''unknown-type''
d:\program files\microsoft platform sdk for windows server 2003 
r2\include\atl\atlwin.h(155) : error C2228: left of '.GetModuleInstance' 
must have class/struct/union
         type is ''unknown-type''
d:\program files\microsoft platform sdk for windows server 2003 
r2\include\atl\atlwin.h(168) : error C2228: left of '.GetModuleInstance' 
must have class/struct/union
         type is ''unknown-type''
d:\program files\microsoft platform sdk for windows server 2003 
r2\include\atl\atlwin.h(1753) : error C2065: 'i' : undeclared identifier
d:\sfogoros\projectsvc\3dcnxplug\3dcnxplug-win\windows\3dcnxplug-stdafx.h(51) 
: fatal error C1083: Cannot open include file: 'atltypes.h': No such 
file or directory

I searched the Internet and found that vc2005ce does not install with 
atltypes.h. Other programmers have had to write their own in order to 
use atl on vc2005ce. I hesitate to do that on Blender if another 
solution is possible.

Can the plugin work without atl?

Thanks again, SteveF


Ettore Pasquini wrote:
> Hi Steve,
> 
> sorry that I missed your email.
> I compiled the plugin on VS2005 professional ed, I haven't had the chance to
> use the community edition. I'm not much of a Windows person, honestly, but
> when I developed the plugin I had to use COM and dynamically link to ATL.
> You need COM because our SDK is based on a COM interface, and that's what we
> support. The current sample code reflects this AFAIK. I'm kinda thinking
> you're using maybe old sample code?
> 
> Ettore
> 
> 
> On 7/6/07 9:58 PM, "sfogoros" <sfogoros at att.net> wrote:
> 
>> Ettore,
>>
>> I tried to compile the windows plugin on vc2005 community edition (the
>> free one). It errors on missing an atl include file. This is a known
>> issue with vc2005ce. It doesn't have the include file. I was looking at
>> the 3dConnexion samples and they don't use COM or require atl. Would you
>> help convert the plugin to the more simple implementation?
>>
>> Steve
>>
>> Ettore Pasquini wrote:
>>> I am working on NDOF branch on Linux and I noticed that the destructor for
>>> the GHOST_ISystem hierarchy is never called when I quit blender. Seems like
>>> a pretty big bug which makes me thinking that I am probably missing
>>> something major... Anyone able to shed some light?
>>>
>>> I actually noticed the same behavior on the Mac as well.
>>>
>>> Thanks in advance.
>>>
>>> Ettore
>>>
>>> _______________________________________________
>>> Bf-committers mailing list
>>> Bf-committers at blender.org
>>> http://lists.blender.org/mailman/listinfo/bf-committers
>>>
>> _______________________________________________
>> Bf-committers mailing list
>> Bf-committers at blender.org
>> http://lists.blender.org/mailman/listinfo/bf-committers
> 
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
> 


More information about the Bf-committers mailing list