Skip to main content
GameDev.net gamedev.net
🔒 Locked

Compile simple project which uses FCollada

Started by saagrawa Feb 18, 2009 at 2:29 AM 3 replies 2.2k views
Original Post
saagrawa
saagrawa
Hi, I installed FCollada FREE 3.05B, and tried compiling it using VS2008. However, I was getting compilation errors and made changes as suggested by purga on this thread. After making these changes, I compiled "Release Unicode DLL" config of Fcollada project and FColladaU.lib and .dll were generated in the following location : "C:\Program Files\Feeling Software\FCollada\Output\Release Unicode DLL Win32\" Then I created a new visual studio project with just one file main.cpp which looks like this: #include #include "FCDocument/FCDocument.h" int main(int argc, char *argv[]) { return 0; } I get the same errors as reported on this thread. My project setting are as follows: Additional Incl Dir: "C:\Program Files\Feeling Software\FCollada" Preprocessor Definitions: WIN32;NDEBUG;FCOLLADA_DLL Additional Lib Dir: "C:\Program Files\Feeling Software\FCollada\Output\Release Unicode DLL Win32" Additional Dependencies: FColladaU.dll I even tried changing Additional Dependencies to FColladaU.lib but the same errors are thrown.
jffortin
jffortin
Quote:
Original post by saagrawa
My project setting are as follows:
Additional Incl Dir: "C:\Program Files\Feeling Software\FCollada"
Preprocessor Definitions: WIN32;NDEBUG;FCOLLADA_DLL
Additional Lib Dir: "C:\Program Files\Feeling Software\FCollada\Output\Release Unicode DLL Win32"
Additional Dependencies: FColladaU.dll


I don't have access to my code right now... but if I remember correctly FCOLLADA_DLL shouldn't be defined in your code... if I open my project file in notepad I see this as the defines (for debug non-unicode ...):

PreprocessorDefinitions="WIN32;_DEBUG;_CRT_SECURE_NO_WARNINGS;NO_LIBXML"


I think you would just need to add the "NO_LIBXML" and remove the FCOLLADA_DLL and it should work... I can always have a better look at it later when I get home.

JFF
saagrawa
saagrawa
Quote:


I think you would just need to add the "NO_LIBXML" and remove the FCOLLADA_DLL and it should work... I can always have a better look at it later when I get home.

JFF


Thanks for the suggestion. I tried it and unfortunately, I still get the same errors.
saagrawa
saagrawa
Found the problem! In main.cpp , I was including the wrong header file. Instead of "FCDocument/FCDocument.h", I should have included "FCollada.h".
Badgerr
Badgerr
You will find, with FCollada, that you have to include a header file for EVERY element of the API you want to use. It's both annoying and efficient at the same time, in that, you have to find out which header to include to use a certain class, but overall it doesn't bloat your final product with code you're not going to use.

Also get used to reading Doxygen docs and using your own guesswork - FCollada comes with no "tutorials" or other documentation apart from a sparsely populated forum, I had to figure most of the stuff out for myself.
________________________________Blog...

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.