News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

wxWidgets 2.6 (MSW, GCC) installation instructions

Started by rickg22, April 24, 2005, 06:12:24 AM

Previous topic - Next topic

cyberkoa

Another problem solving tips .

If you cannot compile wxwidgets-2.6.x in both MSYS or command prompt, and receive message /usr/bin/sh
blu blu blu ...

 Try to take out the C:\MSYS\1.0\bin from the path , because it default to use the /usr/bin/sh to execute all the command

David Perfors

OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring

Anonymous

Anybody try to compile codeblocks using wxwidgets-2.6.1 UNICODE ?

I have tried to compile following the official instruction with the UNICODE option change to 1 .
wxwidgets compile successfully , stc also.

CB also compiled successfully , but the linking having some problem

It seems like related to XRC because it could not find the function  ... XmlGetXRCID something like that (the error msg)

I could not post the msg now bcos I am not using my PC ..  , if anyone hv this experience hope you can share it

cyberkoa


cyberkoa

I think I make mistake , I did not successfully compile the Unicode version because I just found out that I did not turn wxUSE_UNICODE on  :oops:

Now still trying...

DreadNot

I compiled it OK.  The XRC (wxxrc) lib no longer exists standalone in wx2.6.0/1. Its included in the wxmsw26 lib via MONOLITHIC=1 USE_XRC=1.  Make sure your using this lib in your link, that it was compiled correctly, and your referencing the proper lib directory.

Anonymous

I have a problem trying to compile wxWidgets 2.6.1 with Code::Blocks/MinGW integrated package.
I always get an error telling "gcc: installation problem, cannot exec 'cc1'
What's wrong with my setup as I only installed C::B and MinGW together ?
Thanks

jmccay

I can compile 2.6.1 of wxWidgets using make & msys, but I can't do it with the mingw32-make.  When I use make, it doesn't end up in the gcc_dll directory.  I manually created those directories.  I get the following when trying to compile with mingw32-make from the command prompt:

C:\development\projects\WX_2_6_1\wxWidgets\build\msw>mingw32-make.exe -f makefil
e.gcc BUILD=release SHARED=1 MONOLITHIC=1 USE_XRC=1 UNICODE=0 VENDOR=CB

gcc -c -o gcc_mswdll\wxregex_regcomp.o  -O2 -mthreads  -DHAVE_W32API_H -I..\..\i
nclude -I..\..\lib\gcc_dll\msw -D__WXMSW__    ../../src/regex/regcomp.c
process_begin: CreateProcess((null), gcc -c -o gcc_mswdll\wxregex_regcomp.o -O2
-mthreads -DHAVE_W32API_H -I..\..\include -I..\..\lib\gcc_dll\msw -D__WXMSW__ ..
/../src/regex/regcomp.c, ...) failed.
make (e=2): The system cannot find the file specified.
mingw32-make.exe: *** [gcc_mswdll\wxregex_regcomp.o] Error 2


I have make: 3.80.0-3
winXP SP2 for my windows version

So, I don't think that's the problem.  I did run a ./configure in msys first because I tried make when I got the error first.

Thank you in advance.
jmccay
OS: WinXP, Win98 SE, & sometimes Linux

a little light reading from the wxWidgets 2.6.2 readme: A detailed 2000-page reference manual is supplied in HTML, PDF and Windows Help form: see the docs hierarchy.

mandrav

Are your paths setup right?
Also, is there gcc.exe in mingw's bin directory? If not copy mingw32-gcc.exe to gcc.exe. Do the same for g++.exe.
Although, I have to say, I never encountered this issue.

Yiannis.
Be patient!
This bug will be fixed soon...

jmccay

what paths?  I can compile with make.  What paths does mingw32-gcc.exe need?  I will try moving them.  I will try and check back later--if I can find the site.
OS: WinXP, Win98 SE, & sometimes Linux

a little light reading from the wxWidgets 2.6.2 readme: A detailed 2000-page reference manual is supplied in HTML, PDF and Windows Help form: see the docs hierarchy.

jmccay

I got it compiling.  Just incase anyone else has the problem, I will post what I had done.  When I installed mingw32-make.exe I installed it under the mingw directory, and I put that path under the path environment variable.  It didn't have all the other files.  I copied the file into the main bin directory with the other programs, and then reset the path variable to that directory.  After that I tried compiling with mingw32-make at the command prompt.  It's compiling upstairs as I type this.  We'll see if I have other problems.  I added --jobs=3 to the arguments because that should allow 3 to compile at once if possible.  Thanks for the help.  :)
jmccay
OS: WinXP, Win98 SE, & sometimes Linux

a little light reading from the wxWidgets 2.6.2 readme: A detailed 2000-page reference manual is supplied in HTML, PDF and Windows Help form: see the docs hierarchy.

mandrav

QuoteI added --jobs=3 to the arguments because that should allow 3 to compile at once if possible.
AFAIK this doesn't work under windows...

Yiannis.
Be patient!
This bug will be fixed soon...

jmccay

I did eventually find out that --jobs doesn't work without sh.  Oh well.  After compiling successfully, I found out I didn't have the same version of Mingw as that in the packaged version of cb.  I got a compiled with different versions error.

   I decided to set my path to the codeblocks bin (C:\Program Files\CodeBlocks\bin) and (C:\Program Files\CodeBlocks\mingw32\bin) and now I get a bunch of duplicate warnings similar to:

../../include/wx/string.h:58: warning: type attributes are honored only at type definition

then at the end I get stuff like this:

gcc_mswdll\basedll_archive.o(.data$_ZTI21wxArchiveClassFactory[typeinfo for wxAr
chiveClassFactory]+0x0):archive.cpp: first defined here
gcc_mswdll\basedll_zipstrm.o(.rdata$_ZTS21wxArchiveClassFactory[typeinfo name fo
r wxArchiveClassFactory]+0x0):zipstrm.cpp: multiple definition of `typeinfo name
for wxArchiveClassFactory'


   I want to make sure wxWidegts 2.6.1 with patch is compiled with the same version as CodeBlocks.  Unfortunately, downloading a new version of Mingw until I get my car back from the shop.  Any suggestions.  Once I get everything up and running I want to help out with cb development.  I like cb because of its modular design.
jmccay
OS: WinXP, Win98 SE, & sometimes Linux

a little light reading from the wxWidgets 2.6.2 readme: A detailed 2000-page reference manual is supplied in HTML, PDF and Windows Help form: see the docs hierarchy.

mandrav

Quote from: jmccay on July 24, 2005, 09:19:31 PM
   I decided to set my path to the codeblocks bin (C:\Program Files\CodeBlocks\bin) and (C:\Program Files\CodeBlocks\mingw32\bin) and now I get a bunch of duplicate warnings similar to:

../../include/wx/string.h:58: warning: type attributes are honored only at type definition

About the million warnings when compiling wx itself or a wx-based app (talking about wx2.6.1), I found that if you use gcc-3.4.4 they don't appear  :?
Previous C::B-mingw bundles provided gcc-3.4.2 IIRC. The next release, due out any time now, will contain gcc-3.4.4 so these warnings will be history, hopefully.

Yiannis.
Be patient!
This bug will be fixed soon...

kagerato

Quote from: mandrav on July 24, 2005, 10:20:24 PMAbout the million warnings when compiling wx itself or a wx-based app (talking about wx2.6.1), I found that if you use gcc-3.4.4 they don't appear  :?
Previous C::B-mingw bundles provided gcc-3.4.2 IIRC. The next release, due out any time now, will contain gcc-3.4.4 so these warnings will be history, hopefully.

Yiannis.

I was wondering what all that talk about mass warnings was about.  About two weeks ago I compiled wxWidgets with GCC 3.4.x and didn't receive any error or warning messages.  Glad that mystery is solved.