Solar2D on Linux still works in 2026 but the install method you pick decides what you can build. The Snap package is stuck on a 2022 build while the engine itself has reached release 2026.3731. That gap changes which features and export targets you get.
This guide covers the Snap install, a source build with CMake, running the Windows build under Wine and the Android APK setup. It also keeps the balloon-tap walkthrough so you can test your install in a few minutes.
Solar2D is an open-source, Lua-based game engine perfect for both beginners and veteran developers. We cover three ways to install it on Linux and the Android APK setup, then build your first simple game. Whether you’re new to game development or looking to explore a new engine, Solar2D offers a powerful yet easy-to-learn platform for your needs
Solar2D: The Lua-Based Game Engine
Game development may seem intimidating, but starting with 2D games is an approachable first step. Tools like Solar2D make the process easy and fun.
Solar2D is an open-source, cross-platform game engine based on Lua scripting. Lua’s simple yet powerful syntax lowers the barrier for coding beginners. With the Solar2D simulator and any text editor you like, you can quickly build 2D experiences from prototype to polished product.
The engine supports the creation of casual games, platformers, RPGs, and more. Built-in Box2D physics makes it simple to add physics and collisions in a few lines of code. And Solar2D’s live testing allows you to preview your game as you build.
An active marketplace offers plenty of plugins to accelerate development, while the community provides support if you get stuck. Solar2D streamlines the technical challenges, empowering anyone to turn game ideas into reality.
So if you’re eager to start coding your own mobile hits, Solar2D is the perfect launch pad. Download it today and dive into building 2D games with Lua scripting. Your skills will grow with each new sprite, behavior, and line of code. Before long, you’ll have the knowledge to bring any concept to life. Now let’s get into the steps to install Solar2D on Linux.
Solar2D is the rebranded open-source continuation of Corona SDK. The main repository still sits under the coronalabs name on GitHub and the README lists community maintenance with Shchvova as principal developer.
Also read: How to Install Raven-Reader Easily on Linux?
Solar2D on Linux in 2026: which install method to pick
The 2026.3731 release page offers macOS and Windows installers plus Android and iOS pieces but no Linux download. That leaves three practical routes and each one trades version freshness against effort.
| Method | Version you get | Android APK builds | Effort |
|---|---|---|---|
| Snap | 2022.3684 | Fails in the Snap sandbox according to forum reports | One command |
| Source build | Any tag or master | Works after a JDK and template copy | High |
| Wine | 2026.3731 Windows build | Works with Java options set | Medium |
A Snap install is fine for learning Lua and testing the balloon game. Build from source when you need a current engine or Android export on a native Linux toolchain.
Linux target builds first appeared in a closed beta in 2018 aimed at Ubuntu 18.04 and the simulator came later through the community Solar2DTux project. Its Linux code now sits in the main repository.
The Snap still installs cleanly on current distros since the Store’s user chart lists Ubuntu 24.04 and 26.04 along with Ubuntu 22.04 and Debian 13. It just runs old engine code.
Quick and Easy Installation of Solar2D on Linux
Snap is the easiest and fastest way to get Solar2D running on a Linux system for 2D game development, so we start there. The package is old though, so the later sections cover newer routes.
First of all, before we use Snap, make sure that you have it installed in your system, if that’s not the case then you can read this article on Snaps in Linux: A Basic Introduction. It will guide you on how to install Snap.
Once installed, you can run the below command to learn more about the Solar2D package on Snap.
sudo snap info solar2d

To install it, run the below command.
sudo snap install solar2d
With this, you should now have a game engine installed in your system. Before we build a game, let’s check exactly which version the Store gave you and why it matters.
Check the Snap version
Run the command below to see which version the Snap installed. The Store lists 2022.3684 on latest/stable and says it was last updated on 7 December 2022. It also warns that the channel might be unmaintained, while the latest GitHub release is 2026.3731 from 17 July 2026.
snap list solar2d
Why the Snap misses recent Linux fixes
Release notes up to 2024.3702 recommended the Snap for Linux. Releases 2025.3722 to 2025.3724 then added Linux fixes such as rotate left and right and opening a project from the command line. The Snap stopped at 3684 so none of those fixes reach it.
Build Solar2D on Linux from source
A source build gets you the current engine and a working Android export. The steps below come from forum guides written on Pop!_OS 22.04 plus the CMake output. Distros name some packages differently so treat the package list as a starting point.
Install the build dependencies
On Debian-based distros install a compiler toolchain, CMake and the development libraries the build checks for. CMake prints each library it finds, so a missing one shows up as an error. Install what it asks for and rerun the build.
sudo apt update
sudo apt install git build-essential cmake libgl1-mesa-dev libfreetype-dev \
libcurl4-gnutls-dev libpcap-dev libssl-dev libsdl2-dev libjpeg-dev \
libpng-dev zlib1g-dev libopenal-dev
Clone the full repository
Do not download the zip or tar.gz from the releases page. Those archives leave out git submodules such as luasocket and CMake then fails with Cannot find source file errors. Use git clone with the recursive flag so every submodule comes along.
git clone --recursive https://github.com/coronalabs/corona.git
cd corona
Build and run the simulator
Run CMake from the repository root and then make. The -j$(nproc) flag spreads compile jobs across all your CPU cores. When the build finishes you get a Solar2D binary you can start straight from the folder.
cmake .
make -j$(nproc)
./Solar2D
Fix common build errors
- Cannot find source file in CMake: the clone is missing submodules. Clone again with the recursive flag.
- Missing library errors: install the matching dev package for OpenAL, FreeType, libpng or libcurl and rerun CMake.
- A uint64_t error in Rtt_LinuxContainer.cpp: a forum user hit this in March 2025 and fixed it by adding a missing include. Release 2025.3722 later shipped a Linux fix for a missing header so test a current checkout before patching anything.
Run the Windows build of Solar2D with Wine
The Solar2D README says Linux users can run the engine through Wine (a compatibility layer for Windows programs). A forum user reported in July 2026 that the current build ran on Debian 13 under Wine and built HTML5 and Windows targets. Our Wine install guide covers the base setup.
Set up Wine
The same user needed two tweaks before builds worked:
- Set the emulated Windows version to Windows 10 in
winecfg. - Replace Wine’s robocopy stub with the real robocopy from Windows because the build scripts rely on it.
Build Android apps under Wine
Solar2D looks for a JDK by finding the jarsigner file and Wine cannot see Linux Java. The bundled JRE did the job for that user once they passed one Java option. Without it the build failed with an IP Helper GetAdaptersAddresses error 13.
export _JAVA_OPTIONS="-Djava.net.preferIPv4Stack=true"
Set it in the shell that launches Solar2D through Wine. Another user on Zorin OS gave up on Wine after distorted icons in the simulator and a failed Java lookup, so results vary by setup.
Build Android APKs from Linux
Android is the main reason people run Solar2D on Linux. The author of the 2024 forum guide says they use it purely for Android projects and not Linux games. Apps built for a phone still need a JDK and the Android template wired in by hand.
Why the Snap cannot build APKs
The Snap simulator runs but cannot build an APK according to forum reports. Users point at the sandbox, which cannot reach the Java on your system. One user suspects it also blocks the local .m2 Maven cache. A source build avoids that sandbox.
Set up Java and the Android template
- Install a JDK. A 2024 guide used JDK 8 because newer versions failed on a Java module error. A March 2025 follow-up built successfully with JDK 17. Keep both handy if one fails. See our OpenJDK install guide and JAVA_HOME setup.
- Link jarsigner into your path:
sudo ln -s /path/to/your/jdk/bin/jarsigner /usr/bin/jarsigner - The source tree lacks the Android template so install the Snap once and copy it over:
sudo snap install solar2dcp -r /snap/solar2d/current/usr/local/bin/Solar2D/Resources/Native/Corona/android ./Resources/Native/Corona/ - For HTML5 builds copy the web template as well:
cp /snap/solar2d/current/usr/local/bin/Solar2D/Resources/webtemplate.zip Resources/ - Set your system language to English. A user with a Japanese locale could not build an APK until they switched.
Once the APK builds, install it on a phone with adb from the Android SDK platform-tools. Turn on USB debugging on the phone first and then push the APK across with the adb install command.
Use a third-party Linux builder for CI
A community project called Cubeage/solar2d-linux publishes a Linux Solar2DBuilder tarball patched for CI Android builds. Its 2026.3728.1 release is repacked from upstream 3728. It is not an official release so read its patches before you trust it.
Building Your First Game with Solar2D
We are gonna follow the tutorial given in the official docs so you can head over there for more information, I will just cover the basics on how to get started with building your first game with the help of Solar2D, so just follow the below steps.
- Open Solar 2D, preferably using the terminal for this, easy to track errors.
Launching from a terminal shows Lua errors as they happen. A source build starts with ./Solar2D from the build folder and the Snap lists its launch command under commands in the snap info output.

This is the interface, as you can see on the right-hand side there are recent projects(I tried to experiment a little), and on the left-hand side, you have the option to create a new project, open an existing project, or relaunch the project.
- Click on New Project give your game your application a name and remember to select the template as Blank. Also, you have an option for specifying the Screen size, for now, leave it to default.

- Once you click “OK” it will open the project folder, and you open that folder in a code editor of your choice, I am using VS code for this. The Project structure would be similar to the image below.
The Solar2D README lists Sublime Text, Visual Studio Code with a Solar2D companion extension and ZeroBrane Studio among editors that work well. Our guide to installing Visual Studio Code on Linux covers the editor setup.

