(glitz) struggling to make rendertest

View: New views
3 Messages — Rating Filter:   Alert me  

(glitz) struggling to make rendertest

by Patrick Pailhes :: Rate this Message:

| View Threaded | Show Only this Message

Hi there

I've just downloaded and installed glitz-0.5.1 from Cairo CVS. Now, I
want to test it using rendertest. I've dowloaded the latest rendertest
files from CVS, executed the command ./autogen.sh (backend glitz-glx:
yes), make and make install.

After that, I changed to the directory src and typed make rendertest.
However, there are several linking errors such as:
"src/rendertest.c:296: undefined reference to `render_read_png'" and
"src/rendertest.c:742: undefined reference to `cos'".

When I type make rendertest, it calls "gcc -g -O2 -Wall
-Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -Wnested-externs -fno-strict-aliasing  
rendertest.c   -o rendertest" and that line does not include neither
the Math library nor the necessary files args.c, png.c, etc.

Basically, I'm stuck. I'm sorry to pollute the cairo mailing-list with
this "newbie message" but if anyone has already encountered that
difficulty or knows the answer, I would really appreciate their help.

Thank you.

Patrick
_______________________________________________
cairo mailing list
cairo@...
http://cairographics.org/cgi-bin/mailman/listinfo/cairo

Re: (glitz) struggling to make rendertest

by Chris Nystrom :: Rate this Message:

| View Threaded | Show Only this Message

On 12/3/05, Patrick Pailhes <patrick.pailhes@...> wrote:

> Hi there
>
> I've just downloaded and installed glitz-0.5.1 from Cairo CVS. Now, I
> want to test it using rendertest. I've dowloaded the latest rendertest
> files from CVS, executed the command ./autogen.sh (backend glitz-glx:
> yes), make and make install.
>
> After that, I changed to the directory src and typed make rendertest.
> However, there are several linking errors such as:
> "src/rendertest.c:296: undefined reference to `render_read_png'" and
> "src/rendertest.c:742: undefined reference to `cos'".
>
> When I type make rendertest, it calls "gcc -g -O2 -Wall
> -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes
> -Wmissing-declarations -Wnested-externs -fno-strict-aliasing
> rendertest.c   -o rendertest" and that line does not include neither
> the Math library nor the necessary files args.c, png.c, etc.
>
> Basically, I'm stuck. I'm sorry to pollute the cairo mailing-list with
> this "newbie message" but if anyone has already encountered that
> difficulty or knows the answer, I would really appreciate their help.

You are right. With cos() you will need to link in the math library (-lm).

Not sure about render_read_png().

Chris

--
E-Mail: Chris Nystrom <cnystrom@...>
Business: http://www.shaklee.net/austin
Blog: http://conversazione.blogspot.com/
AIM: nystromchris
_______________________________________________
cairo mailing list
cairo@...
http://cairographics.org/cgi-bin/mailman/listinfo/cairo

Re: (glitz) struggling to make rendertest

by David Reveman :: Rate this Message:

| View Threaded | Show Only this Message

On Sat, 2005-12-03 at 11:25 +0000, Patrick Pailhes wrote:
> Hi there
>
> I've just downloaded and installed glitz-0.5.1 from Cairo CVS. Now, I
> want to test it using rendertest. I've dowloaded the latest rendertest
> files from CVS, executed the command ./autogen.sh (backend glitz-glx:
> yes), make and make install.

Does 'make' and 'make install' complete successfully? If 'make' worked
then you should be all set. If it said "glitz-glx: yes" then you should
have a rendertest_glitz_glx executable in src after typing make.

>
> After that, I changed to the directory src and typed make rendertest.
> However, there are several linking errors such as:
> "src/rendertest.c:296: undefined reference to `render_read_png'" and
> "src/rendertest.c:742: undefined reference to `cos'".

You don't want to type 'make rendertest'. I'm surprised it's actually
compiling something when you type this. No rendertest binary should be
built only binaries named rendertest_xxx, where xxx is a specific output
backend like glitz-glx, xcb or pixman.

If you want to build just a specific binary e.g 'make
rendertest_glitz_glx' should work as well.

>
> When I type make rendertest, it calls "gcc -g -O2 -Wall
> -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes
> -Wmissing-declarations -Wnested-externs -fno-strict-aliasing  
> rendertest.c   -o rendertest" and that line does not include neither
> the Math library nor the necessary files args.c, png.c, etc.
>
> Basically, I'm stuck. I'm sorry to pollute the cairo mailing-list with
> this "newbie message" but if anyone has already encountered that
> difficulty or knows the answer, I would really appreciate their help.
>
> Thank you.
>
> Patrick
> _______________________________________________
> cairo mailing list
> cairo@...
> http://cairographics.org/cgi-bin/mailman/listinfo/cairo

-David

_______________________________________________
cairo mailing list
cairo@...
http://cairographics.org/cgi-bin/mailman/listinfo/cairo