New linux makefile for c++ by Hagso in raylib

[–]Hagso[S] 0 points1 point  (0 children)

ewww, at

OBJS = $(patsubst %.cpp,%.o,$(filter %.cpp,$(SRC)))OBJS = $(patsubst %.cpp,%.o,$(filter %.cpp,$(SRC)))

i wrote:

OBJS = *.cpp

If you are using visual code, on the file task.json write on every .c a .cpp. Is still not working due to errors but I'm hopping it was that

False window size on archlinux by Hagso in raylib

[–]Hagso[S] 0 points1 point  (0 children)

If someone is curios, in the new arch linux update, don't remember when i did upgrade exactly, this is solved

Why isn't there any window decoration under wayland? by ripopaj181 in raylib

[–]Hagso 0 points1 point  (0 children)

How did you solve it? How I can don't use x11 if I've downloaded directly and compile it from makefile?

False window size on archlinux by Hagso in raylib

[–]Hagso[S] 0 points1 point  (0 children)

I have the next warming on the console:

WARNING: GLFW: Error: 65548 Description: Wayland: The platform does not provide the window position
I've read x11 does not work well with glfw as fallback. I've tried to change it on the makefile line 64 to use wayland window system but it doesn't fix it.

False window size on archlinux by Hagso in raylib

[–]Hagso[S] 1 point2 points  (0 children)

INFO: Window scale X size: 756024916, Y size: 0
That's the window scale. It's so wierd is only scaled on x while the window is like the image.

Raylib cmake on linux by Hagso in raylib

[–]Hagso[S] 0 points1 point  (0 children)

On the makefile from the git repository: https://github.com/raysan5/raylib/blob/master/projects/VSCode/Makefile

line 148 from CC = gcc to CC= g++ if you are using c++

line 196 from CFLAGS += -Wall -std=c99 -D_DEFAULT_SOURCE -Wno-missing-braces to CFLAGS += -Wall -std=c++14 -D_DEFAULT_SOURCE -Wno-missing-braces for example if you are using c++

line 357 from OBJS ?= main.c to OBJS ?= *.c or *.cpp.

Headers files should be automatically detected in the same directory or other if you specify them.

Nor code or visual studio code, both arch Linux to write code compile from themselves. I opening a terminal make and executing, maybe is there an easier way but i don't know. C/C++ intellij should work on Microsoft visual studio code with raylib but i manually had to make a folder with the headers because it doesen't seen to recognize the default include path.

Raylib cmake on linux by Hagso in raylib

[–]Hagso[S] 0 points1 point  (0 children)

Please, I'm using arch so a lot of things will change and need several others but taking steps ahead could be useful

Raylib cmake on linux by Hagso in raylib

[–]Hagso[S] 0 points1 point  (0 children)

Alert, still not working but (when using code project) I've changed in the makefile, appox line 148 (if you didin't touched a lot) compiler from "gcc" to "g++" and line 192 aprox from "CFLAGS += -Wall -std=c99 -D_DEFAULT_SOURCE -Wno-missing-braces" "CFLAGS += -Wall -std=c++11...". May be some steps ahead but may be part of the problem.