• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
TheGoozah

Setting up Collada DOM 2.4.0 in VS 2010

2 posts in this topic

Hi!

Ok, this is a strang question for me because I've never had problems setting up an API. Well a first time for everything I guess...
I want to write my own daeParser using the Collada DOM...

But I'm confused how to set it up.... I downloaded the collada-dom-2.4.0.tgz file and unrarred it (link: [url="http://sourceforge.net/projects/collada-dom/files/"]http://sourceforge.n...lada-dom/files/[/url]). I also downloaded the documentation and took a look at the wiki page...

The documentation only says to do the following thing:

[quote]
• To the “Additional include directories” field, add:
<COLLADA_DOM-path>\include
<COLLADA_DOM-path>\include\1.4

• Under the “General” tab in the “Additional library directories” field, add:
<COLLADA_DOM-path>\lib\1.4
<COLLADA_DOM-path>\external-libs\libxml2\win32\lib

• Under the “Input” tab in the “Additional dependencies” field, add:
libcollada_dae.lib
libcollada_dom.lib
libcollada_STLDatabase.lib
libcollada_LIBXMLPlugin.lib
libxml2_a.lib
iconv_a.lib
zlib.lib
[/quote]


But the \lib folder doesn't exist... Then I read the wiki and it says ([url="http://collada.org/mediawiki/index.php/DOM_guide:_Setting_up#Windows_.28Visual_Studio.29"]http://collada.org/m...isual_Studio.29[/url]):


[quote]
Building the DOM
Project and solution files for Visual Studio are in
<dom-path>\projects
[/quote]

When I try to build the project (vc10-1.4 or vc10-1.5) I get an error (for each file): Unknown compiler version - please run the configure tests and report the results

So basically, I don't know what to do now? How can I get the necessary lib files? Do I need to build them myself and how? Am I missing something? I really need a solution because I need to be able to parse .dae files so I can use them with DirectX and PhysX!

Thanks in advance!!
0

Share this post


Link to post
Share on other sites
Oke I've got rid of the "Unknown compiler version" by adding BOOST 1.50 to the project (still was using BOOST 1.47)
But I still can't build successful libs... I get some other warnings new. (ps: trying to build the dom project (vc10-1.4) in Visual Studio 2010 in Debug mode
In detail:
[SPOILER]
...
1> daeIOPluginCommon.cpp
1> daeLIBXMLPlugin.cpp
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\driverspecs.h(142): error C2008: '$' : unexpected in macro definition
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\driverspecs.h(294): error C2008: '$' : unexpected in macro definition
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\driverspecs.h(295): warning C4005: '__' : macro redefinition
1> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\driverspecs.h(142) : see previous definition of '__'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\driverspecs.h(308): error C2008: '$' : unexpected in macro definition
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\driverspecs.h(309): warning C4005: '__' : macro redefinition
1> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\driverspecs.h(295) : see previous definition of '__'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\driverspecs.h(312): error C2008: '$' : unexpected in macro definition
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\driverspecs.h(313): warning C4005: '__' : macro redefinition
1> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\driverspecs.h(309) : see previous definition of '__'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\driverspecs.h(316): error C2008: '$' : unexpected in macro definition
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\driverspecs.h(317): warning C4005: '__' : macro redefinition
1> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\driverspecs.h(313) : see previous definition of '__'
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\driverspecs.h(320): error C2008: '$' : unexpected in macro definition
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\driverspecs.h(321): warning C4005: '__' : macro redefinition
....

AND

....
1> domAny.cpp
1>c1xx : fatal error C1083: Cannot open source file: '..\..\src\dae\domAny.cpp': No such file or directory
1> stdErrPlugin.cpp
....
[/SPOILER]

Please, can someone tell me what these are? Only getting .obj files right now.... Thx in advance! Edited by TheGoozah
0

Share this post


Link to post
Share on other sites
Hi TheGoozah,

I got the Collada-Dom 2.4.0 compiled using both vs2008 & vs2010. Its not as straight as it sounds though.

*Static Lib Steps :
1. Get rid of domAny.h & domAny.cpp file from the project. ( Simply exclude )
2. In project properties, "Additional Include Directories", use "..\..\external-libs\minizip-1.1" instead of "..\..\external-libs\minizip\include" directory.
3. Project Properties>>C/C++>>Language, set "Disable Language Extension" to "NO" ( please google for the explanation )
4. Project Properties>>Librarian>>General>>Additional Library Directories" to ..\..\external-libs\libxml2\win32\lib , ..\..\external-libs\zlib-1.2.5 , ..\..\external-libs\minizip\win32\lib, is empty. it was empty in my case.
5. Last but most important, you should get compilation error saying missing or cannot find "unistd.h" file. Simpy head to "libxml2\include\zconf.h" & replace "unistd.h" by "io.h" ( Please refer to Google for explanation )

These steps got me the static lib for Collada Dom, strange to see that default download has these issues ( unless I did something terribly wrong )
Nevertheless, you should have debug & release versionof static lib available once you build the project. As per the DLL, you need to make sure that there exists minizip1.1 lib in project properties, by default its for minizip default version. Compiling the minizip1.1 will give you the required lib.

Hopefully this will solve your issue just like me.

Cheers.
2

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0