Re: Compile Problem (KdenLive)



Alphan wrote:
I'm getting some warnings like below before compiling KdenLive:
flvenc.c:131: warning: 'videocodecid' may be used uninitialized in
this function

And some warnings like this:
nutdec.c:823: warning: passing argument 3 of 'av_tree_find' from
incompatible pointer type

Like this:
rgb2rgb_template.c:274: warning: cast discards qualifiers from pointer
target type

And like this:
yuv2rgb.c:397: warning: unused variable 'Y'

But I think the warnings are not very important, aren't they?

Typically, warnings are a sign of bad code, but not necessarily buggy code.

And finally, this is the final error that stops the compile process:
[...]
factory.c:63: warning: 'av_free_static' is deprecated (declared at /
home/alphan/build/kdenlive.2008-02-22_15_23/include/ffmpeg/avcodec.h:
2894)

This is a sign that a feature should not be used. It is typically added to
that feature some time before the feature is removed completely. If you
find such warnings, it means that the using code is not up-to-date.

producer_avformat.c: In function 'producer_open':
producer_avformat.c:206: error: 'AVFormatParameters' has no member
named 'device'

Well, it seems it is by far outdated. There is no way to fix this but by
either using a suitable version of the library or by updating the code.

My advise: contact the developers of the program, ask them how they compile
the code. Otherwise, you might be able to reproduce the build-environment
using the exact libraries and sources that an existing binary is built
from, under Debian a simple 'apt-get source kdenlive' would do the job.

Uli


.



Relevant Pages

  • Re: Improving efficiency of a bytecode interpreter
    ... declare his functions static inline (or rely on compiler heuristics to ... argument 2 of 'mSlist_init_properties' from incompatible pointer type ... I get a lot of these warnings from numerous ... int STRcmp(const STRING *ss1, const STRING *ss2); ...
    (comp.lang.c)
  • how to handle ... warning: `something is deprecated ...
    ... i was wondering what i should do with warnings that come up. ... move your driver to the new sysfs api" ... from incompatible pointer type ...
    (Linux-Kernel)
  • Re: [PATCH 3/3] sysfs: Add labeling support for sysfs
    ... This last patch introduced the following warnings: ... security_inode_getsecctx from incompatible pointer type ... Please fix them. ... James Morris ...
    (Linux-Kernel)
  • Re: kernel compile fails in machdep.c
    ... cc1: warnings being treated as errors ... of 'intr_event_create' from incompatible pointer type ... the tinderbox has not reported any errors after the commit. ...
    (freebsd-stable)
  • Re: OT: Massachusetts Verdict: MS Office Formats Out
    ... Tim wrote: ... >> When I use OpenOffice, and want to save something that I created using ... foolish warnings such as the above "All might not be safe" ... If they don't use any non-exportable feature in a document, ...
    (Fedora)