code-google-com / opencollada

Automatically exported from code.google.com/p/opencollada
0 stars 0 forks source link

cstdio has to be included in CommonFWriteBufferFlusher for gcc 4.4 #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. opencollada does not compile in linux
2.
3.

What is the expected output? What do you see instead?

g++ -o
common/libBuffer/obj/posix/x86_64/debug/src/CommonFWriteBufferFlusher.o -c
-O0 -g3 -ggdb3 -fno-inline -Icommon/libBuffer/include
-Icommon/libftoa/include common/libBuffer/src/CommonFWriteBufferFlusher.cpp
gcc -o Externals/UTF/obj/posix/x86_64/debug/src/ConvertUTF.o -c -O0 -g3
-ggdb3 -fno-inline -IExternals/UTF/include Externals/UTF/src/ConvertUTF.c
common/libBuffer/src/CommonFWriteBufferFlusher.cpp: In constructor
'Common::FWriteBufferFlusher::FWriteBufferFlusher(const char*, size_t,
const char*)':
common/libBuffer/src/CommonFWriteBufferFlusher.cpp:24: error: 'fopen' was
not declared in this scope
common/libBuffer/src/CommonFWriteBufferFlusher.cpp:30: error: '_IOFBF' was
not declared in this scope
common/libBuffer/src/CommonFWriteBufferFlusher.cpp:30: error: 'setvbuf' was
not declared in this scope
common/libBuffer/src/CommonFWriteBufferFlusher.cpp: In destructor 'virtual
Common::FWriteBufferFlusher::~FWriteBufferFlusher()':
common/libBuffer/src/CommonFWriteBufferFlusher.cpp:56: error: 'fclose' was
not declared in this scope
common/libBuffer/src/CommonFWriteBufferFlusher.cpp: In member function
'virtual bool Common::FWriteBufferFlusher::receiveData(const char*, size_t)':
common/libBuffer/src/CommonFWriteBufferFlusher.cpp:69: error: 'fwrite' was
not declared in this scope
common/libBuffer/src/CommonFWriteBufferFlusher.cpp: In member function
'virtual bool Common::FWriteBufferFlusher::flush()':
common/libBuffer/src/CommonFWriteBufferFlusher.cpp:79: error: 'fflush' was
not declared in this scope
scons: ***
[common/libBuffer/obj/posix/x86_64/debug/src/CommonFWriteBufferFlusher.o]
Error 1
scons: building terminated because of errors.

What version of the product are you using? On what operating system?
bmonkey@bBook:~/Apps/Graphics/opencollada$ uname -a
Linux bBook 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 17:01:44 UTC 2009
x86_64 GNU/Linux
bmonkey@bBook:~/Apps/Graphics/opencollada$ svn info
Path: .
URL: http://opencollada.googlecode.com/svn/trunk
Repository Root: http://opencollada.googlecode.com/svn
Repository UUID: ec7ac696-a6cd-11de-b195-ab392a2a73f5
Revision: 715
Node Kind: directory
Schedule: normal
Last Changed Author: robert@opencollada.org
Last Changed Rev: 711
Last Changed Date: 2009-12-15 10:03:46 +0100 (Tue, 15 Dec 2009)

Please provide any additional information below.

#include <cstdio>

Original issue reported on code.google.com by lub...@gmail.com on 22 Dec 2009 at 5:05

GoogleCodeExporter commented 9 years ago
Thanks for reporting this issue. We will fix this, as soon as we have updated to
Ubuntu 9.10. On 9.04 if still builds fine.

Original comment by opencollada2@googlemail.com on 11 Jan 2010 at 3:13

GoogleCodeExporter commented 9 years ago
Latest Ubuntu is 10.04 and this still is not fixed.
Maybe you could apply this patch to fix this issue. Thx.

Original comment by lub...@gmail.com on 5 Aug 2010 at 2:24

Attachments:

GoogleCodeExporter commented 9 years ago
This patch will "restore" Linux and Mac compatibility of latest opencollada svn 
revision for Blender.

from source/blender/collada/DocumentExporter.cpp:

#ifdef WIN32    // currently, Windows builds are using revision 746 of OpenCollada 
while Linux and Mac are using an older revision 721
                ep.addExtraTechniqueColorOrTexture(COLLADASW::ColorOrTexture(texture));
#else
                ep.setExtraTechniqueColorOrTexture(COLLADASW::ColorOrTexture(texture));
#endif

Original comment by lub...@gmail.com on 5 Aug 2010 at 2:42

GoogleCodeExporter commented 9 years ago
I am using Blender Revision: 31065 with OpenCollada Revision: 762. Both current.

Original comment by lub...@gmail.com on 5 Aug 2010 at 2:51

GoogleCodeExporter commented 9 years ago
Thanks for providing the patch. It has been applied in rev 763.

Original comment by opencollada2@googlemail.com on 17 Aug 2010 at 1:46