ZBar MadewithMarmalade Port - Trying to Add ean.h/.c to zbar.mkb Error

rodob123
2013-02-20
2013-02-21
  • rodob123

    rodob123 - 2013-02-20

    Hi,

    I'm trying to add UPC functionality to the zbar example:

    https://github.com/marmalade/zbar/tree/master/example

    as it only works for QRCode. I have added both ean.h and ean.c from:(http://sourceforge.net/p/zbar/code/ci/38e78368283d5afe34bbc0cedb36d4540cda3a30/tree/zbar/decoder/) to the decoder folder and have also added these two files to the zbar.mkb file. now when I compile Im getting the following errors, any help would be greatly appreciated..:

    error...
    1> Generating Code...
    1> ean.c
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar.h(677): error C2054: expected '(' to follow 'inline'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar.h(679): error C2085: 'zbar_processor_parse_config' : not in formal parameter list
    5.1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar.h(679): error C2143: syntax error : missing ';' before '{'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar.h(753): error C2054: expected '(' to follow 'inline'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar.h(755): error C2085: 'zbar_processor_error_spew' : not in formal parameter list
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar.h(755): error C2143: syntax error : missing ';' before '{'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar.h(760): error C2143: syntax error : missing '{' before 'const'
    10.1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar.h(769): error C2054: expected '(' to follow 'inline'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar.h(770): error C2085: 'zbar_processor_get_error_code' : not in formal parameter list
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar.h(770): error C2143: syntax error : missing ';' before '{'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar.h(874): error C2054: expected '(' to follow 'inline'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar.h(876): error C2085: 'zbar_video_error_spew' : not in formal parameter list
    15.1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar.h(876): error C2143: syntax error : missing ';' before '{'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar.h(881): error C2143: syntax error : missing '{' before 'const'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar.h(889): error C2054: expected '(' to follow 'inline'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar.h(890): error C2085: 'zbar_video_get_error_code' : not in formal parameter list
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar.h(890): error C2143: syntax error : missing ';' before '{'
    20.1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar.h(960): error C2054: expected '(' to follow 'inline'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar.h(962): error C2085: 'zbar_window_error_spew' : not in formal parameter list
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar.h(962): error C2143: syntax error : missing ';' before '{'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar.h(967): error C2143: syntax error : missing '{' before 'const'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar.h(976): error C2054: expected '(' to follow 'inline'
    25.1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar.h(977): error C2085: 'zbar_window_get_error_code' : not in formal parameter list
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar.h(977): error C2143: syntax error : missing ';' before '{'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar.h(1042): error C2054: expected '(' to follow 'inline'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar.h(1044): error C2085: 'zbar_image_scanner_parse_config' : not in formal parameter list
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar.h(1044): error C2143: syntax error : missing ';' before '{'
    30.1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar.h(1133): error C2054: expected '(' to follow 'inline'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar.h(1135): error C2085: 'zbar_decoder_parse_config' : not in formal parameter list
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar.h(1135): error C2143: syntax error : missing ';' before '{'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar.h(1268): error C2054: expected '(' to follow 'inline'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar.h(1270): error C2085: 'zbar_scan_rgb24' : not in formal parameter list
    35.1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar.h(1270): error C2143: syntax error : missing ';' before '{'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\qr_finder.h(15): error C2054: expected '(' to follow 'inline'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\qr_finder.h(16): error C2085: 'qr_finder_reset' : not in formal parameter list
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\qr_finder.h(16): error C2143: syntax error : missing ';' before '{'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder.h(113): error C2054: expected '(' to follow 'inline'
    40.1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder.h(114): error C2085: 'get_color' : not in formal parameter list
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder.h(114): error C2143: syntax error : missing ';' before '{'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder.h(119): error C2054: expected '(' to follow 'inline'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder.h(121): error C2085: 'get_width' : not in formal parameter list
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder.h(121): error C2143: syntax error : missing ';' before '{'
    45.1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder.h(126): error C2054: expected '(' to follow 'inline'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder.h(128): error C2085: 'pair_width' : not in formal parameter list
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder.h(128): error C2143: syntax error : missing ';' before '{'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder.h(137): error C2054: expected '(' to follow 'inline'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder.h(140): error C2085: 'calc_s' : not in formal parameter list
    50.1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder.h(140): error C2143: syntax error : missing ';' before '{'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder.h(158): error C2054: expected '(' to follow 'inline'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder.h(161): error C2085: 'decode_e' : not in formal parameter list
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder.h(161): error C2143: syntax error : missing ';' before '{'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder.h(171): error C2054: expected '(' to follow 'inline'
    55.1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder.h(173): error C2085: 'get_lock' : not in formal parameter list
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder.h(173): error C2143: syntax error : missing ';' before '{'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder.h(181): error C2054: expected '(' to follow 'inline'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder.h(183): error C2085: 'size_buf' : not in formal parameter list
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder.h(183): error C2143: syntax error : missing ';' before '{'
    60.1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(114): error C2054: expected '(' to follow 'inline'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(116): error C2085: 'check_width' : not in formal parameter list
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(116): error C2143: syntax error : missing ';' before '{'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(126): error C2054: expected '(' to follow 'inline'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(128): error C2085: 'aux_end' : not in formal parameter list
    65.1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(128): error C2143: syntax error : missing ';' before '{'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(159): error C2054: expected '(' to follow 'inline'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(160): error C2085: 'aux_start' : not in formal parameter list
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(160): error C2143: syntax error : missing ';' before '{'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(208): error C2054: expected '(' to follow 'inline'
    70.1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(209): error C2085: 'aux_mid' : not in formal parameter list
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(209): error C2143: syntax error : missing ';' before '{'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(215): error C2054: expected '(' to follow 'inline'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(216): error C2085: 'decode4' : not in formal parameter list
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(216): error C2143: syntax error : missing ';' before '{'
    75.1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(263): error C2054: expected '(' to follow 'inline'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(263): error C2143: syntax error : missing ')' before ''
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(263): error C2085: 'ean_part_end2' : not in formal parameter list
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(263): error C2143: syntax error : missing ';' before '
    '
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(264): error C2059: syntax error : ')'
    80.1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(285): error C2054: expected '(' to follow 'inline'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(285): error C2143: syntax error : missing ')' before ''
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(285): error C2085: 'ean_part_end4' : not in formal parameter list
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(285): error C2143: syntax error : missing ';' before '
    '
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(286): error C2059: syntax error : ')'
    85.1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(319): error C2054: expected '(' to follow 'inline'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(319): error C2143: syntax error : missing ')' before ''
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(319): error C2085: 'ean_part_end5' : not in formal parameter list
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(319): error C2143: syntax error : missing ';' before '
    '
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(320): error C2059: syntax error : ')'
    90.1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(355): error C2054: expected '(' to follow 'inline'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(355): error C2143: syntax error : missing ')' before ''
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(355): error C2085: 'ean_part_end7' : not in formal parameter list
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(355): error C2143: syntax error : missing ';' before '
    '
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(357): error C2059: syntax error : ')'
    95.1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(416): error C2054: expected '(' to follow 'inline'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(417): error C2143: syntax error : missing ')' before ''
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(417): error C2081: 'ean_pass_t' : name in formal parameter list illegal
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(417): error C2085: 'decode_pass' : not in formal parameter list
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(417): error C2143: syntax error : missing ';' before '
    '
    100.1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(417): error C2059: syntax error : ')'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(516): error C2054: expected '(' to follow 'inline'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(516): error C2143: syntax error : missing ')' before '*'
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(516): error C2085: 'ean_verify_checksum' : not in formal parameter list
    1>c:\notebook c\my documents\myapps\zbar-master\zbar-master\src\zbar\decoder\ean.c(516): fatal error C1003: error count exceeds 100; stopping compilation
    105.========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

     
  • rodob123

    rodob123 - 2013-02-21

    I got it resolved thank you so much for your help

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks