Author Topic: wxwidgets 2.6.3  (Read 8424 times)

Matreju

  • Guest
wxwidgets 2.6.3
« on: June 18, 2006, 12:49:51 pm »
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

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: wxwidgets 2.6.3
« Reply #1 on: June 18, 2006, 01:03:01 pm »
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

  • Guest
Re: wxwidgets 2.6.3
« Reply #2 on: June 18, 2006, 01:32:18 pm »
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 )

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Matreju

  • Guest
Re: wxwidgets 2.6.3
« Reply #4 on: June 18, 2006, 03:53:41 pm »
Is there any chance to convert the .def WIN API Files to .LIB files ?

make 3.80 seems to be work.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2808
Re: wxwidgets 2.6.3
« Reply #5 on: June 18, 2006, 04:05:33 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
« Last Edit: June 18, 2006, 04:59:07 pm by Pecan »

Matreju

  • Guest
Re: wxwidgets 2.6.3
« Reply #6 on: June 18, 2006, 04:16:16 pm »
3.77 isnt working at my windows xp....The errors are obscure because the include path is correct but the header files wont found

Offline liaoya

  • Single posting newcomer
  • *
  • Posts: 9
Re: wxwidgets 2.6.3
« Reply #7 on: June 18, 2006, 04:39:38 pm »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2808
Re: wxwidgets 2.6.3
« Reply #8 on: June 18, 2006, 05:06:10 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


Code
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

  • Guest
Re: wxwidgets 2.6.3
« Reply #9 on: June 18, 2006, 05:12:33 pm »
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.


Offline kkez

  • Almost regular
  • **
  • Posts: 153
    • WinapiZone
Re: wxwidgets 2.6.3
« Reply #10 on: June 18, 2006, 11:00:41 pm »
The win32api mingw package already has all the headers and .lib files you need... but does this have anything to do with wxwidgets?
« Last Edit: June 19, 2006, 12:42:27 pm by kkez »

Matreju

  • Guest
Re: wxwidgets 2.6.3
« Reply #11 on: June 19, 2006, 09:55:38 am »
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.

Offline kkez

  • Almost regular
  • **
  • Posts: 153
    • WinapiZone
Re: wxwidgets 2.6.3
« Reply #12 on: June 19, 2006, 12:36:40 pm »
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.
« Last Edit: June 19, 2006, 12:44:40 pm by kkez »