How to compile this source code?

Hi, I would like to compile this program:

https://github.com/X9Developers/XSN/releases/tag/v1.0.9

As far as I have been told it's writen in C++ so here I am asking how to do it.

I installed this compiler that someone recommended:
https://sourceforge.net/projects/mingw-w64/files/latest/download

I wanted to avoid Vistual Studio because it said it's 15 GB download and my internet is rather slow.

So I have the source code zip file and I have mingw... how to properly compile it?

Thanks
Last edited on
Hello bitcoin,

Welcome to the forum.

As I looked through the .zip file I did see something about C++, but I also saw Python files and am starting to believe that you might need more than a C++ compiler.

Either unzip the file or go through the .zip file and read the README.md and other ".md" files.

In the end you may need both a way to compile C++ programs and a way to run Python programs.

Even for me it would take a while to go through the ".md" files to see how to install everything. It looks like there is a lot of reading that needs done first and a few thing that need setup before you can start installing.

I even saw in one "README.md" file something about Apache server. You may need an Apache server to make this work.

Hope that helps,

Andy
Did you read the file named INSTALL in the project root directory?
(When you look at a project like this, that's what you read after the file named README.)

https://github.com/X9Developers/XSN/blob/master/INSTALL

Since you mentioned Visual Studio, you're likely on Windows. The documentation
https://github.com/X9Developers/XSN/blob/master/doc/build-windows.md
Says that building on Windows is possible, but undocumented. You're supposed to cross-compile from a Linux system.

Can you do this? Or do you need actually need to natively build? There are apparently binary packages available for Windows.
Last edited on
Thanks all. Yes, I am on Windows 7, I need to build there, I don't have Linux. The binaries aren't signed, and there is no checksum to verify availible, so I can't trust them, I must compile.

1
2
3
4
5
cd depends
make HOST=x86_64-w64-mingw32 -j4
cd ..
./configure --prefix=`pwd`/depends/x86_64-w64-mingw32
make


I wonder if this will work with mingw-w64 for windows? ( i mean same cvars)

I guess I can get a Linux live CD, build it there and then copy the exe in an USB and go back to windows too.
Topic archived. No new replies allowed.