Wizcorp / Ejecta-X

A Fast, Open Source JavaScript, Canvas & Audio Implementation
http://wizcorp.github.io/Ejecta-X
185 stars 51 forks source link

Error: Can't Find Script lib/ejecta/ejecta.js #6

Closed YaakovDavis closed 11 years ago

YaakovDavis commented 11 years ago

I get the above in LogCat when trying to run the android project from Eclipse. Next to it I get also: Error: Can't Find Script lib/ejecta/index.js

The screen is blank.

How to fix this?

YaakovDavis commented 11 years ago

Changing lines 35-36 in EJApp.h to the following fixed it:

define EJECTA_BOOT_JS "ejecta.js"

define EJECTA_MAIN_JS "index.js"

3dseals commented 11 years ago

thanks jake I forgot revert the macros after test js

YaakovDavis commented 11 years ago

BTW, I'd like help advancing Ejecta-X.

I already forked the repository, and started examining the code structure.

I have little C++/ObjC experience (my expertise is C#), but I'm willing to put the required effort to bridge the gaps.

I started looking at porting EJBindingHttpRequest, and I have few questions:

  1. Is this an area you're currently working on?
  2. Do you have a recommendation for a c++ lib that might server as a replacement for NSURLConnection?
  3. Do you have general tips/guidelines on converting ObjC to C++?

Regards, Yaakov

3dseals commented 11 years ago

hi Yaakov I'm Glad you plan to porting the code.

here you the following answer:

  1. Is this an area you're currently working on? This is the job working for my former company. and the company agrees to open the source. I just porting the core animation. Now I will continue, if I have times.
  2. Do you have a recommendation for a c++ lib that might server as a replacement for NSURLConnection? You can using the curl c++ library to complete the network function. Maybe you can't porting the objc NSURLConnection converting to curl directly. They are some differences. You can refer to the network of the cocos2d-x https://github.com/cocos2d/cocos2d-x/tree/master/extensions/network
  3. Do you have general tips/guidelines on converting ObjC to C++? There is no direct conversion tools. I just artificially convert a function by a function.

And now I'm porting the WebGL for ejecta the next branch. so many change happened here in the last months. Maybe take sometimes.

Best, Lional

YaakovDavis commented 11 years ago

I'm glad your company agreed to release the sources! It's a bit step towards performant HTML5 mobile apps.

I'll look at the mentioned lib.

I wasn't aware of the cocos2d-x project, I'm glad you referred me to it. This could perhaps save me some time.