Code::Blocks Forums

User forums => Help => Topic started by: code2d on April 29, 2007, 11:38:51 pm

Title: problems with the compiled wxwidgets and code blocks.
Post by: code2d on April 29, 2007, 11:38:51 pm
I finally got around to compiling wxwidgets but I'm still having problems.

I'm running on Windows ME (basically 98) and using Wxwidgets 2.8.3 with the MinGW compiler with a 2 month old ANSI build of code blocks that I downloaded from seth.

This is the way I compiled Wxwidgets.

1.Downloaded Wxwidgets zip and extracted to the c drive so wxwidgets is in the C:\wxWidgets-2.8.3 directory.

2.open a cmd prompt, and navigate to the folder build/msw inside the wxWidgets folder

3.used the following commands in command prompt
Quote
set path=c:\mingw\bin;c:\mingw\mingw32\bin
 mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 clean
 mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0
The last command was about 1 hour long.

4.Opened code blocks and went to file>new>project>wxWidgets project

5.Clicked next and selected 2.8.x>typed project title>next twice>selected C:\wxWidgets-2.8.3
for wxwidgets location>clicked next and left the stock compiler gnu gcc compiler>clicked use wxwidgets dll and wxwidgets is built as a monolithic library>I select no additional libraries

6.One warning come up "a matching debug configuration cannot be found in the wxwidgets directoy you specified this means that debug target of your project will not build"

7.When I build I get the following errors
Quote
-------------- Build: Debug in bla ---------------
Compiling: blaMain.cpp
In file included from C:/wxWidgets-2.8.3/include/wx/defs.h:21,
                 from C:/wxWidgets-2.8.3/include/wx/wxprec.h:13,
                 from C:\My Documents\projects\bla\blaApp.h:13,
                 from C:\My Documents\projects\bla\blaMain.h:13,
                 from C:\My Documents\projects\bla\blaMain.cpp:18:
C:/wxWidgets-2.8.3/include/wx/platform.h:196:22: wx/setup.h: No such file or directory
In file included from C:/wxWidgets-2.8.3/include/wx/platform.h:279,
                 from C:/wxWidgets-2.8.3/include/wx/defs.h:21,
                 from C:/wxWidgets-2.8.3/include/wx/wxprec.h:13,
                 from C:\My Documents\projects\bla\blaApp.h:13,
                 from C:\My Documents\projects\bla\blaMain.h:13,
                 from C:\My Documents\projects\bla\blaMain.cpp:18:
C:/wxWidgets-2.8.3/include/wx/chkconf.h:98:9: #error "wxUSE_DYNLIB_CLASS must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:106:9: #error "wxUSE_EXCEPTIONS must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:114:9: #error "wxUSE_FILESYSTEM must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:122:9: #error "wxUSE_FS_ARCHIVE must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:135:9: #error "wxUSE_DYNAMIC_LOADER must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:143:9: #error "wxUSE_LOG must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:151:9: #error "wxUSE_LONGLONG must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:159:9: #error "wxUSE_MIMETYPE must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:175:9: #error "wxUSE_PRINTF_POS_PARAMS must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:183:9: #error "wxUSE_PROTOCOL must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:225:9: #error "wxUSE_REGEX must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:233:9: #error "wxUSE_STDPATHS must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:241:9: #error "wxUSE_XML must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:249:9: #error "wxUSE_SOCKETS must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:257:9: #error "wxUSE_STREAMS must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:265:9: #error "wxUSE_STOPWATCH must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:273:9: #error "wxUSE_TEXTBUFFER must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:281:9: #error "wxUSE_TEXTFILE must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:297:9: #error "wxUSE_URL must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:305:9: #error "wxUSE_VARIANT must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:325:9: #error "wxUSE_ABOUTDLG must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:333:9: #error "wxUSE_ACCEL must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:341:9: #error "wxUSE_ANIMATIONCTRL must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:349:9: #error "wxUSE_BITMAPCOMBOBOX must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:357:9: #error "wxUSE_BMPBUTTON must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:365:9: #error "wxUSE_BUTTON must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:373:9: #error "wxUSE_CALENDARCTRL must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:381:9: #error "wxUSE_CARET must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:389:9: #error "wxUSE_CHECKBOX must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:405:9: #error "wxUSE_CHOICE must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:413:9: #error "wxUSE_CHOICEBOOK must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:421:9: #error "wxUSE_CHOICEDLG must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:429:9: #error "wxUSE_CLIPBOARD must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:437:9: #error "wxUSE_COLLPANE must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:445:9: #error "wxUSE_COLOURDLG must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:453:9: #error "wxUSE_COLOURPICKERCTRL must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:461:9: #error "wxUSE_COMBOBOX must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:469:9: #error "wxUSE_COMBOCTRL must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:477:9: #error "wxUSE_DATAOBJ must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:485:9: #error "wxUSE_DATAVIEWCTRL must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:493:9: #error "wxUSE_DATEPICKCTRL must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:501:9: #error "wxUSE_DIRPICKERCTRL must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:509:9: #error "wxUSE_DISPLAY must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:517:9: #error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:525:9: #error "wxUSE_FILEDLG must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:533:9: #error "wxUSE_FILEPICKERCTRL must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:541:9: #error "wxUSE_FONTDLG must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:549:9: #error "wxUSE_FONTMAP must be defined."
C:/wxWidgets-2.8.3/include/wx/chkconf.h:557:9: #error "wxUSE_FONTPICKERCTRL must be defined."
Process terminated with status 1 (0 minutes, 24 seconds)
50 errors, 0 warnings

