Perform cocos2dx cross-compilation on Eclipse.
After project./build_native.sh is imported to eclipse, a disgusting error is reported.
Make: *** no rule to make target 'all'. Stop.
I have searched the internet for half a day on English documents and cannot solve the problem. Finally, I found a solution in the Forum and sorted out the MacAnd windows solutions, to the needs of children's shoes:
Cocos2dx eclipse
Solution: Right-click the project --> properties-C/C ++ build --> builder settings
The builder type is optional,
Makefilegeneration --> Generate makefiles automatically is not selected
Select generate makefiles automatically
In this case, builder type becomes optional and internalbuilder is selected.
Then submit
(For some children's shoes, the options are gray. Use the following method :)
MacSystem solution:Select C/C ++ build on theleft side of the window that pops up. Under builder,
Do not select"Use default build command ",In the following build commandEnter the following command:
Bash $ {workspace_loc:/<your-project-name >}/ build_native.sh ndk_debug = 1 V = 1
<Your-project-Name> Is your project name
Windows solution:
Bash "E: \ cocos2dx20 \ balance \ proj. Android/build_native.sh" ndk_debug = 1 V = 1 clean
Then OK to submit run
Rough, remark first, work first