kuroni / bongocat-osu

An osu! Bongo Cat overlay
MIT License
2.15k stars 311 forks source link

Help on running makefile #32

Open vlcfaria opened 4 years ago

vlcfaria commented 4 years ago

Im trying to run makefile using gnuwin32, but the console responds like this: g++ -c -o obj/ctb.o src/ctb.cpp -DSFML_STATIC -I<C:\Users\Artixs\Desktop\bongocat-osu-1.4.3>/include -Iinclude -L<C:\Users\Artixs\Desktop\bongocat-osu-1.4.3>/lib -std=c++17 -s -O2 -mwindows -lsfml-graphics-s -lsfml-window-s -lsfml-system-s -lopengl32 -lfreetype -lwinmm -lgdi32 -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lpthread -Wl,-Bdynamic Access is denied. make: *** [obj/ctb.o] Error 1.

I'm a complete beginner in programming and I've spent a lot of time trying to make this work, any advice?

kuroni commented 4 years ago

Try replacing \ with /

victorasu commented 4 years ago

i've been trying to solve this without any success so i'm here begging for help, the following error comes up when i try to run the makefile on ubuntu linux, using gcc version 9.2.1 honAz7g

if i delete the option -mwindows, i get a fatal error because of #include -> no such file or directory

i've tried running the provided makefile on windows but that didn't work either, i'd deeply appreciate any advice

kuroni commented 4 years ago

@razorescu Since you're on Linux, you need to install mingw-g++. I believe for Ubuntu, it is the g++-mingw-w64 package.

victorasu commented 4 years ago

Unfortunately that didn't work.. any more ideas?

kuroni commented 4 years ago

That should work, you have to set the correct CXX and WINDRES first. For example, I had

CXX := i686-w64-mingw32-g++
WINDRES := i686-w64-mingw32-windres

on the top of my Makefile.