dhoerl / DHlibxls

Framework to read Excel xls spreadsheets
271 stars 86 forks source link

some problems when run on mips #12

Closed jasonwang123 closed 11 years ago

jasonwang123 commented 11 years ago

i had run it on arm,it works ok;

then i run it on mips,have some problem,i compiler libxls-1.3.1\cplusplus*.cpp,and run,below is the print,can you help to fix it? my compiler:mipsel-linux-gcc 4.1.2 glibc 2.6.1

[root@Ingenic /root]# ./testXlsRead

ole2_open /tmp/xls.xls ole2_open: /tmp/xls.xls ==== OLE HEADER ==== verminor: 3E verdll: 3 sect len: 200 (512) mini len: 40 (64) Fat sect.: 1 Dir Start: 1 Mini Cutoff: 4096 MiniFat Start: 2 Count MFat: 1 Dif start: FFFFFFFE Count Dif: 0 Fat Size: 512 (0x200) SecID[0]=-3 SecID[1]=80 SecID[2]=-2 SecID[3]=81 SecID[4]=5 SecID[5]=6 SecID[6]=7 SecID[7]=8 SecID[8]=9 SecID[9]=10 SecID[10]=11 SecID[11]=12 SecID[12]=13 SecID[13]=14 SecID[14]=15 SecID[15]=16 SecID[16]=17 SecID[17]=18 SecID[18]=19 SecID[19]=20 SecID[20]=21 SecID[21]=22 SecID[22]=23 SecID[23]=24 SecID[24]=25 SecID[25]=26 SecID[26]=27 SecID[27]=28 SecID[28]=29 SecID[29]=30 SecID[30]=31 SecID[31]=32 SecID[32]=33 SecID[33]=34 SecID[34]=35 SecID[35]=36 SecID[36]=37 SecID[37]=38 SecID[38]=39 SecID[39]=40 SecID[40]=41 SecID[41]=42 SecID[42]=43 SecID[43]=44 SecID[44]=45 SecID[45]=46 SecID[46]=47 SecID[47]=48 SecID[48]=49 SecID[49]=50 SecID[50]=51 SecID[51]=-2 SecID[52]=53 SecID[53]=54 SecID[54]=55 SecID[55]=56 SecID[56]=57 SecID[57]=58 SecID[58]=59 SecID[59]=60 SecID[60]=61 SecID[61]=62 SecID[62]=63 SecID[63]=64 SecID[64]=65 SecID[65]=66 SecID[66]=67 SecID[67]=68 SecID[68]=69 SecID[69]=70 SecID[70]=71 SecID[71]=72 SecID[72]=73 SecID[73]=74 SecID[74]=75 SecID[75]=76 SecID[76]=77 SecID[77]=78 SecID[78]=79 SecID[79]=-2 SecID[80]=-2 SecID[81]=-2 SSecID[0]=-2 SSecID[1]=2 SSecID[2]=3 SSecID[3]=4 SSecID[4]=-2 SSecID[5]=6 SSecID[6]=7 SSecID[7]=8 SSecID[8]=-2 SSecID[9]=10

SSecID[10]=-2

ole2_sopen start=1h

ole2_read (end) start: 1 pos: 128 cfat: 0 size: -1 fatpos: 80 bufsize: 512 eof: 0 OLE NAME: (null) count=0 OLE NAME: (null) count=0

OLE TYPE: root file=0

ole2_read (end) start: 1 pos: 256 cfat: 0 size: -1 fatpos: 80 bufsize: 512 eof: 0 OLE NAME: (null) count=1 OLE NAME: (null) count=1

OLE TYPE: user file=1

name: (null) (size=18 [c= ]) bsize 18 type 2 flag 1 left 2 right 4 child FFFFFFFF guid 0000-0000-0000-0000 0000-0000-0000-0000 user flag 0000 sstart 0052

size 14029

ole2_read (end) start: 1 pos: 384 cfat: 0 size: -1 fatpos: 80 bufsize: 512 eof: 0 OLE NAME: (null) count=2 OLE NAME: (null) count=2

OLE TYPE: user file=2

name: (null) (size=10 [c= ]) bsize 10 type 2 flag 1 left FFFFFFFF right 6 child FFFFFFFF guid 0000-0000-0000-0000 0000-0000-0000-0000 user flag 0000 sstart 0000

size 0020

ole2_read (end) start: 1 pos: 0 cfat: 1 size: -1 fatpos: -2 bufsize: 512 eof: 0 OLE NAME: (null) count=3 OLE NAME: (null) count=3

OLE TYPE: user file=3

name: (null) (size=24 [c= ]) bsize 24 type 2 flag 0 left FFFFFFFF right FFFFFFFF child FFFFFFFF guid 0000-0000-0000-0000 0000-0000-0000-0000 user flag 0000 sstart 0004

size 24554

ole2_read (end) start: 1 pos: 128 cfat: 1 size: -1 fatpos: -2 bufsize: 512 eof: 0 OLE NAME: (null) count=4 OLE NAME: (null) count=4

OLE TYPE: user file=4

name: (null) (size=40 [c= ]) bsize 40 type 2 flag 1 left 3 right 5 child FFFFFFFF guid 0000-0000-0000-0000 0000-0000-0000-0000 user flag 0000 sstart 0001

size 0208

ole2_read (end) start: 1 pos: 256 cfat: 1 size: -1 fatpos: -2 bufsize: 512 eof: 0 OLE NAME: (null) count=5 OLE NAME: (null) count=5

OLE TYPE: user file=5

name: (null) (size=56 [c= ]) bsize 56 type 2 flag 0 left FFFFFFFF right FFFFFFFF child FFFFFFFF guid 0000-0000-0000-0000 0000-0000-0000-0000 user flag 0000 sstart 0005

size 0240

ole2_read (end) start: 1 pos: 384 cfat: 1 size: -1 fatpos: -2 bufsize: 512 eof: 0 OLE NAME: (null) count=6 OLE NAME: (null) count=6

OLE TYPE: user file=6

name: (null) (size=18 [c= ]) bsize 18 type 2 flag 0 left FFFFFFFF right FFFFFFFF child FFFFFFFF guid 0000-0000-0000-0000 0000-0000-0000-0000 user flag 0000 sstart 0009

size 0111

ole2_read (end) start: 1 pos: 512 cfat: 1 size: -1 fatpos: -2 bufsize: 512 eof: 1 OLE NAME: (null) count=7

OLE NAME: (null) count=7

ole2_fopen SummaryInformation str (nil) str (nil) str (nil) str (nil) str (nil) str (nil)

str (nil)

ole2_fopen DocumentSummaryInformation str (nil) str (nil) str (nil) str (nil) str (nil) str (nil)

str (nil)

ole2_fopen Workbook str (nil) str (nil) str (nil) str (nil) str (nil) str (nil)

str (nil)

ole2_fopen Book str (nil) str (nil) str (nil) str (nil) str (nil) str (nil) str (nil) Workbook not found terminate called after throwing an instance of 'std::string' Aborted

JanX2 commented 11 years ago

@jasonwang123 You have posted this in the issues of a repo for an ObjC wrapper. AFAIK MIPS is not a platform you can use ObjC on without huge hurdles… you probably meant this for libxls!

dhoerl commented 11 years ago

Please post this on the SourceForge libxls platform, and upload the same /tmp/xls.xls file.

jasonwang123 commented 11 years ago

sorry, it's my fault,i use the libiconv but i didn't give the path to the compiler,now it works ok,thank you