锘??xml version="1.0" encoding="utf-8" standalone="yes"?>
/EHr always generate noexcept runtime termination checks
/fp:<except[-]|fast|precise|strict> choose floating-point model:
    except[-] - consider floating-point exceptions when generating code
    fast - "fast" floating-point model; results are less predictable
    precise - "precise" floating-point model; results are predictable
    strict - "strict" floating-point model (implies /fp:except)
/Qfast_transcendentals generate inline FP intrinsics even with /fp:except
/Qpar[-] enable parallel code generation
/Qpar-report:1 auto-parallelizer diagnostic; indicate parallelized loops
/Qpar-report:2 auto-parallelizer diagnostic; indicate loops not parallelized
/Qvec-report:1 auto-vectorizer diagnostic; indicate vectorized loops
/Qvec-report:2 auto-vectorizer diagnostic; indicate loops not vectorized
/GL[-] enable link-time code generation 
/volatile:<iso|ms> choose volatile model:
    iso - Acquire/release semantics not guaranteed on volatile accesses
    ms  - Acquire/release semantics guaranteed on volatile accesses
/GA optimize for Windows Application    /Ge force stack checking for all funcs
/Gs[num] control stack checking calls   /Gh enable _penter function call
/GH enable _pexit function call         /GT generate fiber-safe TLS accesses
/RTC1 Enable fast checks (/RTCsu)       /RTCc Convert to smaller type checks
/RTCs Stack Frame runtime checking      /RTCu Uninitialized local usage checks
/clr[:option] compile for common language runtime, where option is:
    pure - produce IL-only output file (no native executable code)
    safe - produce IL-only verifiable output file
    initialAppDomain - enable initial AppDomain behavior of Visual C++ 2002
    noAssembly - do not produce an assembly
    nostdlib - ignore the default \clr directory
/Gd __cdecl calling convention          /Gr __fastcall calling convention
/Gz __stdcall calling convention        /GZ Enable stack checks (/RTCs)
/Gv __vectorcall calling convention     /QIfist[-] use FIST instead of ftol()
/hotpatch ensure function padding for hotpatchable images
/arch:<IA32|SSE|SSE2|AVX|AVX2> minimum CPU architecture requirements, one of:
   IA32 - use no enhanced instructions and use x87 for floating point
   SSE - enable use of instructions available with SSE-enabled CPUs
   SSE2 - (default) enable use of instructions available with SSE2-enabled CPUs
   AVX - enable use of instructions available with AVX-enabled CPUs
   AVX2 - enable use of instructions available with AVX2-enabled CPUs
/Qimprecise_fwaits generate FWAITs only on "try" boundaries, not inside "try"
/Qsafe_fp_loads generate safe FP loads  
                              -OUTPUT FILES-
/Fa[file] name assembly listing file    /FA[scu] configure assembly listing
/Fd[file] name .PDB file                /Fe<file> name executable file
/Fm[file] name map file                 /Fo<file> name object file
/Fp<file> name precompiled header file  /Fr[file] name source browser file
/FR[file] name extended .SBR file       /Fi[file] name preprocessed file
/Fd: <file> name .PDB file              /Fe: <file> name executable file
/Fm: <file> name map file               /Fo: <file> name object file
/Fp: <file> name .PCH file              /FR: <file> name extended .SBR file
/Fi: <file> name preprocessed file      
/doc[file] process XML documentation comments and optionally name the .xdc file
                              -PREPROCESSOR-
/AI<dir> add to assembly search path    /FU<file> forced using assembly/module 
/C don't strip comments                 /D<name>{=|#}<text> define macro
/E preprocess to stdout                 /EP preprocess to stdout, no #line
/P preprocess to file                   /Fx merge injected code to file
/FI<file> name forced include file      /U<name> remove predefined macro
/u remove all predefined macros         /I<dir> add to include search path
/X ignore "standard places"             
                                -LANGUAGE-
/Zi enable debugging information        /Z7 enable old-style debug info
/Zp[n] pack structs on n-byte boundary  /Za disable extensions
/Ze enable extensions (default)         /Zl omit default library name in .OBJ
/Zs syntax check only                   /vd{0|1|2} disable/enable vtordisp
/vm<x> type of pointers to members      
/Zc:arg1[,arg2] C++ language conformance, where arguments can be:
  forScope[-]           enforce Standard C++ for scoping rules
  wchar_t[-]            wchar_t is the native type, not a typedef
  auto[-]               enforce the new Standard C++ meaning for auto
  trigraphs[-]          enable trigraphs (off by default)
  rvalueCast[-]         enforce Standard C++ explicit type conversion rules
  strictStrings[-]      disable string-literal to [char|wchar_t]*
                        conversion (off by default)
  implicitNoexcept[-]   enable implicit noexcept on required functions
  threadSafeInit[-]     enable thread-safe local static initialization
  inline[-]             remove unreferenced function or data if it is
                        COMDAT or has internal linkage only (off by default)
  sizedDealloc[-]       enable C++14 global sized deallocation
                        functions (on by default)
  throwingNew[-]        assume operator new throws on failure (off by default)
  referenceBinding[-]   a temporary will not bind to an non-const
                        lvalue reference (off by default)
/ZH:SHA_256             use SHA256 for file checksum in debug info (experimental)
/Zo[-] generate richer debugging information for optimized code (on by default)
/ZW enable WinRT language extensions    
/constexpr:depth<N>     use <N> as the recursion depth limit
                        for constexpr (default: 512)
/constexpr:backtrace<N> show <N> constexpr evaluations
                        in diagnostics (default: 10)
/constexpr:steps<N>     terminate constexpr evaluation after
                        <N> steps (default: 100000)
/ZI enable Edit and Continue debug info 
/openmp enable OpenMP 2.0 language extensions
                              -MISCELLANEOUS-
@<file> options response file           /?, /help print this help message
/bigobj generate extended object format /c compile only, no link
/errorReport:option Report internal compiler errors to Microsoft
    none - do not send report                
    prompt - prompt to immediately send report
    queue - at next admin logon, prompt to send report (default)
    send - send report automatically         
/FC use full pathnames in diagnostics   /H<num> max external name length
/J default char type is unsigned        
/MP[n] use up to 'n' processes for compilation
/nologo suppress copyright message      
/sdl enable additional security features and warnings
/showIncludes show include file names   /Tc<source file> compile file as .c
/Tp<source file> compile file as .cpp   /TC compile all files as .c
/TP compile all files as .cpp           /V<string> set version string
/w disable all warnings                 /wd<n> disable warning n
/we<n> treat warning n as an error      /wo<n> issue warning n once
/w<l><n> set warning level 1-4 for n    /W<n> set warning level (default n=1)
/Wall enable all warnings               /WL enable one line diagnostics
/WX treat warnings as errors            /Yc[file] create .PCH file
/Yd put debug info in every .OBJ        /Yl[sym] inject .PCH ref for debug lib
/Yu[file] use .PCH file                 /Y- disable all PCH options
/Zm<n> max memory alloc (% of default)  /FS force to use MSPDBSRV.EXE
/await enable resumable functions extension
/Wv:xx[.yy[.zzzzz]] disable warnings introduced after version xx.yy.zzzzz
/source-charset:<iana-name>|.nnnn set source character set
/execution-charset:<iana-name>|.nnnn set execution character set
/utf-8 set source and execution character set to UTF-8
/validate-charset[-] validate UTF-8 files for only legal characters
                                -LINKING-
/LD Create .DLL                         /LDd Create .DLL debug library
/LN Create a .netmodule                 /F<num> set stack size
/link [linker options and libraries]    /MD link with MSVCRT.LIB
/MT link with LIBCMT.LIB                /MDd link with MSVCRTD.LIB debug lib
/MTd link with LIBCMTD.LIB debug lib    
                              -CODE ANALYSIS-
/analyze[-] Enable native analysis      /analyze:quiet[-] No warning to console
/analyze:log<name> Warnings to file     /analyze:autolog Log to *.pftlog
/analyze:autolog:ext<ext> Log to *.<ext>/analyze:autolog- No log file
/analyze:WX- Warnings not fatal         /analyze:stacksize<num> Max stack frame
/analyze:max_paths<num> Max paths       /analyze:only Analyze, no code gen


