BASIC

Author Topic: iOS Compilation Error - Help Please  (Read 2295 times)

Offline aroldo

  • Mr. Polyvector
  • ***
  • Posts: 143
    • View Profile
    • APD Consulting, Inc.
iOS Compilation Error - Help Please
« on: 2012-Jan-18 »
Back in August 2011 DaCarSoft did a wrapper to call iOS  native keyboard in this post http://www.glbasic.com/forum/index.php?topic=6706.0

I am learning Xcode for iOS so be patient with me.

I am trying to compile and run his code on my iPhone, here are the steps I did:

  • I created a GLBasic project called MSG and copied the GLBasic code from DaCar example.
  • created a file called msg.mm and copied the .mm  file.
  • In GLBasic I compiled for the iPhone and copyed the msg.mm file under the XCode folder generated by the GLBasic.
  • I opened the iPhone.xcodeproj in XCode but I can't see the msg.mm.

If I try to compile in XCode I get the following errors:

Undefined symbols for architecture armv7:
  "_iOSMessageBox", referenced from:
      __ZN11__GLBASIC__14__MainGameSub_Ev in libPROGRAM.a(gpc_temp0.o)
  "_GetiOSMessageBoxValues", referenced from:
      __ZN11__GLBASIC__14__MainGameSub_Ev in libPROGRAM.a(gpc_temp0.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Help Please!!!
[a http://apd-games.com/][img http://apd-games.com/images/APDGames135.png][/a]
MacBook Pro OS X El Capitan
XCode Version 7
iPhone 6 running  iOS 9
iPad Mini running  iOS 7.1
Galaxy S5
Dell Latitude Windows 8 Enterprise
Palm Pre, Palm Pre2

Offline trucidare

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1377
  • Bachelor of Fail
    • View Profile
Re: iOS Compilation Error - Help Please
« Reply #1 on: 2012-Jan-18 »
you have to add the .mm file manually to the project copied from your pc everytime you update the .xcodeproj folder
MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC

Offline matchy

  • Prof. Inline
  • *****
  • Posts: 1540
    • View Profile
Re: iOS Compilation Error - Help Please
« Reply #2 on: 2012-Apr-25 »
How do you mean by adding the .mm manually because I can get this to work now, unlike before.

Offline matchy

  • Prof. Inline
  • *****
  • Posts: 1540
    • View Profile
Re: iOS Compilation Error - Help Please
« Reply #3 on: 2012-Apr-27 »
BUMP. Anyone compiled any xcode for GLB lately as I haven't since xcode 3.

The issue is quite urgent.  :'( :'( :'(
« Last Edit: 2012-Apr-27 by matchy »

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10689
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: iOS Compilation Error - Help Please
« Reply #4 on: 2012-May-08 »
Yes. You must drag/drop the .mm files into the xcode project's "source" files.

Offline matchy

  • Prof. Inline
  • *****
  • Posts: 1540
    • View Profile
Re: iOS Compilation Error - Help Please
« Reply #5 on: 2012-May-08 »
As I was able to get a sample going initially I decided to start from scratch and I was able to get it going.  :good: I suppose importing, copying and pasting that was giving me some issues.  :-[