News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

wxwidgets 2.6.3

Started by Matreju, June 18, 2006, 12:49:51 PM

Previous topic - Next topic

Matreju

Hi,
i try to compile wxwidgets on my Windows system with code blocks.

Have anyone compile instructions or experience . At this time i am not shure whats the compile order ( base, core ...)

With makefile.gcc i am not able to compile. make ****( mwsd_gcc\wregex_regcomp.o ) Error 1

thomas

You cannot compile wxWidgets with Code::Blocks in an easy way at this time.

makefile.gcc is the way to go. For this to work, you have to make sure that you have make 3.8 (older versions will not do) and you must make sure that no other conflicting make or gcc is in the path (this is most easily done by simply setting the path to the one directory where your build tools live before building).
With the correct version and path set up, makefile.gcc works fine.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Matreju

Thx for the info...make in CodeBlocks 1.0 RC2 is 3.77 ? gcc 3.4.4 (mingw special)

How to update this ? ( I almost work on linux, not on windows )

thomas

"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Matreju

Is there any chance to convert the .def WIN API Files to .LIB files ?

make 3.80 seems to be work.

Pecan

#5
Quote from: thomas on June 18, 2006, 01:03:01 PM

makefile.gcc is the way to go. For this to work, you have to make sure that you have make 3.8 (older versions will not do) and you must make sure that no other conflicting make or gcc is in the path (this is most easily done by simply setting the path to the one directory where your build tools live before building).
With the correct version and path set up, makefile.gcc works fine.

Why do you say that make 3.8 is required.

I've been using 3.77 just fine for awhile now. To make sure, I just recompiled 2.6.3 again. It seems to work fine.

Am I missing something hidden here?

thanks
pecan

Matreju

3.77 isnt working at my windows xp....The errors are obscure because the include path is correct but the header files wont found


Pecan

Quote from: Pecan on June 18, 2006, 04:05:33 PM
Quote from: thomas on June 18, 2006, 01:03:01 PM

makefile.gcc is the way to go. For this to work, you have to make sure that you have make 3.8 (older versions will not do) and you must make sure that no other conflicting make or gcc is in the path (this is most easily done by simply setting the path to the one directory where your build tools live before building).
With the correct version and path set up, makefile.gcc works fine.

Why do you say that make 3.8 is required.

I've been using 3.77 just fine for awhile now. To make sure, I just recompiled 2.6.3 again. It seems to work fine.

Am I missing something hidden here?

thanks
pecan



Ok, I see. Make is at 3.77. But mingw32-make is at 3.80



C:\Usr\Proj\wxWidgets263\build\msw>mingw32-make -v
GNU Make 3.80
Copyright (C) 2002  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

C:\Usr\Proj\wxWidgets263\build\msw>make -v
GNU Make version 3.77, by Richard Stallman and Roland McGrath.
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98
        Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A

Matreju

Thanx you all. It seems to be possible to compile with MSVC import directly from Codeblocks.

I am going this way to create the necessary shell32.lib and ole32.lib with dlltool from the mingw w32api-3.2 defs
Than i am adding uuid.c in the the project there is needed ( for e.g. wx_base ).

the only problem is why the WIN API is defining the IID_IPersistFile in uuid.c. I am an win api beginner and i didnt understand this.


kkez

#10
The win32api mingw package already has all the headers and .lib files you need... but does this have anything to do with wxwidgets?

Matreju

If you try to compile the wxwidget in CodeBlocks with the MSVC Workspace you have to link with ole32.lib and shell32.lib  to avoid undefined references. In which package of the mingw are the .lib files. The win32api ( v3.2 ) package included only .def files.

kkez

#12
win32api package->lib directory. Of course all those .a files are the .lib files for mingw/gcc. The wxwidgets MSVC project is made to be compiled with the Microsoft compiler (that requires .lib files) and not MinGW (that requires .a files).

EDIT: wait, 3.2? the last release is the 3.7!
and where did you see all the .def files? I only see .h and .a files.