Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
62 user(s) are online (57 user(s) are browsing Forums)

Members: 0
Guests: 62

more...

Support us!

Headlines

 
  Register To Post  

« 1 (2) 3 4 5 »
Re: Help me in compiling latest pixman and cairo graphics
Quite a regular
Quite a regular


See User information
@salass00

I tried copying the new cairo include in the original (2008) cairo include obtaing the following:

ppc-amigaos-c++ -I/SDK/local/common/include/cairo -ggdb -Iinclude -c -o source/main.o source/main.cpp
In file included from source/main.cpp:38:
/SDK/local/common/include/cairo/cairo-amigaos.h:21:3: error: #error Cairo was not compiled with support for the amigaos backend
source/main.cpp: In function 'void LoadImage()':
source/main.cpp:173: error: 'cairo_image_surface_create_from_png' was not declared in this scope
source/main.cpp: In function 'void Draw(uint32, uint32, BitMap*)':
source/main.cpp:1368: error: 'cairo_amigaos_surface_create' was not declared in this scope
make: *** [source/main.o] Error 1

The same happen if i delete the old cairo include and point to the latest include directory.

I've added the cairo-amigaos.h together with the other new include files, but i get the same error as above


Edited by AmigaBlitter on 2015/6/9 11:23:13
Retired
Go to top
Re: Help me in compiling latest pixman and cairo graphics
Quite a regular
Quite a regular


See User information
Patched the original cairo.h adding amiga os surface...

in the typedef enum _cairo_surface_type
Configuring again...
compiling...

nothing same error:

i wonder how many steps remain to have a full compiled cairo


patched cairo-features.h too.

included the define CAIRO_HAS_AMIGAOS_SURFACE 1 ...

It worked now!!!

Since the cairo-feature is generated by the configure process, what i have to modify in the configure file to make the process more clean?


Edited by AmigaBlitter on 2015/6/9 12:10:15
Edited by AmigaBlitter on 2015/6/9 12:46:54
Edited by AmigaBlitter on 2015/6/9 13:14:10
Edited by AmigaBlitter on 2015/6/9 13:29:47
Retired
Go to top
Re: Help me in compiling latest pixman and cairo graphics
Just can't stay away
Just can't stay away


See User information
@AmigaBlitter

Quote:

/SDK/local/common/include/cairo/cairo-amigaos.h:21:3: error: #error Cairo was not compiled with support for the amigaos backend


As the message says your libcairo is not compiled with support for AmigaOS specific surfaces.

Simply modifying the header files won't change this fact.

Go to top
Re: Help me in compiling latest pixman and cairo graphics
Quite a regular
Quite a regular


See User information
It worked (see my previous post).

I've got a 2 fps improvement

I'm asking now: "Since the cairo-feature is generated by the configure process, what i have to modify in the configure file to make the process more clean?"

Retired
Go to top
Re: Help me in compiling latest pixman and cairo graphics
Quite a regular
Quite a regular


See User information
Hello,

i've just installed the new sdk. Moreover, i'm using a new version of the gnu compiler: 4.9.1.

When i try to configure again pixman: i get the following error:

sh configure --prefix=/SDK/local/newlib --host=ppc-amigaos --enable-static=yes --enable-shared=no --disable-vmx --enable-timers=no --enable-gtk=no --enable-libpng=no

gcc:bin/rm: cannot lstat `conf1500228416.dir/conf1500228416.file': File or path name too long
gcc:bin/rm: cannot lstat `conf1500228416.dir/conf1500228416.file': File or path name too long
configure: WARNING: unrecognized options: --enable-0, --enable-0, --disable-0, --enable-0, --enable-0, --enable-0
configure: error: expected an absolute directory name for --prefix: 0

Any hint?

Retired
Go to top
Re: Help me in compiling latest pixman and cairo graphics
Quite a regular
Quite a regular


See User information
@salass00

please help

Retired
Go to top
Re: Help me in compiling latest pixman and cairo graphics
Just can't stay away
Just can't stay away


See User information
@AmigaBlitter

The issue is in the coreutils bundled with the 4.9.1 I gave you.

I tracked it to 2 files, rm and expr in SDK:gcc/bin. Delete them from that directory and it'll use the ones in SDK:local/C

Note that this is going effect no-one but you and me at the moment, since everyone else won't have the compiling environment I sent to you.

It might be best to either delete the coreutils out of SDK:gcc/bin, or copy what's in SDK:local/C into there, so you know you're working with a good set of coreutils.


Edited by MickJT on 2015/9/1 20:29:04
Edited by MickJT on 2015/9/1 20:31:37
Edited by MickJT on 2015/9/1 20:34:03
Edited by MickJT on 2015/9/1 20:35:13
Go to top
Re: Help me in compiling latest pixman and cairo graphics
Just can't stay away
Just can't stay away


See User information
@AmigaBlitter

I just cross-compiled the latest versions of pixman and cairo libraries just for you.

You can find them here:
https://dl.dropboxusercontent.com/u/26599983/libcairo-lite.7z

