• <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
            <2007年11月>
            28293031123
            45678910
            11121314151617
            18192021222324
            2526272829301
            2345678


            子曾經曰過:編程無他,唯手熟爾!

            常用鏈接

            留言簿(94)

            隨筆分類(649)

            隨筆檔案(505)

            相冊

            BCB

            Crytek

            • crymod
            • Crytek's Offical Modding Portal

            Game Industry

            OGRE

            other

            Programmers

            Qt

            WOW Stuff

            搜索

            •  

            積分與排名

            • 積分 - 917313
            • 排名 - 14

            最新隨筆

            最新評論

            閱讀排行榜

            評論排行榜


            要看原版的點鏈接

            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【重劍注:俺就用的這個版本, 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 七星重劍 閱讀(1105) 評論(0)  編輯 收藏 引用 所屬分類: PL--c/c++PL--LuaC++ lib -- CEGUI
            一本久久久久久久| 国产福利电影一区二区三区久久老子无码午夜伦不 | 久久超碰97人人做人人爱| 国产韩国精品一区二区三区久久| 91秦先生久久久久久久| 思思久久精品在热线热| 久久水蜜桃亚洲av无码精品麻豆 | 2021国产精品久久精品| 久久青青草原综合伊人| 久久久国产99久久国产一| 成人综合伊人五月婷久久| 中文精品99久久国产| 久久精品人人做人人爽电影| 亚洲国产精品无码久久青草| 久久精品国产久精国产| 久久久SS麻豆欧美国产日韩| 美女写真久久影院| 热re99久久精品国99热| 亚洲国产成人精品女人久久久 | 69久久精品无码一区二区| 久久天天躁夜夜躁狠狠躁2022| 国产成人精品综合久久久| 久久亚洲精品成人av无码网站| 久久精品中文字幕大胸| 日韩电影久久久被窝网| 久久国产成人午夜AV影院| 久久最近最新中文字幕大全 | 亚洲精品tv久久久久| 久久播电影网| 欧美精品丝袜久久久中文字幕| 一级做a爰片久久毛片人呢| 久久国产乱子伦免费精品| 99久久精品国产一区二区| 久久婷婷五月综合国产尤物app| 亚洲色欲久久久久综合网| 香蕉久久AⅤ一区二区三区| 青青久久精品国产免费看| 日韩va亚洲va欧美va久久| 日本亚洲色大成网站WWW久久| 一本一本久久a久久精品综合麻豆| 亚洲国产高清精品线久久|