cross-platform

What's the difference between glib gunichar and wchar_t and which is better for cross-platform solutions?

假装没事ソ 提交于 2020-01-02 04:07:21
问题 I'm trying to write some C code which is portable only so far as the user has gcc , and has glib installed. From all my research, I've found that with gcc , a wchar_t is always defined as 4 bytes, and with glib a gunichar is also 4 bytes. What I haven't figured out is if like a gunichar , a wchar_t is encoded as UCS4 as well. Is this the case? If so, I should be able to simply cast a gunichar* to a wchar_t* and use the stdc wcs* functions, right? 回答1: If you use GLib, don't use wchar_t . Use

How to make JNLP download the correct version of JavaFX 2?

余生颓废 提交于 2020-01-02 04:00:08
问题 JavaFX 2 is highly dependent on native code. For my desktop application, I would like to select the best-matching JavaFX flavor for each supported OS to make the installation on the target systems as painless as possible. Since JavaFX 2 comes with several Ant tasks to help with deployment, I thought this was the way to go, but I seem to have hit a dead end. The deploy task generates a JNLP file which includes a resource reference that calls the JavaFX installer: <resources> <jfx:javafx

What is the good cross platform C++ IDE? [closed]

和自甴很熟 提交于 2020-01-02 01:15:08
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . It needs to have good code completion support, debugger, and a nice way to browse code (click to go to documentation). Since I got spoiled by Java IDEs (Eclipse), it would be cool if it supported refactoring, reference search and some form of on the fly compilation, but maybe I'm asking too much. So far I tried

Cross-platform primitive data types in C++

前提是你 提交于 2020-01-01 04:33:05
问题 Unlike Java or C#, primitive data types in C++ can vary in size depending on the platform. For example, int is not guaranteed to be a 32-bit integer. Various compiler environments define data types such as uint32 or dword for this purpose, but there seems to be no standard include file for fixed-size data types. What is the recommended method to achieve maximum portability? 回答1: I found this header particularly useful: BOOST cstdint Usually better than inventing own wheel (which incurs the

Cross-platform Python GUI suitable for taskbar (Win) and menubar (mac) functionality?

廉价感情. 提交于 2020-01-01 03:32:15
问题 I am fairly new to Python programming, and completely new to cross-platform GUI building (only previous GUI experience is through visual basic and Java). I've written some python code to screen-scrape data from a website, and now I want to build a GUI that will reside in the Mac OS X menubar, and in Window's task bar (i.e., the system tray) . The most useful general page on cross-plaform Python GUIs for me was this one (despite its name indication Window GUIs). And some stackoverflow

What are good cross-platform Game API?

时光怂恿深爱的人放手 提交于 2020-01-01 03:13:25
问题 I am in the process of designing/building a cross-platform game engine in C++. I would like to use an game API that has 2D/3D graphics, input, networking, audio, etc. One API I found that meets many of these requirements except for Audio is Amaltheia. Can anyone suggest an API that meets all my requirements or one that meets most of the requirements that is better than Amaltheia. 回答1: You could look at SDL, it's a popular cross-platform multimedia library used in many games. Also the Game

Cross-Platform webcam access [closed]

柔情痞子 提交于 2020-01-01 03:06:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I'm looking for a cross-platform video capture library, for webcam access. One that wraps V4L/V4L2 on Linux, DirectShow on Windows, and QuickTime on the Mac. C or C++ is preferred, but I can work in Java or Python if those have better options for libraries. 回答1: The OpenCV (Open Source Computer Vision) works

Using python shelve cross-platform

送分小仙女□ 提交于 2020-01-01 02:29:13
问题 I am hoping for a little advice on shelves/databases in Python. Problem: I have a database created on the mac, that I want to use on windows 7. I use Python 3.2, MacOS 10.7, and win 7. When I open and save my shelve on the mac all is good and well. I get a file with a ".db" extension. On my windows-python it is not recognized. I can however create a new db on the pc and get files with ".bak, dat, .dir" extensions. I am guessing that the python on the pc does not have the same underlying

how to port .NET application to mono

ⅰ亾dé卋堺 提交于 2019-12-31 22:19:12
问题 Since I was not satisfied with my C# application not working on Linux or Mac, I installed MonoDevelop in hopes of porting my application to Mono for cross-platformability. However, I don't know how how to use MonoDevelop to accomplish this task. There's no instructions in FAQ or Documentation. Any idea how to do it? 回答1: From MonoDevelop FAQ: Can I import my Visual Studio 2K5+ project into MonoDevelop? MonoDevelop can open, manipulate and save MSBuild-based projects directly in most cases. In

Is there a cross-platform GUI framework for C#/.NET?

自闭症网瘾萝莉.ら 提交于 2019-12-31 21:38:04
问题 Let's say just for the joy of it, I decide that I don't want to write desktop applications in Java any more, instead want to switch to using C#. I want to be able to build an application that will run on some mainstream Linux distribution, and a recent release of MS Windows. It will have a GUI component. In Java I can build an application that uses Swing. Once I have it working, I can copy that jar file from Windows to Linux or vice versa, depending where I developed it. And it will generally