Any ideas...
thanks for the help :?

edit: my svn is 3607
 
Title: Re: problems with the compiled wxwidgets and code blocks.
Post by: stahta01 on April 30, 2007, 12:04:04 am
Try building the release target NOT the debug target. To build the debug target you have to compiled wxWidgets for debug build.

Quote
-------------- Build: Debug in bla ---------------

Tim S
Title: Re: problems with the compiled wxwidgets and code blocks.
Post by: code2d on April 30, 2007, 01:13:56 am
so go through the same steps again but use "BUILD=debug" instead of "BUILD=release"?
Title: Re: problems with the compiled wxwidgets and code blocks.
Post by: stahta01 on April 30, 2007, 02:31:21 am
so go through the same steps again but use "BUILD=debug" instead of "BUILD=release"?

Yeah, you can do that. But, if you just want to build the release version set it to "release" in CB "Build Target" and just build the release.

Tim S
Title: Re: problems with the compiled wxwidgets and code blocks.
Post by: code2d on April 30, 2007, 05:04:40 am
yaaay it compiles. Thanks for the great help!!!

I do have a minor thing I wish I could change. the program's (exe) will not run unless "mingwm10.dll" and "wxmsw28d_gcc_custom.dll" are in the same folder. I does not matter because I have "mingwm10.dll" for code blocks and I just went and got "wxmsw28d_gcc_custom.dll" for lib in wxwidgets.   Is there a way I could could rename these files??? This would be handy but If I cant I'm still very much happy with what I have
Title: Re: problems with the compiled wxwidgets and code blocks.
Post by: stahta01 on April 30, 2007, 05:19:21 am
yaaay it compiles. Thanks for the great help!!!

I do have a minor thing I wish I could change. the program's (exe) will not run unless "mingwm10.dll" and "wxmsw28d_gcc_custom.dll" are in the same folder. I does not matter because I have "mingwm10.dll" for code blocks and I just went and got "wxmsw28d_gcc_custom.dll" for lib in wxwidgets.   Is there a way I could could rename these files??? This would be handy but If I cant I'm still very much happy with what I have

You can change the word "custom" to other words if you want.  If that is what you want use VENDOR=xyz in the wxWidget make and the dll will be "wxmsw28d_gcc_xyz.dll" instead of "wxmsw28d_gcc_custom.dll".

I have been told that if you put "mingwm10.dll" and "wxmsw28d_gcc_custom.dll" in a single folder and have that folder in the PATH environment variable that you will NOT have to copy it with each folder that has the exe. But, I have never done that because I am always creating special wxMSW DLLs and testing would be hard if I did that.

Tim S
Title: Re: problems with the compiled wxwidgets and code blocks.
Post by: parrimin on May 02, 2007, 01:16:18 pm
Hi,
I fixed my problem of building the wxwidget project, but i still have the "wxmsw28_gcc_custom.dll not found" error. I have in the codeblock installed folder the files "wxmsw28u_gcc_cb.dll", and "mingwm10.dll". I thoudht they were the only files i had to extract...

I tried to rename my wxmsw28....dll file to the needed for exec, but it still says it can´t run. I saw there is a "wxmsw28_gcc_custom.dll" in "wxWidget installation folder"/lib, but... where must i copy this file to run?
Title: Re: problems with the compiled wxwidgets and code blocks.
Post by: Biplab on May 02, 2007, 01:26:12 pm
... I saw there is a "wxmsw28_gcc_custom.dll" in "wxWidget installation folder"/lib, but... where must i copy this file to run?

Copy it to the same folder where your exe of wxwidgets project.
Title: Re: problems with the compiled wxwidgets and code blocks.
Post by: parrimin on May 02, 2007, 01:34:25 pm
Thanks for your answer, but... not running. First, it says it cant find "mingwm10.dll". Then i copied this file too, and now it says "The application failed to initialize properly (0xc0000005). Click on OK to terminate the application.

