Hello, Can anyone get an advice how would I compile my resources to executable?
I have some PNG files to be drawn on my executable in windows I do use windres to compile to .o object file and then compiling it all together to .exe file.
And then I use wxBitmap("bitmap_name", wxBITMAP_TYPE_PNG_RESOURCE) in my code.
Is there any similar method in Mac?
PNG files resources compiling on MacOS X with g++
Re: PNG files resources compiling on MacOS X with g++
Hi,
On Mac you don't compile them. You copy them into thr special folder in the Application Bundle.
Look at the sample (minimal or drawing).
Build them and run them.
See how they manage external resources.
Thank you.
On Mac you don't compile them. You copy them into thr special folder in the Application Bundle.
Look at the sample (minimal or drawing).
Build them and run them.
See how they manage external resources.
Thank you.
Re: PNG files resources compiling on MacOS X with g++
Thank you for reply <3
As I can see it's just loading it as external file, what a valid path is it's the Bundle folder?
Code: Select all
gs_bmp4->LoadFile(path, wxBITMAP_TYPE_BMP);
Re: PNG files resources compiling on MacOS X with g++
Hi,
Build the drawing sample and see where it's pictures will go.
Thank you.
Build the drawing sample and see where it's pictures will go.
Thank you.