abreheret / PixelAnnotationTool

Annotate quickly images.
GNU Lesser General Public License v3.0
1.41k stars 307 forks source link

Cannot install in Mac OSX Mojave 10.14.6 #56

Open PrithivirajDamodaran opened 4 years ago

PrithivirajDamodaran commented 4 years ago

.dmg crashes

jeffreyameyer commented 4 years ago

Related... I cannot seem to install it on Catalina 10.15.4.

I installed opencv using brew, but it appears it still cannot see the library. I've tried figuring out a workaround (likely some PATH setting, but am having a hard time working that out.

jeffreyameyer commented 4 years ago

Perhaps related: I cannot install in Mac OSX Catalina 10.15.4.

I installed opencv using brew, but the crash log indicates it cannot find an opencv library (I think). I also believe it's something related to my PATH setup, but I'm having a hard time running that down.

Here's a line from the crash error & the entire log.

Dyld Error Message:
  Library not loaded: @rpath/libopencv_imgproc.4.2.dylib
Process:               PixelAnnotationTool [1384]
Path:                  /Volumes/VOLUME/*/PixelAnnotationTool.app/Contents/MacOS/PixelAnnotationTool
Identifier:            ???
Version:               ??? (???)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           PixelAnnotationTool [1384]
User ID:               501

Date/Time:             2020-05-20 12:09:30.409 -0700
OS Version:            Mac OS X 10.15.4 (19E287)
Report Version:        12
Anonymous UUID:        7C93DD3C-DDA8-C697-D5D7-876421753ACD

Time Awake Since Boot: 190 seconds

System Integrity Protection: enabled

Notes:                 Translocated Process

Crashed Thread:        0

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    DYLD, [0x1] Library missing

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
  Library not loaded: @rpath/libopencv_imgproc.4.2.dylib
  Referenced from: /private/var/folders/kp/bcrkjzxs6q7b7xbtvddw2jxw0000gn/T/AppTranslocation/B693A527-D446-426E-99E2-5596C6D3A54A/d/PixelAnnotationTool.app/Contents/Frameworks/libopencv_gapi.4.2.dylib
  Reason: image not found

Binary Images:
       0x10b08b000 -        0x10b0b8ff3 + (??? - ???) <92C5E9EE-A377-37D3-8538-D8A672842B7E> /var/folders/*/PixelAnnotationTool.app/Contents/MacOS/PixelAnnotationTool
       0x10b0cc000 -        0x10b50afff +org.qt-project.QtWidgets (5.13 - 5.13.2) <3A605C49-75C9-3FB6-AB17-850EE358546D> /var/folders/*/PixelAnnotationTool.app/Contents/Frameworks/QtWidgets.framework/Versions/5/QtWidgets
       0x10b675000 -        0x10b82dfe7 +libopencv_gapi.4.2.dylib (0) <3DC5447F-00C0-3C70-BF42-227FC000567F> /var/folders/*/PixelAnnotationTool.app/Contents/Frameworks/libopencv_gapi.4.2.dylib
       0x10b857000 -        0x10b8cffff +libopencv_stitching.4.2.dylib (0) <E7EAC8FF-0A95-3A63-9745-80B435D7F314> /var/folders/*/PixelAnnotationTool.app/Contents/Frameworks/libopencv_stitching.4.2.dylib
       0x10b8eb000 -        0x10b926ffb +libopencv_aruco.4.2.dylib (0) <43E56DAD-5EE4-3C12-8AA7-1B37C60D5D47> /var/folders/*/PixelAnnotationTool.app/Contents/Frameworks/libopencv_aruco.4.2.dylib
       0x10b957000 -        0x10b96eff3 +libopencv_bgsegm.4.2.dylib (0) <26EA9F86-08EA-3FA3-8304-E1D1DC1ECC83> /var/folders/*/PixelAnnotationTool.app/Contents/Frameworks/libopencv_bgsegm.4.2.dylib
       0x10b977000 -        0x10b9a5ff7 +libopencv_bioinspired.4.2.dylib (0) <8CFFC13C-AEE4-3288-9588-28A1F63E1562> /var/folders/*/PixelAnnotationTool.app/Contents/Frameworks/libopencv_bioinspired.4.2.dylib
       0x10b9b5000 -        0x10ba39ff3 +libopencv_ccalib.4.2.dylib (0) <FE039F48-AD93-301C-896F-755E4738C2A6> 
jeffreyameyer commented 4 years ago

Also... I'm wondering if there's an OpenCV conflict on my machine that may not be helping here:

% brew list --versions opencv
opencv 4.3.0_2

% opencv_version 
4.2.0
abreheret commented 4 years ago

Read this issue #23 can that solve the problem?

jeffreyameyer commented 4 years ago

c'est bon!

the only errors encountered with https://github.com/abreheret/PixelAnnotationTool/issues/23#issuecomment-520884964 were: a) mildly upgrading the path to account for version changes in Qt and b) ; )

232: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
  ...font-size:10pt;\">Author: </span><span style=\" font-size:10pt; font-weight:600;\">Amaury Br<E9>h<E9>ret</span></p>"
                                                                                                 ^~~~ ~~~~
jeffreyameyer commented 4 years ago

sorry - not sure how I missed that issue on the first pass!