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 - rbfahim

Pages: [1]
1
Thank you I did that. But now I am confused about how to pack my resources and sounds file with it as well.

This is my makefile

SFML = -lsfml-graphics -lsfml-window -lsfml-system -lsfml-audio
CC = g++
CFLAGS = -c
DEBUG = -g
objects = boidHelpingFunctions.o boids.o simulation.o main.o
all: FlockingBoids link

FlockingBoids: $(objects)

boidHelpingFunctions.o : FlockingBoids/src/boidHelpingFunctions.cpp FlockingBoids/src/boidHelpingFunctions.h
        $(CC) -IsfmlFiles/include $(CFLAGS) FlockingBoids/src/boidHelpingFunctions.cpp

boids.o : FlockingBoids/src/boids.cpp FlockingBoids/src/boids.h
        $(CC) -IsfmlFiles/include $(CFLAGS) FlockingBoids/src/boids.cpp

simulation.o : FlockingBoids/src/simulation.cpp FlockingBoids/src/simulation.h
        $(CC) -IsfmlFiles/include $(CFLAGS) FlockingBoids/src/simulation.cpp

main.o : FlockingBoids/src/main.cpp
        $(CC) -IsfmlFiles/include $(CFLAGS) FlockingBoids/src/main.cpp

link:
        $(CC) $(objects) -o run -LsfmlFiles/lib $(SFML)

clean:
        rm edit $(objects)

2
General / How can I pack my shader.glsl .wav files and sfml dll into exe?
« on: November 25, 2023, 04:40:48 pm »
So, I am compiling this project with two shader files and a sound file in .wav format.

I wanted to include all of them as well as the .dll files into the exe?

I am not sure how to do that? If I include static flag that only works for the dll not for the resource files, I assume.

Pages: [1]
anything