瀹嬮箯 2019-03-09 11:23 鍙戣璇勮
]]>QT_VS2005_CE6.0_寮鍙戠幆澧冩灦璁?/title><link>http://www.9087120.com/hkingSP/archive/2019/03/08/216291.html</link><dc:creator>瀹嬮箯</dc:creator><author>瀹嬮箯</author><pubDate>Fri, 08 Mar 2019 06:30:00 GMT</pubDate><guid>http://www.9087120.com/hkingSP/archive/2019/03/08/216291.html</guid><wfw:comment>http://www.9087120.com/hkingSP/comments/216291.html</wfw:comment><comments>http://www.9087120.com/hkingSP/archive/2019/03/08/216291.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.9087120.com/hkingSP/comments/commentRss/216291.html</wfw:commentRss><trackback:ping>http://www.9087120.com/hkingSP/services/trackbacks/216291.html</trackback:ping><description><![CDATA[<div><p>銆奞T_VS2005_CE6.0_寮鍙戠幆澧冩灦璁?#37510;?br />1銆佸熀纭?#24134;澧?#38171;?br />鎿嶄綔绯荤粺锛歐indows XP<br />缂栬瘧鍣?#38171;?#38171;?锛塚S2005 VC?#24134;澧? 锛?锛塚S2005 SP1<br />锛圫P1 蹇呴鏈?#38171;屼互?#24385;渚汣E骞?#37721;扮殑?#25966;鎸?#38171;?#23052;?#37832;夌殑璇?#38171;孉rm Emulator?#27537;绋?#25652;?#32514;栬瘧涓?#26473;?#38171;?#22959;嫙鍣篃鎶敊“EmulatorStub.exe涓噸?#25930;璇?#8221;锛?br />QT鐗?#37832;?#38171;歲t-everywhere-opensource-src-4.8.6.zip<br />CE SDK锛欰RM Emulator<br /><br />2銆?#28729;?#29761;呮楠?#38171;?br />锛?锛?#37814;奞T婧愮爜瑙帇?#22476;E:\QT\4.8.6\CE6.0\Emulator<br />Tim锛?#28051;?#27996;烘帹鑽愭牴鐩綍锛?#28051;?#29999;?#28000;讳綍涓?#37714;掔嚎銆佺?#28888;?#32937;瓑骞鸿?#24807;瓙锛?#38339;叉鍑洪敊銆?#37510;?br />Tim锛?u>缁濆涓嶈兘甯?#28051;?#37714;掔嚎</u>锛?br />鍏?#37721;?#37922;佃剳涓婄殑鐩綍锛岃捣鍚?#29999;?#28051;?#28051;?#37714;掔嚎"4.8.6_ArmEmulator"锛?#32513;撴?#28144;S2005鍒涘缓宸?#32459;?#28598;辫触锛?#29831;?#32514;?#28751;?#39582;?#37721;版敮鎸?#37510;?#37510;?br />Tim锛氫篃鏈濂戒綅浜嶤鐩?#38171;?#37812;?#37814;?#28729;堕噷鐢佃?#25120;殑缂栬瘧鐗?#37832;?#38171;?#37824;惧埌鍏?#37721;?#37922;佃?#25120;殑C鐩?#38171;屽?#28056;?#27946;鐩?#37812;愬姛锛屽師鏉殑鍏?#37721;?#37911;?#37832;?#37734;E鐩?#38171;屼?#27692;?#36779;触銆?#37510;?#28051;?#37933;?#38316;撴槸涓?#37828;敊瑙?#37510;?#37510;?br />锛?锛?#26473;?#37711;?#8220;Visual Studio 2005 鍛戒护?#24385;绀?#8221;<br />浣嶇疆鏄?#8220;寮濮嬭彍鍗?>鎵鏈夌搴?>Microsoft Visual Studio 2005->Visual Studio Tools->Visual Studio 2005 鍛戒护?#24385;绀?#8221;銆?#37510;?br />鐒?#37722;?#37714;囨崲?#22476;缂栬瘧鐩綍锛E:\QT\4.8.6\CE6.0\Emulator<br />锛?锛?#37813;?#29723;屼互涓?#37723;戒护锛?br />configure -platform win32-msvc2005 -xplatform wince60standard-armv4i-msvc2005<br />①濡?#37835;?#37807;宠妭鐪?#37827;堕棿锛?#38318;?#37714;?#32514;栬瘧锛?br />[-debug-and-release] 缂栬瘧鍜岄摼鎺?#28051;?#28051;?#37911;?#37832;殑Qt<br />[-nomake examples]<br />[-nomake demos]<br />[-nomake docs]<br />[-no-multimedia] <br />[-no-phonon] <br />[-no-phonon-backend] <br />[-no-media-backend] <br />[-no-audio-backend] <br />[-no-openssl]<br />[-no-gtkstyle] <br />[-no-svg] <br />[-no-webkit]  鏄?#37722;?#32514;栬瘧Web鐩?#37711;殑涓浜決T瀛?#25652;?#38171;屽姞涓?#26473;?#28051;?#37721;?#28000;?#37930;?#28051;?#28751;?#32514;栬瘧鏃堕棿锛屽氨鐪?#28003;?#37828;?#37722;?#37713;?#28598;囩敤杩?#27996;?#25652;?#27996;?#37510;?br />[-no-javascript-jit] <br />[-no-script]<br />[-no-scripttools] <br />[-no-sql-sqlite]<br />[-no-declarative]<br />[-no-declarative-debug] <br />Tim锛?#28000;?#28051;?#37721;?#38315;?#26916;?#37735;?#37832;?#29831;?#26976;?#37510;?#37510;?<br />Tim锛?br />鍙?#37814;勬潵涓涓?#32514;栬瘧WIN32 VS2005璁剧疆?#27537;锛?br />configure -fast -platform win32-msvc2005  -nomake examples -nomake docs -nomake demos -no-webkit -no-phonon -no-phonon-backend -no-multimedia<br />Tim锛?br />4.8.6鐗堢殑锛?#28051;嶇鎬庝箞缂栬瘧锛岄兘浼氬?#27946;敊銆?#37510;?br />①绗?#28051;涓敊璇?#38171;屼慨鏀?#28641;?#28051;?#38171;?br />qclipboard_win.cpp 绗?06琛?#38171;?br />鎶?#37713;洪敊?#27537;CheckRemoteDebuggerPresent锛岄?#26473;囩増鏈?#37714;?#37826;殑鏂?#23534;?#38171;?#28051;?#32514;栬瘧杩?#37833;?#37510;?#37510;?br />#if defined(_MSC_VER) && _MSC_VER <= 1400<br />    return false;<br />#else<br />........................<br />    CheckRemoteDebuggerPresent(processHandle, &debugged);<br />#endif<br />②绗?#27996;?#28051;敊璇?#38171;?br />缁?#32513;?nmake銆閬囧埌绗?#27996;?#28051;敊璇?br />     platform\DefaultLocalizationStrategy.cpp(327) : error C2001: newline in constant<br />     platform\DefaultLocalizationStrategy.cpp(327) : fatal error C1057: unexpected end of file in macro expansion<br />     杩?#28051;敊璇殑?#24107;鍥?#37828;?#37733;?#28051;?#28000;爜?#22135;?#28528;?#27537;?#28522;鑻?#37826;囩殑寮?#37721;?#38315;?#37812;愮殑銆?br />    ?#24107;濮嬬殑?#25930;璇?#28000;?#37934;佸涓?#38171;?br />     return WEB_UI_STRING("Look Up “<selection>”", "Look Up context menu item with selected word").replace("<selection>", truncatedStringForLookupMenuItem(selectedString));<br />     澶?#28729;舵敞?#21104;銆<selection> 鍗?#29831;嶅墠鍚庣殑寮?#37721;?#37510;?#28751;?#37828;?#28729;?#38315;?#37812;?#32514;栬瘧鎶敊銆備慨鏀?#37812;?#28051;嬮潰?#27537;浠爜<br />    return WEB_UI_STRING("Look Up \"<selection>\"", "Look Up context menu item with selected word").replace("<selection>", truncatedStringForLookupMenuItem(selectedString));<br />Tim锛氫篃灏?#37828;?#28751;唖election涓?#28186;殑涓?#37826;?#23534;?#37721;烽偅?#22135;鏀?#37812;?#28051;?#37826;囩殑鏍?#28699;?#38171;?#37510;?#37510;?#28610;囨?#38000;?#28598;篃鐢?#26473;欑寮?#37721;蜂箞銆?#37510;?br />锛?锛塩onfigure涔?#37722;?#29825;剧疆?#24134;澧?#37721;?#38322;?#38171;?br />①浣?#37922;Arm Emulator锛?br />set INCLUDE=C:/Program Files/Microsoft Visual Studio 8/VC/ce/include;C:\Program Files\Windows CE Tools\wce600\ARM_Emulator\Include\Armv4i<br />set LIB=C:/Program Files/Microsoft Visual Studio 8/VC/ce/lib/armv4i;C:/Program Files/Windows CE Tools/wce600/ARM_Emulator/Lib/armv4i<br />set PATH=C:/Program Files/Microsoft Visual Studio 8/VC/ce/bin/x86_arm;%PATH%<br />②濡?#37835;?#28003;?#37922;S2416?#27537;SDK锛?br />set INCLUDE=C:/Program Files/Microsoft Visual Studio 8/VC/ce/include;C:\Program Files\Windows CE Tools\wce600\SBC2416\Include\Armv4i<br />set LIB=C:/Program Files/Microsoft Visual Studio 8/VC/ce/lib/armv4i;C:/Program Files/Windows CE Tools/wce600/SBC2416/Lib/armv4i<br />set PATH=C:/Program Files/Microsoft Visual Studio 8/VC/ce/bin/x86_arm;%PATH%<br />鎵?#29723;?#38171;?br />nmake<br />Tim锛?#37812;?#28051;嬭浇?#27537;婧愮爜4.8.6鍦configure涔?#37722;?#38171;屽嚭鐜?#29825;?#37929;?#29723;?#38171;歴etcepaths.bat wince600standard-armv4i-msvc2005 && nmake?#27537;?#24385;绀?#38171;?#37812;戜及璁?#28051;?#37922;?#29825;剧疆涓?#26473;扮幆澧?#37721;?#38322;?#38171;屼篃鏈?#37721;兘鍙?#28000;?#37812;愬姛缂栬瘧锛屼絾涓嶅啋?#20549;涓?#38340;?#38171;?#37929;存帴鎸夌収鏂囩?#29363;帹鑽愮殑姝?#26976;?#37833;?#37510;?#37510;?br />Tim锛?#37812;?#26473;?#29723;setcepaths.bat锛?#32513;撴灉娌?#37832;夐偅涓猄DK鍙?#37832;wincewm60standard-armv4i-msvc2005锛岃?#28051;偅涓BAT?#22135;?#28528;锛屽彧鏄?#26473;?#29723;?#27996;check sdk?#27537;?#23017;?#32148;銆?#37510;?#37813;浠粨璁?#37828;?#37816;夌収?#24121;鑽?#37826;囩?#29363;寚瀹SDK?#27537;?#30718;寰?#38171;nmake搴?#29831;?#28751;?#37721;?#28000;?#37510;?#37510;?br />Tim锛?#37922;綔鑰呯殑鏂规锛孨make缂栬瘧鎴愬姛銆?#37510;?br />锛?锛?#28729;?#29761;卶t-vs-addin锛?br />瀹?#29761;?#8220;qt-vs-addin-1.1.10.exe”銆?#37510;?br />Tim锛?#8220;qt-vs-addin-1.2.0-opensource.exe 锛屽氨寮濮?#28051;嶆敮鎸VS2005銆?#37510;?#8221;鏃?#29831;?#37510;?#37510;?br />锛?锛?#28103;?#37824;筍DK?#27537;鍚嶇锛?br />缂栬緫" C:\QT\CE6.0\4.8.6\mkspecs\wince60standard-armv4i-msvc2005\qmake.conf "銆?#37510;?br />灏嗛噷?#28528;?#27537;<br />CE_SDK  = STANDARDSDK_600<br />鍙樻洿涓?br />CE_SDK  = ARM_Emulator<br />Tim锛氬洜涓哄師濮?#32514;栬瘧?#27537;SDK?#24134;澧?#38171;?#28729;?#37722;嶇鍙仛"wince600standard-armv4i-msvc2005"锛孉rm Emulator?#27537;搴?#29882;?#26473;?#28051;幆澧冧篃鏄?#28051;鏍风殑锛屼絾鏄?#37722;嶇涓?#28051;鏍?#38171;Qt鎻掍欢?#32048;鎶敊銆?#37510;?br />锛?锛?#37718;呭惈?#24134;澧?#37721;?#38322;?#38171;?br />①Arm_Emulator?#27537;璇?#38171;?br />鍦VS2005 -> Tool -> Options -> VC++ Directories -> Arm_Emulator?#22135;?#28528;锛?br />Include澧炲姞锛? C:\QT\4.8.6\CE6.0\Emulator\include "銆?#37510;?br />Library澧炲姞锛? C:\QT\4.8.6\CE6.0\Emulator\lib " 銆?#37510;?br />Tim锛?#37812;?#28051;寮濮?#28751;?#23052;?#37718;呭惈锛?#32513;撴灉缂栬瘧鍒?#27996;虹殑浠爜锛?#37814;敊娌?#37832;? QtSql "銆?#37510;?br />②WIN32缂栬瘧?#27537;璇?#38171;?br />鍦VS2005 -> Tool -> Options -> VC++ Directories -> Win32?#22135;?#28528;锛?br />Include澧炲姞锛? C:\QT\4.8.6\WIN32\include "銆?#37510;?br />Library澧炲姞锛? C:\QT\4.8.6\WIN32\lib " 銆?#37510;?br />Tim锛?br />涓?#27996;?#29825;Visual Assist?#27967;濂界殑璇?#37714;玅T?#27537;鍑?#37825;?#37722;?#37510;佺被鍚?#38171;?#37832;濂?#37734;VS2005?#22135;?#28528;澶氭坊?#23006;涓浜?#37929;綍濡?#38171;?br />C:\QT\4.8.6\WIN32\src<br />C:\QT\4.8.6\WIN32\include\Qt<br />C:\QT\4.8.6\WIN32\include\QtCore<br />C:\QT\4.8.6\WIN32\include\QtGui<br />锛?锛?#23534;鍚疉rm Emulator锛?br />Tool -> Connect to Device -> Arm Emulator Device銆?#37510;?br />锛?锛?#37826;板缓涓涓猀T宸?#32459;?#38171;?#32514;栬瘧銆?#26473;?#29723;?#38171;?br />寮鍚疺S2005 -> File -> New -> Project -> Qt4 Projects -> Qt Window CE Application -> ?#20824;閫夐粯璁?#29825;剧疆锛岀劧鍚?#32514;栬瘧銆?#38318;?#32515;?#37510;?#37813;?#29723;?#38171;?#37832;鍚?#37812;愬姛鍦Arm Emulator?#22135;?#28528;寮?#37713;?#28051;?#28725;?#29831;濇鏉?#38171;OK锛?#37510;?#37510;?br />Tim锛?#37930;嬪埌閮?#32515;茬殑鏃跺?#38171;?#37922;?#27996;VS2005?#27537;搴?#38171;坢svcr80d.dll锛?#38171;?#26473;?#37832;QT?#27537;涓?#28051;?#28051;?#25652;?#38171;圦tCored4.dll銆丵tGuid4.dll浠涔堢殑锛?#37510;?#37510;?br />锛?0锛?#32514;栬緫*.ui鏂囦欢锛?#29825;?#29825;?#37923;岄潰锛?br />瀹?#29761;? qt-creator-opensource-windows-x86-3.3.0.exe "锛?#37813;嶈兘鎵?#23534;" *.ui "鏂囦欢锛屼粠鑰屽彉?#27967;鐣岄潰銆?#37510;?br />Tim锛?#37930;?#27996;?#28051;?ui鏂囦欢?#21502;瀹炴槸涓涓獂ml缁撴?#21229;殑鏂囨銆?#37510;?br />Tim锛?br />" qt-creator-opensource-windows-x86-3.0.0.exe " Based on Qt5.2.0 ( MSVC2010,32 bit )銆?#37510;?br />" qt-creator-opensource-windows-x86-3.3.0.exe " Based on Qt5.4.0 ( MSVC2010,32 bit )銆?#37510;?#37510;?#37510;?br /><br /><br /><br /><br /><br /><br /><br /></p></div><img src ="http://www.9087120.com/hkingSP/aggbug/216291.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.9087120.com/hkingSP/" target="_blank">瀹嬮箯</a> 2019-03-08 14:30 <a href="http://www.9087120.com/hkingSP/archive/2019/03/08/216291.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣璇勮</a></div>]]></description></item><item><title>Qt5.10.1 static compiling on Windows MSVC/Ubuntu g++http://www.9087120.com/hkingSP/archive/2019/03/08/216289.html瀹嬮箯瀹嬮箯Fri, 08 Mar 2019 03:00:00 GMThttp://www.9087120.com/hkingSP/archive/2019/03/08/216289.htmlhttp://www.9087120.com/hkingSP/comments/216289.htmlhttp://www.9087120.com/hkingSP/archive/2019/03/08/216289.html#Feedback0http://www.9087120.com/hkingSP/comments/commentRss/216289.htmlhttp://www.9087120.com/hkingSP/services/trackbacks/216289.html?#24134;澧?#38171;歐indows10 / vs2013 or vs2015锛圦t5.10.1鏄?#28000;C++11涓哄熀纭锛屽?#29363;vs2008姝囪彍浜?#38171;?/h3>鍙?#38000;?#28000;爜閲岀殑Readme锛?br />
1.瀹?#29761;?#38171;?/strong>
瀹?#29761;?#27996;唒erl/python2.7/ruby 
瀹?#29761;?#27996;唙s2015

