C++博客- http://www.598club.com/hkingSP/zh-cnMon, 20 Jan 2020 19:17:47 GMTMon, 20 Jan 2020 19:17:47 GMT60C++博客- http://www.598club.com/hkingSP/archive/2019/10/25/216956.html???1?




???1? 2019-10-25 10:41 ???????o
]]>
C++博客- http://www.598club.com/hkingSP/archive/2019/10/10/216905.html???1?ar xvf linux-4.4.167.tar.xz ???????????????
dpkg --print-architecture
?????????????? make ARCH=arm64 defconfig
make oldconfig&&make prepare&&make scripts ko??????????????
make 4_4_167_smp_x64
??????version magic??? modinfo bizwsd.ko


???1? 2019-10-10 10:50 ???????o
]]>
C++博客- http://www.598club.com/hkingSP/archive/2019/09/06/216778.html???1????1?Fri, 06 Sep 2019 01:40:00 GMThttp://www.598club.com/hkingSP/archive/2019/09/06/216778.htmlhttp://www.598club.com/hkingSP/comments/216778.htmlhttp://www.598club.com/hkingSP/archive/2019/09/06/216778.html#Feedback0http://www.598club.com/hkingSP/comments/commentRss/216778.htmlhttp://www.598club.com/hkingSP/services/trackbacks/216778.htmlIf you don't already have a .vimrc file in your home directory, create one using this:

vim ~/.vimrc 

Add this line to the top of the file:

set nocompatible 

Save the file and this should fix the problem for you. :)

??? ?????o?????1????????
?????linux???vi ???????????????????????????????1?????????-?????1?????????????1old vi????????????????????????????
?-?????????????????vi???????????1?????????3?-??????




???1? 2019-09-06 09:40 ???????o
]]>
C++博客- http://www.598club.com/hkingSP/archive/2019/03/09/216292.html???1????1?Sat, 09 Mar 2019 03:23:00 GMThttp://www.598club.com/hkingSP/archive/2019/03/09/216292.htmlhttp://www.598club.com/hkingSP/comments/216292.htmlhttp://www.598club.com/hkingSP/archive/2019/03/09/216292.html#Feedback0http://www.598club.com/hkingSP/comments/commentRss/216292.htmlhttp://www.598club.com/hkingSP/services/trackbacks/216292.html??????????????? ????????????12???
cl -I ????????|???????????????????????????????????????????a.c???.cpp?????????
cl???????o?????????????????3????????|?????'?????????

????????cl -help
                         C/C++ COMPILER OPTIONS
                              -OPTIMIZATION-
/O1 minimize space                      /O2 maximize speed
/Ob<n> inline expansion (default n=0)   /Od disable optimizations (default)
/Og enable global optimization          /Oi[-] enable intrinsic functions
/Os favor code space                    /Ot favor code speed
/Ox maximum optimizations               /Oy[-] enable frame pointer omission 
/favor:<blend|ATOM> select processor to optimize for, one of:
    blend - a combination of optimizations for several different x86 processors
    ATOM - Intel(R) Atom(TM) processors 
                             -CODE GENERATION-
/Gw[-] separate global variables for linker
/GF enable read-only string pooling     /Gm[-] enable minimal rebuild
/Gy[-] separate functions for linker    /GS[-] enable security checks
/GR[-] enable C++ RTTI                  /GX[-] enable C++ EH (same as /EHsc)
/guard:cf[-] enable CFG (control flow guard)
/EHs enable C++ EH (no SEH exceptions)  /EHa enable C++ EH (w/ SEH exceptions)
/EHc extern "C" defaults to nothrow     
/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


???1? 2019-03-09 11:23 ???????o
]]>
C++博客- http://www.598club.com/hkingSP/archive/2019/03/08/216291.html???1????1?Fri, 08 Mar 2019 06:30:00 GMThttp://www.598club.com/hkingSP/archive/2019/03/08/216291.htmlhttp://www.598club.com/hkingSP/comments/216291.htmlhttp://www.598club.com/hkingSP/archive/2019/03/08/216291.html#Feedback0http://www.598club.com/hkingSP/comments/commentRss/216291.htmlhttp://www.598club.com/hkingSP/services/trackbacks/216291.html

