Questions tagged [cross-platform]

1

votes
3

answer
4.5k

Views

.net core cross platform desktop app

I'd like to develop a cross platform desktop app by using .net Core. The app needs to be executed on linux, mac os, and windows. For that purpose, should i create a console app and put below lines in settings xml? win10-x64;osx.10.12-x64;debian.8-x64 Will it be sufficient? If so, should i write all...
Dilara Albayrak
1

votes
1

answer
149

Views

How is C cross platform?

C language is ultimately compiled to machine specific assembly language. Then how can C be cross platform if every processor has its own assembly language syntax? If I write an operating system kernel in C then how can I make it run across a variety of processors?
Abhishek Sharma
1

votes
4

answer
2k

Views

How can I get system user documents, pictures, music folders independent of OS using Java?

While I was working on my project I received a requirement: I need to get the system user documents folder (like “My Documents” for Windows and “Documents” for Linux and Mac OS X). I need to get it for all the operating systems. How can I do this? I can get the user root directory by using...
Anjaneyulu
1

votes
2

answer
563

Views

C# using while loop to add item to List<t> [closed]

Turns out there was nothing wrong with the code, just forgot to start up the XAMPP server -_- I'm trying to work with Xamarin inside VS2017ENT to develop an Cross-Platform C# App. I have started a new project as an Master Detail usting .NET Standard Code Sharing Strategy. My goal is to fill up a Lis...
K. Tromp
1

votes
1

answer
315

Views

How to connect my kivy app to an online mySQL database powering a website?

I'm relatively new to kivy in python, but I would like to build a mobile app for an existing website, to do this I will have to fetch data from this website's database, including users login credentials and many more. Please I'm stuck I don't even know where to go from here.
Ojo Joseph Oluwaseun
1

votes
1

answer
247

Views

How to run a task in background for every 5 minutes in xamarin ios in visual studio

I am working on xamarin forms cross platform application which supports both android and iOS, in this i need run a background task for every 5 minutes for iOS version. How to Achieve this, can any one help me on this please. Best Regards, Srinivas.
srinivas challa
1

votes
0

answer
96

Views

How to disable QWebGL in QT5 build

I'm trying to build Qt5 from source so I can cross compile a program statically for another platform. I'm using the following command in the configure: ./configure -opensource -static -platform linux-g++ -release -device linux-arm-xilinx-zynq-g++ -device-option CROSS_COMPILE=/opt/Xilinx/SDK/2015.4/g...
Zephyr
1

votes
0

answer
122

Views

CrossTextToSpeech sound issue in Xamarin Android

I have created a .NET 2017 solution to start a Text To Speech app. I have followed online instructions and seems really simple, I added the TextToSpeech plugin version 3.0.1 to the solution and added the following code to the MainPage of the Portable Project: MainPage.xaml MainPage.xaml.cs using Plu...
Catriona Morrison
1

votes
0

answer
79

Views

How can I write a library usable from multiple languages?