2.?#24134;澧?#37721;?#38322;?/strong>
add C:\Perl\bin to PERL_HOME
add %PERL_HOME% to path
add C:\Python27 to PYTHON_HOME
add %PYTHON_HOME% to path
add C:\Ruby26\bin to RUBY_HOME
add %RUBY_HOME% to path
add C:\Qt\Qt5.10.1\5.10.1\msvc2015\bin to QT_LIB_HOME
add %QT_LIB_HOME% to path
add C:\Qt\Qt5.10.1\Tools\QtCreator\bin to QT_CREATOR_HOME
add %QT_CREATOR_HOME% to path
?#25950;?#21104;锛氬儚瀹?#37826;规帹鑽愮殑涓鏍?#38171;?#26473;欓噷鏈濂?#37922;?#37722;?#28051;鐗?#37832;殑binary瀹?#29761;呯殑Qt姣旇緝瀹?#29761;?#37510;?br />?#25950;?#21104;锛氬鏋?#26473;欓噷娌?#37832;夋坊?#23006;QT?#27537;?#30718;寰?#38171;屽氨?#32048;琚帹鑽愮敤nmake缂栬瘧锛屽惁鍒欒?#24121;鑽愮敤jom缂栬瘧銆?/div>3.浠爜锛?/strong>
浠爜瑙帇缂埌C:\Qt\Qt5.10.1_src
浜?#37828;Configure鏂囦欢鍦?#38171;?br />C:\Qt\Qt5.10.1_src

qtbase鏂囦欢澶?#37734;?#38171;?br />
C:\Qt\Qt5.10.1_src\qtbase

4.淇?#37824;?#38320;嶇疆浠嶮D?#22476;MT锛堝姩鎬侀摼鎺?#37824;?#28051;洪潤鎬侀摼鎺?#38171;?#38171;?/strong>
淇?#37824;?#37826;囦欢锛?br />C:\Qt\Qt5.10.1_src\qtbase\mkspecs\common\msvc-desktop.conf
淇?#37824;?#28051;嬮潰鍑?#29723;屼唬?#29212;锛?/div>
QMAKE_CFLAGS_RELEASE    = $$QMAKE_CFLAGS_OPTIMIZE -MD
QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += $$QMAKE_CFLAGS_OPTIMIZE -Zi -MD
QMAKE_CFLAGS_DEBUG      = -Zi -MDd
鏀?#28051;?#38171;?br />
QMAKE_CFLAGS_RELEASE    = $$QMAKE_CFLAGS_OPTIMIZE -MT
QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += $$QMAKE_CFLAGS_OPTIMIZE -Zi -MT
QMAKE_CFLAGS_DEBUG      = -Zi -MTd