???QT_VS2005_CE6.0_????????????????????
1?????o????????????
???????3???????Windows XP
?????????????1???VS2005 VC?????? ???2???VS2005 SP1
???SP1 ????????????????????CE?13???????????????2????????????Arm Emulator??????o??????????????????????1??????“EmulatorStub.exe?????????”???
QT?????????qt-everywhere-opensource-src-4.8.6.zip
CE SDK???ARM Emulator

2?????????-?a???
???1??????QT?o??????????E:\QT\4.8.6\CE6.0\Emulator
Tim?????a?oo??????1??????????????|?????????????o??????o????-??1o???-?????2?-???o????????
Tim????????1???????|???????o????
????????????????????????????????|??a???????o?"4.8.6_ArmEmulator"?????????VS2005?????o?????'?????'??o???13??????????????
Tim????1???????????o?C??????????????????????????????????????????????????????????C???????????o?1???????????????????????????????????E??????????'?????????????????????????????????
???2????????“Visual Studio 2005 ?????????o”
?????????“??????????->?????????o?->Microsoft Visual Studio 2005->Visual Studio Tools->Visual Studio 2005 ?????????o”??????
????????????????????????????E:\QT\4.8.6\CE6.0\Emulator
???3?????????????????????
configure -platform win32-msvc2005 -xplatform wince60standard-armv4i-msvc2005
①?|??????3?????????'???????????????
[-debug-and-release] ?????????????????a?????????Qt
[-nomake examples]
[-nomake demos]
[-nomake docs]
[-no-multimedia]
[-no-phonon]
[-no-phonon-backend] 
[-no-media-backend]
[-no-audio-backend] 
[-no-openssl]
[-no-gtkstyle]
[-no-svg]
[-no-webkit]  ?????|?????Web?????3???????o?QT?-??o??????????????a???????????????????????'???????????????|??????????o??o??o????
[-no-javascript-jit] 
[-no-script]
[-no-scripttools] 
[-no-sql-sqlite]
[-no-declarative]
[-no-declarative-debug]
Tim???????????????1?????a??a???????
Tim???
??????????????a?????WIN32 VS2005???????????
configure -fast -platform win32-msvc2005  -nomake examples -nomake docs -nomake demos -no-webkit -no-phonon -no-phonon-backend -no-multimedia
Tim???
4.8.6???????????????????1????????????????o????????
①????????a????????????1?|???????
qclipboard_win.cpp ???306?????
?????o?????CheckRemoteDebuggerPresent?????????????????-?????1?????????????????????????
#if defined(_MSC_VER) && _MSC_VER <= 1400
    return false;
#else
........................
    CheckRemoteDebuggerPresent(processHandle, &debugged);
#endif
②????o???a???????
????- nmake???????????o???a????
     platform\DefaultLocalizationStrategy.cpp(327) : error C2001: newline in constant
     platform\DefaultLocalizationStrategy.cpp(327) : fatal error C1057: unexpected end of file in macro expansion
     ????a?????????????????????o??????????????????????????????????????
    ???????????????????|???????
     return WEB_UI_STRING("Look Up “<selection>”", "Look Up context menu item with selected word").replace("<selection>", truncatedStringForLookupMenuItem(selectedString));
     ?????3??????<selection> ????????????????????????????????????????????????????1?????????????????
    return WEB_UI_STRING("Look Up \"<selection>\"", "Look Up context menu item with selected word").replace("<selection>", truncatedStringForLookupMenuItem(selectedString));
