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. Here I sorted out the mac and windows solutions and gave the children's shoes needed:
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 :)
Mac system solution: Select C/C ++ Build on theleft side of the window that pops up. under Builder,
Do not select "Use default build command". Enter the following Command in the following Build 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