淇?#37824;?#37826;囦欢锛?br />C:\Qt\Qt5.10.1_src\qtbase\mkspecs\common\msvc-version.conf
鍦?#37832;鍓嶉潰?#23006;涓?#38171;?br />
QMAKE_MSC_VER = 1900
鍚?#37714;欎細鎶敊锛?br />
msvc-version.conf loaded but qmake_msc_ver isn't set

杩?#29723;C:\Qt\Qt5.10.1_src>configure.bat 纭?#29825;?#38320;嶇疆
5.缂栬瘧锛?/strong>
<license>閫夋嫨-opensource
鎺?#37714;?#37721;?#38315;夋嫨锛?/strong>
寮濮?-> Visual Studio 2015 -> Developer Command Prompt for VS2015 

鐤媯?#27537;缂?#37713;?#32514;栬瘧閫夋嫨锛屽彲浠?#37922;?#37833;?#28751;?#29831;?#37832;灏?#37718;?#32514;栬瘧锛?span style="color: red;">褰?#37906;?#37812;?#28598;辫触浜?/span>锛?comercial user 鍙?#28000;?#37922;qt?#27537;Congiguration tool 鐒?#38000;?#37812;?#39582;?#23052;?#37832;?#38171;?#37832;?#27996;?#28000;?#37833;?#37827;犳硶zh锛?/strong>锛?br />
configure -confirm-license -opensource -platform win32-msvc -static -debug-and-release -prefix "C:\Qt\Qt5.10.1_static"  -make libs -nomake tools -nomake examples -nomake tests -skip qt3d -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdeclarative -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmacextras -skip qtmultimedia -skip qtnetworkauth -skip qtpurchasing -skip qtquickcontrols -skip qtquickcontrols2 -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtsvg -skip qttools -skip qttranslations -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip qtwinextras -skip qtx11extras -skip qtxmlpatterns -no-feature-texthtmlparser -no-feature-textodfwriter -no-feature-concurrent -no-feature-effects -no-feature-sharedmemory -no-feature-systemsemaphore -no-feature-im -no-feature-process -no-feature-dom -no-feature-filesystemmodel -no-feature-filesystemwatcher -no-feature-graphicsview -no-feature-graphicseffect -no-feature-sizegrip -no-feature-calendarwidget -no-feature-printpreviewwidget -no-feature-keysequenceedit -no-feature-colordialog -no-feature-filedialog -no-feature-fontdialog -no-feature-printpreviewdialog -no-feature-progressdialog -no-feature-inputdialog -no-feature-errormessage -no-feature-wizard -no-feature-datawidgetmapper -no-feature-imageformat_bmp -no-feature-imageformat_ppm -no-feature-imageformat_xbm -no-feature-imageformat_png -no-feature-imageformat_jpeg -no-feature-image_heuristic_mask -no-feature-image_text -no-feature-colornames -no-feature-cups -no-feature-paint_debug -no-feature-freetype -no-feature-translation -no-feature-codecs -no-feature-big_codecs -no-feature-iconv -no-feature-ftp -no-feature-udpsocket -no-feature-networkproxy -no-feature-socks5 -no-feature-networkdiskcache -no-feature-bearermanagement -no-feature-completer -no-feature-fscompleter -no-feature-desktopservices -no-feature-mimetype -no-feature-systemtrayicon -no-feature-undocommand -no-feature-undostack -no-feature-undogroup -no-feature-undoview -no-feature-statemachine -no-feature-gestures -no-feature-dbus -no-opengl 

鎴愬姛?#27537;缁勫悎1锛堟兂缂栬瘧鍝?#28051;?灏?#37720;?#37818;夊摢涓猻kip锛?#38171;?/strong>
configure -confirm-license -opensource -platform win32-msvc -static -debug-and-release -prefix "C:\Qt\Qt5.10.1_mt_static" -make libs -nomake tools -nomake examples -nomake tests -skip qt3d -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdeclarative -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmacextras -skip qtmultimedia -skip qtnetworkauth -skip qtpurchasing -skip qtquickcontrols -skip qtquickcontrols2 -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtsvg -skip qttools -skip qttranslations -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip qtwinextras -skip qtx11extras -skip qtxmlpatterns -no-opengl 
灏?#29831;?锛?br />
configure -confirm-license -opensource -platform win32-msvc -static -debug-and-release -prefix "C:\Qt\Qt5.10.1_mt_static" -make libs -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -opengl desktop -nomake tools -nomake examples -nomake tests -skip qtandroidextras -skip qtgamepad -skip qtmacextras -skip qttools -skip qtwinextras -skip qtx11extras  -no-openssl 
Note: No wayland-egl support detected. Cross-toolkit compatibility disabled.
缁撴灉锛?br />
Static builds of QtWebEngine aren't supported.
"Some of the required modules (android|ios|winrt|qtHaveModule(webengine)) are not available."
skip webengine 缁?#32513;?#23092;?#29831;?#38171;?br />
configure -confirm-license -opensource -platform win32-msvc -static -debug-and-release -prefix "C:\Qt\Qt5.10.1_mt_static" -make libs -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -opengl desktop -nomake tools -nomake examples -nomake tests -skip qtandroidextras -skip qtgamepad -skip qtmacextras -skip qttools -skip qtwebengine -skip qtwinextras -skip qtx11extras  -no-openssl 
缁撴灉锛?br />鎴愬姛

鎴愬姛?#27537;缁勫悎2锛?/strong>
configure -confirm-license -opensource -platform win32-msvc -static -debug-and-release -prefix "C:\Qt\Qt5.10.1_mt_static" -make libs -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -opengl desktop -nomake tools -nomake examples -nomake tests -skip qtandroidextras -skip qtgamepad -skip qtmacextras -skip qttools -skip qtwebengine -skip qtwinextras -skip qtx11extras  -no-openssl 
鎴愬姛?#27537;缁勫悎1鍙?#37828;?#37734;?#37719;?#37913;?#32514;栬瘧qtbase鏃?#37832;?#37922;?#38171;?#27996;?#37828;?#28000;?#37722;?#38322;囩敤?#27537;鎴愬姛?#27537;缁勫悎2锛屾荤粨鍛戒护涓?#38171;?/strong>
cd C:\Qt\Qt5.10.1_src
configure -confirm-license -opensource -platform win32-msvc -static -debug-and-release -prefix "C:\Qt\Qt5.10.1_mt_static" -make libs -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -opengl desktop -nomake tools -nomake examples -nomake tests -skip qtandroidextras -skip qtgamepad -skip qtmacextras -skip qttools -skip qtwebengine -skip qtwinextras -skip qtx11extras  -no-openssl 
jom -j2
jom install

plus1:
WARNING: Using OpenGL ES 2.0 on Windows without ANGLE.
The build will most likely fail.
Specify -opengl desktop to use regular OpenGL.

plus2:
-skip qtwebengine , ?#20824;鏄Linux only
Webengine options:
  -webengine-alsa ................ Enable ALSA support [auto] (Linux only)
  -webengine-pulseaudio .......... Enable PulseAudio support [auto]
                                   (Linux only)
  -webengine-embedded-build ...... Enable Linux embedded build [auto]
                                   (Linux only)
  -webengine-icu ................. Use system ICU libraries [system/qt]
                                   (Linux only)

plus3:
Static builds of QtWebEngine aren't supported.

?#24134;澧?#38171;歎buntu 18.10/linux g++


1.瀹?#29761;?#38171;?/strong>
瀹?#29761;?#27996;唒erl/python/ruby ( Linux 涓?python2.x ?#27537;鍚?#28699;?#37828;python python3.x?#27537;鍚?#28699;?#37828;python3 )
?#31930;涓瀹?#29761;?#38171;?br />

sudo apt-get install build-essential libpcap0.8-dev libx11-dev libfreetype6-dev libavahi-gobject-dev libsm-dev libxrender-dev perl python ruby


2.?#24134;澧?#37721;?#38322;?#38171;?/strong>
linux?#27537;?#24134;澧?#37721;?#38322;?鍙?#29781;?#28051;?#37828;?#37911;规畩瀹?#29761;呯殑锛屽璇兘琚?#37718;呭惈鍦唴浜?br />
3.浠爜锛?/strong>
鍚?#28051;?br />
4.?#23017;鎬侀摼鎺?#37824;?#28051;洪潤鎬侀摼鎺?#38171;?/strong>
linux娌?#37832;md/mt锛?#32514;栬瘧?#20824;鏃跺?鐩存帴-static搴?#29831;?#28751;?#37721;?#28000;?#37510;?br />
5.缂栬瘧锛?/strong>
灏?#29831;殑缁勫悎1:
./configure -confirm-license -opensource -static -debug-and-release -prefix "/home/peng/Share/Qt5.10.1_static" -make libs -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -qt-xcb -opengl desktop -nomake tools -nomake examples -nomake tests -skip qtandroidextras -skip qtgamepad -skip qtmacextras -skip qttools -skip qtwebengine -skip qtwinextras -no-openssl 
缂栬瘧鍑洪敊锛?br />
qfilesystemengine_unix.cpp:101:12: error: ‘int renameat2(int, const char*, int, const char*, unsigned int)’ was declared ‘extern’ and later ‘static’ [-fpermissive]
bug fix锛?br />鎹?#29831;?#29781;?#28729;?#29761;単libc2.28鏉?#29785;?#37712;?#37510;?#37510;?/div>
鍙?#38000;?#37826;囩锛?br />
https://retifrav.github.io/blog/2018/02/17/build-qt-statically/
https://blog.csdn.net/u012822903/article/details/62058287



