cross-platform

CMake doesn't find boost

此生再无相见时 提交于 2019-12-24 02:23:01
问题 Windows 7. 64bit. CMake 2.8.10. Steps: download boost: http://sourceforge.net/projects/boost/files/boost/1.51.0/ put it to C:\work\lib\boost_1_51_0-MT open "Start->All Programs->Microsoft Visual Studio 2010->Visual Studio Tools->Visual Studio Command Prompt (2010)" command: cd C:\work\lib\boost_1_51_0-MT bootstrap.bat bjam --toolset=msvc-10.0 --variant=release --build-type=complete -j 4 --with-regex --with-test --with-filesystem --with-date_time --with-random --with-system --with-thread -

Can you use DataSet and DataTables in a Portable Class Library

瘦欲@ 提交于 2019-12-24 01:19:24
问题 I am working on a project that relies on DataSet and DataTable. We wish to move into cross platform so are looking at Portable Class Libraries. However we cant find out how to use DataSet and DataTable in a portable class library. Are they available? Maybe we should be moving away from DataSets and DataTables but we have what we have right now. 回答1: No the Dataset and DataTable are quite Windows specific Data structures, they would not be cross compatible, you may instead plan to serialize

C++ Cross platform libraries

a 夏天 提交于 2019-12-23 19:53:09
问题 I'm not exactly new to C++ but I've never managed to get my head around Libraries. I would like to split my networking, graphics and input class sets out of my main executable so that I can update them individually rather then sending out a recompiled version of all the code as a single executable. Is this possible and how do I do this cross platform? (E.g. the process will work on Windows, Linux and Mac) 回答1: As @Armen said in the simplest of terms, one of the requirements here is a library

ListView in Xamarin using RestApi

試著忘記壹切 提交于 2019-12-23 19:21:26
问题 I'm enable to solve this error. I wanted to display ListView of API data which is in large amount. For example API contains this type of data : [{"id":"666","employee_name":"xyz","employee_salary":"123","employee_age":"23","profile_image":""}] Error screenshot: Class.cs which i made after converting JSON to c# public class employees { public string id { get; set; } public string employee_name { get; set; } public string employee_salary { get; set; } public string employee_age { get; set; }

Android Bluetooth Cross Platform Interoperability

与世无争的帅哥 提交于 2019-12-23 17:15:16
问题 I have a Bluetooth service that I programmed for .Net on a Windows machine and I would like my Android 2.1 phone to connect to it. The server is listening for the same UUID which the Android is using to connect. But the connection is failing. When I try to connect to devices that are not listening for that UUID, I get an exception with the message "Service discovery failed", but when I try to connect to the server that is listening for the right UUID a message box pops up saying: "There was a

Is there a system-wide version of the Preferences API?

别来无恙 提交于 2019-12-23 13:56:08
问题 In a previous question, I learned about the preferences API. Unfortunately, it only appears to be user-specific preferences. I also have preferences that need to be able to be set across users. What is the platform-independent way to do that in Java? EDIT: Good info below, however since implementing I ran into a snag... Tested first on my dev box (Win 7, UAC off) and it works fine. Tried it on the first of my test VMs and it fails... On Win 7 with UAC on, writes fail (I can do a write

Makefiles and cross platform development

余生颓废 提交于 2019-12-23 12:33:46
问题 I have been trying to figure out how to create a C program that can be compiled for all of the major operating systems. I have considered using makefiles so I would just have to change the target OS, but I have a few problems. My first problem is that I cannot figure out how to change the target OS so I can compile on one OS but use the application on all OS's. My second issue is that I cannot figure out how to make it automatically compile all .c files in the src directory, so I do not have

Java Maximum File Size

删除回忆录丶 提交于 2019-12-23 12:33:20
问题 Is there an cross-platform way to determine the maximum file size of the host OS in Java? 回答1: No, maximum file size is file system dependent. (you can see a comparison here). You can figure out the file system type using a platform specific manner (for example, mount on linux). 回答2: The largest file is surely no larger than the amount of free space, which you can get via long FileSystemUtils.freeSpaceKb(String path) from Apache Commons IO On JDK 6, you can use File.getFreeSpace() to find the

Are floating point operations in Delphi deterministic?

喜欢而已 提交于 2019-12-23 08:56:38
问题 Are floating point operations in Delphi deterministic? I.E. will I get the same result from an identical floating point mathematical operation on the same executable compiled with Delphi Win32 compiler as I would with the Win64 compiler, or the OS X compiler, or the iOS compiler, or the Android compiler? This is a crucial question as I'm implementing multiplayer support in my game engine, and I'm concerned that the predictive results on the client side could very often differ from the

Mono on VS2010?

≯℡__Kan透↙ 提交于 2019-12-23 07:43:55
问题 I want to start doing a cross platform project that will run on Linux and Windows. I went to mono's website to check things out as I heard mono allows me to run c# on Linux, but when I arrived there http://mono-project.com/Main_Page I was a bit confused. The download page allows me to download it just fine but in order to program mono on VS2010 I need to pay for mono-tools or are there any alternatives within VS2010 ? In short what do I need to be able to use mono with VS2010 and what are the