I've been using an older version of cocos2d for iPhone for an existing project -- never change a running system. Now I'd like to upgrade to a more recent version of cocos2d... I replaced all the cocos2d classes with old one; I get this error:
duplicate symbol _main in /Users/aqtoor1/Desktop/BlocksParty
[music] co/build/Debug-iphoneos/libcocos2d libraries.a
(main-D28BA02B69A7176A.o) and /Users/aqtoor1/Desktop/BlocksParty
[music] co/build/BlocksParty.build/Debug-iphoneos/BlocksParty.build/Objects-normal
/armv6/main.o
I replaced old cocos2d file for second with-in couple of days last time; I am getting some framework missing error now getting this one. I'm just stuck. :(
Need help, I have to get this working to my boss, today.
:(
I have done it by just replacing the cocos2d files - dragging them into the project. But before doing this make a copy of your project with the previous version (if still possible) That did it for me. As far as I know cocos2d is just a set of imported files anyway. The templates etc did not change, so there was no need to uninstall or reinstall anything.
Related
So I am converting a project from Unity 4.x to 5.x and there are a number of functions that the Unity compiler is warning me that are no longer supported or are obsolete.
My question is do these functions still work? (even though they are marked as obsolete)
I know at some point they need to be updated to the newer API but for the moment I just need to fix the bugs so that the game works. Are these functions still usable? or are they potentially the source of runtime bugs?
Thanks
All obsolete functions has been replaced with new functions. So should take a backup and update your project. Go to Assets->Run API Updater, if your project in not getting updated automatically. Dont worry unity will take care of most of the things.
Yes, it's still work ! They just only warning it.
But i suggest you should change for better result, Unity 5 will update you code from old project, then you should change it following warning, just replace
using "xxxx" instead.
to the current context.
It is this sad moment to a developer's life that he has to maintain and fix legacy code... In my case I have to deal with a modified (core scripts) tinyMCE 3.2.2 which I have to update to the latest version in order to play in IE9+...
So my question is if there is a way to check which files have been changed since version 3.2.2 and try to update only those cause it is an overkill to check all the code for the modifications...
Thanks in advance
I fear there are so many changes in so many files that most of them have changed since then and in order to work with IE9.
If possible you should never ever modify the core code. Instead use custom plugins if possible.
If I rename files,in my XCode[3.2.5] project,
Will its imports and connections with xib's automatically be updated or I will have to make changes everywhere manually.
I was learning iphone development and I didnt give proper names to my controllers according to standard conventions.
Now I am making the changes.
Use the refactoring tools. I can't remember what these were like in 3.2.5 but they'll do the job in 4.2, and you should be on the newest version anyway.
I have downloaded openframeworks from Github. I can run all the samples but if I am trying to run opencv example given in openframeworks. Its not working, showing 44 errors and errors are not common too. I think there linking files are also missing in github. Do you have any idea why only opencv example cant get executed ?
In, for example, iPhoneFaceSamplesSomething some files are missing that you can get from other parts of the project (jpg, xml) or just ignore (png). You get a ton of warnings because they added OS X libs which XCode ignore, no big deal. And then some libs are missing for the iPhone like opencv highgui and some other. You should try to get them from somewhere else or compile them yourself. The project definition is a bit messy, you can also file a bug in github.
actually the answer to this is that the ofxOpenCv examples only work when run on the actual device. ofxOpenCv doesn't work in the simulator on iphone currently.
Check the read me file for includes. Often times OF addons have dependancies that are not included in the download.
Also another thing that will get you sometimes is when you're running the incorrect profile on your system. Like OSX 10.5 instead of OSX 10.6. Also fiddle with the release and debug options(switch back and forth), that will often help (I know it sounds hack-ish).
I've been using an older version of cocos2d for iPhone for an existing project - never change a running system. Now I'd like to upgrade to a more recent version and don't know how I should proceed about this.
Just install a newer version? Will the install script overwrite all of the old files and take care of the old templates too? Or do I have to remove the old files manually - and if so, which files do I need to remove?
Thanks alot!
here is the answer.
Don't know well cocos2D, but save your project and just try to replace the old library with the new one ;-) just don't forget to save you current project... in the case ;-)
If the library didn't change too much, it should work.
Good Luck