Search found 7 matches
- August 17th, 2017, 5:04 pm
- Forum: Release Announcements, Compiling & Installation
- Topic: Compiling on macOS with cmake and CLion
- Replies: 4
- Views: 4491
Re: Compiling on macOS with cmake and CLion
Hi all, I found a way to compile and run, thanks to singalen who helped me in the discord's server. The solution is to change the line 944 in the wesnoth.cpp file (src/wesnoth.cpp) from: #ifdef __APPLE__ extern "C" int wesnoth_main(int argc, char** argv); int wesnoth_main(int argc, char** ...
- August 7th, 2017, 2:48 pm
- Forum: Coder’s Corner
- Topic: Where is the main function [CMake build doesn't run]
- Replies: 6
- Views: 7445
Re: Where is the main function
I don't use MacOS so haven't done it but I know that Wesnoth compiles and runs on MacOS. Are you code-reading or actually compiling and saying you're not compiling correctly? If you're code-reading, you need to study how MacOS and SDL start up applications. If you're having problems compiling, I'd ...
- August 7th, 2017, 1:43 pm
- Forum: Coder’s Corner
- Topic: Where is the main function [CMake build doesn't run]
- Replies: 6
- Views: 7445
Re: Where is the main function
ok but the program needs a main. If the main is the one in SDLmain.mm it does not work with cmake. the wesnoth_main function is never called.Tad_Carlucci wrote:$ grep -R wesnoth_main src
- August 7th, 2017, 10:50 am
- Forum: Coder’s Corner
- Topic: Where is the main function [CMake build doesn't run]
- Replies: 6
- Views: 7445
Where is the main function [CMake build doesn't run]
Hi all,
I have downloaded the Wesnoth repository from git. I cannot find the main function Which is the file that contains it?
I use Mac so It's not the one that is in wesnoth.cpp
I have downloaded the Wesnoth repository from git. I cannot find the main function
Code: Select all
int main (int argc, char **argv)
I use Mac so It's not the one that is in wesnoth.cpp
- August 6th, 2017, 11:46 am
- Forum: Release Announcements, Compiling & Installation
- Topic: Compiling on macOS with cmake and CLion
- Replies: 4
- Views: 4491
Compiling on macOS with cmake and CLion
Hi all, I'm trying again to compile and run Wesnoth from sources in CLion with cmake in macOS (I tried last year and I failed: https://forums.wesnoth.org/viewtopic.php?f=5&t=44120 ), while I was compiling I got this errors: Undefined symbols for architecture x86_64: "_SDL_main", refere...
- April 30th, 2016, 8:20 am
- Forum: Release Announcements, Compiling & Installation
- Topic: problems with compiling code on mac os
- Replies: 4
- Views: 3450
Re: problems with compiling code on mac os
I use CLion not XCode and I compile manually with terminal, but I tried even with XCode and it doesn't work. The error is incomprehensible for me, however I will put a screenshot of the error maybe you can understand it. Screen Shot 2016-04-30 at 10.10.02.png The error continues printings "mayb...
- April 29th, 2016, 2:59 pm
- Forum: Release Announcements, Compiling & Installation
- Topic: problems with compiling code on mac os
- Replies: 4
- Views: 3450
problems with compiling code on mac os
Hi all, I'd like to start helping in coding Battle for Wesnoth. I downloaded the source from the git repository and I tried to compile it... I have already downloaded the dependences and I configured the correct path to libraries in CMakeCache. But when i try to compile the code, the linker gives me...