17
голосов
10ответов
11688 просмотров

Learning and cross-platform development (C++)

I am writing a small C++ program for fun and for extending my C++ skill. Since its scope is relatively small, I also planning to try out cross-platform development by making this program support both Windows and Linux. I reckon my C++ proficiency is sitting somewhere between casual and intermedi...

3
голосов
2ответов
3177 просмотров

Mono assembly folders?

On a windows system the registry has keys like: HKLM\SOFTWARE\Microsoft\.NETFramework\v2.0.50727\AssemblyFoldersEx for locations of dot net assembly folders other than the gac. Does a non-win mono system have a way of retrieving these or was it just considered not important?

14
голосов
7ответов
27266 просмотров

Replace \n with \r\n in Unix file

I'm trying to do the opposite of this question, replacing Unix line endings with Windows line endings, so that I can use SQL Server bcp over samba to import the file. I have sed installed but not dos2unix. I tried reversing the examples but to no avail. Here's the command I'm using. sed -e 's/\...

7
голосов
3ответов
5025 просмотров

Is it possible to compile Windows binaries on a Linux machine?

At my work, all of the project data resides on an NFS that is accessible from both Linux and Windows machines (using Samba). All of the work is done on Linux, but I'm toying with the idea of compiling some of tools for Windows so that I can debug with Visual Studio. I already have a nice makefil...

8
голосов
4ответов
4026 просмотров

How to use hudson when building for multiple platforms

Right now we are building a number of C++ apps for Win32 platform. We will be soon porting to Linux and then maybe more (32 and 64 bits for both). What is the standard practice , do you use multiple hudson servers each on their own platform to do a build, or does the hudson service create VMs...

1
голосов
6ответов
5869 просмотров

Can C++ be compiled into platform independent code? Why Not?

Is it possible to compile C++ program into some intermediate stage (similar to bytecode in java) where the output is platform independent and than later compile/link at runtime to run in native (platform dependent) code? If answer is no, why?

0
голосов
2ответов
2112 просмотров

How to build wxmathPlot for win32?

I downloaded the latest wxmathplot but the readme is a bit sparse with instructions on how to build on win32 platform. Has anyone used this library for win32? Can someone point me to the docs or give some hints/advice on how to build for win32 targets. We'll eventually use this for cross platf...

4
голосов
6ответов
7784 просмотров

Can SQL Server bcp in a file with Unix line endings?

I'm trying to use the SQL Server bcp utility to import a text file from a samba share. bcp is choking on the Unix line endings. I'm sure I could add an intermediate step, either on Unix or Windows, to change the line endings to Windows-style. But I would prefer to import the files from Unix witho...

72
голосов
14ответов
71503 просмотров

C++ Cross-Platform High-Resolution Timer

I'm looking to implement a simple timer mechanism in C++. The code should work in Windows and Linux. The resolution should be as precise as possible (at least millisecond accuracy). This will be used to simply track the passage of time, not to implement any kind of event-driven design. What is th...

3
голосов
3ответов
1465 просмотров

Experiences of Mono web development in OSX

I'm a .NET web developer and just bought a new Mac. I'm interested in developing, and debugging .NET in OSX, but I'm not interested in deploying to OSX. Although, in the future, I will be interested in deploying to Linux. What are your experiences with Mono web development in OSX? In particula...

9
голосов
3ответов
2572 просмотров

Is there a non-java, cross platform way to launch the associated application for a certain file type?

First, I found a couple of java specific questions and answers for this. I am looking for more "native", but cross platform solution, using C, C++, some kind of shell scripts, or, in my case, Qt. So the question is, are there standard, cross platform, ways to programmatically open the associate...

7
голосов
3ответов
11853 просмотров

Building GCC cross compiler (from "Linux" to "Windows")

I want to build "gcc cross-compiler" to compile "c/c++" applications on "Linux" environment but for "Windows" target. I have made this so far: Installed the necessary tools and packages for building GCC listed on "Prerequisites for GCC" page. Downloaded required sources: "gcc-core-4.4.1", "gcc...

1
голосов
3ответов
2190 просмотров

How to use cross platform C++ with a WPF C# GUI

I'm currently in a project that need to work both on Mac and Windows. We are using standard portable C++ for all the application logic. However, since we want the app to feel totally native on both platform, the GUI will be written with C#/WPF for Windows and Objective-C/Cocoa for Mac. However, ...

0
голосов
2ответов
223 просмотров

Cross-platform help viewer with search functionality

I am looking for a help viewer like Windows CHM that basically provides support for adding content in HTML format define Table of Contents decent search It should work on Windows, Mac and Linux. Bonus points for also having support for generating a "plain HTML/javascript" version that can be...

0
голосов
3ответов
2435 просмотров

Need Help Porting Win32 C++ to Unix

