owncloud / client

🖥️ Desktop Syncing Client for ownCloud
GNU General Public License v2.0
1.4k stars 664 forks source link

owncloud Crush when build client for macOs #1204

Closed medamine-abbadi closed 10 years ago

medamine-abbadi commented 10 years ago

when I try to build owncloud-client for mac os. it compile correctly but when i run it he crush with illegal instruction 4.

danimo commented 10 years ago

It works here. Please describe exactly what you have done when building, and maybe the output of otool -l on the binary.

medamine-abbadi commented 10 years ago

When i run application from command line, I get crush with error : illegal instruction 4.

Output of otool -l : Load command 0 cmd LC_SEGMENT_64 cmdsize 72 segname PAGEZERO vmaddr 0x0000000000000000 vmsize 0x0000000100000000 fileoff 0 filesize 0 maxprot 0x00000000 initprot 0x00000000 nsects 0 flags 0x0 Load command 1 cmd LC_SEGMENT_64 cmdsize 712 segname TEXT vmaddr 0x0000000100000000 vmsize 0x00000000000de000 fileoff 0 filesize 909312 maxprot 0x00000007 initprot 0x00000005 nsects 8 flags 0x0 Section sectname text segname TEXT addr 0x0000000100004500 size 0x0000000000069e0b offset 17664 align 2^4 (16) reloff 0 nreloc 0 flags 0x80000400 reserved1 0 reserved2 0 Section sectname stubs segname TEXT addr 0x000000010006e30c size 0x0000000000002d24 offset 451340 align 2^1 (2) reloff 0 nreloc 0 flags 0x80000408 reserved1 0 (index into indirect symbol table) reserved2 6 (size of stubs) Section sectname stub_helper segname TEXT addr 0x0000000100071030 size 0x00000000000021d0 offset 462896 align 2^2 (4) reloff 0 nreloc 0 flags 0x80000400 reserved1 0 reserved2 0 Section sectname gcc_except_tab segname TEXT addr 0x0000000100073200 size 0x00000000000148c8 offset 471552 align 2^2 (4) reloff 0 nreloc 0 flags 0x00000000 reserved1 0 reserved2 0 Section sectname cstring segname TEXT addr 0x0000000100087ac8 size 0x00000000000044f4 offset 555720 align 2^0 (1) reloff 0 nreloc 0 flags 0x00000002 reserved1 0 reserved2 0 Section sectname const segname TEXT addr 0x000000010008bfc0 size 0x000000000003e5a5 offset 573376 align 2^4 (16) reloff 0 nreloc 0 flags 0x00000000 reserved1 0 reserved2 0 Section sectname unwind_info segname TEXT addr 0x00000001000ca565 size 0x00000000000017a8 offset 828773 align 2^0 (1) reloff 0 nreloc 0 flags 0x00000000 reserved1 0 reserved2 0 Section sectname __eh_frame segname TEXT addr 0x00000001000cbd10 size 0x00000000000122e8 offset 834832 align 2^3 (8) reloff 0 nreloc 0 flags 0x00000000 reserved1 0 reserved2 0 Load command 2 cmd LC_SEGMENT_64 cmdsize 712 segname DATA vmaddr 0x00000001000de000 vmsize 0x0000000000008000 fileoff 909312 filesize 32768 maxprot 0x00000007 initprot 0x00000003 nsects 8 flags 0x0 Section sectname got segname DATA addr 0x00000001000de000 size 0x0000000000000138 offset 909312 align 2^3 (8) reloff 0 nreloc 0 flags 0x00000006 reserved1 1926 (index into indirect symbol table) reserved2 0 Section sectname nl_symbol_ptr segname DATA addr 0x00000001000de138 size 0x0000000000000010 offset 909624 align 2^3 (8) reloff 0 nreloc 0 flags 0x00000006 reserved1 1965 (index into indirect symbol table) reserved2 0 Section sectname la_symbol_ptr segname DATA addr 0x00000001000de148 size 0x0000000000003c30 offset 909640 align 2^3 (8) reloff 0 nreloc 0 flags 0x00000007 reserved1 1967 (index into indirect symbol table) reserved2 0 Section sectname mod_init_func segname DATA addr 0x00000001000e1d78 size 0x0000000000000020 offset 925048 align 2^3 (8) reloff 0 nreloc 0 flags 0x00000009 reserved1 0 reserved2 0 Section sectname const segname DATA addr 0x00000001000e1da0 size 0x0000000000003c58 offset 925088 align 2^4 (16) reloff 0 nreloc 0 flags 0x00000000 reserved1 0 reserved2 0 Section sectname data segname DATA addr 0x00000001000e5a00 size 0x0000000000000250 offset 940544 align 2^4 (16) reloff 0 nreloc 0 flags 0x00000000 reserved1 0 reserved2 0 Section sectname bss segname DATA addr 0x00000001000e5c50 size 0x0000000000000021 offset 0 align 2^3 (8) reloff 0 nreloc 0 flags 0x00000001 reserved1 0 reserved2 0 Section sectname common segname DATA addr 0x00000001000e5c71 size 0x0000000000000002 offset 0 align 2^0 (1) reloff 0 nreloc 0 flags 0x00000001 reserved1 0 reserved2 0 Load command 3 cmd LC_SEGMENT_64 cmdsize 72 segname __LINKEDIT vmaddr 0x00000001000e6000 vmsize 0x0000000000095000 fileoff 942080 filesize 607636 maxprot 0x00000007 initprot 0x00000001 nsects 0 flags 0x0 Load command 4 cmd LC_DYLD_INFO_ONLY cmdsize 48 rebase_off 942080 rebase_size 424 bind_off 942504 bind_size 16640 weak_bind_off 959144 weak_bind_size 51368 lazy_bind_off 1010512 lazy_bind_size 37264 export_off 1047776 export_size 53240 Load command 5 cmd LC_SYMTAB cmdsize 24 symoff 1103568 nsyms 11318 stroff 1300228 strsize 249488 Load command 6 cmd LC_DYSYMTAB cmdsize 80 ilocalsym 0 nlocalsym 8403 iextdefsym 8403 nextdefsym 1795 iundefsym 10198 nundefsym 1120 tocoff 0 ntoc 0 modtaboff 0 nmodtab 0 extrefsymoff 0 nextrefsyms 0 indirectsymoff 1284656 nindirectsyms 3893 extreloff 0 nextrel 0 locreloff 0 nlocrel 0 Load command 7 cmd LC_LOAD_DYLINKER cmdsize 32 name /usr/lib/dyld (offset 12) Load command 8 cmd LC_UUID cmdsize 24 uuid D3B5638D-EBEC-3150-AB92-02E095455066 Load command 9 cmd LC_VERSION_MIN_MACOSX cmdsize 16 version 10.8 sdk 10.8 Load command 10 cmd LC_SOURCE_VERSION cmdsize 16 version 0.0 Load command 11 cmd LC_MAIN cmdsize 24 entryoff 18128 stacksize 0 Load command 12 cmd LC_LOAD_DYLIB cmdsize 96 name @executable_path/../Frameworks/QtWebKit.framework/Versions/4/QtWebKit (offset 24) time stamp 2 Wed Dec 31 16:00:02 1969 current version 4.9.4 compatibility version 4.9.0 Load command 13 cmd LC_LOAD_DYLIB cmdsize 104 name @executable_path/../Frameworks/QtXmlPatterns.framework/Versions/4/QtXmlPatterns (offset 24) time stamp 2 Wed Dec 31 16:00:02 1969 current version 4.8.5 compatibility version 4.8.0 Load command 14 cmd LC_LOAD_DYLIB cmdsize 88 name @executable_path/../Frameworks/QtGui.framework/Versions/4/QtGui (offset 24) time stamp 2 Wed Dec 31 16:00:02 1969 current version 4.8.5 compatibility version 4.8.0 Load command 15 cmd LC_LOAD_DYLIB cmdsize 96 name @executable_path/../Frameworks/QtTest.framework/Versions/4/QtTest (offset 24) time stamp 2 Wed Dec 31 16:00:02 1969 current version 4.8.5 compatibility version 4.8.0 Load command 16 cmd LC_LOAD_DYLIB cmdsize 88 name @executable_path/../Frameworks/QtXml.framework/Versions/4/QtXml (offset 24) time stamp 2 Wed Dec 31 16:00:02 1969 current version 4.8.5 compatibility version 4.8.0 Load command 17 cmd LC_LOAD_DYLIB cmdsize 96 name @executable_path/../Frameworks/QtNetwork.framework/Versions/4/QtNetwork (offset 24) time stamp 2 Wed Dec 31 16:00:02 1969 current version 4.8.5 compatibility version 4.8.0 Load command 18 cmd LC_LOAD_DYLIB cmdsize 96 name @executable_path/../Frameworks/QtCore.framework/Versions/4/QtCore (offset 24) time stamp 2 Wed Dec 31 16:00:02 1969 current version 4.8.5 compatibility version 4.8.0 Load command 19 cmd LC_LOAD_DYLIB cmdsize 80 name @executable_path/../MacOS/libmycloudmixsync.0.dylib (offset 24) time stamp 2 Wed Dec 31 16:00:02 1969 current version 1.4.1 compatibility version 0.0.0 Load command 20 cmd LC_LOAD_DYLIB cmdsize 72 name @executable_path/../MacOS/libocsync.0.dylib (offset 24) time stamp 2 Wed Dec 31 16:00:02 1969 current version 0.2.1 compatibility version 0.0.0 Load command 21 cmd LC_LOAD_DYLIB cmdsize 56 name /usr/lib/libSystem.B.dylib (offset 24) time stamp 2 Wed Dec 31 16:00:02 1969 current version 169.3.0 compatibility version 1.0.0 Load command 22 cmd LC_LOAD_DYLIB cmdsize 80 name @executable_path/../MacOS/libqtkeychain.0.2.0.dylib (offset 24) time stamp 2 Wed Dec 31 16:00:02 1969 current version 0.2.0 compatibility version 0.0.0 Load command 23 cmd LC_LOAD_DYLIB cmdsize 104 name /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (offset 24) time stamp 2 Wed Dec 31 16:00:02 1969 current version 57.0.0 compatibility version 1.0.0 Load command 24 cmd LC_LOAD_DYLIB cmdsize 56 name /usr/lib/libstdc++.6.dylib (offset 24) time stamp 2 Wed Dec 31 16:00:02 1969 current version 56.0.0 compatibility version 7.0.0 Load command 25 cmd LC_FUNCTION_STARTS cmdsize 16 dataoff 1101016 datasize 2248 Load command 26 cmd LC_DATA_IN_CODE cmdsize 16 dataoff 1103264 datasize 0 Load command 27 cmd LC_DYLIB_CODE_SIGN_DRS cmdsize 16 dataoff 1103264 datasize 304

danimo commented 10 years ago

You did not answer my question. If you want help, please follow the instructions I gave above.

medamine-abbadi commented 10 years ago

download the source of client Install dependencies with Homebrew from repository of owncloud : brew tap owncloud/owncloud Create folder ocsync-build and run cmake -DCMAKE_BUILD_TYPE="debug" ../ocsync and make Create folder mirall-build and run cake -DCMAKE_BUILD_TYPE="Debug" ../mirall -DCSYNC_BUILD_PATH= ocsync-build_path -DCSYNC_INCLUDE_PATH=ocsync_path/src then make and make package I compiled client for windows and linux and he work fine the probleme only in macOs. Thank you