make (e=2):The system cannot find the file specified

125 篇文章 0 订阅
After the project reachs 291 files, it's becoming kind of weird with the following error with some obvious miscoding chinese:
CreateProcess(C:\DOCUME~1\leon\LOCALS~1\Temp\make7136-1.bat,C:\DOCUME~1\leon\LOCALS~1\Temp\make7136-1.bat,...)
Live child 0x00aed750 (Debug/angowx) PID 11459448 
ê?è?DDì?3¤?£
That's just before link. 
I don't know why, but I try to delete some files to reture to the previous state, and it works.
So what happen? I try serveral times to add files and delete files, and make sure that the issue is related to the amount of files.
How about use link directly in cmd? I try with the following command:
g++ -o ./Debug/angowx @"d:\linux\linuxkernel\WORKING_DIRECTORY\ango\angowx\2.txt" -L.   -mwindows  -mthreads -LC:\wxWidgets-2.9.2\lib\gcc_dll -lwxmsw29ud -lwxtiffd -lwxjpegd -lwxpngd -lwxzlibd -lwxregexud -lwxexpatd -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexud -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32  -lws2_32 -lpthread -lpthread.dll -lpthreadGC2.dll -lpthreadGC2-static -lpthreadGCE2 -lpthreadGCE2.dll 2>r.txt
And it works!
So I think maybe I shoud try the build in cmd directly with the following command:
"mingw32-make.exe"  -d -j 1 -f "angowx.mk">8.txt 2>&1
And I get the correct chinese error message:
make (e=2): 系统找不到指定的文件。
After google, I get the english version:
make (e=2):The system cannot find the file specified
Google the english version, some say it's because of the mingw itself. 
http://forums.wxwidgets.org/viewtopic.php?f=19&t=28317&start=0
http://www.digipedia.pl/usenet/thread/15083/3668/
note: avoid MinGW 4.5


So I try to download TDM-GCC of different versions to build on the following site:
http://ftp.jaist.ac.jp/pub/sourceforge/t/project/td/tdm-gcc/TDM-GCC%20Installer/
But it doesn't work out. 
Since TDM-GCC is above 4.0, I think maybe I can try 3.X. That means I have to download the files of MinGW from MinGW website. There're quite many files, and this seems to be some make issue, so maybe I can just download the make. So I download all the make files on:
http://ftp.jaist.ac.jp/pub/sourceforge/m/project/mi/mingw/MinGW/Extension/make/
and extract the make2.82 file to MinGW/bin.
Yes, it does make differently, but still some wierd error exists, like:
       File 'C:wxWidgets-2.9.2include/wx/wxprec.h' does not exist.
The file should be  C:\wxWidgets-2.9.2\include/wx/wxprec.h, which works fine for make 2.81. I try several times, the error still the same. Maybe that's because I use make 2.81 to produce the .o files. So I clean the project, and use make 2.82 to remake all the files. But another weird error shows up:
gcc: CreateProcess: No such file or directory
Even I change back to 2.81, it's still the same. Everything seems to be wrong. But fortunately I get some advice from google:
http://www.cppblog.com/romangol/archive/2008/04/19/47595.aspx
http://mysparks.info/gcc-createprocess-no-such-file-or-directory-errors
And resolve it soon.


