Questions tagged [cross-build]

Cross Build is a piece of software which was created to run on a cross environment such as operation system, browsers, mobile devices, etc.

Cross Build is a piece of software which was created to run on a cross environment such as operation system, browsers, mobile devices, etc.

37 questions
15
votes
3 answers

How to have SBT subproject with multiple Scala versions?

I have a project using Scala 2.10 and one using Scala 2.11. They depend on a common project, which can compile with both. lazy val foo = (project in file("foo")).dependsOn(baz).settings( scalaVersion := "2.10.4" ) lazy val bar = (project in…
Paul Draper
  • 78,542
  • 46
  • 206
  • 285
7
votes
2 answers

SBT Scala cross versions, with aggregation and dependencies

I am struggling with how crossScalaVersions works with subprojects. I have a project that compiles with 2.10 (foo) and a project that compiles with 2.11 (bar). They share a cross compiled project (common). How can I compile projects foo and…
Paul Draper
  • 78,542
  • 46
  • 206
  • 285
6
votes
1 answer

Enable Thread Local Storage when building a mingw-w64 cross-compiler

I've been trying for days to build a mingw-w64 toolchain, I'm stuck at building the cross-compiler, GCC 8.1.0. The problem is that I must have Thread Local Storage (TLS) enabled, therefore I pass --enable-tls to GCC's configure script. With no…
Dante
  • 404
  • 2
  • 10
5
votes
1 answer

SBT: Cross build project for two Scala versions with different dependencies

I have the following use case. I would like to build the same Scala project for scala 2.10 and 2.12. When doing so I would like to specify some of the dependencies for the 2.10 version as provided whereas I'd like to have those compiled in the jar…
zaxme
  • 1,065
  • 11
  • 29
3
votes
0 answers

How to statically link external Go libraries

I have a small application written in Golang which uses Oci8 for Oracle database connectivity. When I attempt to run the binary built on my Macbook on another Macbook (same OS version), it fails with the following error: dyld: Library not loaded:…
rjni
  • 471
  • 7
  • 7
3
votes
0 answers

How to make sbt compile different sources for different library versions?

I understand that cross-building across different Scala versions is easy with SBT. You just put your files which fail to compile in scala-2.10 and scala-2.11 directories instead of scala. However, If I want to cross build for different versions of…
aa8y
  • 3,854
  • 4
  • 37
  • 62
2
votes
0 answers

How to cross-build a flutter app from Linux x64 host to Linux arm64

I am trying to compile from linux-x64 to linux-arm64. When I type flutter build linux --target-platform linux-arm64 I get this error: Cross-build from Linux x64 host to Linux arm64 target is not currently supported. I need to know if I have to…
2
votes
1 answer

Why references to `OPENSSL_init_crypto' are undefined when I complile my app with crossbuilt openssl from source for windows 32 bit?

I have downloaded openssl from source, and I've built it like that (on linux using mingw32): wget https://www.openssl.org/source/openssl-1.1.1q.tar.gz tar -xvf openssl-1.1.1q.tar.gz cd ./openssl-1.1.1q ./Configure enable-tls1_3 enable-tls1_2…
Dimitrios Desyllas
  • 9,082
  • 15
  • 74
  • 164
2
votes
1 answer

Is it possible to enforce different scala version for a specific dependency using SBT

I'm pretty new to scala. While upgrading a multi-module project to Scala 2.13, I found this dependency that is compiled in Scala 2.12 which throws class not found exception during runtime java.lang.NoClassDefFoundError:…
trel
  • 21
  • 3
2
votes
1 answer

How to Use a Javascript Library in a Scalajs Project

I am following the tutorial here: https://www.scala-js.org/doc/project/dependencies.html First things first, I have my project set up like this: https://github.com/scala-js/scalajs-cross-compile-example Without making any changes, this runs as…
finite_diffidence
  • 893
  • 2
  • 11
  • 20
2
votes
1 answer

Is there way to use xbuild instead of build when calling cargo-binutils commands?

I try to use binutils commands for binary of custom build target with cargo xbuild command. However, I get an error like below message. $ cargo nm --target i586-rust_dos.json --bin rust_dos --verbose "cargo" "build" "--target" "i586-rust_dos.json"…
Mizunashi
  • 313
  • 1
  • 7
2
votes
0 answers

Build gcc-cross failed, nothing provides 'gcc-cross'

I'm building gcc-cross with poky at the last commit. and get the error: ERROR: Nothing PROVIDES 'gcc-cross'. Close matches: gcc-cross-i586 what is defined in gcc-cross recipe to prevent gcc-cross without target architecture name in tail?
Batman
  • 124
  • 11
2
votes
1 answer

Scala and Scala.js version included in artifact id

I just successfully released my first Scala & Scala.js cross-building library to Sonatype and can now use the following two artifacts in my…
Florian Baierl
  • 2,378
  • 3
  • 25
  • 50
2
votes
1 answer

Why is crossScalaVersion not scalaVersion?

build.sbt scalaVersion := "2.11.4" project/build.properties sbt.version=0.13.7 Then > show scalaVersion [info] 2.11.4 > show crossScalaVersions [info] List(2.10.4) > inspect crossScalaVersions [info] Setting: scala.collection.Seq[java.lang.String]…
Paul Draper
  • 78,542
  • 46
  • 206
  • 285
1
vote
0 answers

Conan Cross-build from Linux:x86_64 to Linux:armv7hf test_package build fails

I have a C++ library packaged with conan and it contains a test_package with a conanfile.py that uses the new conan 2.0 self.requries(self.tested_reference_str) and test_type = "explicit". When not cross-building everything runs fine. I can build…
evolved
  • 1,850
  • 19
  • 40
1
2 3