FAQ Database Discussion Community


How to overcome this assembly incompatibility causing a compiler error?

c,visual-c++,assembly,cross-platform
I am using Visual Studio to maintain a C project designed for an embedded platform. I am trying to use the Visual C compiler to build the project, going as far as it can before stopping on errors, and when ready, rebuild it with the target toolchain. This way I...

.Jar runs fine on Windows but throws exception on MAC

java,osx,javafx,cross-platform
im experiencing a weird problem, and i can't even properly use my Exception stack trace, as it looks like! the problem is produced in the JavaFX Methods itself. This is my usage: Im creating a ObservableArrayList and want to show it in a LineChart. This is how i create /...

Is it better to create separate projects for each OS or mix them all into one project?

c++,cross-platform,project-management
Is it better to create separate projects for each OS or to mix OS specific code into one project? For example, is it better to keep using these in C++ or totally just bypass these definitions by doing it differently for each OS but keeping the same actual end result...

How to tell the difference between linux and mac

python-3.x,operating-system,cross-platform
I am creating a setup file for a tarball, and I need a way to determine the exact name of the system. I tried os.name, but it returns 'posix' regardless of whether the system is mac or linux. Is there a way to get a more specific OS name?...

Excluding unit tests only on specific platform

c#,unit-testing,cross-platform,xamarin.forms,xunit.net
My scenario is as follows: I'm working on a cross-platform mobile app with Xamarin.Forms. Part of this solution are unit test projects that target iOS/Android/WP8, and the tests that are executed on each platform are in a shared library. The tests are written with the xUnit.Net framework. Now I have...

Are Matlab applications compiled on Windows runnable under Linux?

matlab,cross-platform,matlab-compiler
Application complied in windows MATLAB R2014b, is it runnable in Linux (Ubuntu 14.04) with the Linux MCR?

ionic build ios fails with “[TypeError: Arguments to path.join must be strings]”

ios,node.js,npm,cross-platform,ionic-framework
I am trying to create an ionic app on Mac. I followed the instructions on ionic's website to create a basic app and was able to run it in the browser but when I run "ionic build ios" I get following error. I cannot find a log file or any...

Is Double Math Consistent across Multiple Platforms?

double,cross-platform,precision,floating-accuracy,deterministic
For my deterministic physics engine, I need to confirm that calculations with doubles in C# are consistent enough across multiple platforms. Does anyone know how much the following functions differ in results? On my computer as a Windows 32 bit application, these are the results (Note: Pseudo-code): double x =...

Xamarin Forms: how to implement platform specific code

c#,audio,xamarin,cross-platform,xamarin.forms
I do have a Xamarin Forms project where I want Android, iOS and WinPhone as targets. (Right now I only look at Android.) I am having trouble playing Audio and think I will need to implement it differently on each device. I started with adding this code in the app.cs...

Getting file size platform-independently (C)

c,file,cross-platform,standards,filesize
I am looking for some platform-independent C code to determine the size of a given file. First, I read the following answer: http://stackoverflow.com/a/238607 The answer uses fseek with SEEK_END and ftell. Now, my problem is that I found the following C standard quotes. Setting the file position indicator to end-of-file,...

How do I retain search engine accessibility when loading external file into html

javascript,jquery,html,seo,cross-platform
I plan to: $('#main.sidecontent').load('/sidecontent.html'); and insert: <div class="sidecontent" id="main"></div> a div on several html pages since the content of this div is the same and I try to straighten my workflow, basically avoiding editing every single html page when this content div changes. My questions: Is this method recommended for...

please introduce best game engine for strategy mobile game [closed]

mobile,cross-platform,game-engine
we want to create strategy mobile game like clash of clans and now please introduce best game engine for strategy mobile game . It's very important that engine must be cross platform thanks

Cross-platform image name?

xamarin,cross-platform,xamarin.forms
I have some xaml markup to specify the image file based on a binding. <Image Grid.Row="0" Grid.Column="3" Source="{Binding ImageSource}" VerticalOptions="Center"/> My model class has this to return the file name: public string ImageSource { get { return (PaymentType == PaymentType.Check ? "check" : "card"); } } This works great for...

