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.

Android / Tier 2: Do you have to rebuild the Tier 2 template if you create your own objects?

Author
Message
ThrOtherJoJo
13
Years of Service
User Offline
Joined: 24th Mar 2012
Location: California
Posted: 30th Oct 2012 16:18
In Tier 2, I have created my own classes and I'm saving them as seperate .cpp files, and then from template.cpp I instantiate them.
So in the jni folder I'm including a test.cpp file, a test.h file along with template.cpp and template.h files.

When I go to build the template in cygwin it throws this error:

Ancient Lady
Valued Member
21
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 30th Oct 2012 16:51
You are probably experiencing an issue with ownership. If you copied the files using Windows File Manager, the copied files do not have the same owner:group as your cygwin setup.

In your cygwin session (just after you open it), execute the command 'ls -l', you should see something like this:

The third column shows the owner id (I changed the actual owner id from my real one to 'owner') and the fourth shows the group.

Now execute the command 'chown -R owner:mkgroup *' (substitute the actual owner value you got from the previous command).

Then execute 'chmod -R a+r,a+w *'. This will make sure that everything is writable.

Then go to your project directory and do a clean and build.

You will need to do the chown command in your project directories any time you use Windows File Manager to copy files into it.

Cheers,
Ancient Lady
AGK Community Tester
ThrOtherJoJo
13
Years of Service
User Offline
Joined: 24th Mar 2012
Location: California
Posted: 31st Oct 2012 23:36 Edited at: 1st Nov 2012 01:31
Ok. Thanks!

Login to post a reply

Server time is: 2025-06-21 01:44:19
Your offset time is: 2025-06-21 01:44:19