Compilation errors

15 views
Skip to first unread message

Ruchin

unread,
Sep 17, 2011, 11:32:15 AM9/17/11
to fog-dev
Hi,
I was trying to build Fog for my SVG related work, and it gives me
strange
errors.
First it reported that mmx is disabled on my system, I checked the
CMake
config and mmx flag was not set there, I corrected it and then the
error
disappeared.

Next, I am getting this error:
/home/rkansal/MS
work/Code/Fog/fog-read-only/Fog/Fog/Core/Tools/ByteArrayTmp_p.h: In
member
function ‘void Fog::ByteArrayTmp<N>::reset()’:
/home/rkansal/MS
work/Code/Fog/fog-read-only/Fog/Fog/Core/Tools/ByteArrayTmp_p.h:74:10:
error: ‘adopt’ is not a member of ‘Fog::ByteArray’
make[2]: *** [CMakeFiles/Fog.dir/Fog/Core/IO/DirIterator.cpp.o] Error
1
make[1]: *** [CMakeFiles/Fog.dir/all] Error 2

Is the current version in SVN broken? Could some please let me know
how to
compile it.

Petr Kobalíček

unread,
Sep 17, 2011, 4:08:19 PM9/17/11
to fog...@googlegroups.com
Hi,

I can confirm that current SVN is broken for Linux/MinGW (gcc). There
are some errors not visible to MSC compiler I'm currently builting
with. I'd like to fix this early (maybe tonight).

If you are using Linux only then prepare for broken font support. The
most stable platform is currently Windows (this will be fixed as
well).

Best regards
Petr Kobalicek

Petr Kobalíček

unread,
Sep 18, 2011, 8:10:32 AM9/18/11
to fog...@googlegroups.com
Hi,

I added new version to trunk. It has several problems, but the
compilation errors should be fixed for gcc, although I'm not sure
about MinGW.

Best regards
Petr Kobalicek

Jacques Leroy

unread,
Sep 21, 2011, 4:34:09 AM9/21/11
to fog...@googlegroups.com
Hi Petr !

I still have the following compilation error: (Visual Studio 2008)

1>..\Fog\Core\Threading\ThreadEvent.cpp(77) : error C3861: 'ceil': identifier not found

I think it would be solved with something like...

#include <Fog/Core/Math/Math.h> in ThreadEvent.cpp

and a new line

static FOG_INLINE double ceil(double x) { return ::ceil(x); }

in  Fog/Core/Math/Math.h

(others will probably needed too in a later stage of development, like floor() ... )

Fog-ly yours,
 Jacques Leroy


> Date: Sun, 18 Sep 2011 14:10:32 +0200
> Subject: Re: [fog-dev] Compilation errors
> From: kobalic...@gmail.com
> To: fog...@googlegroups.com

>
> Hi,
>
> I added new version to trunk. It has several problems, but the
> compilation errors should be fixed for gcc, although I'm not sure
> about MinGW.
>
> Best regards
> Petr Kobalicek
>
> On Sat, Sep 17, 2011 at 10:08 PM, Petr Kobal��ek

Petr Kobalíček

unread,
Sep 21, 2011, 9:14:30 AM9/21/11
to fog...@googlegroups.com
Hi,

Thanks! Although intellisense gives me error 'ceil is undefined', code
compiles in VS2010. I added ceil/floor methods to the Fog::Math and
replaced all calls to use Fog::Math namespace.

Now it should compile under VS2008;)

Best regards
Petr Kobalicek

2011/9/21 Jacques Leroy <blake...@hotmail.com>:


> Hi Petr !
>
> I still have the following compilation error: (Visual Studio 2008)
>
> 1>..\Fog\Core\Threading\ThreadEvent.cpp(77) : error C3861: 'ceil':
> identifier not found
>
> I think it would be solved with something like...
>
> #include <Fog/Core/Math/Math.h> in ThreadEvent.cpp
>
> and a new line
>
> static FOG_INLINE double ceil(double x) { return ::ceil(x); }
>
> in  Fog/Core/Math/Math.h
>
> (others will probably needed too in a later stage of development, like
> floor() ... )
>
> Fog-ly yours,
>  Jacques Leroy
>
>
>> Date: Sun, 18 Sep 2011 14:10:32 +0200
>> Subject: Re: [fog-dev] Compilation errors
>> From: kobalic...@gmail.com
>> To: fog...@googlegroups.com
>>
>> Hi,
>>
>> I added new version to trunk. It has several problems, but the
>> compilation errors should be fixed for gcc, although I'm not sure
>> about MinGW.
>>
>> Best regards
>> Petr Kobalicek
>>

>> On Sat, Sep 17, 2011 at 10:08 PM, Petr Kobalíček

Reply all
Reply to author
Forward
0 new messages