0
我想構建一個跨平臺的應用程序,它將利用imagemagick庫來對選定的圖像執行各種操作。 我從終端安裝在圖書館,我所看到的, 庫文件位於於:/ opt/local/lib目錄 ,包括文件於:/ opt /本地/包括/ ImageMagick的用Mac在Qt上設置ImageMagick。 LIBS和INCLUDEPATH
我試圖打開這裏連接的例子如何查看的QImage和QLabel TIFF圖像在QT 4.0
但是當我嘗試編譯它,問題報告窗口。如果我去了Qt應用程序顯示以下信息
Path: /Users/macmini/imageviewer-build-desktop/imageviewer.app/Contents/MacOS/imageviewer
Identifier: imageviewer
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: Qt Creator [25220]
Date/Time: 2010-11-10 20:22:29.852 +0000
OS Version: Mac OS X 10.6.4 (10F569)
Report Version: 6
Interval Since Last Report: 146256 sec
Crashes Since Last Report: 4
Per-App Crashes Since Last Report: 4
Anonymous UUID: 2FA19EA1-D3CE-479B-B074-AB6A297BEFCF
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread: 0
Dyld Error Message:
Library not loaded: /usr/local/lib/libMagick++.4.dylib
Referenced from: /Users/macmini/imageviewer-build-desktop/imageviewer.app/Contents/MacOS/imageviewer
Reason: image not found
Model: Macmini2,1, BootROM MM21.009A.B00, 2 processors, Intel Core 2 Duo, 2 GHz, 2 GB, SMC 1.19f0
Graphics: Intel GMA 950, GMA 950, Built-In, spdisplays_integrated_vram
Memory Module: global_name
AirPort: spairport_wireless_card_type_airport_extreme (0x168C, 0x86), Atheros 5424: 2.0.19.10
Bluetooth: Version 2.3.3f8, 2 service, 19 devices, 1 incoming serial ports
Network Service: Ethernet, Ethernet, en0
Serial ATA Device: Hitachi HTS541612J9SA00, 111.79 GB
Parallel ATA Device: PIONEER DVD-RW DVR-K06
USB Device: 2.4Ghz wireless combo sets, 0x04fc (SUNPLUS TECHNOLOGY CO., LTD.), 0x05d8, 0x1d100000
USB Device: Bluetooth USB Host Controller, 0x05ac (Apple Inc.), 0x8205, 0x7d100000
USB Device: IR Receiver, 0x05ac (Apple Inc.), 0x8240, 0x7d200000
我看到的輸出全部是
Starting /Users/macmini/imageviewer-build-desktop/imageviewer.app/Contents/MacOS/imageviewer...
dyld: Library not loaded: /usr/local/lib/libMagick++.4.dylib
Referenced from: /Users/macmini/imageviewer-build-desktop/imageviewer.app/Contents/MacOS/imageviewer
Reason: image not found
The program has unexpectedly finished.
/Users/macmini/imageviewer-build-desktop/imageviewer.app/Contents/MacOS/imageviewer exited with code 0
的代碼表示圖片沒有找到,但我所看到的,代碼犯規嘗試讀取任何硬編碼的圖像。
任何人都可以幫我設置這個嗎?
我該在哪裏出錯?
我只是想對於位置QT
謝謝
這個錯誤只是說,你的應用程序找不到libMagick ++。4.dylib位於/ usr/local/lib /檢查庫是否存在 – 2010-11-13 11:14:30