Noso apps are automatically built on release to work on x86 64Bit Linux and x86 64bit Windows systems. If you prefer to run your Noso apps on another system, you will need to compile them yourself. This tutorial will walk you through the steps required to make Noso apps run on your system. As an example, we will compile consominer, Noso’s native mining app.

Note, this tutorial was written on a Macbook, and the examples shown in this tutorial will be in macOS. However, the compiling steps should be universal to most modern systems.

Install FPC and Lazarus

Noso is written in Pascal, meaning you will need a working version of Pascal on your system. However, installing and running Pascal can be a painstaking process for non-experts. Luckily there is a much easier alternative that helps us to install the required IDE and compiler: fpcupdeluxe

Go ahead to the latest release of fpcupdeluxe and download the respective version for your system. Once downloaded, start fpcupdeluxe. If you are on a Mac, you might face an error message: “Access violation”. This is a known quarantine problem (check this Github issue) and is quickly resolved by running the following command from the Terminal.

sudo xattr -r -d

Now, fpcupdeluxe should start up and present you with the main screen.

For this tutorial, I assume that you have neither Lazarus nor FPC installed on your computer. So we can install the stable version of FPC and Lazarus as indicated by steps 1 and 2 in the above screenshot. Installation may take a couple of minutes. Now is a good time to refill on caffeine…

Install packages

Your back? Great! Lazarus and FPC should now be successfully installed on your system.

Let’s go ahead and download the source code (Source of the latest consominer release from the Github repository.

Open the downloaded folder and search for a file named consominer.lpi. Double-clicking consominer.lpi will open the consominer project in Lazarus and give you a Missing Package warning. We can dismiss the warning, as we will install the missing packages in the next step.

Packages in Lazarus are best handled using the Online Package Manager, which is not automatically supplied with a fresh Lazarus installation for some unknown reason. To install the package manager in Lazarus, go to Package –> Install/Uninstall Packages and search for “onlinepackagemanager” in the newly opened window. Next, select the package, press the Install selection button, and press the Save and rebuild IDE button. Lazarus will now install the Online Package Manager on your system and restart.

Now that we have installed the Online Package Manager, let’s install the indylaz package that is required by consominer. Go to Package –> Online Package Manager and search for “Indy10”. Select and press install. Once installed, Lazarus will ask for permission to rebuild the IDE.

Compile and test

Now that we have successfully installed indylaz in Lazarus we can go ahead and compile consominer. If it isn’t already open, start the consominer project by double-clicking on consominer.lpi in the project folder. Then click Run –> Compile to build consominer for your system. If everything goes to plan, you should find a Unix Executable File named consominer in the project folder.

Open the Terminal and cd to the project folder.
cd Downloads/consominer-1.01/

Make sure consominer can be executed using chmod.
chmod a+x consominer

Start consominer.

Congratulations, you have successfully compiled consominer on your system. If you would like to know more about how to operate consominer, head over to the mining tutorials.



Leave a Reply

Your email address will not be published.