• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            隨筆 - 505  文章 - 1034  trackbacks - 0
            <2008年3月>
            2425262728291
            2345678
            9101112131415
            16171819202122
            23242526272829
            303112345


            子曾經(jīng)曰過(guò):編程無(wú)他,唯手熟爾!

            常用鏈接

            留言簿(94)

            隨筆分類(649)

            隨筆檔案(505)

            相冊(cè)

            BCB

            Crytek

            • crymod
            • Crytek's Offical Modding Portal

            Game Industry

            OGRE

            other

            Programmers

            Qt

            WOW Stuff

            搜索

            •  

            積分與排名

            • 積分 - 914448
            • 排名 - 14

            最新隨筆

            最新評(píng)論

            閱讀排行榜

            評(píng)論排行榜


            要看原版的點(diǎn)鏈接

            Compiling Tolua++ without SCons

            I wanted to post this on the tolua++ site but they dont have a wiki.

            The tolua++ INSTALL file lets you figure out how to compile it without SCons. Its easy enough, but I wanted to save the people the 5 ( err... 15 ) minutes they need to figure this out.



            Using Visual Studio 2003

            DLL

            Open the "File->New Project" menu. From the project types listbox, select "Visual C++ Projects->Win32". From the Templates listbox, select "Win32 project". For a project name, type in "tolua++".

            When the wizard opens, select "Application Settings" on the right hand side. Choose "DLL" and click 'Finish'.

            In the Solution Explorer right click on "source files" and select "Add->Existing Item". Browse to the location of the tolua++\src\lib directory. Highlight all .c and .h files and add them to the project. You may also optionally want to add the tolua++.h file from the include directory into the "header files" folder.

            Right click on the tolua++ project in the Solution Explorer and select "Properties".

            Under the "C/C++ -> General" section select the "Additional include directories" option. Navigate to the location of your Lua include files.

            Under the "C/C++ -> Preprocessor" section add the following: TOLUA_API=extern __declspec(dllexport) Under the "C/C++ -> Precompiled headers" section, turn off precompiled headers. Under the "Linker -> General" section select the "additional library directories" option and navigate to the location of your Lua .lib library files. Under the "Linker -> Input" section add lua.lib and lualib.lib (assuming those are your lua libraries).

            Compiling the project should result in a tolua++.dll.

            EXE

            To create tolua++.exe, open the "File->New Project" menu, select Visual C++-> Win32 -> Win32 console project. Add the files tolua.c and toluabind.c to the project.

            You will need to add all of the relevant lua include and library directories to this project. The process is the same as above. Under the "C/C++ -> Preprocessor" section, add: TOLUA_API=extern __declspec(dllimport), ... etc ...

            Note that for v1.0.92【重劍注:俺就用的這個(gè)版本, I had to remove the TOLUA_API that appears in toluabind.c:

            int TOLUA_API tolua_tolua_open (lua_State* tolua_S)
            
            becomes
            int tolua_tolua_open (lua_State* tolua_S)
            

            Using Visual Studio 2005

            The same comments as above (for vs2003) generally apply, although some minor tweaks need to be made.

            Note that, due to VS' poor c99 support, 'toluabind.c' in the "EXE" build will not compile. There are many lines that look like:

             int top; top = lua_gettop(tolua_S); static unsigned char B[] = {  

             

            These need to be changed to:

             int top = lua_gettop(tolua_S); static unsigned char B[] = {  

            or similar.

            Tested with vs2005 (no service packs) and tolua++ 1.0.91.

            posted on 2008-11-06 11:00 七星重劍 閱讀(1101) 評(píng)論(0)  編輯 收藏 引用 所屬分類: PL--c/c++PL--LuaC++ lib -- CEGUI
            日韩电影久久久被窝网| 香蕉99久久国产综合精品宅男自 | 日韩欧美亚洲国产精品字幕久久久| 久久嫩草影院免费看夜色| 精品久久一区二区| 国内精品伊人久久久久网站| 欧美午夜A∨大片久久| 精产国品久久一二三产区区别 | 久久人与动人物a级毛片| 久久精品无码一区二区WWW| 久久狠狠爱亚洲综合影院| 精品久久久久久久久午夜福利| 国产成人久久777777| 亚洲国产精品无码久久青草 | 日产久久强奸免费的看| 中文字幕日本人妻久久久免费 | 蜜桃麻豆WWW久久囤产精品| 久久精品国产亚洲AV香蕉| 色噜噜狠狠先锋影音久久| 久久国语露脸国产精品电影| 999久久久国产精品| 亚洲精品无码久久久影院相关影片| 国产综合成人久久大片91| 久久久久青草线蕉综合超碰| 国产精品九九久久精品女同亚洲欧美日韩综合区 | 久久久国产视频| 亚洲va久久久噜噜噜久久狠狠 | 久久精品国产一区二区| 亚洲狠狠婷婷综合久久蜜芽| 久久精品免费网站网| 久久亚洲高清观看| 久久国产成人精品麻豆| 久久综合给合久久狠狠狠97色| 一本久道久久综合狠狠躁AV| 久久免费视频网站| 久久亚洲国产午夜精品理论片| 久久久久成人精品无码中文字幕 | 久久精品一本到99热免费| 人妻无码精品久久亚瑟影视 | 久久99国产精品久久99果冻传媒| 亚洲国产精品无码成人片久久|