Tim????1???????selection?????????-??????????????1???????????????-???????????????a?????1?????????????1???????
???4???configure?1???????????????????????
①?????Arm Emulator???
set INCLUDE=C:/Program Files/Microsoft Visual Studio 8/VC/ce/include;C:\Program Files\Windows CE Tools\wce600\ARM_Emulator\Include\Armv4i
set LIB=C:/Program Files/Microsoft Visual Studio 8/VC/ce/lib/armv4i;C:/Program Files/Windows CE Tools/wce600/ARM_Emulator/Lib/armv4i
set PATH=C:/Program Files/Microsoft Visual Studio 8/VC/ce/bin/x86_arm;%PATH%
②?|?????????S2416???SDK???
set INCLUDE=C:/Program Files/Microsoft Visual Studio 8/VC/ce/include;C:\Program Files\Windows CE Tools\wce600\SBC2416\Include\Armv4i
set LIB=C:/Program Files/Microsoft Visual Studio 8/VC/ce/lib/armv4i;C:/Program Files/Windows CE Tools/wce600/SBC2416/Lib/armv4i
set PATH=C:/Program Files/Microsoft Visual Studio 8/VC/ce/bin/x86_arm;%PATH%
???????
nmake
Tim???????????????o????4.8.6??configure?1?????????o??????'?????setcepaths.bat wince600standard-armv4i-msvc2005 && nmake???????o???????????????????????????????????????1??????????????????????????????????????????a???????'??????????????????????-?a?????????
Tim??????????setcepaths.bat??????????2????????aSDK??a???wincewm60standard-armv4i-msvc2005????????????aBAT?????????a????????o?check sdk????????????????????????o????????????????????????SDK??????????nmake?o????????????????
Tim???????????????1??????Nmake?????????????????
???5????????qt-vs-addin???
?????“qt-vs-addin-1.1.10.exe”??????
Tim???“qt-vs-addin-1.2.0-opensource.exe ??????????????????VS2005??????”????-??????
???6????????1SDK??????????
?????" C:\QT\CE6.0\4.8.6\mkspecs\wince60standard-armv4i-msvc2005\qmake.conf "??????
?????????
CE_SDK  = STANDARDSDK_600
?????'??o
CE_SDK  = ARM_Emulator
Tim????????o?????????????SDK??????????????????????"wince600standard-armv4i-msvc2005"???Arm Emulator????o??????a???????1????????????????????????????????????Qt????????????????????
???7???????????????????????
①Arm_Emulator????????
??VS2005 -> Tool -> Options -> VC++ Directories -> Arm_Emulator???????
Include?????????" C:\QT\4.8.6\CE6.0\Emulator\include "??????
Library?????????" C:\QT\4.8.6\CE6.0\Emulator\lib " ??????
Tim????????????????2?????????????????????????oo??????????????????2????" QtSql "??????
②WIN32?????????????
??VS2005 -> Tool -> Options -> VC++ Directories -> Win32???????
Include?????????" C:\QT\4.8.6\WIN32\include "??????
Library?????????" C:\QT\4.8.6\WIN32\lib " ??????
Tim???
??o?o???Visual Assist??'???????????QT??????????????????????????????VS2005???????????????o????????|????
C:\QT\4.8.6\WIN32\src
C:\QT\4.8.6\WIN32\include\Qt
C:\QT\4.8.6\WIN32\include\QtCore
C:\QT\4.8.6\WIN32\include\QtGui
???8?????????Arm Emulator???
Tool -> Connect to Device -> Arm Emulator Device??????
???9???????o?????aQT??????????????????????
??????VS2005 -> File -> New -> Project -> Qt4 Projects -> Qt Window CE Application -> ????????????????????????????????2????????????????????????Arm Emulator??????1??o??a??1???????????OK?????????
Tim???????????2???????????????o?VS2005????o????msvcr80d.dll???????????QT??????????a?o????QtCored4.dll???QtGuid4.dll????1?????????????
???10????????*.ui?????????????????????
?????" qt-creator-opensource-windows-x86-3.3.0.exe "??????????????" *.ui "???????????????????'???????????
Tim???????o????.ui????????????????????axml?????????????????????
Tim???
" qt-creator-opensource-windows-x86-3.0.0.exe " Based on Qt5.2.0 ( MSVC2010,32 bit )??????
" qt-creator-opensource-windows-x86-3.3.0.exe " Based on Qt5.4.0 ( MSVC2010,32 bit )????????????









