• <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年12月>
            30123456
            78910111213
            14151617181920
            21222324252627
            28293031123
            45678910


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

            常用鏈接

            留言簿(94)

            隨筆分類(649)

            隨筆檔案(505)

            相冊

            BCB

            Crytek

            • crymod
            • Crytek's Offical Modding Portal

            Game Industry

            OGRE

            other

            Programmers

            Qt

            WOW Stuff

            搜索

            •  

            積分與排名

            • 積分 - 911346
            • 排名 - 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 七星重劍 閱讀(1096) 評論(0)  編輯 收藏 引用 所屬分類: PL--c/c++PL--LuaC++ lib -- CEGUI
            色欲综合久久中文字幕网| 中文字幕精品无码久久久久久3D日动漫| 国産精品久久久久久久| 久久久不卡国产精品一区二区| 狠狠色丁香婷婷久久综合 | 日产精品久久久久久久| 久久91这里精品国产2020| 欧美成a人片免费看久久| 国产精品成人久久久久三级午夜电影| 亚洲午夜久久久影院| 久久亚洲日韩看片无码| 久久99国产乱子伦精品免费| 亚洲中文精品久久久久久不卡| 国内精品伊人久久久久AV影院| 久久高清一级毛片| 色欲综合久久躁天天躁蜜桃| 国产精品内射久久久久欢欢| 无码人妻久久一区二区三区| 国产精品一区二区久久精品无码| 久久精品免费一区二区| 久久久久亚洲国产| 18禁黄久久久AAA片| 51久久夜色精品国产| 四虎国产精品免费久久5151| 久久久久综合网久久| 一本色道久久综合| 国产午夜精品久久久久九九| jizzjizz国产精品久久| 久久亚洲精品无码AV红樱桃| 亚洲精品tv久久久久| 国产精品九九久久精品女同亚洲欧美日韩综合区 | 国产三级精品久久| 色综合久久中文综合网| 久久精品国产亚洲av水果派| 久久丫精品国产亚洲av不卡| 热久久最新网站获取| 手机看片久久高清国产日韩| 久久毛片一区二区| 亚洲精品久久久www| 麻豆国内精品久久久久久| 国产综合成人久久大片91|