But, I have another question... If I run the app successfully, and i want my project to run in other machines, i have to copy these two files too? There is no manner to avoid this?
Title: Re: problems with the compiled wxwidgets and code blocks.
Post by: Biplab on May 02, 2007, 01:43:06 pm
But, I have another question... If I run the app successfully, and i want my project to run in other machines, i have to copy these two files too? There is no manner to avoid this?

Yes, you've to copy those files. But you can avoid that by compiling wxWidgets as a Static Library.
Title: Re: problems with the compiled wxwidgets and code blocks.
Post by: parrimin on May 02, 2007, 02:10:30 pm
Uff, how can i compile wxWidgets as a Static Library.
I´ll explain what i did, for you to know what i did wrong.
-Unzipped codeblocks in d:\codeblocks.
-Unzipped wxWidgets in d:\wxWidgets.
-Unzipped MinGW in D:\MinGW.
-Unzipped mingwm10.dll & wxmsw28u_gcc_cb.dll in codeblocks folder.
-in cmd:
    - SET PATH=D:\MinGW\bin;D:\MinGW\mingw32\bin
    - in d:\wxWidgets\build\msw mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=release clean
That manner i could select wxWidget project in codeblock but cant built. So:
    - in d:\wxWidgets\build\msw
        - mingw32-make -f makefile.gcc clean
        - mingw32-make.exe -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0

After all that, i discovered i had to built with release target, and built correctly, but can´t execute. You said i have to copy the dll´s where the executable is, so i copied both in:
d:\myProject\bin\Release\
and... thats all.

If you could explain what am i doing wrong please...
and how to compile wxwidgets as a static library
Title: Re: problems with the compiled wxwidgets and code blocks.
Post by: Biplab on May 02, 2007, 02:43:35 pm
If you could explain what am i doing wrong please...
and how to compile wxwidgets as a static library

I don't see anything wrong in ur approach. But why the application fails is a mystery to me.

To build a static wx library, issue the following command.
Code
mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=0 UNICODE=0 BUILD=release
Title: Re: problems with the compiled wxwidgets and code blocks.
Post by: stahta01 on May 02, 2007, 08:16:00 pm
FYI:

If building static, I recommend doing multilib (MONOLITHIC=0) build.
Tim S

Code
mingw32-make -f makefile.gcc MONOLITHIC=0 SHARED=0 UNICODE=0 BUILD=release
Title: Re: problems with the compiled wxwidgets and code blocks.
Post by: parrimin on May 03, 2007, 08:52:27 am
Hey, it´s running!
I´ll explain what I did.
- in d:\wxWidgets\build\msw
        - mingw32-make -f makefile.gcc clean
        - mingw32-make.exe -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=0 clean
        - mingw32-make.exe -f makefile.gcc SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 clean

I don´t know what am i doing when cleaning, and it´s not running, so i cleaned 3 times :lol:
After that, i picked:
- mingw32-make -f makefile.gcc MONOLITHIC=0 SHARED=0 UNICODE=0 BUILD=release

I opened a new wxWidget project, with:
- Use WxWidgets DLL, unchecked,
- wxWidgets is built as a monolithic library, unchecked.
- Enable Unicode, checked.

And a template window project is created. I selecte release target, and it´s built & running OK.

After that I tried to compile the demos included, but... how can i do that. I mean, open a new project, but from existing source. I tried to open directly the files in demos/bombs directory, and it created like a projec t, but when building, it says: wx/setup.h: no such file or directory.
And if i go to build->select target, I can see 16 targets, not just release an debug...

Anybody can explain what´s happening, and how to compile a demo?

