aevum / libgdx-cpp

A cross platform (iOS, Android, Desktop) c++ port of java's libgdx awesome framework.
Apache License 2.0
172 stars 32 forks source link

python create #35

Open sevenklidy opened 11 years ago

sevenklidy commented 11 years ago

python gdx-wizard.py --gen-mode ios,android --root-dir ~/projects/ --project-name Test --android-sdk /data/applications/android-sdk-linux_x86/ --package-name com.aevumlab.test --android-ndk /data/applications/android-ndk/ --ios-sdk-ver 6.0 --android-target android-10

so:

Traceback (most recent call last): File "gdx-wizard.py", line 186, in setup() File "gdx-wizard.py", line 53, in setup os.mkdir(root_path) OSError: [Errno 2] No such file or directory: '/home/ceti/projects/test'

could you give created Project?

scooterman commented 11 years ago

Hi @sevenklidy,

looks like you don't create have the root folder (~/projects/), try to create it before running the script. I will improve it to detect this issue.

Thanks

2013/2/2 sevenklidy notifications@github.com

python gdx-wizard.py --gen-mode ios,android --root-dir ~/projects/ --project-name Test --android-sdk /data/applications/android-sdk-linux_x86/ --package-name com.aevumlab.test --android-ndk /data/applications/android-ndk/ --ios-sdk-ver 6.0 --android-target android-10

so:

Traceback (most recent call last): File "gdx-wizard.py", line 186, in setup() File "gdx-wizard.py", line 53, in setup os.mkdir(root_path) OSError: [Errno 2] No such file or directory: '/home/ceti/projects/test'

could you give created Project?

— Reply to this email directly or view it on GitHubhttps://github.com/aevum/libgdx-cpp/issues/35.

sevenklidy commented 11 years ago

I created folder,run the Script

ceti@Ceti:/media/ceti/soft/OtherGame/libgdx-cpp-master$ python gdx-wizard.py --gen-mode ios,android --root-dir /media/ceti/soft/libgdxProject/ --project-name Test --android-sdk /data/applications/android-sdk-linux_x86/ --package-name com.aevumlab.test --android-ndk /data/applications/android-ndk/ --ios-sdk-ver 6.0 --android-target android-9 CMake Error at cmake/android.toolchain.cmake:918 (message): The required libstdsupc++.a is missing in your standalone toolchain.

Usually it happens because of bug in make-standalone-toolchain.sh script from NDK r7, r7b and r7c. You need to either upgrade to newer NDK or manually copy $ANDROID_NDK/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a/libsupc++.a to

Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/CMakeDetermineSystem.cmake:89 (INCLUDE) CMakeLists.txt:1 (project)

CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_C_COMPILER_ENV_VAR CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_C_COMPILER CMake Error: Could not find cmake module file:/media/ceti/soft/libgdxProject/test/android/gdx/CMakeFiles/CMakeCCompiler.cmake CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_CXX_COMPILER_ENV_VAR CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_CXX_COMPILER CMake Error: Could not find cmake module file:/media/ceti/soft/libgdxProject/test/android/gdx/CMakeFiles/CMakeCXXCompiler.cmake CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred! make: * 没有指明目标并且找不到 makefile。 停止。 CMake Error: The source directory "/media/ceti/soft/libgdxProject/test/src/Test" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI. make: * 没有指明目标并且找不到 makefile。 停止。 /bin/sh: 1: /data/applications/android-sdk-linux_x86//tools/android: not found Traceback (most recent call last): File "gdx-wizard.py", line 186, in setup() File "gdx-wizard.py", line 144, in setup os.mkdir('libs/armeabi-v7a') OSError: [Errno 2] No such file or directory: 'libs/armeabi-v7a'