Author Topic: Problems with wxWidgets Applications  (Read 12935 times)

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: Problems with wxWidgets Applications
« Reply #15 on: January 27, 2006, 10:34:28 pm »
RKCole
we can try another 100 guesses or just look what's wrong, it's up to you :)

when you get a linker error like wxmsw26 not found, it's unlikely that the pch has something to do with

[addendum]
please post the exact version of CodeBlocks you are using

go to Help->About->Information-tab and post what is written there
« Last Edit: January 27, 2006, 10:41:16 pm by tiwag »

Offline RKCole

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: Problems with wxWidgets Applications
« Reply #16 on: January 27, 2006, 10:46:50 pm »
I agree, tiwag.  Thanks for the help.

[attachment deleted by admin]

Offline RKCole

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: Problems with wxWidgets Applications
« Reply #17 on: January 27, 2006, 10:52:43 pm »
Sorry, missed the addendum.

Code::Blocks version 1.0 RC2
Build: Oct 24 23:49:28 - wx-2.6.1 (Windows, ANSI)

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: Problems with wxWidgets Applications
« Reply #18 on: January 27, 2006, 11:12:03 pm »
ok - i ran your project with CodeBlocks 1.0RC2 and beside the fact, that i have my wxWidgets installed in D:\wx262 and therefore adjusted the custom variable WX_DIR to my needs, your project built perfectly. ( using Build->Rebuild or Ctrl-F11 )

can you please look, what files you have in your
C:\wxWidgets-2.6.2\lib\gcc_dll
directory ?

post the output-file (mylibs.txt) of
dir C:\wxWidgets-2.6.2\lib\gcc_dll > mylibs.txt

which you run in a command window

Offline RKCole

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: Problems with wxWidgets Applications
« Reply #19 on: January 27, 2006, 11:26:14 pm »
In the gcc_dll folder there is a folder called "msw" with a "build.cfg" file in it.  There is a folder in this directory called "wx" with the "setup.h" file in it.  I did not see a mylibs.txt file, though.

sethjackson

  • Guest
Re: Problems with wxWidgets Applications
« Reply #20 on: January 27, 2006, 11:29:17 pm »
In the gcc_dll folder there is a folder called "msw" with a "build.cfg" file in it.  There is a folder in this directory called "wx" with the "setup.h" file in it.  I did not see a mylibs.txt file, though.

He means run this in the command prompt (he says to in the last line of his post).  :wink:

Code: [Select]
dir C:\wxWidgets-2.6.2\lib\gcc_dll > mylibs.txt
« Last Edit: January 27, 2006, 11:30:53 pm by sethjackson »

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: Problems with wxWidgets Applications
« Reply #21 on: January 27, 2006, 11:35:27 pm »
He means run this in the command prompt (he says to in the last line of his post).  :wink:

Code: [Select]
dir C:\wxWidgets-2.6.2\lib\gcc_dll > mylibs.txt
exactly , thx seth !

sethjackson

  • Guest
Re: Problems with wxWidgets Applications
« Reply #22 on: January 27, 2006, 11:36:42 pm »
He means run this in the command prompt (he says to in the last line of his post).  :wink:

Code: [Select]
dir C:\wxWidgets-2.6.2\lib\gcc_dll > mylibs.txt
exactly , thx seth !

Yeah. np  8) I almost missed that you said to run in command prompt myself.  :P

Offline RKCole

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: Problems with wxWidgets Applications
« Reply #23 on: January 27, 2006, 11:44:12 pm »
Sorry guys...guess I'm not fully here today...Have had a headache all day...

[attachment deleted by admin]

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: Problems with wxWidgets Applications
« Reply #24 on: January 27, 2006, 11:48:14 pm »
i don't wonder, why your project doesn't build,

you don't have any wxWidgets library at all in your libs directory

Volume in drive C has no label.
 Volume Serial Number is 4C72-D410

 Directory of C:\wxWidgets-2.6.2\lib\gcc_dll

01/27/2006  03:42 PM    <DIR>          .
01/27/2006  03:42 PM    <DIR>          ..
01/27/2006  03:20 PM    <DIR>          msw
               0 File(s)              0 bytes
               3 Dir(s)  71,395,835,904 bytes free



[edit]

in your case, ANSI build only, it should look like

Directory of C:\wxWidgets-2.6.2\lib\gcc_dll

2005.12.30  01:07    <DIR>          .
2005.12.30  01:07    <DIR>          ..
2006.01.01  17:25    <DIR>          msw
2006.01.01  17:27           158.734 libwxexpat.a
2006.01.01  17:26           146.784 libwxjpeg.a
2006.01.01  17:52        13.106.452 libwxmsw26.a
2006.01.01  17:26           169.592 libwxpng.a
2006.01.01  17:26            79.110 libwxregex.a
2006.01.01  17:26           327.646 libwxtiff.a
2006.01.01  17:26            73.036 libwxzlib.a
2006.01.01  17:53         9.577.786 wxmsw26_gcc.dll



[edit2]
if you have the wxwidgets object files still on your harddisk,
open a command prompt,
navigate to
C:\wxWidgets-2.6.2
and run the make process again
cd build\msw
mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 USE_XRC=1 UNICODE=0


this will rebuild the libraries
« Last Edit: January 28, 2006, 12:08:12 am by tiwag »

Offline RKCole

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: Problems with wxWidgets Applications
« Reply #25 on: January 28, 2006, 12:00:23 am »
That's odd...I wonder what happened...Everything worked just fine yesterday...

Should I just try to build wxWidgets again and see what the result is?

Thanks for taking the time to help me with this.


Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: Problems with wxWidgets Applications
« Reply #26 on: January 28, 2006, 12:03:27 am »
maybe you ran a "make clean" on your wxWidgets, this deletes all output files


Offline RKCole

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: Problems with wxWidgets Applications
« Reply #27 on: January 28, 2006, 12:13:36 am »
I may have...I will give this another try and post back later.

Thanks for all of the help, tiwag.

Offline RKCole

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: Problems with wxWidgets Applications
« Reply #28 on: January 28, 2006, 03:49:00 am »
I believe that tiwag was correct in me running a "make clean" command.  I'm very unfamiliar with working with MingW in the command prompt, so I believe this was the cause of the problem.

Everything is working just fine now.

Thanks for all of the help.

Take care.