• <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年12月>
            2526272829301
            2345678
            9101112131415
            16171819202122
            23242526272829
            303112345


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

            常用鏈接

            留言簿(94)

            隨筆分類(649)

            隨筆檔案(505)

            相冊

            BCB

            Crytek

            • crymod
            • Crytek's Offical Modding Portal

            Game Industry

            OGRE

            other

            Programmers

            Qt

            WOW Stuff

            搜索

            •  

            積分與排名

            • 積分 - 911663
            • 排名 - 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
            久久99亚洲网美利坚合众国| 91久久精品视频| 青青草原综合久久大伊人| 国产精品视频久久久| 97久久超碰国产精品旧版| 久久w5ww成w人免费| 久久青草国产手机看片福利盒子| 久久播电影网| 久久精品一区二区三区AV| 无码国产69精品久久久久网站| 国内精品伊人久久久久| 精品久久久久久无码国产| 久久久久亚洲av综合波多野结衣| 精品无码久久久久久午夜| 亚洲AV日韩精品久久久久久久| 久久精品国产亚洲av水果派| 久久电影网一区| 日韩人妻无码精品久久久不卡| avtt天堂网久久精品| 人妻丰满?V无码久久不卡| 国产精品久久久久久久| 蜜臀久久99精品久久久久久| 久久精品aⅴ无码中文字字幕重口| 精品乱码久久久久久夜夜嗨| 欧美黑人又粗又大久久久| 亚洲?V乱码久久精品蜜桃| 韩国三级大全久久网站| 精品久久久久久无码不卡| 亚洲精品白浆高清久久久久久| 久久91这里精品国产2020| 国产精品久久自在自线观看| 久久久精品2019免费观看| 久久综合视频网| 色偷偷91久久综合噜噜噜噜| 亚洲综合伊人久久综合| 久久综合亚洲色HEZYO国产| 国产精品伦理久久久久久| 91久久福利国产成人精品| 一本一道久久精品综合| av无码久久久久久不卡网站| 无码专区久久综合久中文字幕|