瀹嬮箯 2019-03-08 11:00 鍙戣璇勮
]]>Git绗?#28051;?#38339;舵锛歴how log/show head/show modified/modify commenthttp://www.9087120.com/hkingSP/archive/2019/03/05/216287.html瀹嬮箯瀹嬮箯Tue, 05 Mar 2019 01:09:00 GMThttp://www.9087120.com/hkingSP/archive/2019/03/05/216287.htmlhttp://www.9087120.com/hkingSP/comments/216287.htmlhttp://www.9087120.com/hkingSP/archive/2019/03/05/216287.html#Feedback0http://www.9087120.com/hkingSP/comments/commentRss/216287.htmlhttp://www.9087120.com/hkingSP/services/trackbacks/216287.html鏌?#37930;?#37827;?#36423;?#38171;?#37832;?#37734;癱ommit璁板綍锛?#38171;?/strong>
git log
result:
commit f46a2277acf6b1604f3268fcd3652682f23347bc (HEAD -> master)
Author: songpeng <song.peng@bizerba.com>
Date:   Mon Mar 4 17:07:09 2019 +0800
鏌?#37930;?#37827;?#36423;?#28051;殑鏌愭?#24385;浜?#38171;?/strong>
git show f46a2277acf6b1604f3268fcd3652682f23347bc 


鏌?#37930;?#37832;?#37734;?#28000;爜淇?#37824;?#37807;呭喌锛?br />宸?#28103;?#37824;?#38171;?#37832;猘dd?#27537;鍙樻洿锛?br />git diff
宸瞐dd锛?#37832;commit?#27537;鍙樻洿锛?br />git diff --cached
涓婇潰涓?#37833;?#37722;?#39582;?#38171;?br />git diff HEAD

鍙樻洿鏃?#36423;唴瀹?#38171;坈omment锛?
棣?#37711;?#37828;剧鏈杩?娆彁浜殑commit:
git rebase -i HEAD~3
杩?#29723;屽悗鏄剧?#21700;涓?鎴?#37828;?#37734;windows?#22135;?#28528;瀹?#29761;?#27996;唙im,?#21812;瀹逛細鏄剧鍦vim?#22135;锛?#28051;?#37933;?#38316;撴病瀹?#29761;vim浼氬?#20633;綍鏄剧)锛?br />
pick 41b65c0 recursive_search_and_link_libraries
pick 0de33bd success_built_with_vs2013lib_on_creator
pick 7ed1e94 success to built with vs2013lib and run on vs2013 ide
绉诲姩鍏夋爣鍒版兂瑕?#28103;?#37824;筩ommit?#27537;鎵鍦?#29723;?#38171;屽?#21778;ick鏀?#37812;reword锛岀劧鍚庝繚瀛?br />鐒?#37722;?#37714;?#37826;扮殑鐣岄潰鍐呯被浼?#28028;氬嚭鐜?#28003;犳兂淇?#37824;圭殑comment锛屽皢涔嬩慨鏀?#28103;?#28699;?#37510;?br />鐒?#37722;?#26473;?#29723;?#38171;?br />git push --force锛屽氨?#32048;?#22136;鏂?#28028;?#37714;版?#23941;鍣?#38171;屾洿鏂?#28003;?#29781;?#28103;?#37824;圭殑comment.




瀹嬮箯 2019-03-05 09:09 鍙戣璇勮
]]>
Git绗?#27996;?#38339;舵锛歛dd files/undo add/branch add/branch view/branch new/branch delete/branch push/pull remote to local files/fetch originhttp://www.9087120.com/hkingSP/archive/2019/03/04/216286.html瀹嬮箯瀹嬮箯Mon, 04 Mar 2019 08:26:00 GMThttp://www.9087120.com/hkingSP/archive/2019/03/04/216286.htmlhttp://www.9087120.com/hkingSP/comments/216286.htmlhttp://www.9087120.com/hkingSP/archive/2019/03/04/216286.html#Feedback0http://www.9087120.com/hkingSP/comments/commentRss/216286.htmlhttp://www.9087120.com/hkingSP/services/trackbacks/216286.htmladd:
git add *

undo add:
You can undo git add before commit with

git reset <file> 

which will remove it from the current index (the "about to be committed" list) without changing anything else.

You can use

git reset

add brach:
git branch rikSkinLoader

view branch:
git branch -a

switch branch:
git checkout BranchName

delete branch:
git branch -d

push branch:
git push origin branchname

pull:
git pull origin <remote_branch>锛?lt;local_branch>
git pull origin master:master



鏌?#37930;?#26473;滅鍙樻洿/鍚?#32513;?#37823;嶄綔锛?br />git remote update

 

First use git remote update, to bring your remote refs up to date. Then you can do one of several things, such as:


git status -uno 
git status -uno will tell you whether the branch you are tracking is ahead, behind or has diverged. If it says nothing, the local and remote are the same.
git show-branch *master
git show-branch *master will show you the commits in all of the branches whose names end in 'master' (eg master and origin/master).


瀹嬮箯 2019-03-04 16:26 鍙戣璇勮
]]>
Linux 蹇?#37817;?#37826;?#23534;?杞?鑻遍摼鎺?/ln鍛戒护鐢硶http://www.9087120.com/hkingSP/archive/2019/03/03/216280.html瀹嬮箯瀹嬮箯Sun, 03 Mar 2019 03:24:00 GMThttp://www.9087120.com/hkingSP/archive/2019/03/03/216280.htmlhttp://www.9087120.com/hkingSP/comments/216280.htmlhttp://www.9087120.com/hkingSP/archive/2019/03/03/216280.html#Feedback0http://www.9087120.com/hkingSP/comments/commentRss/216280.htmlhttp://www.9087120.com/hkingSP/services/trackbacks/216280.html闃?#29831;?#37711;?#37826;?/a>

瀹嬮箯 2019-03-03 11:24 鍙戣璇勮
]]>
Vim 閰嶇疆http://www.9087120.com/hkingSP/archive/2019/03/03/216279.html瀹嬮箯瀹嬮箯Sun, 03 Mar 2019 02:54:00 GMThttp://www.9087120.com/hkingSP/archive/2019/03/03/216279.htmlhttp://www.9087120.com/hkingSP/comments/216279.htmlhttp://www.9087120.com/hkingSP/archive/2019/03/03/216279.html#Feedback0http://www.9087120.com/hkingSP/comments/commentRss/216279.htmlhttp://www.9087120.com/hkingSP/services/trackbacks/216279.html绯荤粺浣嶇疆锛?/strong>
/etc/vim/vimrc

鐢?#37812;?#28003;嶇疆锛堥粯璁?#37827;?#38171;?#38171;?/strong>
~/.vimrc

Vim 閰嶇疆棰滆壊涓?#26864;?#38171;?/strong>
https://vimcolors.com/

Vim 閰嶇疆涓嬭浇?#27537;theme锛?/strong>
?#22476;涓婇潰?#27537;缃戠珯涓嬭浇sometheme.vim鏂囦欢
鏀惧埌 锝?.vim/colors涓嬮潰
.vimrc涓姞鍏?#38171;歝olor sometheme
.vimrc涓姞鍏?#38171;歴yntax on 

.vimrc?#21812;瀹?#38171;?/strong>
" 鏄剧?#40511;?#23677;彿
 set nu
" 缂?#26473;涚?#28888;牸鏁?/span>
set tabstop=4
" 棰滆壊涓?#26864;?/span>
color railscasts
" 棰滆壊璇硶鐢熸晥
syntax on
" ?#29300;鎹?#37826;囨?#34987;?#28727;锛岃嚜?#23017;瀹夋缂?#26473;?#38171;屾濡傚寰?c鏂囦欢鍜屽寰卪akefile?#32048;鏈?#28051;?#37722;岀殑缂?#26473;?/span>
filetype indent on
" 鏂囦欢缂栫爜锛坵ithout bom锛?#38171;?/span>
set nobomb
" 鍐呴儴缂栫爜
set encoding=utf-8
" 鏂囦欢缂栫爜utf-8
set fileencoding=utf-8
" 缂?#37934;佸琛?br />
set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1



瀹嬮箯 2019-03-03 10:54 鍙戣璇勮
]]>
Vim 鏂囦欢缂栫爜鏌?#37930;?淇?#37824;?/title><link>http://www.9087120.com/hkingSP/archive/2019/03/03/216278.html</link><dc:creator>瀹嬮箯</dc:creator><author>瀹嬮箯</author><pubDate>Sun, 03 Mar 2019 01:55:00 GMT</pubDate><guid>http://www.9087120.com/hkingSP/archive/2019/03/03/216278.html</guid><wfw:comment>http://www.9087120.com/hkingSP/comments/216278.html</wfw:comment><comments>http://www.9087120.com/hkingSP/archive/2019/03/03/216278.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.9087120.com/hkingSP/comments/commentRss/216278.html</wfw:commentRss><trackback:ping>http://www.9087120.com/hkingSP/services/trackbacks/216278.html</trackback:ping><description><![CDATA[<span style="font-size: 10pt;">Vim 鏂囦欢缂栫爜鏌?#37930;?#38171;?/span><br /><span style="font-size: 10pt;">:set fileencoding</span><br /><br /><span style="font-size: 10pt;">Vim 鏂囦欢缂栫爜淇?#37824;?#38171;?/span><br /><span style="color: #4f4f4f; font-family: -apple-system, "SF UI Text", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif; font-variant-ligatures: common-ligatures; text-align: -webkit-center; background-color: #ffffff; font-size: 10pt;">:set fileencoding=utf-8<br /></span><br /><span style="font-size: 10pt;">Vim 鏂囦欢缂栫爜淇?#37824;?#38171;坵ithout bom锛?#38171;?/span><br /><span style="font-size: 10pt;">:set nobomb</span><br /><span style="color: #4f4f4f; font-family: -apple-system, "SF UI Text", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif; font-variant-ligatures: common-ligatures; text-align: -webkit-center; background-color: #ffffff; font-size: 10pt;">:set fileencoding=utf-8  or :wq</span><br /><br /><span style="font-size: 10pt;">Terminal涓?#37826;囦欢缂栫爜鏌?#37930;?#38171;?/span><br /><span style="font-size: 10pt;">file name.cpp </span><img src ="http://www.9087120.com/hkingSP/aggbug/216278.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.9087120.com/hkingSP/" target="_blank">瀹嬮箯</a> 2019-03-03 09:55 <a href="http://www.9087120.com/hkingSP/archive/2019/03/03/216278.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣璇勮</a></div>]]></description></item><item><title>Git绗?#28051;闃舵锛氬叆闂?#37823;嶄綔(check in riles/checkout files)http://www.9087120.com/hkingSP/archive/2019/03/02/216277.html瀹嬮箯瀹嬮箯Sat, 02 Mar 2019 06:54:00 GMThttp://www.9087120.com/hkingSP/archive/2019/03/02/216277.htmlhttp://www.9087120.com/hkingSP/comments/216277.htmlhttp://www.9087120.com/hkingSP/archive/2019/03/02/216277.html#Feedback0http://www.9087120.com/hkingSP/comments/commentRss/216277.htmlhttp://www.9087120.com/hkingSP/services/trackbacks/216277.htmlclone锛?/span>
git clone https://github.com/songpeng22/HelloWorld.git