???1? 2019-03-08 14:30 ???????o
]]>
C++博客- http://www.598club.com/hkingSP/archive/2019/03/08/216289.html???1????1?Fri, 08 Mar 2019 03:00:00 GMThttp://www.598club.com/hkingSP/archive/2019/03/08/216289.htmlhttp://www.598club.com/hkingSP/comments/216289.htmlhttp://www.598club.com/hkingSP/archive/2019/03/08/216289.html#Feedback0http://www.598club.com/hkingSP/comments/commentRss/216289.htmlhttp://www.598club.com/hkingSP/services/trackbacks/216289.html?????????Windows10 / vs2013 or vs2015???Qt5.10.1??????C++11??o??o??????????-vs2008?-????o????????????????????Readme???

1.????????
??????o?perl/python2.7/ruby 
??????o?vs2015

2.???????????
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
?3??????????????1??????????????????????????????????????????binary????????Qt?????????????
?3???????|?????????2?????????QT??????????????????????nmake??????????|???????????jom????????
3.?????????
???????????????C:\Qt\Qt5.10.1_src
?o????Configure???????????
C:\Qt\Qt5.10.1_src

qtbase???????1?????
C:\Qt\Qt5.10.1_src\qtbase

4.?????1????????MD??MT???????????????1??o????????????????
?????1?????????
C:\Qt\Qt5.10.1_src\qtbase\mkspecs\common\msvc-desktop.conf
?????1???????????????????
QMAKE_CFLAGS_RELEASE    = $$QMAKE_CFLAGS_OPTIMIZE -MD
QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += $$QMAKE_CFLAGS_OPTIMIZE -Zi -MD
QMAKE_CFLAGS_DEBUG      = -Zi -MDd
??1??o???
QMAKE_CFLAGS_RELEASE    = $$QMAKE_CFLAGS_OPTIMIZE -MT
QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += $$QMAKE_CFLAGS_OPTIMIZE -Zi -MT
QMAKE_CFLAGS_DEBUG      = -Zi -MTd

?????1?????????
C:\Qt\Qt5.10.1_src\qtbase\mkspecs\common\msvc-version.conf
???????????????????
QMAKE_MSC_VER = 1900
??|??????????????
msvc-version.conf loaded but qmake_msc_ver isn't set

????C:\Qt\Qt5.10.1_src>configure.bat ?????????
5.????????
<license>?????-opensource
???????????????
????? -> Visual Studio 2015 -> Developer Command Prompt for VS2015 
?????????????
 -skip <repo> ......... Exclude an entire repository from the build.
Ex:
-skip qtwebengine
C:\Qt\Qt5.10.1_src\qtwebengine
-nomake <part> ....... Exclude <part> from the list of parts to be built.
Ex:
-nomake tools -nomake examples -nomake tests
C:\Qt\Qt5.10.1_src\qtbase\tests
-make <part> ......... Add <part> to the list of parts to be built.
                                Specifying this option clears the default list first.
                                [libs and examples, also tools if not cross-building,
                                also tests if -developer-build]
-make libs -qt-zlib -qt-pcre -qt-libpng
Ex???
C:\Qt\Qt5.10.1_src\qtbase\src\3rdparty\zlib

?????????????????????????????????????????????????????????????????????'??o???? comercial user ????????qt???Congiguration tool ?????????1??2???????????o???????????3?zh??????
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 

???????????????1?????3???????a??a ?????????a??askip??????
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 
????2???
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.
?????????
Static builds of QtWebEngine aren't supported.
"Some of the required modules (android|ios|winrt|qtHaveModule(webengine)) are not available."
skip webengine ????-????????
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 
?????????
??????

???????????????2???
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 
???????????????1??a????????????????qtbase????????????o????????????????????????????????2????????????????o???
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 , ?????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.

?????????Ubuntu 18.10/linux g++


1.????????

??????o?perl/python/ruby ( Linux ??- python2.x ???????-????python python3.x???????-????python3 )
??????????????

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


2.??????????????
linux?????????????? ??a|?????????1???????????????o???????????????????o?

3.?????????
??????

4.????????????1??o?????????????
linux?2????md/mt???????????????? ??'???-static?o?????????????

5.????????
?????????????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 
???????o?????
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???
????'|??????glibc2.28??????3??????

??????????????
http://retifrav.github.io/blog/2018/02/17/build-qt-statically/
http://blog.csdn.net/u012822903/article/details/62058287


