floooh / oryol

A small, portable and extensible C++ 3D coding framework
MIT License
1.98k stars 197 forks source link

build android-ninja-release failed #115

Closed ejkoy closed 8 years ago

ejkoy commented 9 years ago

May be the reason is : http://public.kitware.com/Bug/view.php?id=13803

floooh commented 9 years ago

Can you give copy-paste the error and what operating system are you on? I'm currently testing on OSX and that seems to work fine (will try to test on Windows next). I had some errors pushed during the day when I was working on cmake-files, and also pushed some stuff to fips, so you should also make sure that fips, oryol and its dependencies are all uptodate (check with 'fips diag').

Cheers and thanks for the bug report.

ejkoy commented 9 years ago

OS: win7 64bit everything is up to date.

Error log:

F:\new\oryol>fips build android-ninja-release === dependency: 'fips-unittestpp': dir 'F:/new/fips-unittestpp' exists === dependency: 'fips-remotery': dir 'F:/new/fips-remotery' exists === dependency: 'fips-turbobadger': dir 'F:/new/fips-turbobadger' exists === dependency: 'fips-glfw': dir 'F:/new/fips-glfw' exists === dependency: 'fips-glm': dir 'F:/new/fips-glm' exists === dependency: 'gliml': dir 'F:/new/gliml' exists === dependency: 'fips-zlib': dir 'F:/new/fips-zlib' exists === dependency: 'fips-vld': dir 'F:/new/fips-vld' exists === dependency: 'fips-imgui': dir 'F:/new/fips-imgui' exists === dependency: 'fips-libcurl': dir 'F:/new/fips-libcurl' exists === building: android-ninja-release === generating: android-ninja-release Target Platform: Android C++ exceptions are disabled C++ RTTI is disabled Android CPU arch: arm Android platform: android-19 ant tool found Target Platform: Android C++ exceptions are disabled C++ RTTI is disabled Android CPU arch: arm Android platform: android-19 ant tool found CMAKE_BUILD_TYPE: Release FIPS_ROOT_DIR: F:/new/fips FIPS_PROJECT_DIR: F:/new/oryol FIPS_DEPLOY_DIR: F:/new/fips-deploy Host system: Windows CMAKE_CXX_COMPILER_ID: GNU Detected C++ Compiler: GCC (FIPS_GCC) FIPS_CONFIG: android-ninja-release FIPS_PLATFORM: ANDROID => create Android SDK project: Clear => create Android SDK project: Triangle => create Android SDK project: Shapes => create Android SDK project: PackedNormals => create Android SDK project: SimpleRenderTarget => create Android SDK project: InfiniteSpheres => create Android SDK project: DDSTextureLoading => create Android SDK project: DDSCubeMap => create Android SDK project: DrawCallPerf => create Android SDK project: FullscreenQuad => create Android SDK project: PBRendering => create Android SDK project: Instancing => create Android SDK project: TextureFloat => create Android SDK project: VertexTexture => create Android SDK project: GPUParticles => create Android SDK project: ResourceStress => create Android SDK project: MeshViewer => create Android SDK project: HTTPClientSample => create Android SDK project: CoreHello => create Android SDK project: DebugText => create Android SDK project: TestInput => create Android SDK project: Sensors => create Android SDK project: Paclone => create Android SDK project: SynthTest => create Android SDK project: IOQueueSample => create Android SDK project: TurboBadgerDemo => create Android SDK project: TestNanoVG => create Android SDK project: ImGuiDemo => create Android SDK project: SoundTest -- Configuring done -- Generating done -- Build files have been written to: F:/new/fips-build/oryol/android-ninja-release ninja.exe -j 3 all [60/336] Building CXX object fips-imgu...CMakeFiles\imgui.dir\imgui\imgui.cpp.o F:\new\fips-imgui\imgui\imgui.cpp: In member function 'bool ImFontAtlas::Build()': F:\new\fips-imgui\imgui\imgui.cpp:444:56: warning: 'spc.stbtt_pack_context::nodes' may be used uninitialized in this function [-Wmaybe-uninitialized]

define STBTT_free(x,u) ((void)(u), ImGui::MemFree(x))

                                                    ^

F:\new\fips-imgui\imgui\imgui.cpp:8194:24: note: 'spc.stbtt_pack_context::nodes' was declared here stbtt_pack_context spc; ^ In file included from F:\new\fips-imgui\imgui\imgui.cpp:450:0: F:\new\fips-imgui\imgui\stb_truetype.h:2386:68: warning: 'spc.stbtt_pack_context::stride_in_bytes' may be used uninitialized in this function [-Wmaybe-uninitial ized] spc->pixels + r->x + r->y_spc->stride_in_bytes, ^ F:\new\fips-imgui\imgui\imgui.cpp:8194:24: note: 'spc.stbtt_pack_context::stride_in_bytes' was declared here stbtt_pack_context spc; ^ F:\new\fips-imgui\imgui\imgui.cpp:8247:71: warning: 'spc.stbtt_pack_context::pack_info' may be used uninitialized in this function [-Wmaybe-uninitialized] stbrp_pack_rects((stbrpcontext)spc.pack_info, data.Rects, n); ^ [103/336] Linking CXX static library f...rbobadger_turbobadger\libturbobadger.a FAILED: cmd.exe /C "cd . && "D:\Program Files (x86)\CMake\bin\cmake.exe" -E remove fips-turbobadger_turbobadger\libturbobadger.a && F:\new\fips-sdks\win\android-ndk-r9d\toolchains\arm-linux-androideabi-4.8\prebuilt\windows\bin\arm-linux-androideabi-ar.exe cq fips-turbobadger_turbobadger\libturbobadger.a @CMakeFiles/turbobadger.rsp && F:\new\fips-sdks\win\android-ndk-r9d\toolchains\arm-linux-androideabi-4.8\prebuilt\windows\bin\arm-linux-androideabi-ranlib.exe fips-turbobadger_turbobadger\libturbobadger.a && cd ." F:\new\fips-sdks\win\android-ndk-r9d\toolchains\arm-linux-androideabi-4.8\prebuilt\windows\bin\arm-linux-androideabi-ar.exe: fips-turbobadger_turbobadgerCMakeFilesturbobadger.dirturbobadgersrctbanimationtb_animation.cpp.o: No such file or directory [103/336] Building CXX object code\Modules\Core\CMakeFiles\Core.dir\App.cc.o ninja: build stopped: subcommand failed. [ERROR] Failed to build config 'android-ninja-release' of project 'oryol'

floooh commented 8 years ago

I have fixed a bug in fips when using ninja.exe on Windows, the latest cmake needs to know where ninja.exe is in the CMAKE_MAKE_PROGRAM variable. After that I was able to build android-ninja-debug/release on Windows(10). I'll close this ticket now, if there's still a problem it's best to open a new ticket :)