Was the MinGW binary compiled with the 32bit or 64bit version?

Started by mdb, 08 May 2013, 07:24:34

mdb

I'm having such a pain picking a toolchain to develop on windows. I had moved to the VS version of SFML because I was stuck with the VS version of SFGUI. SFGUI is not working except for when I choose all debug libraries for SFGUI and SFML. I don't like that.

Now that I want to use TGUI instead, I have the option of using MinGW again, but I'd really like to stick with 64 bit and avoid having to somehow generate makefiles compatible with use in Eclipse. I wouldn't know the first thing about doing that.


texus

I'm afraid that it was compiled with 32bit.

You could always build the 64bit libraries yourself. There will be a lot the same as in the codeblocks tutorial, so you could base yourself on that (at least for the cmake part).
You would just have to set a different compiler as in the tutorial and cmake will generate a makefile for your compiler. Then from the command prompt you should run 'make' (I never used the 64bit so I'm not sure how it is called. The 32bit version was called mingw32-make, so maybe it is mingw64-make). Of course the directory containing this make program has to be in your PATH. After this you should have your 64bit libraries.

And for the part about how to use these libraries...
If you use eclipse then you probably know better than me where to add the search directories and linking options. So I'll assume you could get it working.

mdb

Thanks for the fast reply.

There doesn't seem to be a 64 bit named version of that program in the MinGW 64 directories. I have just realized that make files are called 'projects' in IDE's.

I learned this when I told cmake to generate for the version of visual studio I had, exactly like in the tutorial. I was able to open the project in Visual Studio and build it.

I wasn't able to get one of the posted tutorials working yet, but that might be a combination of problems and I'm not ready to ask for help until I've done all I could do. I'll let you know when I figure it out.

texus

QuoteThere doesn't seem to be a 64 bit named version of that program in the MinGW 64 directories
I downloaded it and it indeed doesn't contain such file. But after googling I found this definition: "mingw32-make: name thought up by mingw.org to distinguish the win32 variant of GNU Make.".
Which makes me believe that the '32' has nothing to do with whether the compiler is 32bit or 64bit. So you could just try to use mingw32-make, it might work.

QuoteI learned this when I told cmake to generate for the version of visual studio I had, exactly like in the tutorial. I was able to open the project in Visual Studio and build it.
That's because in the tutorial I show how to generate a project instead of using a makefile. You could also use "NMake Makefiles" and build these with make.exe through your visual studio command prompt, but I thought it would be easier to just generate a project and build that.

QuoteI wasn't able to get one of the posted tutorials working yet, but that might be a combination of problems and I'm not ready to ask for help until I've done all I could do. I'll let you know when I figure it out.
Ok, but if you really can't figure out how to compile the 64bit version of MinGW, then I can always try to do it for you. Then I would need the download link to be sure that I use the exact same version as you have installed. (and if I get it to work then I could even write a tutorial about how to do it)

mdb

I was able to sucessfully configure SFML-2.0 and the .5 version of TGUI with the 32 bit CMAKE 2.8
selecting the option to generate for Eclipse CDT4 MinGW 64.

My compiler version is TDM 64 bit, if you want make a compatible binary for the 64 bit obsessed:
https://sourceforge.net/projects/tdm-gcc/files/TDM-GCC%20Installer/tdm64-gcc-4.7.1-3.exe/download

I was able to import the projects as 'General' 'from existing code' and was able to build them (in Eclipse) once I had selected GNU make to build with (for consistence I don't know if it were necessary).

Once all of this was done, I confirmed that everything was working by building tutorial level 3 and running it.

I don't know why I couldn't get it to work in VS. Oh well, I didn't really want to use it anyway.

My first project is going to be a paint program that automatically generates symmetrical patterns according to what symmetry and point of origin you select and applies the patterns to the canvas as you draw.

texus

QuoteI was able to sucessfully configure SFML-2.0 and the .5 version of TGUI with the 32 bit CMAKE 2.8
selecting the option to generate for Eclipse CDT4 MinGW 64.
Good to hear that it actually works. In therory all compilers are supported but it's always nice to have a confirmation.

QuoteMy first project is going to be a paint program that automatically generates symmetrical patterns according to what symmetry and point of origin you select and applies the patterns to the canvas as you draw.
Sounds cool :).