clone with username and password:
git clone https://username:password@github.com/username/repository.git.

clone old version:
git clone git://sourceware.org/git/glibc.git
cd glibc
git checkout glibc-2.28

config:
git config --global user.email "songpeng24@msn.com"
git config --global user.name 'songpeng22'

config status:
git config -l

project Status:
git status

鍦github涓?#37714;涘缓锛?br />https://github.com/songpeng22/CMake_QT_03_Qml-Standard.git
git init
git add README.md
git add * git commit -m "first commit" git remote add origin https://github.com/songpeng22/CMake_QT_03_Qml-Standard.git git push -u origin master




瀹嬮箯 2019-03-02 14:54 鍙戣璇勮
]]>Vim 澶?#37826;囦欢缂栬緫 鍒囨崲http://www.9087120.com/hkingSP/archive/2019/02/28/216272.html瀹嬮箯瀹嬮箯Thu, 28 Feb 2019 05:58:00 GMThttp://www.9087120.com/hkingSP/archive/2019/02/28/216272.htmlhttp://www.9087120.com/hkingSP/comments/216272.htmlhttp://www.9087120.com/hkingSP/archive/2019/02/28/216272.html#Feedback0http://www.9087120.com/hkingSP/comments/commentRss/216272.htmlhttp://www.9087120.com/hkingSP/services/trackbacks/216272.html澶?#37826;囦欢缂栬緫锛?#28598;?#28051;?#23143;愮爜鏂囦欢缂栬緫锛?/strong>锛?/span>
1銆?#37813;?#23534;绗?#28051;涓?#23143;愮爜锛?/span>
鍦?#37723;戒护琛?#28051;?#26440;?#37711;?/span>
vi drivers/nand_legacy/nand_legacy.c
vi灏?#37813;?#23534;浜唍and_legacy.c鏂囦欢銆?#37510;?/span>
2銆?#37813;?#23534;绗?#27996;?#28051;?#23143;愮爜锛?/span>
鍦?#23005;熀纭涓?#38171;?#37734;vi缂栬?#25120;?#23684;潰锛屽?#25106;护妯?#23534;?#28051;?#38171;?/span>
杈?#37711;?#38171;歴p common/env_nand.c
灏?#37721;?#28000;?#37712;?#28598;?#37813;?#23534;涓涓?#23143;愮爜銆?#37510;?/span>
Tim锛?/span>
鏂囦欢澶圭鍙?#28051;瀹?#29781;佺敤" / "
3銆?#37734;?#37826;囦欢闂?#37714;囨崲锛?/span>
锛?锛?/span>
Ctrl + w
鐒?#37722;?#28051;?#28051;嬮閫夋嫨銆?#37510;?/span>
锛?锛?/span>
Ctrl + w + w
鎸?#28051;?#23046;w鍒囨崲杩囧幓銆?#37510;?/span>



瀹嬮箯 2019-02-28 13:58 鍙戣璇勮
]]>
Vim 鎼滅储 鏇挎崲 鎾?#38335;http://www.9087120.com/hkingSP/archive/2019/02/28/216271.html瀹嬮箯瀹嬮箯Thu, 28 Feb 2019 05:58:00 GMThttp://www.9087120.com/hkingSP/archive/2019/02/28/216271.htmlhttp://www.9087120.com/hkingSP/comments/216271.htmlhttp://www.9087120.com/hkingSP/archive/2019/02/28/216271.html#Feedback0http://www.9087120.com/hkingSP/comments/commentRss/216271.htmlhttp://www.9087120.com/hkingSP/services/trackbacks/216271.html6-1銆?#37820;滅储瀛?#32471;?#28051;?/strong>锛?/span>
锛?锛?#37723;戒护妯?#23534;?#28051;嬭緭鍏?#38171;?/span>
/瀛?#32471;?#28051;?/span>
渚嬪" /Section 3 "銆?/span>
锛?锛?#28641;?#37835;滄煡鎵?#28051;?#28051;涓?
鎸?#8220;n”鍗?#37721;?#37510;?/span>
6-2銆佹?#25358;崲瀛?#32471;?#28051;?#38171;?/span>
锛?锛夋?#25358;崲褰?#37715;嶈?#23680;涓涓?ELFIN_GPIO_BASE 涓?S3C2410_GPIO_BASE锛?/span>
:s/ELFIN_GPIO_BASE/S3C2410_GPIO_BASE/ 
锛?锛夋?#25358;崲姣?#28051;琛?#28051;?#37813;鏈?ELFIN_GPIO_BASE 涓?S3C2410_GPIO_BASE锛?/span>
:%s/ELFIN_GPIO_BASE/S3C2410_GPIO_BASE/g

6-2銆佹?#25358;崲锛?/strong>
鍏眬鏇挎崲锛?#28751;P1鏇挎崲涓篜2锛?#38171;?/span>
:%s/p1/p2/g:
鏇挎崲瀹?#28186;?#38171;氬/etc/apt/sources.list 涓殑缃?#37735;杩?#29723;屾?#25358;崲锛孿瑕佺敤/杩?#29723;岃{涔?/span>
%s/us.archive.ubuntu.com\/ubuntu\//old-releases.ubuntu.com\/ubuntu\//g

7銆佹挙閿鎿嶄綔锛?/span>
鎸塽
鍙?#28000;?#37822;?#38335;涓?#23046;殑鎿嶄綔銆?#37510;?/span>


瀹嬮箯 2019-02-28 13:58 鍙戣璇勮
]]>
Vim澶?#37714;?绮?#29840;?鍒?#38340;?/title><link>http://www.9087120.com/hkingSP/archive/2019/02/28/216270.html</link><dc:creator>瀹嬮箯</dc:creator><author>瀹嬮箯</author><pubDate>Thu, 28 Feb 2019 05:56:00 GMT</pubDate><guid>http://www.9087120.com/hkingSP/archive/2019/02/28/216270.html</guid><wfw:comment>http://www.9087120.com/hkingSP/comments/216270.html</wfw:comment><comments>http://www.9087120.com/hkingSP/archive/2019/02/28/216270.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.9087120.com/hkingSP/comments/commentRss/216270.html</wfw:commentRss><trackback:ping>http://www.9087120.com/hkingSP/services/trackbacks/216270.html</trackback:ping><description><![CDATA[<p><strong>VI缂栬緫鍣?/strong>锛?br /><strong>1銆?#28598;?#37714;?#28051;琛?/strong>锛?br />yy<br /><br /><strong>2銆佺矘璐?/strong>锛?br />p<br /><br /><strong>3銆佸垹闄?#28051;琛?/strong>锛?br />dd<br /><br /><strong>4銆佸叏閮?#37714;?#38340;?/strong>锛?br />dG锛?#37734;?#37723;戒护妯?#23534;?#28051;?#38171;?br /><br /><strong>5銆?#28598;?#29723;屽鍒?#37510;佸壀鍒?#37510;佺矘璐?/strong>锛?br />锛?锛?#37510;?#38315;夋嫨?#21812;瀹?#38171;?br />鎸塿锛?#37734;?#37723;戒护妯?#23534;?#28051;?#37816;塿锛?br />鍒囨崲?#22476;鍙?#29785;?#22959;?#23534;?#27996;?#38171;?#37816;?#37826;?#37722;?#38335;?#38171;岀煡?#20158;閫?#28051;?#28003;犳兂瑕佺殑?#21812;瀹?br />锛?锛?#37510;?#28598;?#37714;?#37510;佸壀鍒囧唴瀹?#38171;?br />①鎸墆锛屽鍒?br />②鎸塪锛屽壀鍒?br />③銆佺矘璐村唴瀹?#38171;?br />灏?#37711;夋?#22249;?#35826;埌浣?#29781;佺矘璐寸殑浣嶇疆銆?br />鎸塸<br />灏?#32494;?#29840;?#27996;?#28052;嬪墠澶?#37714;?#37510;佸壀鍒囩殑?#21812;瀹?#37510;?br /><br /></p><img src ="http://www.9087120.com/hkingSP/aggbug/216270.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.9087120.com/hkingSP/" target="_blank">瀹嬮箯</a> 2019-02-28 13:56 <a href="http://www.9087120.com/hkingSP/archive/2019/02/28/216270.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣璇勮</a></div>]]></description></item><item><title>Vim?#29056;纭/Vim妯?#23534;?#37714;囨崲http://www.9087120.com/hkingSP/archive/2019/02/28/216269.html瀹嬮箯瀹嬮箯Thu, 28 Feb 2019 05:55:00 GMThttp://www.9087120.com/hkingSP/archive/2019/02/28/216269.htmlhttp://www.9087120.com/hkingSP/comments/216269.htmlhttp://www.9087120.com/hkingSP/archive/2019/02/28/216269.html#Feedback0http://www.9087120.com/hkingSP/comments/commentRss/216269.htmlhttp://www.9087120.com/hkingSP/services/trackbacks/216269.htmlVI缂栬緫鍣_?#29056;纭锛?#37813;?#23534;銆?#38315;鍑?#37510;佸?#22248;崲锛?/strong>锛?br />1銆佸?#28056;缓鍜?#32514;栬緫鏂囦欢锛?br />sudo vi hello.cpp

