Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Application unexpectantly quit  (Read 3396 times)

0 Members and 1 Guest are viewing this topic.

Gan

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Application unexpectantly quit
« 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?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: Application unexpectantly quit
« Reply #1 on: February 14, 2013, 02:37:37 am »
You need to give more details on what you gave him (binaries, frameworks, etc) and what exactly didn't work (errors, etc.).
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Gan

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Re: Application unexpectantly quit
« Reply #2 on: February 14, 2013, 04:59:51 am »
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.

Gan

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Re: Application unexpectantly quit
« Reply #3 on: February 14, 2013, 06:39:49 am »
He had 10.7.

So I recompiled for 10.7 and now it shows this error for him:

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: Application unexpectantly quit
« Reply #4 on: February 14, 2013, 04:01:09 pm »
post the report here.
SFML / OS X developer

Gan

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Re: Application unexpectantly quit
« Reply #5 on: February 14, 2013, 08:43:07 pm »
Quote
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.

Gan

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Re: Application unexpectantly quit
« Reply #6 on: February 16, 2013, 07:21:52 am »
Just tried with dylibs. Also errors. But has dylib errors.

Gan

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Re: Application unexpectantly quit
« Reply #7 on: February 16, 2013, 08:53:47 am »
Figured it out. Had to set the deployment target in CMake to 10.7.

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: Application unexpectantly quit
« Reply #8 on: February 16, 2013, 01:20:49 pm »
good to know !
SFML / OS X developer

 

anything