Skip to content

Instantly share code, notes, and snippets.

@korewaChino
Last active January 29, 2026 21:26
Show Gist options
  • Select an option

  • Save korewaChino/f42f1e9844525f8f8759fa5b5f8275b8 to your computer and use it in GitHub Desktop.

Select an option

Save korewaChino/f42f1e9844525f8f8759fa5b5f8275b8 to your computer and use it in GitHub Desktop.

How to build re3 on Linux using CMake

re3/reVC is a re-implementation of Grand Theft Auto III and Vice City, using the librw RenderWare engine re-implementation.

While the original upstream has been taken down by Take 2 Interactve (smh), you can still download build a working version as long as you have the source code somewhere.

Requirements

At least for Fedora/Ultramarine, you need the following libraries/headers:

  • openal-devel
  • libsndfile-devel
  • libopus-devel
  • glew-devel
  • mpg123-devel
  • GCC or Clang

Getting the source

At the moment the most updated source seems to be here. So let's use that

git clone --recursive https://github.com/halpz/re3
popd re3

Now that we're in the source tree, I'm going to build reVC instead of re3 (You can also apply this to re3, I just like VC personally)

git checkout miami
git submodule update --init --recursive # if you haven't --recursive already

Building

Now let's build reVC (or re3).

Set up your CMake build. I usually like my CMake build data to be separate from source so it's easier to cleanup, so we'll be putting them in build, which so happens to be in .gitignore.

cmake -B build . -DLIBRW_PLATFORM=GL3 -DCMAKE_CXX_FLAGS=-std=c++11

Notice that I set a build option for librw, we need to do that so we can build librw properly.

If CMake does not complain about missing libraries, you should be good to go.

Let's finally build!

make -C _build -j$(nproc)

Now we wait...

Once it's done, your reVC binary should be in build/src/reVC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment