我正在使用Android Studio来构建我的游戏,该游戏具有大量的C ++代码。在编译期间,它给了我一个警告。在链接期间,它已归档,因为它找不到警告的文件。任何提示如何缩短文件路径?我可以以某种方式定义在何处创建编译后的目标文件吗?
源文件路径(很长,但还不错)
G:/SVN/GameProjects/mygameproject/src/progs/enginefiles/screen-editor-stage-object-selection-filters.cpp
生成的目标文件的全名:
G:/SVN/GameProjects/mygameproject/src/projects/common/android/gradle-project/app/.externalNativeBuild/cmake/hightabletRelease/armeabi-v7a/CMakeFiles/native-activity.dir/G_/SVN/GameProjects/mygameproject/src/progs/enginefiles/screen-editor-stage-object-selection-filters.cpp.o
gradle项目的根目录
G:/SVN/GameProjects/mygameproject/src/projects/common/android/gradle-project
在构建中警告味精:
hightabletRelease|armeabi-v7a :CMake Warning in CMakeLists.txt:
hightabletRelease|armeabi-v7a : The object file directory
hightabletRelease|armeabi-v7a : has 172 characters. The maximum full path to an object file is 250
hightabletRelease|armeabi-v7a : characters (see CMAKE_OBJECT_PATH_MAX). Object file
hightabletRelease|armeabi-v7a : cannot be safely placed under this directory. The build may not work
hightabletRelease|armeabi-v7a : correctly.