Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get gfx running? #427

Closed
MarcusTU opened this issue Aug 28, 2019 · 4 comments
Closed

How to get gfx running? #427

MarcusTU opened this issue Aug 28, 2019 · 4 comments
Labels
revisit This issue became inactive but may need another look solved? This issue might have been solved but not tested

Comments

@MarcusTU
Copy link

Hello there,

the instructions (Windows 10, Visual Studio Code, Go), for installing sdl, img, ttf, mix are all the same: download the devel package, unpack the package, copy x86_64-w64-mingw32, go get -v github.com/veandco/go-sdl2/XXX, hit run -> it works fine.

sadly this wont work with the gfx package because it doesnt contain any folder named x86_64-w64-mingw32. It is some visual studio (not code) project folder that must be build in order to get what you want. No matter what I try i am to incompetent to do this so i sit on a bunch of files and cant get it to work.

It would be great to have some seperate install instructions for the gfx package or some nice guy that builds the project and links the copy & pastable folder so everyone that is not a compile master can use sdl_gfx.

@MarcusTU MarcusTU changed the title Hot to get gfx running? How to get gfx running? Aug 28, 2019
@veeableful
Copy link
Contributor

Hi @MarcusTU, thanks for pointing that out. I'd guess that for the GCC version you can run ./configure; make and copy the library into the same directory as other libraries.

I'll have a look at this and update the guide when I have the time (probably this weekend).

@veeableful
Copy link
Contributor

So I had to edit the configure script at line 13142 to make sure they escape spaces in $SDL_CONFIG. Then I edit sdl2-config to use the correct $prefix. But looking at config.log, I found out that you need autoconf, autoheader, and automake in the end which aren't provided by mingw-w64.

I will try with MSYS2 if it can be used to successfully compile the project since it does provides those autotools.

@veeableful
Copy link
Contributor

I found a nice person who shares his SDL2_gfx.dll which I confirmed to be working with go-sdl2/gfx! Here's the link: https://github.com/Vladar4/sdl2_nim/blob/master/LINKS.md

The header files of SDL2_gfx (.h files) will need to be copied into include folder of your MinGW. They can be obtained from the source code here: http://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx/

@veeableful veeableful added the solved? This issue might have been solved but not tested label Oct 3, 2019
@MarcusTU
Copy link
Author

Thank you very much :)
This method is not complicated and works fine.

@veeableful veeableful added the revisit This issue became inactive but may need another look label Oct 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
revisit This issue became inactive but may need another look solved? This issue might have been solved but not tested
Projects
None yet
Development

No branches or pull requests

2 participants