C binary : syntax error: `(' unexpected

c,makefile,cross-platform,exe
I am having a weird error. Before I begin, my question is not a copy of Syntax error unexpected. I have a C file. If I do gcc code.c -Wall. It creates a.out. And I am able to run ./a.out. No errors and no warnings. In my case I have...

How to Build Cross Platfrom ( Windows Phone and Android) [closed]

c#,android,c++,windows-phone,cross-platform
I am a begainner into mobile app devolpment , and I wanted to make mobile apps with any programming lang and i wated to make the app cross platfrom so i dont need to write it 2 or 3 times so and i heared about xmairin but you will need...

Xamarin Set Binding of EntryCell

c#,mvvm,xamarin,cross-platform
I want to save the values that a user enters in the placeholder of an EntryCell using MVVM. This is part of my .xaml <TableView> <TableView.Root> <TableSection> <EntryCell x:Name="HomeEC" Label="HomeTeam" Placeholder="{Binding Home, Mode=TwoWay}" > </EntryCell> <EntryCell x:Name="AwayEC" Label="AwayTeam" Placeholder="{Binding Away, Mode=TwoWay}" > </EntryCell> <EntryCell x:Name="BetEC" Label="BetTeam" Placeholder="{Binding Bet, Mode=TwoWay}" >...

Is numpy.save cross platform?

python,serialization,numpy,cross-platform
Suppose I save a numpy array to a file, "arr.npy", using numpy.save() and that I do this using a particular python version, numpy version, and OS. Can I load, using numpy.load(), arr.npy on a different OS using a different version of python or numpy? Are there any restrictions, such as...

Is there any IDE for mobile development cross platform free for commercial use?

mobile,cross-platform,development-environment
I'm in need to create a mobile application, but I wanted to make it cross platform (pick the same code and compile to android, ios without much problems). In my searches, I only found frameworks, like PhoneGap, but no IDE free for commercial use. I have only found Visual Studio...

How to use different tool chains

cmake,cross-platform
In a project where some targets are to be build and run on the build platform and other targets are to be build for a cross platform; what options do we have, when using cmake? Currently I use CMAKE_BUILD_TYPE to define tool chain, build type and platform (for example -D...

How to Upgrade Cordova 3.5.0-0.2.4 to any higher version?

android,cordova,cross-platform,phonegap-plugins,cordova-3
There are many questions in stackoverflow and in other blogs which says just execute the below command to upgrade- sudo npm install -g [email protected] After executing the above command in my terminal i get the following- /usr/bin/cordova -> /usr/lib/node_modules/cordova/bin/cordova [email protected] /usr/lib/node_modules/cordova ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) └── [email protected]..

How do I compile Qt5 dev branch from git repository for the Raspberry Pi?

qt,raspberry-pi,cross-platform,qt5,raspbian
There are a few tutorials on the net, which explain how to compile Qt5 for the Raspberry Pi. Unfortunately all of them are a bit out of date. Usually one gets 'undefined references' for some GLIBC functions. This question and answer explains how to create an up-to-date (March 2015) gcc...

How do I choose what source files get compiled for each platform?

c++,makefile,cross-platform
Say I have a file structure like: win32/ Something.cpp linux/ Something.cpp Something.h main.cpp How would I be able to implement: UNAME = $(shell uname -s) ifeq ($(UNAME), Linux) OS = linux else OS = win32 endif all: g++ ????? I've been at a loss for around an hour now. I've...

Building cross platform shared libraries from C# code

c#,android,linux,cross-platform
I have a scenario where a software system has been developed using C#. Algorithms within that system have been implemented as shared libraries (but also written in C#) in an attempt to make the system more modular, i.e. functionality can be added/removed by adding/removing the various .dlls. I am interested...

C++/Lua: Implement Qt/QtLua with QWebView

c++,qt,lua,cross-platform,qwebview
I'm planning to write a cross-platform project in C++, which will run a Lua engine. I'd like to write the main program for that project including the GUI in Lua. And to make it even easier, I want to write the GUI in HTML and therefore I need an additional...

What is the systematic way when I want my code (client and server ) work on various scenarios?

c,linux,cross-platform,32bit-64bit
I developed in on 64-bit MAC. And I wish it would work under two scenarios: 64 bit server and 64 bit client 32 bit server and 64 bit client ONLY DEALING *NIX NOW Between the communication of server A and client B, I would exchange a linked list of struct,...

VBA - username in both Windows and OSX

windows,osx,vba,excel-vba,cross-platform
I'm writing VBA code to gather input from several xlsx files and combine them into a single master sheet. Since the users of this sheet are mixed Windows and OSX users, my code needs to be universal across both platforms. One of the things I'd like to achieve is to...

Integer division overflows

c++,c,cross-platform,standards,integer-overflow
The Problem I have been thinking about integer (type int) overflows, and it occurs to me that division could overflow. Example: On my current platform, I have INT_MIN == -INT_MAX - 1 and thus INT_MIN < -INT_MAX and thus INT_MIN / -1 > -INT_MAX / -1 and thus INT_MIN /...

Linking against third-party libraries when doing cross-platform build in Visual Studio 2015

c++,android-ndk,cross-platform,clang,visual-studio-2015
I am trying to compile a Shared Object (.so) with Visual Studio 2015 RC. I am linking against the Opus Codec libs in my stdafx.h: #pragma comment(lib, "..\\..\\opus-1.1-beta\\win32\\VS2010\\Win32\\Debug\\celt.lib") #pragma comment(lib, "..\\..\\opus-1.1-beta\\win32\\VS2010\\Win32\\Debug\\opus.lib") #pragma comment(lib, "..\\..\\opus-1.1-beta\\win32\\VS2010\\Win32\\Debug\\silk_common.lib") #pragma comment(lib, "..\\..\\opus-1.1-beta\\win32\\VS2010\\Win32\\Debug\\silk_fixed.lib") #pragma comment(lib,...

NCurses like library for haskell that runs on both Windows and Unix?

haskell,console,cross-platform,ncurses
I have a little program that is multi-threaded. I'm tired of the output ending up cropping up within my input. I would like to use some type of library that will move me beyond the console model of the glass teletype. The library I know (of) is ncursed which I...

How to get real full path of a file or directory having one of its paths?

c++,c,path,cross-platform
The same file system entry can be accessible in several paths. real full path - /home/user/dir1/file1 path which contains parent dirs - /home/user/dir1/../dir1/file1 path with direct symlinks - /home/user/dir1/symlink_to_file1 path with indirect symlinks - /home/user/symlink_to_dir1/file1 ... I want two write a function which for given two paths will tell whether...

How to use Android Material Theme Design Attributes with Titanium (colored status bar, …)

android,titanium,cross-platform,material-design
I want to use the Android theme attributes for my titanium android application: https://developer.android.com/training/material/theme.html The application must be backward compatible to pre Lollipop (API 21) devices....

Cross platform Mobile app development tools with Googleplaygames services

android,cross-platform,google-play-games,hybrid-mobile-app
Hi i want to build an android app using Cross platform tools. I want to also use googleplaygames services to submit and display scores to leaderboards. Can anyone suggest me tools with these features apart from phonegap because i already worked with it? Any suggestions would be helpful....

How to deal with Unicode paths in a cross-platfrom C library?

c,windows,unicode,cross-platform,libraries
I'm contributing to a C library. It has a function that takes a char* parameter for a file path name. The authors are mostly UNIX developers, and this works fine on unixes where char* mostly means UTF-8. (At least in GCC, the character set is configurable and UTF-8 is the...

How to create an embeddable C-API library in Go?

go,cross-platform
I am planning to write a cross-platform app that has most of its functionality shared across all platforms (Linux, OS X, Windows, iOS, Android). These are mostly helper function (calculations, internal lists, networking etc.) so I figured it would be convenient to have those functions in a library I can...

Xamarin using cross platform 3D engine

xamarin,xna,cross-platform,monogame
I am a iOS / Android developer who has started to look at Xamarin for Business apps. As a hobby I make the odd 3D game and one thing thats always got me is having to write it for 2 platforms (Yes I do know about Unity, not my bag)...

Cannot Add Android Platform on phonegap

android,cordova,cross-platform,phonegap-plugins
I'm getting this error I tried to execute the command phonegap platform add android on the command prompt inorder to get the cordova-X.X.X.jar file which enables me to use import org.apache.cordova.Config; import org.apache.cordova.Droidgap; on Android Studio My System Variables are as follows ANDROID_HOME=E:\Android\sdk\ ANT_HOME=C:\ant\ ANT_OPTS=-Xmx256M JAVA_HOME=C:\Progra~1\Java\jdk1.7.0_25\jre\ Path= .... C:\Program Files\nodejs\;%ANT_HOME%\bin\;%ANDROID_HOME%\tools\;%ANDROID_HOME%\platform-tools\;...

Deleting all cached page of the site

php,javascript,cross-platform,caching
Scenario Mobile and desktop version. I'm developing a website with a desktop and a mobile version: users can choose to switch version if they want to: javascript will save a cookie telling the desired version and will reload the page appending to its url the value "?nocache=1". Pages caching. Pages...

Understanding the future of the .NET framework

c#,.net,visual-studio-2010,cross-platform
I currently use Qt for my desktop app (simple apps) development. The one thing I don’t like about Qt is the fact that I have a feeling that the free license will eventually disappear and I would rather move to a different framework. On the other side I have been...

The type or namespace name 'IPAddress' could not be found

c#,.net,xamarin,cross-platform,xamarin.forms
I'm writing a Xamarin.Forms application and have added a PCL project into my main solution in Visual Studio 2013. I'm having problems with using several standard .net classes. Here's a list: System.Net.IPAddress System.Net.IPEndPoint System.Net.WebClient System.Net.Sockets.UdpClient System.Timers.Timer System.Timers.ElapsedEventArgs System.Net.NetworkInformation.UnicastIPAddressInformation My question is: How do I figure out which of the above...

What native Perl code replaces `cut`?

perl,cross-platform
I'm learning Perl as I edit a Perl script to replace Posix OS calls to native Perl functions for cross-platform use on Windows. This code has me stumped: if (defined($OPTIONS)) { my ($method,$file) = ($1,$2); my $count = `cut -d\\ -f 2 $file | sort | uniq | wc -l`;...

My jar runs on Ubuntu but not Windows

java,ubuntu,jvm,cross-platform
I have created a Java project in NetBeans and the automatically built distribution file (.jar) runs absolutely fine on my Ubuntu 15.04 AMD64 machine. I wanted to make sure it runs on windows before I distribute it, but having tested on a windows 7 32 bit machine I found it...

Cross-platform command line script (e.g. .bat and .sh)

bash,shell,command-line,cross-platform
I noticed that Windows 7 enables to execute .sh files as if they were .bat files. That got me wondering whether it is possible to write a .sh file such that it can be executed in Windows and Linux (let's say bash). The first thing that comes to my mind...

How to invoke an Integration Service in Kony Studio that is created in the MobileFabric Console?

javascript,cross-platform,kony
I am trying to invoke an integration service in a JavaScript module in Kony Studio. Previously I created the service "TestService" with the operation "getPostsByUserID" in the MobileFabric console. The service calls an API that returns an JSON object. I want to use the returned data in my app. If...

How do I prepare a Raspberry Pi with Raspian so I can cross compile Qt5 programs from a Linux host?

raspberry-pi,cross-platform,raspbian
I want to setup a cross compile environment on Linux for the Raspberry Pi 1. Especially I want to try bleeding edge version, i.e. Raspbian testing + Qt5 dev branch. This question: How can I create a modern cross compile toolchain for the Raspberry Pi 1? ...explains how to get...

how to use sql database in Apache cordova using visual studio

database,cordova,cross-platform
I just started learning cordova , I wonder if it is possible to connect to database in cordova using visual studio, I want to use a database to store/retrieve data from the app.

Integrate Node with Phonegap app

node.js,cordova,cross-platform
I want to develop an hybrid cross platform app that creates a socket connection to given Ip. I have achieved it using webTCP module in node.js by running node from cmd to start the server. Now I want to pack this in to an app using Phonegap. But my question...

How can I create a modern cross compile toolchain for the Raspberry Pi 1?

gcc,raspberry-pi,cross-platform,raspbian
At least Debian does not provide a usable toolchain to cross develop for the Raspberry Pi 1. The Linaro toochain is at the time of this writing too old for the Qt5 developer branch. There is a project crosstools-ng, which allows to easily build custom toolchains for all kinds of...

unrecognized debugging option: 1 [enabled by default]

c,gcc,compiler-errors,makefile,cross-platform
I am writing a cross-platform gtk application for Windows and linux in C. Today I came across the strange compiler error in the title (which I have never seen before). This happens when I build my program in Windows, but not in Linux. When I build it in Windows via...

Is Cross-Platform Double Math Determinism Possible with Rounding?

double,cross-platform,rounding,precision,deterministic
I understand that there can be a .000000000000001 margin of error for double math and this is be made worse by multiplication to make the margin of error larger. With that said, is it possible to round off every calculation to a significant digit (maybe 4 decimal places) to achieve...