Nextion Editor To Use on MacOS and Linux

Nextion Editor, with any computer with Windows operating system we can already use it easily. But when it comes to Linux and MacOS operating systems, we have no choice but to use Nextion HMI Editor in a few ways because officially no version is available for Linux and MacOS. In this article we explain these ways.

Creating Virtual Machines

To set up a Nextion HMI Editor, you can install a Windows virtual machine on your MacOS or Linux machine, install programs, or transfer program code to SD Card and install it later on the HMI screen.

For Linux

VMware, VirtualBox, Parallels, QEMU, Windows Virtual PC

For MacOS

VMware, Parallels

Using CrossOver

For MacOS

With Wine software used to open applications written for Windows on Linux and MacOS operating systems, you can install the Nextion HMI program directly without creating a virtual server or changing an operating system.

At the moment there are only these two alternative ways, in the future we will be able to continue developing HMI on non-Windows operating systems more easily if Nextion HMI releases an application for Linux and MacOS.

In this article, we will install the Nextion HMI Editor using CrossOver and Wine directly on a computer with MacOS operating system without creating virtual machines.

We couldn’t run the necessary runs using Parallels, so we use the CrossOver program.

CrossOver and Nextion Editor Setup

First you need to install the current CrossOver software. Hence You can browse the CrossOver website and use the free trial. You can move the CrossOver app that you downloaded in DMG format directly to your Apps folder, that’s it.

If you have previously installed PlayOnMac or similar application, Wine will be installed and ready for you, but if you have not, Wine will be automatically installed in crossover installation, as a reminder; Wine is a free layer of application that enables Windows software to run on POSIX-compatible operating systems such as Linux and Mac OS X. Wine stands for Wine Is Not an Emulator.

Such a screen will greet us when we run CrossOver:

nextion editor

Select Application: From here we write the name of the application that we want to install, we can see if there is a compatibility problem if such an application has been added to the CrossOver database before, and we can also automatically download components such as the .NET Framework from this screen. Here’s what we should point out: if this application is not in the database, you can type a random name. For example, nextion.

nextion editor

Select Installer: From here we can select the installation .exe or installation folder of the application. Also, if your installation fails, we can then place the necessary files using the “Open C Drive” option from Bottle, for example, you have installed an editor’s program and you need to discard additional libraries instead of installation, you can do so with this method.

Select Bottle: From here we choose which “Bottle” we want to install the application we want to install, in general it would be healthier to install them all in one place than to create different bottles for similar programs.

Hence Download nextion editor in .exe format, then select the installation application that you downloaded from the “Select Installer” section and continue, such a warning will appear when the installation starts, where it wants version 4.5 of the .NET Framework, while “Cancel” through nextion editor setup and allow “Bottle” to be done without program setup.

nextion editor

Even if we could not install the program, bottle installation ended successfully:

nextion editor

Next, let’s move on to the option to install additional programs in the bottle we have established:

nextion editor

Let’s continue in install software into “The name you gave Bottle”:

nextion editor

Let’s select the .NET Framework 4.5 version from this list and continue with the “Continue” button:

nextion editor

In the meantime, all required fonts and required versions of the .NET Framework will be downloaded automatically, some versions of the .NET Framework may take a long time to install, but don’t worry, wait a while and wait for the installation to finish. After the installation is finished, let’s enter the nextion editor’s .exe format setup file in the “bottle” where the .NET Framework is installed and try to install it:

nextion editor
nextion editor

As you can see after the installation is finished, the Nextion Editor application has arrived in the Programs section:

nextion editor

Let’s run, as you can see nextion editor opened smoothly but when we connect the screen with a USB-Serial converter we are not yet able to directly check, install, analyze, we immediately stated the solution to this problem in the subheading

nextion editor


They noted that some of our followers encountered problems with the latest version of the Nextion Editor and were unable to install it, so you can download and install the LTS version with long-term support, but the installation here is slightly different from the installation we described at the top, download the LTS version from Nextion’s site, this version comes in archived form as .zip rather than .exe format, so the “bottle” we set up is accessed as a folder and copied directly to the LTS version that we downloaded. we will paste:

Let’s remove the version of LTS that we downloaded from the .zip archive and copy all the files in the folder:

nextion editor

Let’s right-click on the bottle we will install and press “Open C: Drive”:

nextion editor

Here we access the hard disk part, just as we are using a Windows computer:

nextion editor

Here we create a new folder and paste the files we have copied:

nextion editor

Then directly, let.exe let’s run nextioneditor with double click, as you can see it will work smoothly:

nextion editor

Installation of Required Software

Nextion Editor needs a few additional softwares that need to work, to install them we first need to create a “Bottle”, so that we can create a place for Nextion Editor, the Windows application that we want to run. Now that we have installed Bottle and Nextion Editor, we need to install the additional software that is necessary, we have already installed the .NET Framework, let’s just set up ch340 drivers so that we do not encounter problems. You should install it in “bottle” as mentioned above.

Identifying a COM Port with REGEDIT Settings

CrossOver cannot connect directly to hardware ports or devices on your computer. This can cause problems if the Windows program you are trying to use needs to communicate with a USB device. A possible workaround is to manually map a device entry from the local operating system to a symbolic connection in BOTTLE, which includes your Windows application, and then use it to see the COM port of the Windows application and connect to the device.

The first thing you need to do is find out which /dev input is created when you connect the USB device to the computer. Disconnect the device from your computer and run the following commands in a Terminal:

cd /dev
ls > ~/disconnect.txt

Connect the device, wait for your computer to recognize it, and run the following command:

ls > ~/reconnect.txt

Now compare the difference between the two file lists to see which /dev entry was created.

diff ~/disconnect.txt ~/reconnect.txt

If there is a new device input listed, use this name as device input in the steps below.
Here’s an example of what the device input name will look like:


Then start Crossover and select BOTTLE with the desired software installed.

  1. In the selected BOTTLE, select the gear icon labeled ‘Run Command’.
nextion editor

2. Type ‘Regedit’ at the command line and you will see a new window.

nextion editor

3. Inside Regedit, go to:

HKEY_LOCAL_MACHINE > Software > Wine
  1. Create a new ‘key’ called Ports from here
  2. Right-click inside the Ports folder and set the value to “Add String”:
/dev/(your giant address)

6. Rename the new ‘Com1’ entry (see example below)

nextion editor

BC Turn off Regedit, and then open the Nextion Editor program, which requires a Com/USB connection.

Encoding an HMI Screen

As you can see, we can use Nextion Editor with the help of CrossOver and Wine on a computer with macOS operating system without problems:

nextion editor

You can get ideas by browsing this content we have created about HMI Screen coding, let’s mention that we will start a comprehensive HMI Screen encoding content very soon.