- We will mainly work on main.lua file, there are a lot of other files that you might want to explore as you progress but for now, we will only work on main.lua as it will contain your game code.
local tapCount = 0
local background_image = "backgroundimage.jpeg"
local background = display.newImageRect( background_image, 360, 570 )
background.x = display.contentCenterX
background.y = display.contentCenterY
local tapText = display.newText( tapCount, display.contentCenterX, 20, native.systemFont, 40 )
tapText:setFillColor( 0, 0, 0 )
local platform_image = "platformimage.jpeg"
local platform = display.newImageRect( platform_image, 300, 50 )
platform.x = display.contentCenterX
platform.y = display.contentHeight-25
local balloon_image = "balloonimage.jpeg"
local balloon = display.newImageRect( balloon_image , 112, 112 )
balloon.x = display.contentCenterX
balloon.y = display.contentCenterY
balloon.alpha = 0.8
local physics = require( "physics" )
physics.start()
physics.addBody( platform, "static" )
physics.addBody( balloon, "dynamic", { radius=50, bounce=0.3 } )
local function pushBalloon()
balloon:applyLinearImpulse( 0, -0.75, balloon.x, balloon.y )
tapCount = tapCount + 1
tapText.text = tapCount
end
balloon:addEventListener( "tap", pushBalloon )
This small piece of code might look confusing but once you read it you will understand what function it does. It has only one function called pushBalloon() which makes the balloon jump and counts the number of taps. Not too big of a game but for starters it is fine.
Each image file name must sit inside quotes and the files must live in the project folder next to main.lua. Otherwise Solar2D throws an error in the console. Solar2D accepts PNG and JPG files so you can swap in your own art.
I changed the images(cause why not) and my game looks like this by the way you can get the image resources on their official docs but I will recommend you to search on the internet for the asset, it would be a learning experience.

Known limits of Solar2D on Linux
Linux support is community work and it shows in the gaps. Forum threads from April 2026 show contributors weighing a bigger Linux effort while the main maintainers focus on Android and iOS. These are the gaps people have reported.
- Masks: bitmap masks are not supported so masked textures render wrongly (April 2026 report).
- Plugins: most plugins have no Linux build. Release 2026.3730 added plugin and builder support for macOS and Windows only.
- Live builds: the live builds checkbox is missing from the build dialog (2024 report).
- Window handling: one user could not resize or fullscreen apps built for Linux and saw a corrupted simulator UI (June 2026 report).
- Text fields: native.newTextField() gave one user trouble and a community workaround called LinuxUserInput exists on GitHub.
- Box2D: the bundled Box2D library is older and lacks some function calls (2024 report).
- Audio: one user reported no sound in the Snap and working sound in a source build (March 2025).
- iOS: builds cannot run directly from Linux although a contributor suggests GitHub Actions as a workaround.
Your code can still branch on platform. The call system.getInfo("platform") has returned “linux” since those 2018 closed beta builds. Use it to skip plugin calls and mask effects that do not work on Linux builds.
When Solar2D on Linux is not the right fit
If you want a native Linux editor with no build fuss then an engine with first-class Linux tooling saves time. Godot has one and our guide to installing Godot on Ubuntu gets you started. Solar2D stays a good pick if you like Lua and ship to mobile.
Key Takeaways
- Solar2D has no official Linux download in release 2026.3731.
- The Snap installs 2022.3684 and the Store flags it as unmaintained.
- Build from source for a current engine and Android export.
- Clone with git clone –recursive since release zips miss submodules.
- The Snap sandbox cannot see your JDK so APK builds fail there.
- Wine runs the Windows build and can export HTML5 and Windows targets.
- Masks and most plugins do not work on Linux.
- iOS builds still need macOS or a macOS CI runner.
Frequently asked questions
Does Solar2D run on Linux?
Yes. The simulator runs through the Snap package, a source build or Wine. There is no official Linux installer on the GitHub releases page, so each route needs manual setup.
How do I install Solar2D on Ubuntu?
Run sudo snap install solar2d for the quickest setup. It installs build 2022.3684 from December 2022, so build from source with CMake if you need the 2026 release.
Is the Solar2D Snap outdated?
Yes. The Snap Store lists 2022.3684, last updated on 7 December 2022, while the latest GitHub release is 2026.3731 from 17 July 2026.
Can I build Android APKs with Solar2D on Linux?
Not from the Snap. A source build with a JDK and the Android template copied in works according to forum reports. Wine also works when Java options are set.
Why does the Solar2D CMake build fail with Cannot find source file?
The GitHub zip and tar.gz archives leave out git submodules such as luasocket. Clone the repository with git clone –recursive and run CMake again.
Can I run the Windows version of Solar2D on Linux with Wine?
Yes. One user ran the current build on Debian 13 under Wine and built HTML5 and Windows targets after setting Windows 10 in winecfg and replacing the robocopy stub.
Can I build iOS apps with Solar2D on Linux?
Not directly. iOS builds need macOS tooling, although a contributor notes you can work around that with GitHub Actions. Android and HTML5 builds are the practical targets on Linux.
Wrapping Up: Your Journey into Solar2D Game Development
In today’s article, we learned about Solar2D, an open-source 2D Lua-based game engine that is the continuation of the well-established Corona SDK game engine. It is great for beginners especially those who are looking to get into game development and also good for veteran game developers.
We saw three ways to install it on Linux and then saw a little demonstration on how to get started by building your first game. Well, I will leave you now, cause you got a lot to learn and build. So what game you are gonna build first?
