Recent

Author Topic: Cocos2dx for FPC  (Read 4065 times)

Anchovy

  • Newbie
  • Posts: 2
Cocos2dx for FPC
« on: October 09, 2015, 09:40:09 pm »
Hi,
I'm new to FPC/Lazarus, does any one know if this library works with FPC?

https://github.com/HandymanPlus/delphi-cocos2dx/tree/master/cocos2dx

Thaddy

  • Hero Member
  • *****
  • Posts: 19268
  • Glad to be alive.
Re: Cocos2dx for FPC
« Reply #1 on: October 30, 2015, 12:14:05 pm »
Hi,
I'm new to FPC/Lazarus, does any one know if this library works with FPC?

https://github.com/HandymanPlus/delphi-cocos2dx/tree/master/cocos2dx

Probably,

But I have to try it first.
I don't see anything fancy in the code what prevents it.

Try -Mdelphi and compile the lot, I would say.
See where it goes wrong.
You might have to download some DX units from somewhere, but that's it.
objects are fine constructs. You can even initialize them with constructors.

Dibo

  • Hero Member
  • *****
  • Posts: 1057
Re: Cocos2dx for FPC
« Reply #2 on: October 30, 2015, 02:07:56 pm »
I'm interested in these libs too. Tried convert delphi demo project to lazaruz project and fail on:
Code: Pascal  [Select][+][-]
  1. uses
  2.   Cocos2dx.CCEGLView,
  3.   Cocos2dx.CCApplication,
  4.  

Does FPC allow such namespace in uses section?

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12899
  • FPC developer.
Re: Cocos2dx for FPC
« Reply #3 on: October 30, 2015, 02:15:38 pm »
Did you use trunk?

Thaddy

  • Hero Member
  • *****
  • Posts: 19268
  • Glad to be alive.
Re: Cocos2dx for FPC
« Reply #4 on: October 30, 2015, 03:15:57 pm »
Yes, Did You use Trunk? or even the 3 RC2 (which should support this too).

Also: why does it faii, where does it fail?, what's the output? I do not have a clue where to start helping you without the output from the compiler. It is usually very verbose.
objects are fine constructs. You can even initialize them with constructors.

Dibo

  • Hero Member
  • *****
  • Posts: 1057
Re: Cocos2dx for FPC
« Reply #5 on: November 02, 2015, 08:01:22 pm »
Sorry for delay. I'm using FPC 2.6.4

 

TinyPortal © 2005-2018