Menu

#1 cannot compile

open
nobody
None
5
2006-06-04
2006-06-04
Anonymous
No

dear developer,

i am trying to compile the package to test the
inetrface with the new libmtp (version 0.0.7) which is
oke at this point.

I am getting compilation errors:

First :
functions.c: In function ‘uploadfile’:
functions.c:608: error: too few arguments to function
‘LIBMTP_Send_Track_From_File’

i corrected this by adding NULL as one variable in the
function ( toatl of 7 variable now) and this worked
oke. but now it crashes at the following point:

mp3file.c:131: error: syntax error before ‘off_t’
mp3file.c:131: warning: no semicolon at end of struct
or union
mp3file.c:140: error: syntax error before ‘}’ token
mp3file.c:140: warning: type defaults to ‘int’ in
declaration of ‘mp3info’
mp3file.c:140: warning: data definition has no type or
storage class
mp3file.c:161: error: syntax error before ‘*’ token
mp3file.c:162: error: syntax error before ‘*’ token
mp3file.c:163: error: syntax error before ‘*’ token
mp3file.c:199: error: syntax error before ‘*’ token
mp3file.c: In function ‘get_mp3_info’:
mp3file.c:209: error: ‘off_t’ undeclared (first use in
this function)
mp3file.c:209: error: (Each undeclared identifier is
reported only once
mp3file.c:209: error: for each function it appears in.)
mp3file.c:209: error: syntax error before ‘data_start’
mp3file.c:215: error: ‘mp3’ undeclared (first use in
this function)
mp3file.c:219: error: ‘data_start’ undeclared (first
use in this function)
mp3file.c:224: warning: implicit declaration of
function ‘memcpy’
mp3file.c:224: warning: incompatible implicit
declaration of built-in function ‘memcpy’
mp3file.c: At top level:
mp3file.c:248: error: syntax error before ‘*’ token
mp3file.c: In function ‘get_first_header’:
mp3file.c:254: error: ‘mp3’ undeclared (first use in
this function)
mp3file.c:254: error: ‘startpos’ undeclared (first use
in this function)
mp3file.c:269: warning: incompatible implicit
declaration of built-in function ‘memcpy’
mp3file.c: At top level:
mp3file.c:287: error: syntax error before ‘*’ token
mp3file.c: In function ‘get_next_header’:
mp3file.c:293: error: ‘mp3’ undeclared (first use in
this function)
mp3file.c: At top level:
mp3file.c:382: error: syntax error before ‘*’ token
mp3file.c:383: warning: return type defaults to ‘int’
mp3file.c: In function ‘mp3file_get_info’:
mp3file.c:384: error: ‘mp3’ undeclared (first use in
this function)
mp3file.c:394: warning: implicit declaration of
function ‘g_fopen’
mp3file.c:394: warning: assignment makes pointer from
integer without a cast
mp3file.c: In function ‘mpg123_get_xing_header’:
mp3file.c:628: warning: implicit declaration of
function ‘memset’
mp3file.c:628: warning: incompatible implicit
declaration of built-in function ‘memset’
mp3file.c:653: warning: implicit declaration of
function ‘strncmp’
mp3file.c: In function ‘get_track_time’:
mp3file.c:938: warning: initialization makes pointer
from integer without a cast
mp3file.c: In function ‘length_from_file’:
mp3file.c:956: warning: statement with no effect
mp3file.c:963: warning: assignment makes integer from
pointer without a cast
mp3file.c:965: error: invalid type argument of ‘->’
mp3file.c:966: error: invalid type argument of ‘->’
mp3file.c:967: warning: passing argument 1 of ‘g_free’
makes pointer from integer without a cast
mp3file.c:983: warning: implicit declaration of
function ‘seconds_to_mmss’
mp3file.c:983: warning: return makes pointer from
integer without a cast
make[2]: *** [mp3file.o] Error 1
make[2]: Leaving directory
`/home/smidt_mp/software/MTPdude-0.0.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/smidt_mp/software/MTPdude-0.0.6'
make: *** [all] Error 2

this looks a bit to much fore me to handle

al the best marten

(smidt.mp@gmail.com)

Discussion

  • Nobody/Anonymous

    Logged In: NO

    i copied the mp3file* form the latest stable gnomad2 and
    edited the tracks.c file to get i compiling.

    it worked. the applicaton crashed though after selected an
    mp3 file on the left pane of the UI.

    marten

     
  • Nobody/Anonymous

    Logged In: NO

    sorry here is the editing stuff:

    track.c line 144 rmoved "," before )

    track.clin160 added "NULL" in function data to complete
    amount of data parameters.

    all the best marten

     
  • Nobody/Anonymous

    Logged In: NO

    I got it to compile by

    1. doing your first fix
    2. adding "#include <sys/types.h>" to mp3file.c
    3. changing the call to LIBMTP_Delete_File() to a call to
    LIBMTP_Delete_Object() in functions.c

     
  • Nobody/Anonymous

    Logged In: NO

    compile against libmtp-0.0.3 from earlier this year. The
    function was changed in later versions of libmtp and it
    hasn't been updated in mtpdude.

     

Log in to post a comment.

MongoDB Logo MongoDB