Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

iOS and MacOS / MAC Fix for initWithCstring->deprecated

Author
Message
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 19th May 2012 03:09
Into the file Core.mm go to line 179 and change this:


in this :



And i hope AppGameKit team will insert it in the new template soon.
Thx and enjoy!

iPhone/iPad Games/Apps : Street Karate Fighter - 90s VideoPokers Simulator - Ball VS Brick - CB RadioBox - Artic
JDforce
20
Years of Service
User Offline
Joined: 27th Jul 2004
Location: Sea of Tranquility
Posted: 7th Sep 2012 19:26
Tried that, but still can´t run anything, xcode won´t build the project, error is:

Undefined symbols for architecture i386:
".objc_class_name_CIImage", referenced from:
pointer-to-literal-objc-class-name in libAGKMac.a(MacCore.o)
"_CVBufferRelease", referenced from:
-[ButtonListener captureImage] in libAGKMac.a(MacCore.o)
"_CVBufferRetain", referenced from:
-[ButtonListener captureOutput:didOutputVideoFrame:withSampleBuffer:fromConnection in libAGKMac.a(MacCore.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

May the 3d force B with U
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 17th Sep 2012 22:45 Edited at: 17th Sep 2012 22:45
I ran into the same problem when I added my own .cpp files.

In your Xcode project, open each of the code files you created ending in .c or .cpp, look over to the far right column and select 'Objective-C++ source' from the 'File Type' drop down under the file name.

I was on vacation, otherwise I would have answered this sooner.

Cheers,
Ancient Lady
AGK Community Tester
JDforce
20
Years of Service
User Offline
Joined: 27th Jul 2004
Location: Sea of Tranquility
Posted: 27th Oct 2012 04:04
MyLady, sorry too for answering until now, I completely concentrated on iOS, but am retaking the Mac versions now that I reached a personal goal on my xCode knowledge.
Going to test next week what you suggest

May the 3d force B with U

Login to post a reply

Server time is: 2024-11-23 08:21:35
Your offset time is: 2024-11-23 08:21:35