2銆?#32514;栬緫妯?#23534;?#38171;?br />2-1銆?#37816;?i 杩?#37711;?#32514;栬緫妯?#23534;?br />2-2銆?#37816;ESC 杩?#37711;?#37723;戒护妯?#23534;?br />
3銆?#38315;鍑?#38171;?br />鎸? : 婵娲?#37723;戒护
:q閫鍑?br />:wq淇?#28699;?#38315;鍑?br />
4銆?#37828;剧?#40511;?#23677;彿
:set nu

VI缂栬緫鍣_妯?#23534;?/strong>锛?br />1銆?#22959;?#23534;?#37714;囨崲锛?br />ESC
杩?#37711;?#37723;戒护妯?#23534;?br />鍛戒护妯?#23534;?#28051;?#38171;?br />o ?#23858;琛?br />x 鍒?#38340;?#37711;夋爣涓嬬殑杈?#37711;?br />dd 鍒?#38340;?#28051;琛?br />hjkl 鍙?#28000;?#28051;?#28051;?#23480;?#37721;?#32457;诲姩

锛?br />杩?#37711;?#37832;?#29723;?#22959;?#23534;?br />鏈?#29723;?#22959;?#23534;?#28051;?#38171;?br />q 閫鍑?br />
i
杩?#37711;?#32514;栬緫妯?#23534;?#37510;?#37510;?br />Tim锛?#22959;?#23534;?#37714;囨崲?#20824;鏄?#37711;ESC鍥炲埌鍛戒护妯?#23534;?#28052;?#37722;?#37712;?#26473;?#29723;?#37510;?#37510;?br />



瀹嬮箯 2019-02-28 13:55 鍙戣璇勮
]]>
Linux 鏂囦欢鏌?#37930;?鏂囦欢?#30718;寰勬煡鐪?/title><link>http://www.9087120.com/hkingSP/archive/2019/02/26/216266.html</link><dc:creator>瀹嬮箯</dc:creator><author>瀹嬮箯</author><pubDate>Tue, 26 Feb 2019 13:00:00 GMT</pubDate><guid>http://www.9087120.com/hkingSP/archive/2019/02/26/216266.html</guid><wfw:comment>http://www.9087120.com/hkingSP/comments/216266.html</wfw:comment><comments>http://www.9087120.com/hkingSP/archive/2019/02/26/216266.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.9087120.com/hkingSP/comments/commentRss/216266.html</wfw:commentRss><trackback:ping>http://www.9087120.com/hkingSP/services/trackbacks/216266.html</trackback:ping><description><![CDATA[<strong designtimesp="10615">鏂囦欢鏌?#37930;?/strong>锛?br />ls <br /><br /><strong>鏌?#37930;嬮?#24879;棌鏂囦欢(姣?#28641;?.git 杩欑entry鏂囦欢锛屽?#21620;鏌?#37930;嬮?#24879;棌锛?#37813;嶈兘鐪嬪埌)</strong>锛?br />ls -a<br />?#28522;缁堢鏌?#37930;嬮?#24879;棌鏂囦欢锛?br />Ctrl + H<br /><br designtimesp="10618" /><strong>鏌?#37930;?#37826;囦欢璇?#32513;?#28103;伅</strong>锛?br designtimesp="10619" />ls -al<br /><br /><strong>鏌?#37930;嬪?#23677;鍒跺綋鍓?#37813;鍦?#37826;囦欢澶圭殑瀹屾?#30923;矾寰?#38171;?/strong><br />缁堢涓?#38171;?br />pwd<br />?#28522;缁堢涓?#38171;?br />Ctrl + l<br /><img src ="http://www.9087120.com/hkingSP/aggbug/216266.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.9087120.com/hkingSP/" target="_blank">瀹嬮箯</a> 2019-02-26 21:00 <a href="http://www.9087120.com/hkingSP/archive/2019/02/26/216266.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣璇勮</a></div>]]></description></item><item><title>Linux 鏉?#38340;?#38171;圱erminal鏉?#38340;?鏂囦欢鏉?#38340;?#38171;?/title><link>http://www.9087120.com/hkingSP/archive/2019/02/26/216265.html</link><dc:creator>瀹嬮箯</dc:creator><author>瀹嬮箯</author><pubDate>Tue, 26 Feb 2019 13:00:00 GMT</pubDate><guid>http://www.9087120.com/hkingSP/archive/2019/02/26/216265.html</guid><wfw:comment>http://www.9087120.com/hkingSP/comments/216265.html</wfw:comment><comments>http://www.9087120.com/hkingSP/archive/2019/02/26/216265.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.9087120.com/hkingSP/comments/commentRss/216265.html</wfw:commentRss><trackback:ping>http://www.9087120.com/hkingSP/services/trackbacks/216265.html</trackback:ping><description><![CDATA[<strong designtimesp="10605">?#29056;纭</strong>锛?br designtimesp="10607" />1銆佽幏寰?#32495;荤粺绠?#37918;?#37723;?#37833;?#38340;?#38171;?br designtimesp="10608" />su<br designtimesp="10609" /><br designtimesp="10610" />2銆佽?#27693;嫙鏈?#28729;?#29761;呭悗锛?#29825;剧疆root鏉?#38340;?#38171;?br designtimesp="10611" />sudo passwd root<br designtimesp="10612" />鐒?#37722;?#29825;剧疆root?#30225;?#29212;銆?#37510;?br designtimesp="10620" /><br designtimesp="10621" /><strong designtimesp="10622">婧愮爜鏉?#38340;?#37721;樻洿</strong>锛?br designtimesp="10624" />chmod 666 /Work/uboot/gec2410/*<br designtimesp="10625" />Tim锛?#29825;gec2410鏂囦欢澶?#38171;屾鏈?#29831;?#37712;?#37833;?#38340;?#37510;?#37510;?br designtimesp="10626" /><strong designtimesp="10627">婧愮爜鏉?#38340;愭煡鐪?/strong>锛?br designtimesp="10629" />ls -lh /Work/uboot/gec2410/<img src ="http://www.9087120.com/hkingSP/aggbug/216265.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.9087120.com/hkingSP/" target="_blank">瀹嬮箯</a> 2019-02-26 21:00 <a href="http://www.9087120.com/hkingSP/archive/2019/02/26/216265.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣璇勮</a></div>]]></description></item><item><title>Linux 瑙帇缂?/title><link>http://www.9087120.com/hkingSP/archive/2019/02/26/216264.html</link><dc:creator>瀹嬮箯</dc:creator><author>瀹嬮箯</author><pubDate>Tue, 26 Feb 2019 12:58:00 GMT</pubDate><guid>http://www.9087120.com/hkingSP/archive/2019/02/26/216264.html</guid><wfw:comment>http://www.9087120.com/hkingSP/comments/216264.html</wfw:comment><comments>http://www.9087120.com/hkingSP/archive/2019/02/26/216264.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.9087120.com/hkingSP/comments/commentRss/216264.html</wfw:commentRss><trackback:ping>http://www.9087120.com/hkingSP/services/trackbacks/216264.html</trackback:ping><description><![CDATA[<p designtimesp="10602"><strong designtimesp="10632">瑙帇缂?/strong>锛?br designtimesp="10634" />.tar <br designtimesp="10635" />瑙?#37718;?#38171;歵ar xvf FileName.tar<br designtimesp="10636" />鎵?#37718;?#38171;歵ar cvf FileName.tar DirName<br designtimesp="10637" />锛堟敞锛歵ar鏄?#37813;?#37718;?#38171;?#28051;?#37828;帇缂?#38171;?#38171;?br designtimesp="10638" />———————————————<br designtimesp="10639" />.gz<br designtimesp="10640" />瑙帇1锛歡unzip FileName.gz<br designtimesp="10641" />瑙帇2锛歡zip -d FileName.gz<br designtimesp="10642" />?#24071;缂?#38171;歡zip FileName</p> <p designtimesp="10643">.tar.gz 鍜?.tgz<br designtimesp="10644" />瑙帇锛歵ar zxvf FileName.tar.gz<br designtimesp="10645" />?#24071;缂?#38171;歵ar zcvf FileName.tar.gz DirName<br designtimesp="10646" />———————————————<br designtimesp="10647" />.bz2<br designtimesp="10648" />瑙帇1锛歜zip2 -d FileName.bz2<br designtimesp="10649" />瑙帇2锛歜unzip2 FileName.bz2<br designtimesp="10650" />?#24071;缂?#38171;?bzip2 -z FileName</p> <p designtimesp="10651">.tar.bz2<br designtimesp="10652" />瑙帇锛歵ar jxvf FileName.tar.bz2<br designtimesp="10653" />?#24071;缂?#38171;歵ar jcvf FileName.tar.bz2 DirName<br designtimesp="10654" /><br designtimesp="10655" />杩?#29723;岀搴?#38171;?br designtimesp="10656" />鏈?#37721;?#37813;?#29723;?#37826;囦欢hello锛屼絾鏄?#28051;嶈兘鐩存帴杈?#37711;?#37723;戒护‘hello’鏉?#26473;?#29723;宧ello锛屽?#21620;杈?#37711;?#37723;戒护‘./hello’</p><img src ="http://www.9087120.com/hkingSP/aggbug/216264.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.9087120.com/hkingSP/" target="_blank">瀹嬮箯</a> 2019-02-26 20:58 <a href="http://www.9087120.com/hkingSP/archive/2019/02/26/216264.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣璇勮</a></div>]]></description></item><item><title>Linux 鏂囦欢/鏂囦欢澶?#37823;嶄綔http://www.9087120.com/hkingSP/archive/2019/02/26/216263.html瀹嬮箯瀹嬮箯Tue, 26 Feb 2019 12:58:00 GMThttp://www.9087120.com/hkingSP/archive/2019/02/26/216263.htmlhttp://www.9087120.com/hkingSP/comments/216263.htmlhttp://www.9087120.com/hkingSP/archive/2019/02/26/216263.html#Feedback0http://www.9087120.com/hkingSP/comments/commentRss/216263.htmlhttp://www.9087120.com/hkingSP/services/trackbacks/216263.html鍒涘缓鏂囦欢澶?/strong>锛?br />mkdir ./newfolder

