stlport

vs2010 使用STLport-5.2.1

ε祈祈猫儿з 提交于 2019-12-01 10:43:15
vs2010 使用STLport-5.2.1 下载地址: http://sourceforge.net/projects/stlport/   下载后解压,假设目录为:D:\STLport,接下来就该编译它了: 1.在开始菜单中找到VC 命令行工具,接下来切换到D:\STLport\STLport-5.2.1目录。 2.可以运行configure –help看看编译选项,用MSVC编译器编译的话,输入以下命令: configure msvc9(configure msvc10 会显示 Unknown compiler: msvc10, msvc9即可) 3.输入 cd build cd lib 4.输入 nmak clean install (在第二步的时候会有提示让你输入安装命令) 如果不出错,稍等几分钟就OK了。 假若出现如下错误: D:\STLport\STLport-5.2.1\stlport\stl/_cstdlib.h( 158 ) : error C2084: function ' __int64 abs(__int64) ' already has a body C:\Program Files\Microsoft Visual Studio 10.0 \VC\INCLUDE\../include/stdlib.h( 471 ) : see previous

Solution for missing std::wstring support in Android NDK?

孤者浪人 提交于 2019-12-01 06:04:34
I have a game which uses std::wstring as its basic string type in thousand of places as well as doing operations with wchar_t and its functions: wcsicmp() wcslen() vsprintf(), etc. The problem is wstring is not supported in R5c (latest ndk at the time of this writting). I can't change the code to use std::string because of internationalization and I would be breaking the game engine which is used by many games ... Which options do I have? 1 - Replace string and wstring with my own string classes This would give me better platform independency, but it is ridiculous to reimplement the wheel. I

stlport的安装 和 boost环境配置

余生长醉 提交于 2019-11-30 05:40:51
今天配置好boost,开始boost之旅! 一、 stlport的安装。 二、安装和使用boost。 参考链接1:安装boost http://blog.sina.com.cn/s/blog_6e0693f70100txlg.html 参考链接2:注意事项 http://www.360doc.com/content/12/0328/17/9369336_198669298.shtml 3. 用记事本打开E:\Boost\tools\build\v2下的user-config.jam: 将 "# using msvc : 9.0 ;" 前的 # 注释符号去掉,表示安装Boost1.4.5时使用Visual Studio 2008 (即msvc : 9.0)。 (通过该文件 user-config.jam,可以配置很多环境,如 GCC, STLPort, QT ) 总结步骤: 1、通过vs工具栏tool,进入visual studio command prompt。 2、到boost安装根目录,运行bootstrap.bat文件, 生成bjam.exe文件 (用于编译生成obj文件)。 3、运行bjam.exe文件,命令如: (全部编译) bjam --without-mpi --toolset=msvc-9.0 --build-type=complete --stagedir="E:

LNK2001 error when compiling apps referencing STLport-5.1.4 with VC++ 2008

此生再无相见时 提交于 2019-11-29 08:36:00
I apologize in advance for the long post... I used to be able to build our VC++ solutions (we're on VS 2008) when we listed the STLPort include and library directories under VS Menu > Tools > Options > VC++ Directories > Directories for Include and Library files. However, we wanted to transition to a build process that totally relies on .vcproj and .sln files. These can be checked into source control unlike VS Options which have to be configured on each development PC separately. We handled the transition for most libraries by adding the Include directories to each Project's Property Pages >

How to use the boost library (including shared_ptr) with the Android NDK and STLport

白昼怎懂夜的黑 提交于 2019-11-28 03:22:53
This is more of an answer than a question, because I've figured it out, at least as far as cleanly compiling the library. The main issue for me was to get shared_ptr working. Ingredients: Boost v. 1.45.0 The version of STLport at http://www.anddev.org/viewtopic.php?p=29939 . Version r4b of the NDK. Directions: In your Android.mk file add: LOCAL_CFLAGS += -DBOOST_EXCEPTION_DISABLE -D_STLP_NO_EXCEPTIONS -DOS_ANDROID -D_STLP_USE_SIMPLE_NODE_ALLOC Remove the call to __stl_throw_length_error at line 613 of stlport/stl/_string.h. You can use _STLP_NO_EXCEPTIONS if you like. Edit boost/boost/smart

LNK2001 error when compiling apps referencing STLport-5.1.4 with VC++ 2008

流过昼夜 提交于 2019-11-28 02:11:51
问题 I apologize in advance for the long post... I used to be able to build our VC++ solutions (we're on VS 2008) when we listed the STLPort include and library directories under VS Menu > Tools > Options > VC++ Directories > Directories for Include and Library files. However, we wanted to transition to a build process that totally relies on .vcproj and .sln files. These can be checked into source control unlike VS Options which have to be configured on each development PC separately. We handled

How to use the boost library (including shared_ptr) with the Android NDK and STLport

百般思念 提交于 2019-11-27 00:01:38
问题 This is more of an answer than a question, because I've figured it out, at least as far as cleanly compiling the library. The main issue for me was to get shared_ptr working. Ingredients: Boost v. 1.45.0 The version of STLport at http://www.anddev.org/viewtopic.php?p=29939. Version r4b of the NDK. Directions: In your Android.mk file add: LOCAL_CFLAGS += -DBOOST_EXCEPTION_DISABLE -D_STLP_NO_EXCEPTIONS -DOS_ANDROID -D_STLP_USE_SIMPLE_NODE_ALLOC Remove the call to __stl_throw_length_error at