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

Author Topic: Template game can't run on other Mac  (Read 1999 times)

0 Members and 1 Guest are viewing this topic.

ZwodahS

  • Newbie
  • *
  • Posts: 3
    • View Profile
Template game can't run on other Mac
« on: December 17, 2013, 09:26:20 am »
Hi , I am using SFML2.1. I usually use clang++ to compile my stuffs on my mac. I need to export it as a .app recently so I started using XCode to package the stuffs.

I followed the tutorial and also search the net for informations and managed to get the game running on my mac. However, when I export it out as a .app, it can run on my mac but not on my friend's mac. He got a EXC_BAD_ACCESS (SIGSEGV) when running the game. I am not sure what is the problem.

I also tried creating a basic app by using the default template. It didn't work too.

I think the problem is with the configuration of the build but I can't find any resources on how to fix this problem. I hope someone on the forum can advise me on how to fix this problem.

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: Template game can't run on other Mac
« Reply #1 on: December 23, 2013, 04:47:53 pm »
You need to find more details about the error. Try launching the app from the Terminal; maybe also look in the Console.
SFML / OS X developer

ccleung6

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Template game can't run on other Mac
« Reply #2 on: December 24, 2013, 04:45:05 am »
Have you add the frameworks or dylib to your app bundle?

yourgame.app/Contents/Frameworks/dylibs or frameworks

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: Template game can't run on other Mac
« Reply #3 on: December 24, 2013, 09:15:30 am »
Assuming he did follow the tutorial correctly, those things are automatically copied when you compile a project generated with the SFML templates.
SFML / OS X developer