???1? 2019-03-08 11:00 ???????o
]]>
C++博客- http://www.598club.com/hkingSP/archive/2019/03/05/216287.html???1????1?Tue, 05 Mar 2019 01:09:00 GMThttp://www.598club.com/hkingSP/archive/2019/03/05/216287.htmlhttp://www.598club.com/hkingSP/comments/216287.htmlhttp://www.598club.com/hkingSP/archive/2019/03/05/216287.html#Feedback0http://www.598club.com/hkingSP/comments/commentRss/216287.htmlhttp://www.598club.com/hkingSP/services/trackbacks/216287.html????????????????????commit??????????
git log
result:
commit f46a2277acf6b1604f3268fcd3652682f23347bc (HEAD -> master)
Author: songpeng <song.peng@bizerba.com>
Date:   Mon Mar 4 17:07:09 2019 +0800
??????????????-?????????????o???
git show f46a2277acf6b1604f3268fcd3652682f23347bc 


??????????????????????1?????????
?2?????1?????aadd????????'???
git diff
?2add?????acommit????????'???
git diff --cached
??????????????1????
git diff HEAD

?????'???????????1???comment???:
|????????o?????3???????o???commit:
git rebase -i HEAD~3
???????????o?|????(????????windows??????????o?vim,?????1???????o??vim??????????????2??????vim????|????????o)???
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
??????????????3|??????1commit???????????????pick??1???reword?????????????-?
???????????????????????????????o???????3?????1???comment??????1??????1????-????
?????????????
git push --force?????????????????????????????'?????|??????1???comment.




???1? 2019-03-05 09:09 ???????o
]]>
C++博客- http://www.598club.com/hkingSP/archive/2019/03/04/216286.html???1????1?Mon, 04 Mar 2019 08:26:00 GMThttp://www.598club.com/hkingSP/archive/2019/03/04/216286.htmlhttp://www.598club.com/hkingSP/comments/216286.htmlhttp://www.598club.com/hkingSP/archive/2019/03/04/216286.html#Feedback0http://www.598club.com/hkingSP/comments/commentRss/216286.htmlhttp://www.598club.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>???<local_branch>
git pull origin master:master



????????????????'/?????-?????????
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).


???1? 2019-03-04 16:26 ???????o
]]>
C++博客- http://www.598club.com/hkingSP/archive/2019/03/03/216280.html???1????1?Sun, 03 Mar 2019 03:24:00 GMThttp://www.598club.com/hkingSP/archive/2019/03/03/216280.htmlhttp://www.598club.com/hkingSP/comments/216280.htmlhttp://www.598club.com/hkingSP/archive/2019/03/03/216280.html#Feedback0http://www.598club.com/hkingSP/comments/commentRss/216280.htmlhttp://www.598club.com/hkingSP/services/trackbacks/216280.html?????????

???1? 2019-03-03 11:24 ???????o
]]>
C++博客- http://www.598club.com/hkingSP/archive/2019/03/03/216279.html???1????1?Sun, 03 Mar 2019 02:54:00 GMThttp://www.598club.com/hkingSP/archive/2019/03/03/216279.htmlhttp://www.598club.com/hkingSP/comments/216279.htmlhttp://www.598club.com/hkingSP/archive/2019/03/03/216279.html#Feedback0http://www.598club.com/hkingSP/comments/commentRss/216279.htmlhttp://www.598club.com/hkingSP/services/trackbacks/216279.html?3?????????????
/etc/vim/vimrc

?????????????????????????
~/.vimrc

Vim ????????2????????
http://vimcolors.com/

Vim ?????????????theme???
?????????????????????sometheme.vim??????
????? ???/.vim/colors?????
.vimrc??-?????????color sometheme
.vimrc??-?????????syntax on 

.vimrc?????1???
" ????o????
 set nu
" ???????o?????
set tabstop=4
" ???2?????
color railscasts
" ???2?-?3???????
syntax on
" ??1??????????????????a????????????????????|???1???.c???????????1???makefile????????????????????
filetype indent on
" ???????????????without bom??????
set nobomb
" ??????????
set encoding=utf-8
" ????????????utf-8
set fileencoding=utf-8
" ??????????
set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1



???1? 2019-03-03 10:54 ???????o
]]>