These are just static libraries and all of the extra features that can be disabled during configure are which is why I'm calling the archive libcairo-lite.

Go to top
Re: Help me in compiling latest pixman and cairo graphics
Just can't stay away
Just can't stay away


See User information
@salass00

I had sent him a native build of gcc 4.9.1 bundled with binutils 2.23.2 and whatever coreutils was available in the adtools trunk. Looks like the coreutils that were built as part of that (specifically rm & expr) had issues, for whatever reason.

Go to top
Re: Help me in compiling latest pixman and cairo graphics
Quite a regular
Quite a regular


See User information
Trying to use the old gcc with the new sdk:

i get this configure message:

config.status: executing depfiles commands
SDK:Local/C/sed: can't read cairo-uninstalled.pc:src/cairo-uninstalled.pc.in: No such file or directory


Retired
Go to top
Re: Help me in compiling latest pixman and cairo graphics
Quite a regular
Quite a regular


See User information
@salass00

Thank you for compiling the lastest version of cairo and pixam.

I will test.

Btw, i want to use the native gcc 4.9.1, since i'm trying to get the maximum optimization. Moreover, digging into errors help me to learn.

As you can see i have an error using the lastest sdk and old gcc (4.2.4).

config.status: executing depfiles commands
SDK:Local/C/sed: can't read cairo-uninstalled.pc:src/cairo-uninstalled.pc.in: No such file or directory

Retired
Go to top
Re: Help me in compiling latest pixman and cairo graphics
Quite a regular
Quite a regular


See User information
@MickJT

i removed rm and expr as you suggested and configure continue till this point:

configure: creating ./config.status
config.status: creating pixman-1.pc
SDK:Local/C/nawk: syntax error at source line 180 source file ./conf1423206784-15503/subs.awk
context is
line = $ >>>
<<< nfields = split(line, field, "@")
SDK:Local/C/nawk: illegal statement at source line 181 source file ./conf1423206784-15503/subs.awk

Retired
Go to top
Re: Help me in compiling latest pixman and cairo graphics
Quite a regular
Quite a regular


See User information
removed nawk, but still error as follow:

SDK:Local/C/awk: syntax error at source line 180 source file ./conf1423206400-15503/subs.awk
context is
line = $ >>>
<<< nfields = split(line, field, "@")
SDK:Local/C/awk: illegal statement at source line 181 source file ./conf1423206400-15503/subs.awk

Retired
Go to top
Re: Help me in compiling latest pixman and cairo graphics
Just can't stay away
Just can't stay away


See User information
I don't have time right at this moment to see if it's anything to do with the 4.9.1 I sent you. I'd just suggest copying everything in SDK:local/C into SDK:gcc/bin, or going 1 by 1 through SDK:gcc/bin deleting everything that already exists in SDK:local/C (don't delete anything in local/C).

Assuming the earlier (53.24) SDK works fine when unmodified, then if you merge in the newer gcc and do the above steps but it still doesn't work, then I'm out of ideas.

Go to top
Re: Help me in compiling latest pixman and cairo graphics
Quite a regular
Quite a regular


See User information
@salass00

Hello,

just noticed that the cairo.h doesn't have the amiga os surface. Maybe i'm wrong.

i Still having the error "cairo was not compiled for amiga os surface" if i point to /SDL/local/newlib/include/cairo.
oreover, using the flags -lpng12 -lz i get:
Id: cannot find -lz

If i point to /SDL/local/common/include/cairo seems that i have the amiga os surface for cairo.





Edited by AmigaBlitter on 2015/9/5 21:36:12
Retired
Go to top
Re: Help me in compiling latest pixman and cairo graphics
Quite a regular
Quite a regular


See User information
The creation of the Cairo Amiga surface fails:

this is the config.log

http://1drv.ms/1JIcCQD


Retired
Go to top
Re: Help me in compiling latest pixman and cairo graphics
Quite a regular
Quite a regular


See User information
@AmigaBlitter

Resized Image

Retired
Go to top
Re: Help me in compiling latest pixman and cairo graphics
Just can't stay away
Just can't stay away


See User information
@AmigaBlitter

As I said before the code for AmigaOS surfaces is not in the official cairo sources, nor is it available anywhere else as far as I am aware.

So in order to make a more up to date cairo with AmigaOS surfaces I would have to rewrite this code from scratch...

Go to top
Re: Help me in compiling latest pixman and cairo graphics
Quite a regular
Quite a regular


See User information
Yes, i know.

The closest source that may be similar to AmigaOS is the cairo-beos-surface.cpp.

I noticed, btw, that not all cairo operators seems mapped.

Of course could be possible to examine the xlib or win32 implementation to see how the cairo-device and the cairo backend is implemeted.


Retired
Go to top
Re: Help me in compiling latest pixman and cairo graphics
Quite a regular
Quite a regular


See User information
@salass00

Could you please provide the files in order to try to update those files?

Thank you

Retired
Go to top

  Register To Post
« 1 (2) 3 4 5 »

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project