mapsme / omim

🗺️ MAPS.ME — Offline OpenStreetMap maps for iOS and Android
Apache License 2.0
4.58k stars 1.15k forks source link

build Android : cannot find source file : shader_def.cpp #7483

Open alizeyn opened 6 years ago

alizeyn commented 6 years ago

I'm Building MAPS.ME using ./gradlew aR the problem is I get this error during build process :

  CMake Error at drape_frontend/CMakeLists.txt:220 (add_library):
    Cannot find source file:

      shader_def.cpp

    Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
    .hxx .in .txx

  CMake Error at CMakeLists.txt:210 (add_executable):
    Cannot find source file:

      shader_def_for_tests.cpp

    Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
    .hxx .in .txx
  Call Stack (most recent call first):
    CMakeLists.txt:224 (omim_add_executable)
    drape_frontend/drape_frontend_tests/CMakeLists.txt:34 (omim_add_test)

  CMake Error: CMake can not determine linker language for target: drape_frontend
  -- Generating done
  -- Build files have been written to: /media/alizeyn/Work/Rajman/MAPS.ME/Depth 1 recursive/omim/android/.externalNativeBuild/cmake/amazonRelease/armeabi-v7a

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

How Can I get or generate those files ? please improve building docs.

alizeyn commented 6 years ago

PROBLEM SOLVED

qmake should make these files automatically but in my case it wouldn't. the problem was in drap_frotend.pro is using python command but in Ubuntu 17.10 there is no python just python3 and python3.6 you can alias python3.6 to python to solve the problem.