Page 1 of 1

compiler for windows 7 64 bits

Posted: Sun Jan 08, 2017 12:39 pm
by Nucleorion
Hi,

I've tried compiling wxWidgets-3.1.0 to use it with codeblocks

After cleaning using the line with the clean command, and delete all folder of C:\wxWidgets-3.1.0\build\msw\ I try to compile with the line

Code: Select all

mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1 USE_OPENGL=1 VENDOR=cb CXXFLAGS="-fno-keep-inline-dllexport -std=gnu++11"
But I get this error:

Code: Select all

makefile.gcc:7722: recipe for target 'gcc_mswudll\monodll_app.o' failed
mingw32-make: *** [gcc_mswudll\monodll_app.o] Error 1
I have tried several times with several lines changing commands and values follow many tutorials, but I can not make wxWidgets-3.1.0 work

I try also with 2.8.12 version and get this error:

Code: Select all

akefile.gcc:4723: recipe for target 'gcc_mswuddll\monodll
ingw32-make: *** [gcc_mswuddll\monodll_appbase.o] Error 1
and try with monolithics=0 after restore msw to clean installation and get:

Code: Select all

makefile.gcc:8542: recipe for target 'gcc_mswuddll\basedll_appbase.o' failed
mingw32-make: *** [gcc_mswuddll\basedll_appbase.o] Error 1

I have added to the path the minGW path and the version I have is 4.9.3
Based en MinGW32

MINGWBASEDIR=C:\MinGW
gcc version 4.9.3 (GCC)
gcc version 4.9.3 (GCC)
GNU gdb (GDB) 7.6.1
GNU ld (GNU Binutils) 2.25.1
GNU windres (GNU Binutils) 2.25.1
GNU dlltool (GNU Binutils) 2.25.1
GNU Make 3.82.90
#define __MINGW32_VERSION 3022001L
* __W32API_VERSION = 1,000,000 * major + 1,000 * minor + patch
#define __W32API_VERSION 3018001L

Re: compiler for windows 7 64 bits

Posted: Sun Jan 08, 2017 2:46 pm
by doublemax
Most likely you have another toolchain (MSYS?) in your path which messes up everything.

Re: compiler for windows 7 64 bits

Posted: Tue Jan 10, 2017 9:33 am
by Nucleorion
Thanks for reply :)

It seems that I have already solved it.

I have other IDES linked to the installation of MinGW and I think the problem is coming. As I do not want to ignore the other IDES I have done the following:

I downloaded the version of code blocks that includes minGW
I have installed codeblocks-16.01mingw-setup.exe and wxWidgets-3.0.2 on another computer and have compiled using these lines without problems using the minGW that comes with codeblocks:

First one line and then the other

Code: Select all

mingw32-make -f makefile.gcc BUILD=debug SHARED=1 MONOLITHIC=1 UNICODE=1 CXXFLAGS=-std=gnu++11

mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1 CXXFLAGS=-std=gnu++11
After proving that it worked on the other computer I copied the folder wxWidgets-3.0.2 compiled and I pasted it on the computer that has more IDES and gave me the errors.

And the last step with which I have managed to compile the welcome window: In the codeblocks go to Settings > Compiler > Toolchain executables > and in Compiler's installation directory I've put the path of minGW that comes with codeblocks C: \ CodeBlocks \ MinGW

Following this tutorial base
Youtube.com/watch?v=vmobZRIlBMU

Re: compiler for windows 7 64 bits

Posted: Fri Jan 13, 2017 5:57 pm
by engineer
Ah, that souds good!

Re: compiler for windows 7 64 bits

Posted: Wed Mar 01, 2017 10:20 pm
by joemaniaci
How do you even know you created 64-bit binaries?

Re: compiler for windows 7 64 bits

Posted: Wed Mar 01, 2017 10:59 pm
by New Pagodi
joemaniaci wrote:How do you even know you created 64-bit binaries?
One way to do is to use dumpbin as described in the second answer here.

Re: compiler for windows 7 64 bits

Posted: Thu Mar 02, 2017 4:41 pm
by joemaniaci
New Pagodi wrote:
joemaniaci wrote:How do you even know you created 64-bit binaries?
One way to do is to use dumpbin as described in the second answer here.
Left for home last night for it to compile, looks like I have a C:\wxWidgets\lib\gcc_dll64 folder in addition to the C:\wxWidgets\lib\gcc_dll