Closed GoogleCodeExporter closed 9 years ago
As I just have read _wfopen is not supported in linux. So the quick and dirty
solution could be to exclude this method if compiling in unix like systems.
#ifndef __unix__
FWriteBufferFlusher::FWriteBufferFlusher( const wchar_t* fileName, size_t bufferSize, const wchar_t* mode/*=L"wb"*/ )
{
....
..
..
}
#endif
Original comment by Alexey.Z...@gmail.com
on 8 Sep 2011 at 9:20
_fseeki64
_ftelli64
could be replaced by fseek and ftell.
#ifdef __unix__
#define _FILE_OFFSET_BITS 64
#define _ftelli64 ftell
#define _fseeki64 fseek
typedef long off_t;
#endif
Original comment by Alexey.Z...@gmail.com
on 8 Sep 2011 at 9:22
after all these fixes the library finally has compiled. The question is how to
check if it still works correct?
My code seems to work fine so far...
Original comment by Alexey.Z...@gmail.com
on 8 Sep 2011 at 9:24
Looks like a good set of changes. I suggest you create a patch out of those and
attach it to the issue. The CMake patch is necessary for all platforms.
Original comment by nathan.letwory
on 9 Sep 2011 at 6:34
ok. I will in a couple of days.
Original comment by Alexey.Z...@gmail.com
on 9 Sep 2011 at 6:37
Here is my patch to fix CMake project. I checked it in Ubuntu 32,64, Mac 64 and
Win 32.
Original comment by Alexey.Z...@gmail.com
on 15 Sep 2011 at 9:06
Attachments:
Hi Alexey,
Just tried your patch here (debian64), it still gives me this error when
compiling:
/home/yorik/Sources/collada/common/libBuffer/src/CommonCharacterBuffer.cpp:18:24
: fatal error: ConvertUTF.h: No such file or directory
Although both the Externals/UTF CMakeFile.txt and the main CMakeFile.txt
contain the modifications listed in your first post... Not sure of the way to
solve this... Any idea?
Thanks
Yorik
Original comment by yorik.va...@gmail.com
on 16 Sep 2011 at 4:43
probably I forgot something, let me check
Original comment by Alexey.Z...@gmail.com
on 16 Sep 2011 at 5:26
Dear Yorik,
Could you try this one?
Everything should be fine this time.
Alexey
Original comment by Alexey.Z...@gmail.com
on 16 Sep 2011 at 6:41
Attachments:
V2 worked 100% perfect! Thanks a lot!
Original comment by yorik.va...@gmail.com
on 16 Sep 2011 at 8:14
You are welcome! I hope it will be added to the new revision.
Original comment by Alexey.Z...@gmail.com
on 16 Sep 2011 at 8:44
testing now
Original comment by opencollada
on 19 Sep 2011 at 7:00
How is testing going on? Are their any problems with the patch?
Original comment by Alexey.Z...@gmail.com
on 2 Oct 2011 at 4:47
Hi I got opencollada building before reading this, but think we found most of
the same issues - try building r860.
The one remaining problem is "_wfopen", I read up on this and from what I can
tell unix systems just don't use wchar_t for open commands, though if its
important we could have our own _wfopen implimentation. For now I commented
this function.
Original comment by ideasma...@gmail.com
on 14 Oct 2011 at 12:05
That's correct there is no _wfopen for w_char.
In the patch above I used narrow to convert w_char to char in a controllable
way.
It compiles, thanks.
Original comment by Alexey.Z...@gmail.com
on 14 Oct 2011 at 7:05
Original issue reported on code.google.com by
Alexey.Z...@gmail.com
on 8 Sep 2011 at 12:28