compiler for windows 7 64 bits

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
User avatar
Nucleorion
Knows some wx things
Knows some wx things
Posts: 45
Joined: Sat Jan 07, 2017 10:08 pm

compiler for windows 7 64 bits

Post by Nucleorion » Sun Jan 08, 2017 12:39 pm

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

User avatar
doublemax
Moderator
Moderator
Posts: 14958
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: compiler for windows 7 64 bits

Post by doublemax » Sun Jan 08, 2017 2:46 pm

Most likely you have another toolchain (MSYS?) in your path which messes up everything.
Use the source, Luke!

User avatar
Nucleorion
Knows some wx things
Knows some wx things
Posts: 45
Joined: Sat Jan 07, 2017 10:08 pm

Re: compiler for windows 7 64 bits

Post by Nucleorion » Tue Jan 10, 2017 9:33 am

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

engineer
Earned a small fee
Earned a small fee
Posts: 12
Joined: Sun Aug 29, 2004 1:56 am
Location: Germany
Contact:

Re: compiler for windows 7 64 bits

Post by engineer » Fri Jan 13, 2017 5:57 pm

Ah, that souds good!
J

joemaniaci
Experienced Solver
Experienced Solver
Posts: 52
Joined: Thu Dec 08, 2016 2:42 pm

Re: compiler for windows 7 64 bits

Post by joemaniaci » Wed Mar 01, 2017 10:20 pm

How do you even know you created 64-bit binaries?

New Pagodi
Super wx Problem Solver
Super wx Problem Solver
Posts: 347
Joined: Tue Jun 20, 2006 6:47 pm
Contact:

Re: compiler for windows 7 64 bits

Post by New Pagodi » Wed Mar 01, 2017 10:59 pm

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.

joemaniaci
Experienced Solver
Experienced Solver
Posts: 52
Joined: Thu Dec 08, 2016 2:42 pm

Re: compiler for windows 7 64 bits

Post by joemaniaci » Thu Mar 02, 2017 4:41 pm

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

Post Reply