SFML community forums
Help => General => Topic started by: Gan on February 14, 2013, 01:21:04 am
-
I made an SFML application with Xcode using frameworks, compiled and sent the binary to a friend. But it won't run for him.
How do I fix this?
-
You need to give more details on what you gave him (binaries, frameworks, etc) and what exactly didn't work (errors, etc.).
-
I compiled a simple application, zipped and sent it to him. It's pretty much the hello world application from the template.
And when you open the app, it just shows a message "Application unexpectantly quit".
Wait a sec, I'm gonna ask him his OS version. Cause I compiled it for OS 10.8.
-
He had 10.7.
So I recompiled for 10.7 and now it shows this error for him:
(http://o.aolcdn.com/hss/storage/fss/cded651e7646e52c07ae85b83049694d/Screen+Shot+2013-02-13+at+10.32.57+PM.png)
-
post the report here.
-
Process: SpaceCraft Designer [53321]
Path: /Users/USER/Downloads/SpaceCraft Designer.app/Contents/MacOS/SpaceCraft Designer
Identifier: MatthewFrench.SpaceCraft-Designer
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: launchd [133]
Date/Time: 2013-02-14 12:40:16.724 -0700
OS Version: Mac OS X 10.7.5 (11G63)
Report Version: 9
Interval Since Last Report: 1604311 sec
Crashes Since Last Report: 46
Per-App Crashes Since Last Report: 6
Anonymous UUID: 7A4B1FD5-37C7-4931-ACD4-2FB925B3CE8A
Crashed Thread: 0
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Application Specific Information:
dyld: launch, loading dependent libraries
Dyld Error Message:
Library not loaded: @executable_path/../Frameworks/SFML.framework/Versions/2.0.0/SFML
Referenced from: /Users/USER/Downloads/SpaceCraft Designer.app/Contents/MacOS/SpaceCraft Designer
Reason: image not found
Binary Images:
0x10e467000 - 0x10e479fff +MatthewFrench.SpaceCraft-Designer (??? - ???) /Users/USER/Downloads/SpaceCraft Designer.app/Contents/MacOS/SpaceCraft Designer
0x10e48a000 - 0x10e490ff7 +org.sfml-dev.sfml-system (2.0.0 - 2.0.0) <4CD10373-6DD8-3AF7-AA8B-25293FEA6357> /Users/USER/Downloads/SpaceCraft Designer.app/Contents/Frameworks/sfml-system.framework/Versions/2.0.0/sfml-system
0x10e49d000 - 0x10e4b9ff7 +org.sfml-dev.sfml-window (2.0.0 - 2.0.0) /Users/USER/Downloads/SpaceCraft Designer.app/Contents/Frameworks/sfml-window.framework/Versions/2.0.0/sfml-window
0x10e4cb000 - 0x10e557fef +org.sfml-dev.sfml-graphics (2.0.0 - 2.0.0) <04674B70-B462-3FF4-84E2-AD1954817D5A> /Users/USER/Downloads/SpaceCraft Designer.app/Contents/Frameworks/sfml-graphics.framework/Versions/2.0.0/sfml-graphics
0x10e59c000 - 0x10e5a8fff +org.sfml-dev.sfml-audio (2.0.0 - 2.0.0) <4AF5C3E0-4911-395E-A0A1-99D1CDD131F5> /Users/USER/Downloads/SpaceCraft Designer.app/Contents/Frameworks/sfml-audio.framework/Versions/2.0.0/sfml-audio
0x10e5b7000 - 0x10e5cbff7 +org.sfml-dev.sfml-network (2.0.0 - 2.0.0) /Users/USER/Downloads/SpaceCraft Designer.app/Contents/Frameworks/sfml-network.framework/Versions/2.0.0/sfml-network
0x7fff6e067000 - 0x7fff6e09bbaf dyld (195.6 - ???) /usr/lib/dyld
0x7fff86950000 - 0x7fff86c69fff com.apple.Foundation (6.7.2 - 833.25) <22AAC369-B63C-3C55-8AC6-C3ECBA44DA7B> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
Model: MacBook5,2, BootROM MB52.0088.B06, 2 processors, Intel Core 2 Duo, 2 GHz, 2 GB, SMC 1.38f5
Graphics: NVIDIA GeForce 9400M, NVIDIA GeForce 9400M, PCI, 256 MB
Memory Module: BANK 0/DIMM0, 1 GB, DDR2 SDRAM, 667 MHz, 0x7F7F7F0B00000000, 0x4E5431475436345548384430464E2D334320
Memory Module: BANK 1/DIMM0, 1 GB, DDR2 SDRAM, 667 MHz, 0x7F7F7F0B00000000, 0x4E5431475436345548384430464E2D334320
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8E), Broadcom BCM43xx 1.0 (5.106.198.19.22)
Bluetooth: Version 4.0.8f17, 2 service, 18 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en1
Serial ATA Device: FUJITSU MHZ2120BH FFS G1, 120.03 GB
Serial ATA Device: MATSHITADVD-R UJ867A
USB Device: Built-in iSight, apple_vendor_id, 0x8501, 0x24400000 / 2
USB Device: USB Optical Mouse, 0x0461 (Primax Electronics), 0x4d0f, 0x04100000 / 4
USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x0229, 0x04600000 / 3
USB Device: IR Receiver, apple_vendor_id, 0x8242, 0x04500000 / 2
USB Device: BRCM2046 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0x06100000 / 2
USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8215, 0x06110000 / 4
Apparently it's unable to load the library.
-
Just tried with dylibs. Also errors. But has dylib errors.
-
Figured it out. Had to set the deployment target in CMake to 10.7.
-
good to know !