[Solved] cocos2dx 3.8 to cocos2dx 3.10 Upgrade issues

I am trying to upgrade my cocos project created with cocos2d-x 3.8 to 3.10 and i am getting some error as ClassNotFound for Android.
I have not yet checked the same for iOS yet. Is there any proper mechanism to upgrade or should i just try to download old version and use it.

P.S. I just formatted all my system and done a fresh setup of everything including cocos.

Any better logs or info? This might be to vague.

It shows cocos2d.h not found in Prefix.pch for iOS I’ll paste the Android logs soon.

Oh, double check your search paths. This is usually the issue for me when this happens.

Hey I changed search path to point to new location .
Only thing that is not getting corrected is inside Header Search Path there is a value as $(inherited) which seems so be taking paths from the other project I am not sure where to change this path can somebody help me with finding the project to whose path it is pointing to…??

That seems to be solved now but started getting this error now for CURL

Undefined symbols for architecture x86_64:
“_curl_easy_cleanup”, referenced from:
in NetworkUtil.o
“_curl_easy_escape”, referenced from:

ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

So finally added Manual support for CURL and everything works fine.

Hi,

How did you solve the curl issue? Please help me here as i am getting the same issue.

Thanks in advance.

Regards,
Rajeev

what curl issue you are having?

Hi @rajeev_etc i exactly don’t remember how i solved it but if you are going through similar issue try adding libcurl library manually as i think i added libcurl.a in my project that time.

Hi,

Thank you for your response.
I am having the following issue with Cocos2dx Version 3.11:
Undefined symbols for architecture x86_64:
“curleasy_cleanup”, referenced from:
in NetworkUtil.o
“curleasy_escape”, referenced from:

ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have tried adding curl path by selecting my project and build settings and then in Header Search Paths option.
It was working with cocos2dx Version 3.6 but now it is not working.

Thank you in advance.

Hey,
that seems exactly the issue i was facing.
Try adding libcurl.a in Link Binary With Libraries under Build Phases tab.

I think as @padmnabh said you are missing the library.

@padmnabh I tried adding libcurl.a as you said but no luck. I am still facing the same issue.
Please help me to solve this.