CMake Error at cocos2d/cmake/Modules/CocosConfigDepend.cmake:94 (endmacro): Flow control statements are not properly nested - cmake

Hey I'm a newbie cocos 2d x developer, I'm just trying to get a "Hello World" project created in XCode for iOS. From the terminal I'm using the command
cmake ../.. -GXcode -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphoneos
I keep getting these two errors and the xcode project file does not generate.
CMake Error at cocos2d/cmake/Modules/CocosConfigDepend.cmake:94 (endmacro):
Flow control statements are not properly nested.
Call Stack (most recent call first):
cocos2d/cmake/Modules/CocosBuildSet.cmake:43 (include)
CMakeLists.txt:42 (include)
What am I doing wrong?
see attached screenshot
[1]: https://i.stack.imgur.com/cIiNC.jpg
System Specs:
MacOS Big Sur 11.4 (Virtual Machine via VMware)
cocos2d-x-4.0
cocos Console 2.3
Xcode 12.5.1
Python 2.7.16
cmake 3.21.0

CMake 3.14+
Xcode 10+
Visual Studio 2019
Android Studio 3.4+,NDK r19c+
Need https://github.com/leetal/ios-cmake
Try this
enter code here
$mkdir build_ios
$cd build_ios
$cmake .. -GXcode -DCMAKE_TOOLCHAIN_FILE=../ios.toolchain.cmake -DENABLE_ARC=FALSE
$open test.xcodeproj
The default is iOS device project, and platform parameters such as
os.toolchain.cmake support -DPLATFORM=SIMULATOR64 need to be added when adjusting to simulator. Please refer to its documentation

Related

Xcode 8 - symbolicatecrash failed

Under Xcode 8 symbolicatecrash to analyse crash report failed with:
sh: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun: No such file or directory
## Warning: can't find tool named 'otool' in iOS SDK, falling back to searching the Mac OS X SDK
sh: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun: No such file or directory
Error: can't find tool named 'otool' in the macosx SDK or any fallback SDKs at /usr/local/bin/symbolicatecrash line 115.
how to solve it?
Are you looking for the new location of symbolicatecrash in XCode 8?
Now it is located at /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources
find /Applications/Xcode.app/ -name symbolicatecrash
then, you will get
/Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash

How to debug Haxe using IntelliJ IDEA?

I'm trying to debug a Haxe application with cpp target using IntelliJ IDEA.
Every time i got same error while trying to run debug on it:
"You can debug only flash or HXCPP targets"
I have a basic HelloWorld project setup with the Haxe compiler and the C++ target (setup).
I'm using latest plugin for Haxe (0.9.10) and hxcpp-debugger with old protocol version (as mentioned in haxe plugin description). Tried this on IDEA14, 15 & 2016.
All guides that I found to make it work looks outdated.
the closest i found is this video https://www.youtube.com/watch?v=6JjgOrEXcQc - it uses openfl, but if you look at the logging window, it outputs a command : haxelib run hxcpp Build.xml haxe -Ddebug -DHXCPP -Dcpp -Ddebug -Ddesktop -Dhaxe_208 -Dhaxe_209 -Dhaxe_210 -Dhxcpp -Dnme -Dnme_install_tool -Dsys -Dtrue -Dwindows. You'd have to make your build run that same command if you're not using openfl to build.
The code must also create a debug socket server somewhere in your main method:
new DebugSocket("127.0.0.1", 65333, true)

Problems in MPICH 3.1.3 installation in OSX 10.10 with ifort compiler and Xcode 6.1

I am trying to build mpich 3.1.3. in a Mac OSX 10.10 Yosemite with Xcode 6.1 and intel compilers icc and ifort version 15.0.0 20140716. I get an error when I am building the installation. The error is the following:
GEN lib/libpmpi.la
ifort: command line warning #10006: ignoring unknown option '-force_load,src/mpl/.libs/libmpl.a'
ifort: command line warning #10006: ignoring unknown option '-force_load,/Users/alejandrodelacallenegro/Downloads/mpich-3.1.3/src/openpa/src/.libs/libopa.a'
ifort: command line warning #10006: ignoring unknown option '-force_load,src/mpi/romio/.libs/libpromio.a'
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: object: lib/.libs/libpmpi.a(initthread.o) malformed object (section contents at offset 0 with a size of 1056, overlaps Mach-O headers at offset 0 with a size of 768)
I do not understand where the error come from, from the compiler or from libtool. I have also attached the outputs of the configuration and the build steps.
I finally found the cause of the problem. libtool was somehow corrupted, so I install it again, and then I don't get this error anymore. I have install Xcode again, but I suppose that installing it from macports, homebrew or from source solves the problem as well.
Alex

NANO-X Microwindows Embedded Linux

Hello I am new to the coding for the Embedded Linux for ARM platform.
I am using the NANO-X microwindopw for the GUI inteface for the Linux server, so i have downloaded the nano-x soruce from (ftp://microwindows.censoft.com/pub/microwindows/)
then i try to compile the demo code for the nano-x. when i try to compile it gives me the error
: undefined reference to `GrOpen',' GrReqShmCmds'...............
I could not successfully build it.
I have included all the header files from the /microwin/src/include/ to the /usr/include.
still i am getting the error.

titanium 1.7.5 sdk, iOS 5, on lion. kitchensink not building

The company I am working in is trying to develop our new mobile client side apps, for matters of "Develop once run an all", with the Appcelerator Titanium(SDk 1.7.5) iOS5 on a lion based Macs.
No one managed to work it out, so i'm a trying to figure this out during the weekend. I am getting the next build error (As a native developer for both IOS and Android I am used to work with the Xcode. From what i read in the site, i should build the app in the Titanium, not the XCODE??? the error when i am running form the Titanium, not the Xcode - the first unfamiliar item in my list....SHOULD I RUN IT IN THE TITANIUM OR THE XCODE FOR IOS?)
I can see that the build is starting and looking ok, if need all the log i will give it, but there are debug and info build lines and then i am getting this error and the build stops...
.
.
.
[ERROR]
[ERROR] Error: Traceback (most recent call last):
File "/Users/[USER]/Library/Application Support/Titanium/mobilesdk/osx/1.7.5/iphone/builder.py", line 1222, in main
execute_xcode("iphonesimulator%s" % link_version,["GCC_PREPROCESSOR_DEFINITIONS=LOG__ID=%s DEPLOYTYPE=development TI_DEVELOPMENT=1 DEBUG=1 TI_VERSION=%s %s" % (log_id,sdk_version,debugstr)],False)
File "/Users/[USER]/Library/Application Support/Titanium/mobilesdk/osx/1.7.5/iphone/builder.py", line 1140, in execute_xcode
output = run.run(args,False,False,o)
File "/Users/[USER]/Library/Application Support/Titanium/mobilesdk/osx/1.7.5/iphone/run.py", line 39, in run
sys.exit(rc)
SystemExit: 65
Other then that, I can the see that the engine in Python. Is it a problem with the python engine, the Titanium SDK or the the IOS SDK? When tried to run the "Hello world" app, we got more or less the same error.
Can any one help me with this issue? or send me to a good docs or tutorial to give me a direction?
Thank you,
Erez
my recommendation is to look in the build/iphone/build directory and open up the build.log to see what the real error is