Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ApianbelleDev

Pages: [1]
1
General / Re: Trouble "Compiling" with Cmake
« on: May 12, 2021, 03:20:54 am »
OHHH, I was under the impression that I had to use CMake to use it on mingw, whoops. my mistake. some people on other forums just told me I had to use CMake to use it with mingw. they are idiots. sorry for the trouble!

2
General / Re: Trouble "Compiling" with Cmake
« on: May 11, 2021, 06:18:03 am »
nope nope, nevermind about that last part. sorry for being difficult, but I still can't get it to work. in vs code the errors were gone, but when compiling via mingw, it says fatal error: SFML/Graphics.hpp: No Such file or directory. I don't want to use CMake if I don't have to, but I also don't want to use an IDE if I don't have to. if I really have to though, I'd choose to use an IDE. I just don't want to do this for reasons that I stated above.

3
General / Re: Trouble "Compiling" with Cmake
« on: May 11, 2021, 06:09:42 am »
Nevermind about everything. it seems I was overcomplicating everything. I just copied the include files to my project and it is working. didn't have to compile anything with CMake.


I should have done this in the beginning. I don't know why I didn't do this at the beginning lol.

4
General / Re: Trouble "Compiling" with Cmake
« on: May 11, 2021, 05:55:44 am »
alright. just to make sure I am on the right track, this is my cmakelists file.

# include the SFML specific macros
include($C:\Users\Mirac\Desktop\Projects\code\C++\Project Excalibur/Cmake/Macros.cmake)

# let CMake know about our additional libraries paths
if (SFML_OS_WINDOWS)
    set(CMAKE_INCLUDE_PATH $C:\msys64\mingw64\include "$C:\Users\Mirac\Desktop\Projects\code\C++\Project Excalibur/extlibs/headers")
    if(SFML_COMPILER_GCC)
        if(ARCH_32BITS)
            set(CMAKE_LIBRARY_PATH $C:\msys64\mingw64\lib "$C:\Users\Mirac\Desktop\Projects\code\C++\Project Excalibur/extlibs/libs-mingw/x86")
            set(CMAKE_LIBRARY_PATH $C:\msys64\mingw64\include"$C:\Users\Mirac\Desktop\Projects\code\C++\Project Excalibur/extlibs/bin/x86")
        elseif(ARCH_64BITS)
            set(CMAKE_LIBRARY_PATH $C:\msys64\mingw64\lib} "$C:\Users\Mirac\Desktop\Projects\code\C++\Project Excalibur/extlibs/libs-mingw/x64")
            set(CMAKE_LIBRARY_PATH $C:\msys64\mingw64\lib} "$C:\Users\Mirac\Desktop\Projects\code\C++\Project Excalibur/extlibs/bin/x64")
        endif()

if I'm not on the right track, could someone maybe point me on the right one?  :>

5
General / Re: Trouble "Compiling" with Cmake
« on: May 11, 2021, 02:40:13 am »
alright. I'll try this. thanks

6
General / Trouble "Compiling" with Cmake
« on: May 11, 2021, 02:17:32 am »
short question: I need help compiling sfml via cmake.

long question: Hi! I am creating a 3d RPG in C++ because I want to have more control with pretty much everything, and I want to learn more about C++ in the process. anyways, I have been trying to "compile" sfml with Cmake, and i'm getting frustrated enough to ask for help. I have been trying for weeks, but to no avail

coding in SFML is not a problem, cause I use it on Linux all the time. but I want the game to be for windows, with the ability to port it to consoles and older handhelds.

the SFML docs do not make sense at all of what to do to get the CMakeLists.txt file, in order to build sfml for use with MinGW. I do not want to use an IDE if not possible, because I am used to Linux-style compiling.

if anyone would link to an easy-to-follow tutorial or give me some pointers, that would be great.

or if anyone would be willing to tell me a "simpler to set up in windows" library that would be great too.

Pages: [1]