How to Cross Compile Jack2 source code on windows using Linux - c++

Currently I am trying to download jack2 source code from git hub and trying to build and compile it on windows. As I came to know that it can not be compiled on windows and to build/compile it, we have to build it using Linux by the process of cross compilation. Kindly help me how to build/compile it and run it.

Related

C++ Programing with Visual Studio Code - "exe is not compatible with the version of Windows you're running."

I am a novice programmer who wants to make some contributions to a C++ repository on Github.
Given that please be patient with if I am missing the obvious. I've tried searching for the answer and poked at the problem for serval hours but am simply stuck.
When I try to run the SolveSpace.h file the complier gives an error:
[Running] cd "c:\Users[directory location]\git\SolveSpace\src" && g++ solvespace.h -o solvespace && "c:\Users[directory location]\git\SolveSpace\src"solvespace
This version of c:\Users[directory location]\git\SolveSpace\src\solvespace.exe is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher.
The executable from the repository's site comes as a windows portable file which runs just fine on my computer. The repository I forked is the source code.
Currently I have MiniGW installed as the complier.
I have the following plug-ins installed for VSC:
Better C++ Syntax
C/C++
C/C++ Compile Run
CMake
CMake Tools
Code Runner
This is the repository I am trying to compile without any modifications: https://github.com/solvespace/solvespace
Thank you

"Cannot execute binary file" when running compiled c++ programs with Eclipse on Ubuntu for Windows platform

I would like to move from Visual Studio on Windows platform to Eclipse on Ubuntu for c++ development, since I develop almost all my programs on Java, with Eclipse, and I just use a Windows virtual machine in order to develop C++ programs for Win OS. So if I would be happy being able to not use Windows VM at all. However, I've managed to configure MinGW and Eclipse successfully enough to compile programs, but not to execute them.
Steps I've gone through so far:
I've installed mingw32 package and dependencies:
$ sudo apt-get install mingw32
I've installed Eclipse Mars for C/C++ development (manually, to keep this installation isolated from other Eclipses I have) and created a new project in this way:
- New C++ project.
- [...]
- Cross-prefix: i586-mingw32msvc-
- Cross path: /usr/bin/
With this configuration I'm able to correctly build a .exe which I can successfully execute on Windows, but when trying to debug it or execute it under Eclipse I get this error: "cannot execute binary file".
Googleing I've seen some posts suggesting to use wine in order to execute the .exe, but I thought mingw32 would be able to execute it. Am I wrong and this is not possible or just doing something wrong?
Mingw32 is a windows compiler, and will compile source to a Windows executable file. Additionally, the compiler cannot execute files (as worded in the question), it just compiles the source code to an executable form, in this case the windows executable (*.exe). So yes, in order to run the .exe in Ubuntu you would need something like Wine which emulates a Windows environment
mingw is a set of GNU tools for building native Windows executables.
It does not execute anything.
If you really want to cross-compile for Windows, you need Windows or an emulator for the execution.
To build for Ubuntu you can just use the native compilers.
sudo apt-get install gcc

How to use protoc.exe in Windows for eclipse luna?

I am using Eclipse IDE, Version: Luna Release (4.4.0) to build a project. I am trying to use google protocol buffers. But I don't know how to use protoc to compile .proto files and then how to use the source code to build my project. I have downloaded compiler and source code from https://developers.google.com/protocol-buffers/docs/downloads
But how to integrate it with Eclipse IDE, I have no clue. As I am a beginner in protobuf, it will be a great help to me if someone could explain it step by step that how to use the protoc compiler and source code in eclipse.
Thanks in advance.

Installing library source code in Linux

I'm developing a C++ app on Ubuntu 14.04 LTS Desktop using Eclipse CDT. I'm having problems using the getopt_long() function. When I step through my code, Eclipse isn't able to find the source code for this file.
How do I get find the right version of the source files for the debugging information that's on my system and get Eclipse to use those files as I step through debugging?
I'm assuming that the answer to this question will also answer the same question for other libraries' source code.

How to tell make to use mingw32 instead of gcc

I'm trying to build wkhtmltopdf for Windows on an Ubuntu box. I haven't done much with cross-compiling in the past, but I have installed the Mingw32 compiler and am having trouble figuring out how to build qt to target Windows instead of Linux. Right now I am not sure how to tell ./configure to use Mingw32 to build a windows version of Qt when I run make. Can anybody shed some light on how to do this?
I have tried building wkhtmltopdf on Windows in the past, but got stuck at the step where you need to run qmake after building Qt, which is why I am trying to build on a native linux environment instead.