鍒?#38340;?#37826;囦欢澶?/strong>锛?br />rm -rf /Work/uboot/uboot-1.3.4

?#22136;鍛?#37722;?#37826;囦欢澶?/strong>锛?#29882;熺?#35826;姩涓涓?#37723;戒护锛?#38171;?br />mv cpu/arm920t/ 0_BackUp

?#22136;鍛?#37722;?#37826;囦欢锛?#29882;熺?#35826;姩涓涓?#37723;戒护锛?#38171;?br />mv a.txt b.txt

鍒涘缓涓涓?#32460;?#37826;囦欢锛?br />touch .gitignore

瀹嬮箯 2019-02-26 20:58 鍙戣璇勮
]]>
Linux 鏂囦欢鎼滅储http://www.9087120.com/hkingSP/archive/2019/02/26/216262.html瀹嬮箯瀹嬮箯Tue, 26 Feb 2019 12:53:00 GMThttp://www.9087120.com/hkingSP/archive/2019/02/26/216262.htmlhttp://www.9087120.com/hkingSP/comments/216262.htmlhttp://www.9087120.com/hkingSP/archive/2019/02/26/216262.html#Feedback0http://www.9087120.com/hkingSP/comments/commentRss/216262.htmlhttp://www.9087120.com/hkingSP/services/trackbacks/216262.html鏂囦欢鎼滅储锛?br />find
鏍?#23534;?#38171;?br />$ find <鎸?#28729;?#37929;綍> <鎸?#28729;?#37833;欢> <鎸?#28729;氬姩?#32148;>
銆銆- <鎸?#28729;?#37929;綍>锛? 鎵瑕?#37820;滅储?#27537;鐩綍鍙婂叾鎵鏈?#28699;?#37929;綍銆傞粯璁?#28051;哄綋鍓?#37929;綍銆?br />銆銆- <鎸?#28729;?#37833;欢>锛?鎵瑕?#37820;滅储?#27537;鏂囦欢?#27537;鐗?#23536;?#37510;?br />銆銆- <鎸?#28729;氬姩?#32148;>锛? 瀵?#37820;滅储缁撴灉杩?#29723;?#37911;?#28729;氱殑澶勭悊銆?br />瀹?#28186;?锛?br />find board*
Tim锛氬湪uboot鏂囦欢澶?#28051;?#38171;?#37813;?#28051;?#38171;岀湅鐪board鏂囦欢澶?#37734;?#28051;?#37734;?#37510;?#37510;?br />find board/sm*
Tim锛氬湪uboot鏂囦欢澶?#28051;?#38171;?#37813;?#28051;?#38171;岀湅鐪smdk2410鏂囦欢澶?#38171;?#37828;?#37722;?#37734;board涓嬮潰銆?#37510;?br />瀹?#28186;?锛?br />锛?锛塮ind . -name 'my*'
Tim锛?br />"."锛岃绀?#37816;?#28729;?#37820;滅储褰?#37715;?#37929;綍锛堝惈瀛?#37929;綍锛?#37510;?#37510;?br />"-name"锛岃绀?#37820;滅储鏉欢鏄?#37826;囦欢鍚?#37510;?#37510;?br />'my*'锛岃绀簃y寮澶寸殑鏂囦欢銆?#37510;?br />锛?锛塮ind . -name 'my*' -ls
"."琛?#32448;?#37816;?#28729;?#37820;滅储褰?#37715;?#37929;綍锛堝惈瀛?#37929;綍锛?#37510;?#37510;?br />"-name"锛岃绀?#37820;滅储鏉欢鏄?#37826;囦欢鍚?#37510;?#37510;?br />'my*' -ls锛岃绀?#37820;滅储my寮澶寸殑鏂囦欢锛屽苟鏄剧瀹?#28000;殑璇?#32513;?#28103;伅銆?#37510;?br />瀹?#28186;?锛?br />find . -type f -mmin -10
"."琛?#32448;?#37816;?#28729;?#37820;滅储褰?#37715;?#37929;綍锛堝惈瀛?#37929;綍锛?#37510;?#37510;?br />"-type f" 琛?#32448;?#37820;滅储鏉欢鏄?#37826;囦欢?#34987;?#28727;銆?#37510;?br />-mmin -10锛岃绀?#37820;滅储鎵鏈?#26473;囧幓10鍒嗛挓涓洿鏂?#26473;囩殑?#27352;閫?#37826;囦欢銆?br />濡?#37835;?#28051;嶅姞-type f鍙傛暟锛屽垯鎼滅储?#27352;閫?#37826;囦欢+鐗规畩鏂囦欢+鐩綍銆?br />
鏂囦欢鏁版嵁搴撴?#28357;储 锛?br />locate
locate涓?#37820;滅储鍏?#28003;?#37929;綍锛岃?#37828;?#37820;滅储涓涓?#37825;版嵁搴?#38171;?var/lib/locatedb锛?#38171;屾?#25862;ind蹇殑澶?#37510;?#37510;?br />Tim锛?br />鎵?#29723;屽墠锛?#29781;?#37813;?#29723;寀pdatedb鍛戒护锛屾洿鏂版?#29256;嵁搴?#37510;?#37510;?br />瀹?#28186;?锛?br />locate /etc/sh
鎼滅储etc鐩綍涓?#37813;鏈?#28000;sh寮澶寸殑鏂囦欢銆?br />瀹?#28186;?锛?br />锛?锛塴ocate ~/m
鎼滅储鐢?#37812;?#28051;?#37929;綍涓?#38171;?#37813;鏈?#28000;m寮澶寸殑鏂囦欢銆?br />锛?锛塴ocate -i ~/m
鎼滅储鐢?#37812;?#28051;?#37929;綍涓?#38171;?#37813;鏈?#28000;m寮澶寸殑鏂囦欢锛屽苟涓?#36423;界澶?#28751;忓啓銆?img src ="http://www.9087120.com/hkingSP/aggbug/216262.html" width = "1" height = "1" />

瀹嬮箯 2019-02-26 20:53 鍙戣璇勮
]]>How to shuffle arrays and slices in Gohttp://www.9087120.com/wythern/archive/2019/01/17/216208.htmlwythernwythernThu, 17 Jan 2019 12:27:00 GMThttp://www.9087120.com/wythern/archive/2019/01/17/216208.htmlhttp://www.9087120.com/wythern/comments/216208.htmlhttp://www.9087120.com/wythern/archive/2019/01/17/216208.html#Feedback0http://www.9087120.com/wythern/comments/commentRss/216208.htmlhttp://www.9087120.com/wythern/services/trackbacks/216208.html鍦?#23005;?br />
鐢?#27996;?/a>Go娌?#37832;?#28051;簊lice?#24385;渚shuffle鍑?#37825;?#38171;?#37813;浠?#38343;瑕佽嚜宸?#37807;冲?#28852;硶銆?#37922;?#27996;?#37812;?#37721;?#38343;瑕侀殢鏈?#28051;娆?#38316;嶅1 -> N锛?#37813;浠?#26473;?#23048;礳ode鏈鍖?#38320;?#37510;?br />
func main() {
  vals := []int{10, 12, 14, 16, 18, 20}
  r := rand.New(rand.NewSource(time.Now().Unix()))
  for _, i := range r.Perm(len(vals)) {
    val := vals[i]
    fmt.Println(val)
  }
}

浼?#28052;go涓嶅儚scala鏈夐偅绉?#37807;版?#20634;肩殑鐗规?#38171;?#37813;浠?#26473;?#38322;岀殑r.Perm()杩?#37828;?#27996;?#37922;?#27996;?#28051;涓猻lice锛屽鏋淣寰?#28598;?#37721;兘鏄?#28051;?#38338;?#26864;?#37510;?br />




wythern 2019-01-17 20:27 鍙戣璇勮
]]>
տ3
<center id="iceyg"><tr id="iceyg"></tr></center>
<noscript id="iceyg"></noscript>
<center id="iceyg"></center>
<noscript id="iceyg"></noscript>
<noscript id="iceyg"></noscript>
<center id="iceyg"><tr id="iceyg"></tr></center>
<noscript id="iceyg"></noscript>
<center id="iceyg"></center>
<noscript id="iceyg"></noscript>
<noscript id="iceyg"></noscript>