Hi, Trying to build OSG for Android on Windows, I've been struggling with cmake for a couple days... I followed the wiki's page "Building and using OpenSceneGraph in Android" but I'm still running into issues.
Here's my log : > > C:\OpenSceneGraph-3.0.1>cmake -G "Unix Makefiles" > -DOSG_BUILD_PLATFORM_ANDROID=O > N -DDYNAMIC_OPENTHREADS=OFF -DDYNAMIC_OPENSCENEGRAPH=OFF > -DOSG_GL_DISPLAYLISTS_A > VAILABLE=OFF -DOSG_GL_MATRICES_AVAILABLE=ON > -DOSG_GL_VERTEX_FUNCS_AVAILABLE=ON - > DOSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE=ON -DOSG_GL_FIXED_FUNCTION_AVAILABLE=ON > -DO > SG_CPP_EXCEPTIONS_AVAILABLE=OFF -DOSG_GL1_AVAILABLE=OFF > -DOSG_GL2_AVAILABLE=OFF > -DOSG_GL3_AVAILABLE=OFF -DOSG_GLES1_AVAILABLE=ON -DOSG_GLES2_AVAILABLE=OFF > -- The C compiler identification is unknown > -- The CXX compiler identification is unknown > CMake Error: your C compiler: "CMAKE_C_COMPILER-NOTFOUND" was not found. > Pleas > e set CMAKE_C_COMPILER to a valid compiler path or name. > CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. > P > lease set CMAKE_CXX_COMPILER to a valid compiler path or name. > -- Android NDK found in: C:/android-ndk-r7 > -- Jpeg found C:/OpenSceneGraph-3.0.1/3rdparty/libjpeg > -- PNG found C:/OpenSceneGraph-3.0.1/3rdparty/libpng > -- GIF found C:/OpenSceneGraph-3.0.1/3rdparty/giflib > -- TIF found C:/OpenSceneGraph-3.0.1/3rdparty/libtiff > -- Curl found C:/OpenSceneGraph-3.0.1/3rdparty/curl > -- FREETYPE found C:/OpenSceneGraph-3.0.1/3rdparty/freetype > -- GDAL found C:/OpenSceneGraph-3.0.1/3rdparty/gdal/include > -- ##############Creating Android Makefile################# > -- name: OpenThreads > -- ##############Creating Android Makefile################# > -- name: osg > -- ##############Creating Android Makefile################# > -- name: osgDB > -- ##############Creating Android Makefile################# > -- name: osgUtil > -- ##############Creating Android Makefile################# > -- name: osgGA > -- ##############Creating Android Makefile################# > -- name: osgText > -- Windowing system not supported > -- ##############Creating Android Makefile################# > -- name: osgViewer > -- ##############Creating Android Makefile################# > -- name: osgAnimation > -- ##############Creating Android Makefile################# > -- name: osgFX > -- ##############Creating Android Makefile################# > -- name: osgManipulator > -- ##############Creating Android Makefile################# > -- name: osgParticle > -- ##############Creating Android Makefile################# > -- name: osgPresentation > -- ##############Creating Android Makefile################# > -- name: osgShadow > -- ##############Creating Android Makefile################# > -- name: osgSim > -- ##############Creating Android Makefile################# > -- name: osgTerrain > -- ##############Creating Android Makefile################# > -- name: osgWidget > -- ##############Creating Android Makefile################# > -- name: osgVolume > CMake Error: your C compiler: "CMAKE_C_COMPILER-NOTFOUND" was not found. > Pleas > e set CMAKE_C_COMPILER to a valid compiler path or name. > CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. > P > lease set CMAKE_CXX_COMPILER to a valid compiler path or name. > -- ##############Creating Android Makefile################# > -- name: osgdb_serializers_osg > -- ##############Creating Android Makefile################# > -- name: osgdb_serializers_osganimation > -- ##############Creating Android Makefile################# > -- name: osgdb_serializers_osgfx > -- ##############Creating Android Makefile################# > -- name: osgdb_serializers_osgmanipulator > -- ##############Creating Android Makefile################# > -- name: osgdb_serializers_osgparticle > -- ##############Creating Android Makefile################# > -- name: osgdb_serializers_osgsim > -- ##############Creating Android Makefile################# > -- name: osgdb_serializers_osgshadow > -- ##############Creating Android Makefile################# > -- name: osgdb_serializers_osgterrain > -- ##############Creating Android Makefile################# > -- name: osgdb_serializers_osgtext > -- ##############Creating Android Makefile################# > -- name: osgdb_serializers_osgvolume > CMake Error: your C compiler: "CMAKE_C_COMPILER-NOTFOUND" was not found. > Pleas > e set CMAKE_C_COMPILER to a valid compiler path or name. > CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. > P > lease set CMAKE_CXX_COMPILER to a valid compiler path or name. > -- ##############Creating Android Makefile################# > -- name: osgdb_deprecated_osg > -- ##############Creating Android Makefile################# > -- name: osgdb_deprecated_osgparticle > -- ##############Creating Android Makefile################# > -- name: osgdb_deprecated_osganimation > -- ##############Creating Android Makefile################# > -- name: osgdb_deprecated_osgfx > -- ##############Creating Android Makefile################# > -- name: osgdb_deprecated_osgsim > -- ##############Creating Android Makefile################# > -- name: osgdb_deprecated_osgtext > -- ##############Creating Android Makefile################# > -- name: osgdb_deprecated_osgviewer > -- ##############Creating Android Makefile################# > -- name: osgdb_deprecated_osgshadow > -- ##############Creating Android Makefile################# > -- name: osgdb_deprecated_osgterrain > -- ##############Creating Android Makefile################# > -- name: osgdb_deprecated_osgvolume > -- ##############Creating Android Makefile################# > -- name: osgdb_deprecated_osgwidget > CMake Error: your C compiler: "CMAKE_C_COMPILER-NOTFOUND" was not found. > Pleas > e set CMAKE_C_COMPILER to a valid compiler path or name. > CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. > P > lease set CMAKE_CXX_COMPILER to a valid compiler path or name. > -- ##############Creating Android Makefile################# > -- name: osgdb_osga > -- ##############Creating Android Makefile################# > -- name: osgdb_rot > -- ##############Creating Android Makefile################# > -- name: osgdb_scale > -- ##############Creating Android Makefile################# > -- name: osgdb_trans > -- ##############Creating Android Makefile################# > -- name: osgdb_normals > -- ##############Creating Android Makefile################# > -- name: osgdb_revisions > -- ##############Creating Android Makefile################# > -- name: osgdb_osgviewer > -- ##############Creating Android Makefile################# > -- name: osgdb_osgshadow > -- ##############Creating Android Makefile################# > -- name: osgdb_osgterrain > -- ##############Creating Android Makefile################# > -- name: osgdb_osg > -- ##############Creating Android Makefile################# > -- name: osgdb_ive > -- ##############Creating Android Makefile################# > -- name: osgdb_cfg > -- ##############Creating Android Makefile################# > -- name: osgdb_glsl > -- ##############Creating Android Makefile################# > -- name: osgdb_rgb > -- ##############Creating Android Makefile################# > -- name: osgdb_bmp > -- ##############Creating Android Makefile################# > -- name: osgdb_pnm > -- ##############Creating Android Makefile################# > -- name: osgdb_dds > -- ##############Creating Android Makefile################# > -- name: osgdb_tga > -- ##############Creating Android Makefile################# > -- name: osgdb_hdr > -- ##############Creating Android Makefile################# > -- name: osgdb_dot > -- ##############Creating Android Makefile################# > -- name: osgdb_vtf > -- ##############Creating Android Makefile################# > -- name: osgdb_jpeg > -- ##############Creating Android Makefile################# > -- name: osgdb_gif > -- ##############Creating Android Makefile################# > -- name: osgdb_png > -- ##############Creating Android Makefile################# > -- name: osgdb_tiff > -- ##############Creating Android Makefile################# > -- name: osgdb_gdal > -- ##############Creating Android Makefile################# > -- name: osgdb_ogr > -- ##############Creating Android Makefile################# > -- name: osgdb_3dc > -- ##############Creating Android Makefile################# > -- name: osgdb_p3d > -- ##############Creating Android Makefile################# > -- name: osgdb_curl > -- ##############Creating Android Makefile################# > -- name: osgdb_lwo > -- ##############Creating Android Makefile################# > -- name: osgdb_dw > -- ##############Creating Android Makefile################# > -- name: osgdb_bvh > -- ##############Creating Android Makefile################# > -- name: osgdb_x > -- ##############Creating Android Makefile################# > -- name: osgdb_dxf > -- ##############Creating Android Makefile################# > -- name: osgdb_openflight > -- ##############Creating Android Makefile################# > -- name: osgdb_geo > -- ##############Creating Android Makefile################# > -- name: osgdb_obj > -- ##############Creating Android Makefile################# > -- name: osgdb_pic > -- ##############Creating Android Makefile################# > -- name: osgdb_stl > -- ##############Creating Android Makefile################# > -- name: osgdb_ac > -- ##############Creating Android Makefile################# > -- name: osgdb_pov > -- ##############Creating Android Makefile################# > -- name: osgdb_logo > -- ##############Creating Android Makefile################# > -- name: osgdb_lws > -- ##############Creating Android Makefile################# > -- name: osgdb_md2 > -- ##############Creating Android Makefile################# > -- name: osgdb_osgtgz > -- ##############Creating Android Makefile################# > -- name: osgdb_tgz > -- ##############Creating Android Makefile################# > -- name: osgdb_shp > -- ##############Creating Android Makefile################# > -- name: osgdb_txf > -- ##############Creating Android Makefile################# > -- name: osgdb_bsp > -- ##############Creating Android Makefile################# > -- name: osgdb_mdl > -- ##############Creating Android Makefile################# > -- name: osgdb_freetype > -- ##############Creating Android Makefile################# > -- name: osgdb_pvr > -- Creating Android Makefile Master files > -- Configuring incomplete, errors occurred! > I thought that specifying the ANDROID_NDK variable would be enough for the CMakeList to find make, gcc and g++... Then I tried adding this directory "C:\android-ndk-r7\toolchains\x86-4.4.3\prebuilt\windows\i686-android-linux\bin" to the PATH variable. No success... here is my log > > C:\OpenSceneGraph-3.0.1>cmake -G "Unix Makefiles" > -DOSG_BUILD_PLATFORM_ANDROID=O > N -DDYNAMIC_OPENTHREADS=OFF -DDYNAMIC_OPENSCENEGRAPH=OFF > -DOSG_GL_DISPLAYLISTS_A > VAILABLE=OFF -DOSG_GL_MATRICES_AVAILABLE=ON > -DOSG_GL_VERTEX_FUNCS_AVAILABLE=ON - > DOSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE=ON -DOSG_GL_FIXED_FUNCTION_AVAILABLE=ON > -DO > SG_CPP_EXCEPTIONS_AVAILABLE=OFF -DOSG_GL1_AVAILABLE=OFF > -DOSG_GL2_AVAILABLE=OFF > -DOSG_GL3_AVAILABLE=OFF -DOSG_GLES1_AVAILABLE=ON -DOSG_GLES2_AVAILABLE=OFF > -- The C compiler identification is unknown > -- The CXX compiler identification is unknown > -- Check for working C compiler: > C:/android-ndk-r7/toolchains/x86-4.4.3/prebuilt > /windows/i686-android-linux/bin/gcc.exe > -- Check for working C compiler: > C:/android-ndk-r7/toolchains/x86-4.4.3/prebuilt > /windows/i686-android-linux/bin/gcc.exe -- broken > CMake Error at C:/Program Files (x86)/CMake > 2.8/share/cmake-2.8/Modules/CMakeTes > tCCompiler.cmake:52 (MESSAGE): > The C compiler > > "C:/android-ndk-r7/toolchains/x86-4.4.3/prebuilt/windows/i686-android-linux/bi > n/gcc.exe" > is not able to compile a simple test program. > > It fails with the following output: > > Change Dir: C:/OpenSceneGraph-3.0.1/CMakeFiles/CMakeTmp > > > > Run Build Command:C:/android-ndk-r7/prebuilt/windows/bin/make.exe > "cmTryCompileExec/fast" > > C:/android-ndk-r7/prebuilt/windows/bin/make.exe -f > CMakeFiles/cmTryCompileExec.dir/build.make > CMakeFiles/cmTryCompileExec.dir/build > > make.exe[1]: Entering directory > `C:/OpenSceneGraph-3.0.1/CMakeFiles/CMakeTmp' > > "C:/Program Files (x86)/CMake 2.8/bin/cmake.exe" -E cmake_progress_report > C:/OpenSceneGraph-3.0.1/CMakeFiles/CMakeTmp/CMakeFiles 1 > > "Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.obj" > > > > C:/android-ndk-r7/toolchains/x86-4.4.3/prebuilt/windows/i686-android-linux/bin > /gcc.exe > -o CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.obj -c > C:/OpenSceneGraph-3.0.1/CMakeFiles/CMakeTmp/testCCompiler.c > > gcc.exe: CreateProcess: No such file or directory > > make.exe[1]: *** [CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.obj] > Error 1 > > make.exe[1]: Leaving directory > `C:/OpenSceneGraph-3.0.1/CMakeFiles/CMakeTmp' > > make.exe: *** [cmTryCompileExec/fast] Error 2 > > > > > > CMake will not be able to correctly generate this project. > Call Stack (most recent call first): > CMakeLists.txt:30 (PROJECT) > > > -- Configuring incomplete, errors occurred! > Thank you! Cheers, Altar ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=44887#44887 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org