After that, make 2.82 works fine, and I see the following message:
Creating temporary batch file C:\DOCUME~1\leon\LOCALS~1\Temp\make6976-1.bat
Batch file contents:
@echo off
echo ./Debug/dialogs.o ./Debug/AndroidRuntime_sigprocmask.o ./Debug/AndroidRuntime_mingw-compat.o ./Debug/app_process_app_main.o ./Debug/liblog_logd_write.o ./Debug/libcutils_memory.o ./Debug/libcutils_process_name.o ./Debug/stdlib_lrand48.o ./Debug/stdlib_srand48.o ./Debug/stdlib__rand48.o ./Debug/unistd_signal.o ./Debug/stdlib_assert.o ./Debug/stdio_findfp.o ./Debug/bionic___errno.o ./Debug/bionic___get_tls.o ./Debug/stdio_fflush.o ./Debug/stdio_fwalk.o ./Debug/stdlib_atexit.o ./Debug/stdio_stdio.o ./Debug/bionic_libc_init_common.o ./Debug/stdlib_exit.o ./Debug/bionic_thread_atexit.o ./Debug/mmap_mmap.o ./Debug/__get_sp___get_sp.o ./Debug/bionic_pthread.o ./Debug/gettid_gettid.o ./Debug/bionic_system_properties.o ./Debug/futex_futex.o ./Debug/bionic___set_tls.o ./Debug/pthread_clone_pthread_clone.o ./Debug/bionic_ptrace.o ./Debug/_exit_thread__exit_thread.o ./Debug/_exit_with_stack_teardown__exit_with_stack_teardown.o ./Debug/bionic_atomics_x86.o ./Debug/unistd_getpriority.o ./Debug/string_strerror_r.o ./Debug/binder_ProcessState.o ./Debug/utils_RefBase.o ./Debug/binder_IPCThreadState.o ./Debug/core_SkGraphics.o ./Debug/images_SkImageDecoder.o ./Debug/images_SkImageRef_GlobalPool.o ./Debug/core_SkGlobals.o ./Debug/core_SkGlyphCache.o ./Debug/core_SkBitmap.o ./Debug/core_SkCanvas.o ./Debug/core_SkStream.o ./Debug/images_SkImageDecoder_Factory.o ./Debug/ports_SkThread_pthread.o ./Debug/core_SkString.o ./Debug/images_SkImageRefPool.o ./Debug/images_SkImageRef.o ./Debug/core_SkPixelRef.o ./Debug/ports_SkGlobals_global.o ./Debug/core_SkChunkAlloc.o ./Debug/core_SkScalerContext.o ./Debug/core_SkPath.o ./Debug/ports_SkFontHost_android.o ./Debug/ports_SkDebug_android.o ./Debug/core_SkMemory_stdlib.o ./Debug/core_SkDebug.o ./Debug/core_Sk64.o ./Debug/core_SkWriter32.o ./Debug/core_SkColorTable.o ./Debug/core_SkUtils.o ./Debug/core_SkPackBits.o ./Debug/core_SkPaint.o ./Debug/core_SkRefCnt.o ./Debug/core_SkXfermode.o ./Debug/core_SkAlphaRuns.o ./Debug/core_SkBitmap_scroll.o ./Debug/core_SkBitmapProcShader.o ./Debug/core_SkBitmapProcState.o ./Debug/core_SkBitmapProcState_matrixProcs.o ./Debug/core_SkBitmapSampler.o ./Debug/core_SkBlitRow_D16.o ./Debug/core_SkBlitRow_D32.o ./Debug/core_SkBlitRow_D4444.o ./Debug/core_SkBlitter.o ./Debug/core_SkBlitter_4444.o ./Debug/core_SkBlitter_A1.o ./Debug/core_SkBlitter_A8.o ./Debug/core_SkBlitter_ARGB32.o ./Debug/core_SkBlitter_RGB16.o ./Debug/core_SkBlitter_Sprite.o ./Debug/core_SkBuffer.o ./Debug/core_SkColor.o ./Debug/core_SkColorFilter.o ./Debug/core_SkComposeShader.o ./Debug/core_SkCordic.o ./Debug/core_SkDeque.o ./Debug/core_SkDevice.o ./Debug/core_SkDither.o ./Debug/core_SkDraw.o ./Debug/core_SkEdge.o ./Debug/core_SkEdgeBuilder.o ./Debug/core_SkEdgeClipper.o ./Debug/core_SkFilterProc.o ./Debug/core_SkFlattenable.o ./Debug/core_SkFloat.o ./Debug/core_SkFloatBits.o ./Debug/core_SkGeometry.o ./Debug/core_SkLineClipper.o ./Debug/core_SkMask.o ./Debug/core_SkMaskFilter.o ./Debug/core_SkMath.o ./Debug/core_SkMatrix.o ./Debug/core_SkMMapStream.o ./Debug/core_SkPathEffect.o ./Debug/core_SkPathHeap.o ./Debug/core_SkPathMeasure.o ./Debug/core_SkPicture.o ./Debug/core_SkPictureFlat.o ./Debug/core_SkPicturePlayback.o ./Debug/core_SkPictureRecord.o ./Debug/core_SkPoint.o ./Debug/core_SkProcSpriteBlitter.o ./Debug/core_SkPtrRecorder.o ./Debug/core_SkQuadClipper.o ./Debug/core_SkRasterizer.o ./Debug/core_SkRect.o ./Debug/core_SkRegion.o ./Debug/core_SkRegion_path.o ./Debug/core_SkScan.o ./Debug/core_SkScan_Antihair.o ./Debug/core_SkScan_AntiPath.o ./Debug/core_SkScan_Hairline.o ./Debug/core_SkScan_Path.o ./Debug/core_SkShader.o ./Debug/core_SkShape.o ./Debug/core_SkSpriteBlitter_ARGB32.o ./Debug/core_SkSpriteBlitter_RGB16.o ./Debug/core_SkStroke.o ./Debug/core_SkStrokerPriv.o ./Debug/core_SkTSearch.o ./Debug/core_SkTypeface.o ./Debug/core_SkUnPreMultiply.o ./Debug/ports_SkOSFile_stdio.o ./Debug/ports_SkFontHost_gamma.o ./Debug/ports_SkFontHost_FreeType.o ./Debug/libcutils_properties.o ./Debug/vm_Jni.o ./Debug/libnativehelper_JNIHelp.o ./Debug/AndroidRuntime_AndroidRuntime.o ./Debug/vm_Init.o ./Debug/vm_ReferenceTable.o ./Debug/vm_Thread.o ./Debug/oo_Object.o ./Debug/alloc_Heap.o ./Debug/alloc_Alloc.o ./Debug/interp_Stack.o ./Debug/vm_Atomic.o ./Debug/vm_Native.o ./Debug/vm_Sync.o ./Debug/vm_Exception.o ./Debug/vm_Misc.o ./Debug/vm_UtfString.o ./Debug/vm_AllocTracker.o ./Debug/vm_Ddm.o ./Debug/vm_Debugger.o ./Debug/vm_DvmDex.o ./Debug/vm_Hash.o ./Debug/vm_IndirectRefTable.o ./Debug/vm_InlineNative.o ./Debug/vm_Inlines.o ./Debug/vm_Intern.o ./Debug/vm_JarFile.o ./Debug/vm_LinearAlloc.o ./Debug/vm_PointerSet.o ./Debug/vm_Profile.o ./Debug/vm_Properties.o ./Debug/vm_RawDexFile.o ./Debug/vm_SignalCatcher.o ./Debug/vm_StdioConverter.o ./Debug/vm_TestCompability.o ./Debug/reflect_Reflect.o ./Debug/oo_AccessCheck.o ./Debug/oo_Array.o ./Debug/oo_Resolve.o ./Debug/oo_TypeCheck.o ./Debug/vm_AtomicCache.o ./Debug/alloc_CardTable.o ./Debug/vm_CheckJni.o ./Debug/oo_Class.o ./Debug/alloc_Copying.o ./Debug/alloc_HeapWorker.o ./Debug/libdex_DexProto.o ./Debug/utils_Timers.o ./Debug/utils_Threads.o ./Debug/jni_android_debug_JNITest.o ./Debug/binder_Static.o ./Debug/utils_String16.o ./Debug/utils_String8.o ./Debug/binder_Parcel.o ./Debug/binder_BpBinder.o ./Debug/utils_VectorImpl.o ./Debug/utils_TextOutput.o ./Debug/utils_Static.o ./Debug/jni_android_util_FloatMath.o ./Debug/jni_android_util_Log.o ./Debug/jni_android_util_StringBlock.o ./Debug/jni_android_util_XmlBlock.o ./Debug/jni_android_os_SystemClock.o ./Debug/jni_android_text_AndroidBidi.o ./Debug/jni_android_text_AndroidCharacter.o ./Debug/jni_android_text_format_Time.o ./Debug/jni_android_util_AssetManager.o ./Debug/jni_android_util_Binder.o ./Debug/jni_android_util_EventLog.o ./Debug/graphics_Graphics.o ./Debug/jni_android_pim_EventRecurrence.o ./Debug/jni_android_security_Md5MessageDigest.o ./Debug/jni_android_text_KeyCharacterMap.o ./Debug/jni_android_util_Process.o ./Debug/jni_android_view_Display.o ./Debug/jni_android_opengl_GLES11Ext.o ./Debug/jni_android_view_Surface.o ./Debug/jni_android_view_ViewRoot.o ./Debug/jni_com_google_android_gles_jni_EGLImpl.o ./Debug/jni_com_google_android_gles_jni_GLImpl.o ./Debug/jni_android_graphics_PixelFormat.o ./Debug/jni_android_opengl_GLES10.o ./Debug/jni_android_opengl_GLES10Ext.o ./Debug/jni_android_opengl_GLES11.o ./Debug/jni_android_opengl_GLES20.o ./Debug/graphics_BitmapRegionDecoder.o ./Debug/graphics_Bitmap.o ./Debug/graphics_BitmapFactory.o ./Debug/graphics_Canvas.o ./Debug/graphics_DrawFilter.o ./Debug/graphics_ColorFilter.o ./Debug/graphics_AutoDecodeCancel.o ./Debug/graphics_Camera.o ./Debug/graphics_CreateJavaOutputStreamAdaptor.o ./Debug/graphics_Interpolator.o ./Debug/graphics_LayerRasterizer.o ./Debug/graphics_MaskFilter.o ./Debug/graphics_Matrix.o ./Debug/graphics_Movie.o ./Debug/graphics_NinePatch.o ./Debug/graphics_NinePatchImpl.o ./Debug/graphics_Paint.o ./Debug/graphics_Path.o ./Debug/graphics_PathEffect.o ./Debug/graphics_PathMeasure.o ./Debug/graphics_Picture.o ./Debug/graphics_PorterDuff.o ./Debug/graphics_Rasterizer.o ./Debug/graphics_Region.o ./Debug/graphics_Shader.o ./Debug/graphics_Typeface.o ./Debug/graphics_Utils.o ./Debug/graphics_Xfermode.o ./Debug/graphics_YuvToJpegEncoder.o ./Debug/jni_com_android_internal_graphics_NativeUtils.o ./Debug/jni_android_os_SystemProperties.o ./Debug/jni_android_os_Debug.o ./Debug/jni_android_os_MessageQueue.o ./Debug/jni_android_os_ParcelFileDescriptor.o ./Debug/jni_android_os_Power.o ./Debug/jni_android_os_StatFs.o ./Debug/jni_android_os_FileUtils.o ./Debug/jni_android_os_UEventObserver.o ./Debug/jni_android_util_FileObserver.o ./Debug/jni_android_media_AudioSystem.o ./Debug/jni_android_os_MemoryFile.o ./Debug/jni_com_android_internal_os_ZygoteInit.o ./Debug/jni_android_hardware_Camera.o ./Debug/jni_android_hardware_SensorManager.o ./Debug/jni_android_media_AudioRecord.o ./Debug/jni_android_net_LocalSocketImpl.o ./Debug/jni_android_emoji_EmojiFactory.o ./Debug/libcutils_atomic.o ./Debug/base_ftadvanc.o ./Debug/base_ftinit.o ./Debug/base_ftobjs.o ./Debug/base_ftoutln.o ./Debug/mingw_errno.o ./Debug/sigaction_sigaction1.o  > "d:\linux\linuxkernel\WORKING_DIRECTORY\ango\angowx\angowx.txt"
CreateProcess(C:\DOCUME~1\leon\LOCALS~1\Temp\make6976-1.bat,C:\DOCUME~1\leon\LOCALS~1\Temp\make6976-1.bat,...)
Live child 00c1a0a0 (Debug/angowx) PID 12699152 
ê?è?DDì?3¤?£
mingw32-make.exe[1]: *** [Debug/angowx] Error 255
mingw32-make.exe: *** [All] Error 2
Reaping losing child 00c1a0a0 PID 12699152 
Cleaning up temp batch file C:\DOCUME~1\leon\LOCALS~1\Temp\make6976-1.bat
angowx.mk:95: recipe for target 'Debug/angowx' failed


that's a long command in that bat. maybe it's too long. I copy it to cmd. Yes, it's too long, so angowx.txt doesn't exist.
So I will have to launch library project to reduce the amount of files.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值