[Bf-committers] Compiling NDOF plugin on VC2005ce

Ettore Pasquini ettore_pasquini at 3dconnexion.com
Wed Jul 11 22:07:22 CEST 2007


The cityfly demo is based off the old Windows SDK. The old SDK still works,
but we don't support it anymore officially.

I asked internally here at 3Dx and apparently it IS possible to remove the
ATL dependencies and still use our new SDK. It will just take more code on
the plugin side. Check out our latest sample code, I believe one of the
demos doesn't link to ATL. I won't go into more details because it is maybe
off topic but feel free to email me at ettore_pasquiniFFFF at
3dconnexionSSSS.com (remove the 8 caps characters).

Thing is, the objective of my plugins was to deliver something quick because
we'd like to demo blender at Siggraph. So I just used all the facilities I
had at my disposal to do this  (and everything that can help me to deal with
Windows is fine by me ;-)). Personally, I think Microsoft should make their
dev tools identical and free for everyone to solve these problems.

Ettore


On 7/11/07 6:17 AM, "sfogoros" <sfogoros at att.net> wrote:

> 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
>> 
> _______________________________________________
> 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