Fix project properties to run it. [message #1836051] |
Sat, 19 December 2020 02:56 |
Vl Last Messages: 14 Registered: November 2016 |
Junior Member |
|
|
Hello.
Please help me set up a C ++ project.
I have been programming in eclipse for a long time (this is my hobby), but setting project properties all the time is very painful for me. Unfortunately, I don't understand many of this black magic. Fortunately, everything works fine in the beginning, compilers compile, debuggers debug, and I don't have to do anything with it.
But I decided to try making a fork with not-my-project. And without your help, I cannot run it.
First, what I want.
Several years ago I modify Minecraft. Everything was ok, there was a great guides on how to set it up and it worked. I could doing a lot with the Java debugger, I could trace the Minecraft source code, and was close to being happy.
But now I want to investigate Minetest. There are no tutorials on how to set it up and the Minetest community doesn't use Eclipse and can't help me. I like Eclipse and want to work with this IDE. So, the problem is to run Minetest source code in Eclipse.
I want to track, debug and study how it works.
Is it possible?
Minetest source code is written in C ++ and uses Lua for modes. The source code is available on github:
https://github.com/minetest/minetest
A small compilation guide is here:
https://dev.minetest.net/Compiling_Minetest
After starting a new project and downloading the source (from Eclipse) I found that there are empty project properties. There are no builders, everything else is gone. And I don't know how to fix it.
Please help me to run Minetest source code.
|
|
|
|
Re: Fix project properties to run it. [message #1836242 is a reply to message #1836228] |
Fri, 25 December 2020 20:04 |
David Vavra Messages: 1426 Registered: October 2012 |
Senior Member |
|
|
The project on github is using CMake.
You likely created an Eclipse/CDT CMake project.
This uses the CMake build system and provides no mechanism for
- controlling the build
- setting compile/link options
other than editing the CMake options in a text file.
So you need to know how CMake works and how to configure it.
Start here: https://cmake.org/cmake/help/latest/guide/tutorial/index.html
Don't expect much help here on using CMake or any other build system.
They are third party tools external to Eclipse.
You'll likely be more successful directing your questions to the build system developers or a forum devoted to using it.
If you want to use a Makefile project instead:
- Import the project into CDT as a Makefile Project with existing source
- Use CMake to create a Makefile for CDT
- You only need to run CMake initially and anytime the configuration changes
but if the configuration must be changed you will still have to know how CMake works.
Alternately, you could
- only use CMake to generate an initial Makefile
which will likely be hard to follow
- write your own Makefile
- try to modify a Managed Build project to duplicate what CMake is doing
The last is probably tedious and difficult.
[Updated on: Fri, 25 December 2020 20:22] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04535 seconds