Open joaquincasares opened 5 years ago
The latest version available on brew is the 2.4.2. This game requires 2.5 so you will have to download sfml from their website.
After doing that I had to modify the cmake file as instructed by the installer and set CMAKE_PREFIX_PATH and SFML_DIR in the mable marcher directory.
Hope that helps
@Jbaud What did you modify? I never saw anything about the cmake file in the installer. I installed SFML per sfml-dev.org's instructions, and now get the following output from cmake --build build
:
-- Found SFML 2.5.1 in /Library/Frameworks/SFML.framework/Resources/CMake
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/redacted/MarbleMarcher/build
[ 12%] Building CXX object src/CMakeFiles/MarbleMarcherSources.dir/Overlays.cpp.o
In file included from /Users/redacted/MarbleMarcher/src/Overlays.cpp:17:
/Users/redacted/MarbleMarcher/src/Overlays.h:18:10: fatal error: 'SFML/Graphics.hpp' file not found
#include <SFML/Graphics.hpp>
^~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [src/CMakeFiles/MarbleMarcherSources.dir/Overlays.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/MarbleMarcherSources.dir/all] Error 2
make: *** [all] Error 2
I found a temporary fix. in build/src/CmakeFiles/MarbleMarcerSources.dir/flags.make, manually type the include path to SFML as it is missing
CXX_INCLUDES = -I/usr/local/include/eigen3 -I/Users/k5patel/workspace/computer-graphics/SFML/include
Ayy, it compiled!
Now the only issue I have is
Failed to open shader file "assets/vert.glsl"
Failed to compile vertex shader
I'll fiddle with it some and see if I can't make that work
Le 10 janv. 2019 à 02:27, Krunal Patel notifications@github.com a écrit :
I found a temporary fix. in build/src/CmakeFiles/MarbleMarcerSources.dir/flags.make, manually type the include path to SFML as it is missing
CXX_INCLUDES = -I/usr/local/include/eigen3 -I/Users/k5patel/workspace/computer-graphics/SFML/include
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HackerPoet/MarbleMarcher/issues/9#issuecomment-452996455, or mute the thread https://github.com/notifications/unsubscribe-auth/AHomX-hCX-CwwFZTmMEtby1sVcLyTQDOks5vButQgaJpZM4Z4GEA.
just manually copy the built executable over to the root directory.
You can accomplish the same as below
I found a temporary fix. in build/src/CmakeFiles/MarbleMarcerSources.dir/flags.make, manually type the include path to SFML as it is missing
CXX_INCLUDES = -I/usr/local/include/eigen3 -I/Users/k5patel/workspace/computer-graphics/SFML/include
at the configuration step by passing by passing something like -DCMAKE_CXX_FLAGS="-I/usr/local/include/eigen3 ..."
to cmake
.
The latest version available on brew is the 2.4.2. This game requires 2.5 so you will have to download sfml from their website.
After doing that I had to modify the cmake file as instructed by the installer and set CMAKE_PREFIX_PATH and SFML_DIR in the mable marcher directory.
Hope that helps
How did you download it from their website? I downloaded a folder with doc, Frameworks, examples, etc in it but I'm completely lost on what to do with it.
The tutorial on the sfml website will teach you how to install it.
@lateralpunk What path are you talking about? As I do not have anything remotely similar on my computer.
I found a temporary fix. in build/src/CmakeFiles/MarbleMarcerSources.dir/flags.make, manually type the include path to SFML as it is missing
CXX_INCLUDES = -I/usr/local/include/eigen3 -I/Users/k5patel/workspace/computer-graphics/SFML/include
I installed the sfml manually, and now it says success but no binary. ( Here's the terminal log:
bash-3.2$ cmake -build build
-- Found SFML 2.5.1 in /Library/Frameworks/SFML.framework/Resources/CMake
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/USER/Desktop/MarbleMarcher/build
)
As of today, SFML in Homebrew is already updated to version 2.5.1. I managed to build with this sequence:
mkdir build && cd build
cmake -DCMAKE_CXX_FLAGS="-I/usr/local/include" ..
cd ..
cmake --build build
And it produced a binary file. Also I think that /usr/local/include
folder should be added in flags.make
file.
This now builds and I'm able to run it with:
LD_LIBRARY_PATH=`pwd`/usr/lib ./build/MarbleMarcher
~However, the graphics get glitchy as soon as the level is built and mainly disappear as the world spins.~ Nevermind, it works! The mouse sensitivity is found on the Pause Screen and can be fixed a bit. Glad to see it though! :D
I stumbled upon this via Reddit. Cool looking game!
First, I needed to also install cmake:
But I'm still having issues on the
cmake
command:Thanks for any help!