Thanks guys
Title: Re: problems with the compiled wxwidgets and code blocks.
Post by: Biplab on May 03, 2007, 10:24:53 am
If you want to compile the demos, then you need to follow same steps. Let's say you want to compile Minimal sample. Go to samples/minimal dir and issue the same command you've used to build wx. So if you've used-
Code
mingw32-make -f makefile.gcc MONOLITHIC=0 SHARED=0 UNICODE=0 BUILD=release
to build wx, then issue the same command inside samples/minimal folder.
Title: Re: problems with the compiled wxwidgets and code blocks.
Post by: parrimin on May 03, 2007, 12:51:28 pm
Ufff, I can´t compile the samples as you say. There are so many errors. Im doing something in the bad way.
I´ve been trying to make run this (codeblocks with wxWidgets) for 3 days! I cant understand how is it so difficult to make running ok the basis to start programming...
I have read this:
http://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_%28MSW%29#Compiling_Code::Blocks (http://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_%28MSW%29#Compiling_Code::Blocks)
I can see in that tutorial, that they are compiling codeblocks to finish.. :shock: I compiled wxWidgets, but not codeblocks, is this a step i have to do? But they say open the project Codeblocks.cbp, but... there isn´t such a file in my computer.
Although, i tried to draw frames with wxSmith, and they are not compiling. These are the errors:
Quote
:: === wxSmith, Release ===
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x470):: undefined reference to `jpeg_resync_to_restart'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x4e9):: undefined reference to `jpeg_std_error'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x53a):: undefined reference to `jpeg_destroy_decompress'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x5b4):: undefined reference to `jpeg_CreateDecompress'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x5d7):: undefined reference to `jpeg_read_header'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x603):: undefined reference to `jpeg_start_decompress'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x642):: undefined reference to `jpeg_finish_decompress'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x64a):: undefined reference to `jpeg_destroy_decompress'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x6ed):: undefined reference to `jpeg_read_scanlines'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x849):: undefined reference to `jpeg_finish_decompress'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x851):: undefined reference to `jpeg_destroy_decompress'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0xa57):: undefined reference to `jpeg_std_error'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0xab8):: undefined reference to `jpeg_destroy_compress'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0xb47):: undefined reference to `jpeg_CreateCompress'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0xba5):: undefined reference to `jpeg_set_defaults'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0xc92):: undefined reference to `jpeg_set_quality'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0xfa7):: undefined reference to `jpeg_start_compress'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x100c):: undefined reference to `jpeg_write_scanlines'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x1038):: undefined reference to `jpeg_finish_compress'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagjpeg.o):imagjpeg.cpp:(.text+0x1046):: undefined reference to `jpeg_destroy_compress'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x50a):: undefined reference to `TIFFClientOpen'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x56a):: undefined reference to `TIFFClientOpen'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x69b):: undefined reference to `TIFFSetWarningHandler'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x6a7):: undefined reference to `TIFFSetErrorHandler'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x9db):: undefined reference to `TIFFSetWarningHandler'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x9e7):: undefined reference to `TIFFSetErrorHandler'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xba8):: undefined reference to `TIFFSetDirectory'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xbbe):: undefined reference to `TIFFClose'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xc1b):: undefined reference to `TIFFGetField'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xc33):: undefined reference to `TIFFGetField'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xc47):: undefined reference to `_TIFFmalloc'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xc94):: undefined reference to `_TIFFfree'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xd19):: undefined reference to `TIFFReadRGBAImage'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xd2f):: undefined reference to `_TIFFfree'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xe37):: undefined reference to `_TIFFfree'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xe3f):: undefined reference to `TIFFClose'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xed4):: undefined reference to `TIFFReadDirectory'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xee1):: undefined reference to `TIFFClose'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xf93):: undefined reference to `TIFFSetField'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xfb4):: undefined reference to `TIFFSetField'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xfd5):: undefined reference to `TIFFSetField'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0xff0):: undefined reference to `TIFFSetField'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x1010):: undefined reference to `TIFFSetField'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x142a):: undefined reference to `TIFFScanlineSize'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x1458):: undefined reference to `TIFFScanlineSize'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x1460):: undefined reference to `_TIFFmalloc'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x148c):: undefined reference to `TIFFDefaultStripSize'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x14a7):: undefined reference to `TIFFSetField'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x157f):: undefined reference to `TIFFWriteScanline'
D:\wxWidgets-2.8.3\lib\gcc_lib\libwxmsw28u_core.a(corelib_imagtiff.o):imagtiff.cpp:(.text+0x18f8):: undefined reference to `TIFFClose'
:: More errors follow but not being shown.
:: Edit the max errors limit in compiler options...
:: === Build finished: 50 errors, 0 warnings ===

Can anybody explain what am I doing wrong?
I`m grateful for your help, Biplab and stahta01, but I'm on the point of giving up...
But, it´s annoying not to be able to make this! I need to see this running please! :lol:
Title: Re: problems with the compiled wxwidgets and code blocks.
Post by: parrimin on May 03, 2007, 01:09:17 pm
Hey, I solved all the errors. When finishing the new project wizard, you have to select all the libraries. Now I only have one error compiling the wxSmith project. It says:
Quote
:: === wxSmith, Release ===
ld.exe:: cannot find -lwxmsw28u_dbgrid
:: === Build finished: 1 errors, 0 warnings ===

I have searched in google, but there is no post?!
Title: Re: problems with the compiled wxwidgets and code blocks.
Post by: stahta01 on May 03, 2007, 03:38:15 pm
Hey, I solved all the errors. When finishing the new project wizard, you have to select all the libraries. Now I only have one error compiling the wxSmith project. It says:
Quote
:: === wxSmith, Release ===
ld.exe:: cannot find -lwxmsw28u_dbgrid
:: === Build finished: 1 errors, 0 warnings ===

I have searched in google, but there is no post?!

If I recall correctly, dbgrid is not compiled by default, un-check it and see if it works.
The other option is to compile it while building wxWidgets.

Tim S