I am trying to write a library which can be used from multiple programming languages, for example: CLR languages (C#, F#..) JVM languages (Java, Kotlin, Scala..) Native languages (C/C++, Rust, Objective-C, Swift..) JavaScript/TypeScript The basic way I know to achieve this is to write it in C/C++ an...
Jesse
1

votes
1

answer
63

Views

Build HDF5 library on MIPS32

I try build hdf5 library for Mips32 using CMAKE and appropriate Toolchainfile for mips. I get information below: -- Check size of __float128 -- Check size of __float128 - failed CMake Error: TRY_RUN() invoked in cross-compiling mode, please set the following cache variables appropriately: H5_LDOUBLE...
Denzelmon
1

votes
0

answer
56

Views

How to apply the TapGestureRecognizer in Xamarin form?

I have a picture A which this picture A when I single click on it it will show picture C, if I double click on the picture then it will show picture D. Below is my code in xaml: Below is my code in cs: int tapCount; void OnTapGestureRecognizerTapped(object sender, EventArgs args) { var imageSender =...
Vivian Tio
1

votes
0

answer
36

Views

Visual Studio 2015 C++ Cross Platform Remote Configuration error

I'm trying to configurate my Visual Studio to build my cordova Application for iOS. I used the microsoft instruction found here: https://msdn.microsoft.com/en-us/library/mt147405.aspx At the moment im at 'Configure the remote agent in Visual Studio' point 7. But at this point I'm not able to put in...
muck
1

votes
0

answer
43

Views

How to identify type of client machine with python?

Import platform platform.machine() that code can be used to identify type of machine we used. But how to identify type client machine who are connected to my network with python?
s1gnific4nt
1

votes
1

answer
252

Views

Xamarin Forms Tabbed Page to have overlapping Custom View

I need to have something like that with XF Tabbed Page: I.e., I need some panel which would appear over the whole content (including any tabs) where I can add some custom content. (The reason why I am asking it here, as it wouldn't be an issue in case of common simple page, when I would just have so...
Agat
1

votes
0

answer
31

Views

Why is code in that is only supposed to be accessible to one target failing to compile for a different target?

I'm having a weird issue. I'm trying to merge two projects (one iOS and one tvOS, both with a mix of objective-c and Swift) into a new single xcode project so that going forward they can share code. I created a new project, created an iOS target and tvOS target, and brought all of the iOS code over,...
Jaxon
1

votes
0

answer
110

Views

slick carousel not working for some large image(bolb url image path) in windows 7 Firefox

i have made the simple image preview demo by using the slick carousel. In this demo i have display the image by setting the blob path as image src by java script for large images. but for some large images it not display the images in windows 7 Firefox. while in other system like Linux, mac it is di...
nirav
1

votes
0

answer
15

Views

Equivalent of UIFont.PreferredTitle1 on android (no XML)

How set the text styles by code? In iOS is very easy as set UIFont.PreferredTitle1 and similar. Or is required to set it manually?
mamcx
1

votes
1

answer
213

Views

Xamarin .NET C# AWS Cognito Identity Pool Login

I created a Xamarin.Form, cross-platform mobile application in Visual Studio Community 2017. I created a login page and want to integrate with AWS Identity Pool, but seems that I can't found an working example. What I found: Here - I implemented the Login from here, but when I try to Log in I got an...
Mihai Catan
1

votes
0

answer
38

Views

Is there any way to know if a file is being opened by the user?

My question is simple. I am creating an electron app using Node JS to watch a particular directory. I would like to know is there any way, like a file watcher or something else that could tell me if a file being opened by the user? Thank you.
user2672399
1

votes
1

answer
223

Views

QT GCC Error During Cross Compile Setup

I have been working this problem for more than a week. I installed the free version of QT off the QT site. I am trying to set up a cross compile environment for a Beaglebone Black ARM 8 platform. I have set up the compiler options using GNU ARM 6.3.0 GNU compiler -- The same compiler that is on my B...
skmansfield
1

votes
1

answer
266

Views

Missing Cross-platform template on Visual Studio 2017

i'm after install updates on visual studio 2017 and create successful my first app with xamarin.forms and cross platform, when i want to create another app i can't find cross-platform template on new project dialog.
Payam Broumandi
1

votes
1

answer
82

Views

When classes in shared depend on separate JVM and JS implementations of classes in Scala.js?

Please consider a cross compiled scala.js library that depends on a class called Core. Core requires separate JVM and JS implementations because it relies on native features. Remember that the cross compiled directory structure for scala.js includes a js folder for javascript only code, a jvm folder...
Ben McKenneby
1

votes
0

answer
49

Views

Flutter - handling logic part

Lets consider this use case: I have an already developed app in android and iOS which is out here for a while. I would like to implement a library/package in flutter that could run on Android and iOS project. Lets say I want to store some data in flutter part, trigger some events and so on. I might...
Alex
1

votes
0

answer
250

Views

arm-linux-gnueabihf cross compilation linking dynamic libraries

I have pre-compiled binaries of the arm-linux-gnueabihf GCC toolchain. Host is x86_64 while the intended target is arm7 architecture. I am able to cross compile a sample program using this cross-compiler but it is not able to link with dynamic libraries. On the host, I use: arm-linux-gnueabihf -c -...
Abhinav440
1

votes
0

answer
279

Views

Cordova - Error installing plugin with android platform 7

I have an Ionic v1 project (Cordova) and I use several plugins that work on Android platform 6.4. When trying to add the android platform 7 or 7.1 one of the plugins generates Manifest directory error when it is installed and displays the message: Failed to install '...': Error: ENOENT: no such file...
Lucas S.
1

votes
1

answer
187

Views

How to stop CMake from passing platform specific flags to compiler?

I'm trying to cross-compile my application. I created a CMake file that builds my application with Emscripten which works as expected. Now I'm modifying the CMake file to compile my application with MinGW. The problem is that CMake is passing MacOS flags that Windows g++ doesn't recognize. CMake is...
Kerndog73
1

votes
0

answer
73

Views

Multi-platform compilation: System.Configuration.ConfigurationManager.GetSection throws error on .NetCore

Background: We are in the process of migrating .Net application to .Net Core. As a strategy, we would like to keep the existing functionality intact on Full framework while migrating portion of the application to .Net Core. Full application would support .services over Net remoting and REST API wher...
yvinap
1

votes
0

answer
130

Views

Why can't I set the source (from xaml file) of a ResourceDictionary in cross platform project?

I want to be able to switch from ResourceDictionary (load from file) dynamically in C# code from App.xaml.cs but ResourceDictionary.Source is not a property of the object, why? fyi, this is a cross-platform mobile app and not a WPF project. Here is my 'unsatisfying code': using System; using System....
1

votes
1

answer
164

Views

How to set environment variables on remote linux host in a visual studio crossplatform cmake project

I'm using Visual Studio 2017 to edit a cmake project according to this tutorial However, my environment is of 64bit, and I need to build a 32bit program. And yes I have all the i386 dev libs on my machine. I can achieve this on linux simply by typing CC='gcc -m32' CXX='g++ -m32' cmake .. But I just...
peorthijel
1

votes
0

answer
195

Views

Make a USSD call in Xamarin Crossplatform app

I want to make a USSD call in a xamarin crossplatform app using C# and i have no idea where to start. All the examples i have seen is done in java. Is it possible to successfully dial a USSD code like *270# within my app without opening the dialer? If yes, please how? I'll be very grateful for any h...
Ken Janka
1

votes
1

answer
27

Views

Use an iOS specific element in a Xamarin Forms app

I'd like to use an iOS specific element (SceneKitView) in my Xamarin Forms app but I'm not sure how to go about it. I read this article, but I'm not sure if I'll be able to create a visual element (aka a view) this way. What classes should I implement and what configurations do I have to do to achie...
Simon Corcos
1

votes
0

answer
164

Views

cv2.imread alters the base64 string from images and generates different results between OSes

I am using OpenCV in Python on MacOS and Linux Ubuntu systems. My OpenCV version is 3.4.1.15. I have tried three different methods of generating base64 strings for images, on two OS systems respectively: Using plain Python: from base64 import b64encode with open('image_file.jpg', 'rb') as file: base...
ytu
1

votes
0

answer
79

Views

Converting a Linux C++ library to Windows

I have fallen in love with the capabilities of Rheolef, a C++ library for Finite Element Analysis that is available for Linux only. I am developing an application in Windows and was wondering if I can build Rheolef for Windows and use it in my application. I read a few posts about Cygwin but my und...
AFP
1

votes
0

answer
28

Views

static code analysis for .Net components that are compiled on multiple platforms

We have migrated large legacy application from .Net 452 to support multiple platforms. The application now supports NetCoreApp2.1 and Net472 platforms. Our Build server was configured to use FxCop for static code analysis and it worked well for us till we were on Net452. After completing the migrat...
yvinap
1

votes
0

answer
270

Views

Kotlin common module gradle scripts with no actual platform specific code

I am trying to create a kotlin-common library, which contains shared business logic that will be used by multiple platforms. The library itself has no dependencies on anything the platforms provide. It's pure kotlin (mostly data classes and transformation helpers). I'm using Kotlin 1.2.51 and Intell...
Michael
1

votes
0

answer
484

Views

Flutter: How to call a method of an instance from another class

I am trying to create an application that manages Views with Tab. The navigation bar and the tab bar are displayed in the application, and the content of the content to be displayed is managed by List. This is the class that manages the content of Tab. class TabItem { TabItem({ Widget view, Widget i...
karma
1

votes
1

answer
136

Views

What's the best way of handling ViewModel destroying for CancellationToken activation with MvvmCross?

I am having an MvvmCross ViewModel, which calls different async methods of my DataService. Similar to the following: public class LoginViewModel : MvxViewModel { private readonly IIdentityService _dataService; private CancellationTokenSource _viewModelCancellationTokenSource; public IMvxCommand GoLo...
Agat
1

votes
0

answer
428

Views

Is it possible to open another app in my app with xamarin.form?

I'm new in the channel; I recently started with xamarin.form for cross-plattform apps. I've been stuck with a question for a few days. I would like to know if there is a method that allow me to open a third-party application by my app or it's necessary to implement this function for each platform in...
Agata Loiudice
1

votes
1

answer
155

Views

cmake: handle third-party dependencies (include/lib) for different compilers/platforms

I need to build C++ code for multiple platforms (Windows and Linux) 32 and 64 bit and multiple compilers (Visual Studio 2010 and Visual Studio 2017). I use several third parties like: Boost, Tbb, Xerces and others. How do I need to handle the fact that for Visual Studio 2010, Visual Studio 2017, 32/...
Andrey Rubliov
0

votes
0

answer
5

Views

Flutter - IOS / I need some help in flutter ios to generate podfile

I have a problem with iOS to make podfile in Google Flutter actually I don't use mac I am using website called codemagic it makes iOS version without mac but it still giving me this error In Podfile: simple_permissions (from .symlinks/plugins/simple_permissions/ios) but I don't know if this error be...
Karim Mohamed

View additional questions