I'm looking for help porting this Windows tool to Unix (Mac/OSX); http://www.oxyron.de/html/netdrive01src.zip First off I'd like to know, if anyone could take a moment to have a quick look at the (small) source code, if it's a reasonably straight-forward task. Secondly, any tips on porting the...

15
голосов
6ответов
6661 просмотров

On which platforms is thread local storage limited and how much is available?

I was recently made aware that thread local storage is limited on some platforms. For example, the docs for the C++ library boost::thread read: "Note: There is an implementation specific limit to the number of thread specific storage objects that can be created, and this limit may be small." I'...

16
голосов
3ответов
3903 просмотров

How MonoTouch works?

I would really appreciate it anybody could briefly explain me, what's the general approach to implementing things like MonoTouch? I'm really amazed because it's not the first example I see when people get some platform like Java and make it translate into something like C/Objective-C. I can't rea...

1
голосов
11ответов
1480 просмотров

Cross-platform development?

I am looking for a solution which would allow me to code for Linux and Windows using C++. On Windows I use Visual Studio (I tried other stuff on Windows but I work with DirectX and as far as I know, it's the best solution). On Linux I use NetBeans (which I like very much). My problem is that I...

1
голосов
3ответов
1063 просмотров

Development SMTP Server

I need a cross platform (at least windows and mac) development utility that runs as an SMTP server that acts as an SMTP server but will redirect all mail to a single address that's configurable. It would also be helpful if it wrote the contents out to a file or gui. Long ago I configured Apache ...

4
голосов
1ответов
1408 просмотров

MinGW - cross compile tool - latest version?

At the MinGW download page you can download the "Cross-Hosted MinGW Build Tool" which is a shell script to build the "MinGW cross-compiler" so that you will be able to compile your programs on "Linux" to the "Windows" target. I have downloaded that script, run it and answered the interactive que...

2
голосов
3ответов
531 просмотров

Application to generate installers for Linux, Windows and MacOSX from a single configuration

Here's what I want: Given a set of definitions (preferably in Python) on what files to install where and what post-install script to run, etc.. I would like this program to generate installers for the three major platforms: MSI on Windows dmg on MacOSX Tarball w/ install.sh (and rpm/deb, if po...

0
голосов
3ответов
1360 просмотров

Change link destination based on whether user has mac or PC

Is it possible to change the destination of a link based on whether the user has a mac or a PC using javascript? To give an example: The Apple website allows download of Quicktime but it "knows" whether you are using a mac or a pc and directs you to the relevant page. Background/Reason for doin...

3
голосов
2ответов
676 просмотров

Stop execution of my program and go to the Debugger without setting breakpoints (Visual Studio/GCC and C++)

I've found information about this feature on SO some time ago, but the topic was a duplicate of Hidden Features of Visual Studio (2005-2008)? and I can't find it anymore. I want to use something like this: #ifdef DEBUG #define break_here(condition) if (condition) ... // don't remember, what mus...

1
голосов
2ответов
672 просмотров

Wpf is only internet explorer compatible?

By default any WPF browser application will work only in internet explorer? If the first one is true, is there any addin for firefox for displaying wpf browser applications?

5
голосов
2ответов
2292 просмотров

What's the best cross platform approach (Windows/Mac) to deploy a simple service/daemon (with simple UI)

I'm getting confused re the range of options for development & deploying some simple code & UI to both Windows & Mac. Can anyone assist re a good direction here. I do like Ruby, however if it makes sense to move away from this (e.g. java, c#) then so be it. Which development opti...

11
голосов
7ответов
8422 просмотров

Cross-platform and language (de)serialization

I'm looking for a way to serialize a bunch of C++ structs in the most convenient way so that the serialization is portable across C++ and Java (at a minimum) and across 32bit/64bit, big/little endian platforms. The structures to be serialized just contain data, i.e. they're pure data objects wit...

10
голосов
11ответов
9788 просмотров

Cross-platform development - Delphi 2011: How to made a Windows-tied library cross-platform?

As perhaps you know already, most probably the next version of Delphi will be cross-platform. Also, here are some polls on the matter. While writing a cross-compiler isn't a thing which interests us very much now, porting a library which was/is Windows-tied to multiple platforms, certainly does....

6
голосов
3ответов
3984 просмотров

Cross platform VNC Client Library?

Does anyone know of a good cross platform VNC client library (the viewer end)? I'm not terribly picky about language, but I would prefer something with C++ or Python. I would need it to work on Linux, Mac, and Windows.

1
голосов
1ответов
402 просмотров

What's a reasonable maximum size that a cross-platform application should allow a text file to get?

What's a reasonable maximum size that a cross-platform application could allow a text file to get? I understand that this is an oversimplified question so allow me to explain. My team is implementing a bulk load interface for clients to load data into our database. It will write out a CSV file...

11
голосов
7ответов
13987 просмотров

Cross-platform primitive data types in C++

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...