Giter Site home page Giter Site logo

Compiling about rtcw HOT 3 OPEN

Anders1980 avatar Anders1980 commented on May 27, 2024
Compiling

from rtcw.

Comments (3)

bibendovsky avatar bibendovsky commented on May 27, 2024 1

Tell me, where are the project files for building in Visual Studio? Unfortunately, I couldn't see them

There are no any project file in the port.
You have to use CMake to generate the project file for appropriate environment (Visual Studio, MSYS2, .etc).

I will try to describe the steps brifely on how to compile 32-bit port with Visual Studio 2022.

Download the dependencies:

Create a base directory, for example C:/rtcw_port.
In the base directory create another two subdirectories - _build and _install.
Now extract all dependencies and port's source code into the base directory.

Here is a list of subdirectories in the base one after the extraction:

  • cmake-3.28.1-windows-i386
  • curl-8.5.0_4-win32-mingw
  • rtcw
  • SDL2-2.28.5
  • SDL2_net-2.2.0
  • _build
  • _install

Run c:\rtcw_port\cmake-3.28.1-windows-i386\bin\cmake-gui.exe.

Set two paths. Click Configure.
001

Select the generator and the platform. Click Finish.
002

You will get an error. Just ignore it.
003

Set path for CMake install prefix and path to SDL. Click Configure.
004

You will get the error again. Just ignore it and set path to SDL_net. Click Configure.
005

You will get the error again. Just ignore it. Mark checkbox Advanced. Set paths to cURL components. Click Configure.
006

Now you should get only a deprecation warning in the log ("Compatibility with CMake < 3.5").
Click Generate, and then Open Project.
Visual Studio should open. In the solution explorer open context menu on project INSTALL and click Rebuild.
On successfull build you will get executables and DLLs in directory c:\rtcw_port_install.
007

The last step is to place essential dependencies along with the executables.

Dependencies:

  1. c:\rtcw_port\curl-8.5.0_4-win32-mingw\bin\libcurl.dll
  2. c:\rtcw_port\SDL2-2.28.5\lib\x86\SDL2.dll
  3. c:\rtcw_port\SDL2_net-2.2.0\lib\x86\SDL2_net.dll

Copy 1 into c:\rtcw_port_install\et.
Copy 2 and 3 into c:\rtcw_port_install\et and c:\rtcw_port_install\sp-mp respectively.

from rtcw.

bibendovsky avatar bibendovsky commented on May 27, 2024

You need CMake to build the port.

Dependencies:

  • C++17 compatible compiler (Visual C++ 16 (Visual Studio 2019) or higher, GCC 9.1 or higher)
  • SDL v2.0.4 or higher but less than v3
  • SDL_net v2.0.1 or higher but less than v3
  • cURL v7 or higher

from rtcw.

Anders1980 avatar Anders1980 commented on May 27, 2024

Tell me, where are the project files for building in Visual Studio? Unfortunately, I couldn't see them

from rtcw.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.