Opened 13 years ago
Last modified 13 years ago
#30827 new request
RFP: py-sane
Reported by: | tristan.klocke@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | sane python | Cc: | |
Port: | py-sane |
Description
I'm trying to build ocrfeeder from a tarball using my macports installation. It requires the python 2.6 moudle pysane. Sadly there s no port available at the moment. I also tried to built it from source but running "/opt/local/bin/python2.6 setup.py build" gives me that:
running build running build_py creating build/lib.macosx-10.7-x86_64-2.6 copying sane.py -> build/lib.macosx-10.7-x86_64-2.6 running build_ext building '_sane' extension creating build/temp.macosx-10.7-x86_64-2.6 /Developer/usr/bin/llvm-gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -pipe -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I../libImaging -I/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c _sane.c -o build/temp.macosx-10.7-x86_64-2.6/_sane.o _sane.c:26:21: error: Imaging.h: No such file or directory _sane.c:27:23: error: sane/sane.h: No such file or directory _sane.c:35: error: expected specifier-qualifier-list before ‘SANE_Handle’ _sane.c:44: error: expected ‘)’ before ‘st’ _sane.c: In function ‘newSaneDevObject’: _sane.c:65: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c: In function ‘SaneDev_dealloc’: _sane.c:74: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:74: warning: implicit declaration of function ‘sane_close’ _sane.c:74: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:75: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c: In function ‘SaneDev_close’: _sane.c:84: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:84: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:85: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c: In function ‘SaneDev_get_parameters’: _sane.c:93: error: ‘SANE_Status’ undeclared (first use in this function) _sane.c:93: error: (Each undeclared identifier is reported only once _sane.c:93: error: for each function it appears in.) _sane.c:93: error: expected ‘;’ before ‘st’ _sane.c:94: error: ‘SANE_Parameters’ undeclared (first use in this function) _sane.c:94: error: expected ‘;’ before ‘p’ _sane.c:99: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:105: error: ‘st’ undeclared (first use in this function) _sane.c:105: warning: implicit declaration of function ‘sane_get_parameters’ _sane.c:105: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:105: error: ‘p’ undeclared (first use in this function) _sane.c:108: warning: implicit declaration of function ‘PySane_Error’ _sane.c:108: warning: return makes pointer from integer without a cast _sane.c:111: error: ‘SANE_FRAME_GRAY’ undeclared (first use in this function) _sane.c:112: error: ‘SANE_FRAME_RGB’ undeclared (first use in this function) _sane.c:113: error: ‘SANE_FRAME_RED’ undeclared (first use in this function) _sane.c:114: error: ‘SANE_FRAME_GREEN’ undeclared (first use in this function) _sane.c:115: error: ‘SANE_FRAME_BLUE’ undeclared (first use in this function) _sane.c: In function ‘SaneDev_fileno’: _sane.c:126: error: ‘SANE_Status’ undeclared (first use in this function) _sane.c:126: error: expected ‘;’ before ‘st’ _sane.c:127: error: ‘SANE_Int’ undeclared (first use in this function) _sane.c:127: error: expected ‘;’ before ‘fd’ _sane.c:131: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:136: error: ‘st’ undeclared (first use in this function) _sane.c:136: warning: implicit declaration of function ‘sane_get_select_fd’ _sane.c:136: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:136: error: ‘fd’ undeclared (first use in this function) _sane.c:137: warning: return makes pointer from integer without a cast _sane.c: In function ‘SaneDev_start’: _sane.c:144: error: ‘SANE_Status’ undeclared (first use in this function) _sane.c:144: error: expected ‘;’ before ‘st’ _sane.c:148: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:159: error: ‘st’ undeclared (first use in this function) _sane.c:159: warning: implicit declaration of function ‘sane_start’ _sane.c:159: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:161: warning: return makes pointer from integer without a cast _sane.c: In function ‘SaneDev_cancel’: _sane.c:171: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:176: warning: implicit declaration of function ‘sane_cancel’ _sane.c:176: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c: In function ‘SaneDev_get_options’: _sane.c:184: error: nested functions are disabled, use -fnested-functions to re-enable _sane.c:184: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token _sane.c:184: error: ‘d’ undeclared (first use in this function) _sane.c:190: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:200: warning: implicit declaration of function ‘sane_get_option_descriptor’ _sane.c:200: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:208: error: ‘SANE_CONSTRAINT_NONE’ undeclared (first use in this function) _sane.c:210: error: ‘SANE_CONSTRAINT_RANGE’ undeclared (first use in this function) _sane.c:211: error: ‘SANE_TYPE_INT’ undeclared (first use in this function) _sane.c:217: warning: implicit declaration of function ‘SANE_UNFIX’ _sane.c:221: error: ‘SANE_CONSTRAINT_WORD_LIST’ undeclared (first use in this function) _sane.c:232: error: ‘SANE_CONSTRAINT_STRING_LIST’ undeclared (first use in this function) _sane.c: In function ‘SaneDev_get_option’: _sane.c:251: error: ‘SANE_Status’ undeclared (first use in this function) _sane.c:251: error: expected ‘;’ before ‘st’ _sane.c:252: error: nested functions are disabled, use -fnested-functions to re-enable _sane.c:252: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token _sane.c:252: error: ‘d’ undeclared (first use in this function) _sane.c:261: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:266: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:268: error: ‘st’ undeclared (first use in this function) _sane.c:268: warning: implicit declaration of function ‘sane_control_option’ _sane.c:268: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:268: error: ‘SANE_ACTION_GET_VALUE’ undeclared (first use in this function) _sane.c:274: warning: return makes pointer from integer without a cast _sane.c:279: error: ‘SANE_TYPE_BOOL’ undeclared (first use in this function) _sane.c:280: error: ‘SANE_TYPE_INT’ undeclared (first use in this function) _sane.c:281: error: ‘SANE_Int’ undeclared (first use in this function) _sane.c:281: error: expected expression before ‘)’ token _sane.c:283: error: ‘SANE_TYPE_FIXED’ undeclared (first use in this function) _sane.c:284: error: ‘SANE_Fixed’ undeclared (first use in this function) _sane.c:284: error: expected expression before ‘)’ token _sane.c:286: error: ‘SANE_TYPE_STRING’ undeclared (first use in this function) _sane.c:289: error: ‘SANE_TYPE_BUTTON’ undeclared (first use in this function) _sane.c:290: error: ‘SANE_TYPE_GROUP’ undeclared (first use in this function) _sane.c: In function ‘SaneDev_set_option’: _sane.c:302: error: ‘SANE_Status’ undeclared (first use in this function) _sane.c:302: error: expected ‘;’ before ‘st’ _sane.c:303: error: nested functions are disabled, use -fnested-functions to re-enable _sane.c:303: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token _sane.c:303: error: ‘d’ undeclared (first use in this function) _sane.c:304: error: ‘SANE_Int’ undeclared (first use in this function) _sane.c:304: error: expected ‘;’ before ‘i’ _sane.c:311: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:316: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:321: error: ‘SANE_TYPE_BOOL’ undeclared (first use in this function) _sane.c:329: error: ‘SANE_TYPE_INT’ undeclared (first use in this function) _sane.c:336: error: expected expression before ‘)’ token _sane.c:338: error: ‘SANE_TYPE_FIXED’ undeclared (first use in this function) _sane.c:345: error: ‘SANE_Fixed’ undeclared (first use in this function) _sane.c:345: error: expected expression before ‘)’ token _sane.c:345: warning: implicit declaration of function ‘SANE_FIX’ _sane.c:347: error: ‘SANE_TYPE_STRING’ undeclared (first use in this function) _sane.c:357: error: ‘SANE_TYPE_BUTTON’ undeclared (first use in this function) _sane.c:358: error: ‘SANE_TYPE_GROUP’ undeclared (first use in this function) _sane.c:362: error: ‘st’ undeclared (first use in this function) _sane.c:362: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:362: error: ‘SANE_ACTION_SET_VALUE’ undeclared (first use in this function) _sane.c:363: error: ‘i’ undeclared (first use in this function) _sane.c:364: warning: return makes pointer from integer without a cast _sane.c: In function ‘SaneDev_set_auto_option’: _sane.c:373: error: ‘SANE_Status’ undeclared (first use in this function) _sane.c:373: error: expected ‘;’ before ‘st’ _sane.c:374: error: nested functions are disabled, use -fnested-functions to re-enable _sane.c:374: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token _sane.c:374: error: ‘d’ undeclared (first use in this function) _sane.c:375: error: ‘SANE_Int’ undeclared (first use in this function) _sane.c:375: error: expected ‘;’ before ‘i’ _sane.c:380: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:385: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:386: error: ‘st’ undeclared (first use in this function) _sane.c:386: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:386: error: ‘SANE_ACTION_SET_AUTO’ undeclared (first use in this function) _sane.c:387: error: ‘i’ undeclared (first use in this function) _sane.c:388: warning: return makes pointer from integer without a cast _sane.c: In function ‘SaneDev_snap’: _sane.c:398: error: ‘SANE_Status’ undeclared (first use in this function) _sane.c:398: error: expected ‘;’ before ‘st’ _sane.c:401: error: ‘SANE_Byte’ undeclared (first use in this function) _sane.c:401: error: expected ‘;’ before ‘buffer’ _sane.c:402: error: ‘SANE_Int’ undeclared (first use in this function) _sane.c:402: error: expected ‘;’ before ‘len’ _sane.c:403: error: ‘Imaging’ undeclared (first use in this function) _sane.c:403: error: expected ‘;’ before ‘im’ _sane.c:404: error: ‘SANE_Parameters’ undeclared (first use in this function) _sane.c:404: error: expected ‘;’ before ‘p’ _sane.c:410: error: expected specifier-qualifier-list before ‘INT16’ _sane.c:416: error: ‘union <anonymous>’ has no member named ‘i16’ _sane.c:420: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:425: error: ‘im’ undeclared (first use in this function) _sane.c:425: error: expected ‘;’ before ‘L’ _sane.c:430: error: ‘st’ undeclared (first use in this function) _sane.c:430: error: ‘SANE_STATUS_GOOD’ undeclared (first use in this function) _sane.c:440: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:440: error: ‘p’ undeclared (first use in this function) _sane.c:441: error: ‘SANE_FRAME_GRAY’ undeclared (first use in this function) _sane.c:449: error: ‘lastlen’ undeclared (first use in this function) _sane.c:449: error: ‘len’ undeclared (first use in this function) _sane.c:450: error: ‘SANE_STATUS_EOF’ undeclared (first use in this function) _sane.c:455: error: ‘buffer’ undeclared (first use in this function) _sane.c:471: warning: implicit declaration of function ‘sane_read’ _sane.c:471: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:475: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:477: warning: return makes pointer from integer without a cast _sane.c:512: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:516: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:518: warning: return makes pointer from integer without a cast _sane.c:544: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:548: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:550: warning: return makes pointer from integer without a cast _sane.c:563: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:570: error: ‘SANE_FRAME_RGB’ undeclared (first use in this function) _sane.c:589: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:593: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:595: warning: return makes pointer from integer without a cast _sane.c:610: error: ‘UINT8’ undeclared (first use in this function) _sane.c:610: error: expected expression before ‘)’ token _sane.c:621: error: expected expression before ‘)’ token _sane.c:670: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:675: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:679: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:681: warning: return makes pointer from integer without a cast _sane.c:688: error: expected expression before ‘)’ token _sane.c:694: error: expected expression before ‘)’ token _sane.c:707: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:727: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:730: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:732: warning: return makes pointer from integer without a cast _sane.c:741: error: ‘SANE_FRAME_RED’ undeclared (first use in this function) _sane.c:744: error: ‘SANE_FRAME_GREEN’ undeclared (first use in this function) _sane.c:747: error: ‘SANE_FRAME_BLUE’ undeclared (first use in this function) _sane.c:751: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:774: error: expected expression before ‘)’ token _sane.c:776: error: expected expression before ‘)’ token _sane.c:794: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:798: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:800: warning: return makes pointer from integer without a cast _sane.c:829: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:834: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:838: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:840: warning: return makes pointer from integer without a cast _sane.c:853: error: expected expression before ‘)’ token _sane.c:854: error: expected expression before ‘)’ token _sane.c:871: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:885: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:891: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:892: warning: return makes pointer from integer without a cast _sane.c:895: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:899: warning: return makes pointer from integer without a cast _sane.c:906: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:911: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:913: warning: return makes pointer from integer without a cast _sane.c:917: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c: In function ‘PySane_init’: _sane.c:1128: error: ‘SANE_Status’ undeclared (first use in this function) _sane.c:1128: error: expected ‘;’ before ‘st’ _sane.c:1129: error: ‘SANE_Int’ undeclared (first use in this function) _sane.c:1129: error: expected ‘;’ before ‘version’ _sane.c:1135: error: ‘st’ undeclared (first use in this function) _sane.c:1135: warning: implicit declaration of function ‘sane_init’ _sane.c:1135: error: ‘version’ undeclared (first use in this function) _sane.c:1136: warning: return makes pointer from integer without a cast _sane.c:1137: warning: implicit declaration of function ‘SANE_VERSION_MAJOR’ _sane.c:1138: warning: implicit declaration of function ‘SANE_VERSION_MINOR’ _sane.c:1138: warning: implicit declaration of function ‘SANE_VERSION_BUILD’ _sane.c: In function ‘PySane_exit’: _sane.c:1147: warning: implicit declaration of function ‘sane_exit’ _sane.c: In function ‘PySane_get_devices’: _sane.c:1155: error: ‘SANE_Device’ undeclared (first use in this function) _sane.c:1155: error: ‘devlist’ undeclared (first use in this function) _sane.c:1156: error: ‘dev’ undeclared (first use in this function) _sane.c:1157: error: ‘SANE_Status’ undeclared (first use in this function) _sane.c:1157: error: expected ‘;’ before ‘st’ _sane.c:1167: error: ‘st’ undeclared (first use in this function) _sane.c:1167: warning: implicit declaration of function ‘sane_get_devices’ _sane.c:1169: warning: return makes pointer from integer without a cast _sane.c: In function ‘PySane_open’: _sane.c:1188: error: ‘SANE_Status’ undeclared (first use in this function) _sane.c:1188: error: expected ‘;’ before ‘st’ _sane.c:1197: error: ‘st’ undeclared (first use in this function) _sane.c:1197: warning: implicit declaration of function ‘sane_open’ _sane.c:1197: error: ‘SaneDevObject’ has no member named ‘h’ _sane.c:1202: warning: return makes pointer from integer without a cast _sane.c: In function ‘PySane_OPTION_IS_ACTIVE’: _sane.c:1210: error: ‘SANE_Int’ undeclared (first use in this function) _sane.c:1210: error: expected ‘;’ before ‘cap’ _sane.c:1215: error: ‘cap’ undeclared (first use in this function) _sane.c:1216: warning: implicit declaration of function ‘SANE_OPTION_IS_ACTIVE’ _sane.c: In function ‘PySane_OPTION_IS_SETTABLE’: _sane.c:1222: error: ‘SANE_Int’ undeclared (first use in this function) _sane.c:1222: error: expected ‘;’ before ‘cap’ _sane.c:1227: error: ‘cap’ undeclared (first use in this function) _sane.c:1228: warning: implicit declaration of function ‘SANE_OPTION_IS_SETTABLE’ _sane.c: In function ‘init_sane’: _sane.c:1268: error: ‘SANE_INFO_INEXACT’ undeclared (first use in this function) _sane.c:1269: error: ‘SANE_INFO_RELOAD_OPTIONS’ undeclared (first use in this function) _sane.c:1270: error: ‘SANE_INFO_RELOAD_PARAMS’ undeclared (first use in this function) _sane.c:1272: error: ‘SANE_FRAME_GRAY’ undeclared (first use in this function) _sane.c:1273: error: ‘SANE_FRAME_RGB’ undeclared (first use in this function) _sane.c:1274: error: ‘SANE_FRAME_RED’ undeclared (first use in this function) _sane.c:1275: error: ‘SANE_FRAME_GREEN’ undeclared (first use in this function) _sane.c:1276: error: ‘SANE_FRAME_BLUE’ undeclared (first use in this function) _sane.c:1278: error: ‘SANE_CONSTRAINT_NONE’ undeclared (first use in this function) _sane.c:1279: error: ‘SANE_CONSTRAINT_RANGE’ undeclared (first use in this function) _sane.c:1280: error: ‘SANE_CONSTRAINT_WORD_LIST’ undeclared (first use in this function) _sane.c:1281: error: ‘SANE_CONSTRAINT_STRING_LIST’ undeclared (first use in this function) _sane.c:1283: error: ‘SANE_TYPE_BOOL’ undeclared (first use in this function) _sane.c:1284: error: ‘SANE_TYPE_INT’ undeclared (first use in this function) _sane.c:1285: error: ‘SANE_TYPE_FIXED’ undeclared (first use in this function) _sane.c:1286: error: ‘SANE_TYPE_STRING’ undeclared (first use in this function) _sane.c:1287: error: ‘SANE_TYPE_BUTTON’ undeclared (first use in this function) _sane.c:1288: error: ‘SANE_TYPE_GROUP’ undeclared (first use in this function) _sane.c:1290: error: ‘SANE_UNIT_NONE’ undeclared (first use in this function) _sane.c:1291: error: ‘SANE_UNIT_PIXEL’ undeclared (first use in this function) _sane.c:1292: error: ‘SANE_UNIT_BIT’ undeclared (first use in this function) _sane.c:1293: error: ‘SANE_UNIT_MM’ undeclared (first use in this function) _sane.c:1294: error: ‘SANE_UNIT_DPI’ undeclared (first use in this function) _sane.c:1295: error: ‘SANE_UNIT_PERCENT’ undeclared (first use in this function) _sane.c:1296: error: ‘SANE_UNIT_MICROSECOND’ undeclared (first use in this function) _sane.c:1298: error: ‘SANE_CAP_SOFT_SELECT’ undeclared (first use in this function) _sane.c:1299: error: ‘SANE_CAP_HARD_SELECT’ undeclared (first use in this function) _sane.c:1300: error: ‘SANE_CAP_SOFT_DETECT’ undeclared (first use in this function) _sane.c:1301: error: ‘SANE_CAP_EMULATED’ undeclared (first use in this function) _sane.c:1302: error: ‘SANE_CAP_AUTOMATIC’ undeclared (first use in this function) _sane.c:1303: error: ‘SANE_CAP_INACTIVE’ undeclared (first use in this function) _sane.c:1304: error: ‘SANE_CAP_ADVANCED’ undeclared (first use in this function) _sane.c:1307: error: ‘SANE_Word’ undeclared (first use in this function) error: command '/Developer/usr/bin/llvm-gcc-4.2' failed with exit status 1
Any suggestions. Or is there someone who could build a port for it?
Regards
Change History (1)
comment:1 Changed 13 years ago by jmroot (Joshua Root)
Summary: | py-sane → RFP: py-sane |
---|---|
Version: | 2.0.1 |
Note: See
TracTickets for help on using
tickets.