i would like create a directory in "QT create IDE" with the following lines. QString test = QDir::homePath()+"/Documents/Coder"; QDir dir(test); if (!dir.exists()) { dir.mkpath("."); } This works fine on my computer, but give i the ap

Good morning,



i would like create a directory in "QT create IDE" with the following lines.



QString test = QDir::homePath()+"/Documents/Coder";

QDir dir(test);

if (!dir.exists()) {

dir.mkpath(".");

}



This works fine on my computer, but give i the app my friend to test, the app don't run with the following error. What goes wrong?



Process: coder [707]

Path: /Applications/coder.app/Contents/MacOS/coder

Identifier: com.zschorsch.coder

Version: 0

Code Type: X86-64 (Native)

Parent Process: ??? [1]

Responsible: coder [707]

User ID: 501



Date/Time: 2017-11-14 17:19:42.683 +0100

OS Version: Mac OS X 10.13.1 (17B48)

Report Version: 12

Anonymous UUID: D8A1A600-6375-870F-C257-8E8CFC849B90





Time Awake Since Boot: 170 seconds



System Integrity Protection: enabled



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/QtWidgets.framework/Versions/5/QtWidgets

Referenced from: /Applications/coder.app/Contents/MacOS/coder

Reason: image not found



Binary Images:

0x10bbd3000 - 0x10bbdaff7 +com.zschorsch.coder (0) <22B061AA-DAD2-32D3-B62D-C5E4AE3EC6DE> /Applications/coder.app/Contents/MacOS/coder

0x114613000 - 0x11465d98f dyld (519.2.1) <CD85EFBA-B9D6-3FD5-B777-A23B2DDEF192> /usr/lib/dyld



Model: iMac14,2, BootROM IM142.0123.B00, 4 processors, Intel Core i7, 3,5 GHz, 32 GB, SMC 2.15f7

Graphics: NVIDIA GeForce GTX 780M, NVIDIA GeForce GTX 780M, PCIe, 4 GB

Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533641465238412D50422020

Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533641465238412D50422020

Memory Module: BANK 0/DIMM1, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533641465238412D50422020

Memory Module: BANK 1/DIMM1, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533641465238412D50422020

AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x111), Broadcom BCM43xx 1.0 (7.77.37.2.1a3)

Bluetooth: Version 6.0.0f1, 3 services, 18 devices, 1 incoming serial ports

Network Service: Ethernet, Ethernet, en0

PCI Card: pci1b21,612, AHCI Controller, Thunderbolt@195,0,0

Serial ATA Device: APPLE SSD SD0128F, 121,33 GB

Serial ATA Device: APPLE HDD ST3000DM001, 3 TB

Serial ATA Device: WDC WD20NPVX-11EA4T0, 2 TB

Serial ATA Device: WDC WD20NPVX-11EA4T0, 2 TB

USB Device: USB 3.0 Bus

USB Device: BRCM20702 Hub

USB Device: Bluetooth USB Host Controller

USB Device: FaceTime HD Camera (Built-in)

USB Device: Keyboard Hub

USB Device: Apple Keyboard

USB Device: USB Optical Mouse

Thunderbolt Bus: iMac, Apple Inc., 23.10

Thunderbolt Device: My Passport Pro, Western Digital, 1, 7.1



Greets Andi

Replies

Looks like your friend Mac misses a library : QtWidgets.framework


Search in your Mac to find where it is and ask friend to check if he/she finds it on his own.

See this Qt web site for info on deploying macOS executables:


http://doc.qt.io/qt-5/osx-deployment.html