Author Topic: About wxmsw28u_gcc_custom.dll  (Read 24490 times)

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: About wxmsw28u_gcc_custom.dll
« Reply #15 on: September 25, 2007, 08:31:05 am »
The base dir should be the top-most dir containing wxWidgets. Means if you specify the base dir to be C:\foo then the include dir would be C:\foo\include lib-dir would be C:\foo\lib etc.

In your case the base dir should be set to K:\DEV\bin\wxWidgets-2.8.4\
« Last Edit: September 25, 2007, 08:32:38 am by Biplab »
Be a part of the solution, not a part of the problem.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7678
    • My Best Post
Re: About wxmsw28u_gcc_custom.dll
« Reply #16 on: September 25, 2007, 08:38:37 am »
Are you just compiling the release version of the project?
What SVN version are you using?
I will try to do step by step directions on building a new wxWidgets project. Also, I will use same SVN to verify it works.

Tim S
« Last Edit: September 25, 2007, 08:43:48 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7678
    • My Best Post
Re: About wxmsw28u_gcc_custom.dll
« Reply #17 on: September 25, 2007, 08:56:56 am »
The base dir should be the top-most dir containing wxWidgets. Means if you specify the base dir to be C:\foo then the include dir would be C:\foo\include lib-dir would be C:\foo\lib etc.

In your case the base dir should be set to K:\DEV\bin\wxWidgets-2.8.4\

Do this Biplab is right; I was wrong. Been up to long I guess.

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline zac

  • Multiple posting newcomer
  • *
  • Posts: 27
Re: About wxmsw28u_gcc_custom.dll
« Reply #18 on: September 25, 2007, 09:37:44 am »
Dear Tim,

I've not using any SVN, I just download the wxWidgets source and compile by myself using the following command within a cmd file running on a Windows XP SP2 machine,

Code
set path=K:\DEV\bin\MinGW-5.1.3\bin;K:\DEV\bin\MinGW-5.1.3\mingw32\bin
K:
cd K:\DEV\bin\wxWidgets-2.8.4\build\msw
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 VENDOR=xxx clean
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1 VENDOR=xxx clean
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_XRC=1 SHARED=0 RUNTIME_LIBS=static MONOLITHIC=1 BUILD=release UNICODE=1 VENDOR=xxx clean
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_XRC=1 SHARED=0 RUNTIME_LIBS=static MONOLITHIC=1 BUILD=debug UNICODE=1 VENDOR=xxx clean

mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 VENDOR=xxx
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1 VENDOR=xxx
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_XRC=1 SHARED=0 RUNTIME_LIBS=static MONOLITHIC=1 BUILD=release UNICODE=1 VENDOR=xxx
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_XRC=1 SHARED=0 RUNTIME_LIBS=static MONOLITHIC=1 BUILD=debug UNICODE=1 VENDOR=xxx

With the above command, I think I have compiled both the release and debug version of the library as I can find the wxmsw28u_gcc_xxx.dll and wxmsw28ud_gcc_zac.dll under K:\DEV\bin\wxWidgets-2.8.4\lib\msw\gcc_dll folder.

Biplab, I have changed the global variable settings to have base pointed to K:\DEV\bin\wxWidgets-2.8.4, include pointed to K:\DEV\bin\wxWidgets-2.8.4\include and lib pointed to K:\DEV\bin\wxWidgets-2.8.4\lib, but I got error when using the wizard to create a new project. This back to the original question of how to make CB to use the wxmsw28u_gcc_xxx.dll as CB seems to look for wxmsw28u_gcc_custom.dll instead.

Regards,

zac


[attachment deleted by admin]

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7678
    • My Best Post
Re: About wxmsw28u_gcc_custom.dll
« Reply #19 on: September 25, 2007, 10:46:06 am »
I meant in the Code::Blocks "Help" -> "About" what SVN number is it?
Mine is 4486.

Please turn on full command line reporting by
"Settings" -> "Compiler and Debugger"
Select "Other" Tab
Change "Compiler Logging" to "Full Command Line"

Do a re-build of your project and post the "Build Log"

Tim S
« Last Edit: September 25, 2007, 11:08:56 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline zac

  • Multiple posting newcomer
  • *
  • Posts: 27
Re: About wxmsw28u_gcc_custom.dll
« Reply #20 on: September 27, 2007, 02:42:13 am »
Dear Tim,

I'm using SVN4425 build Aug 28 2007, 22:11:52 - wx2.8.4 (Windows, unicode).

After change the "Compiler Logging" to "Full Command Line", I've got the following building messages:

Code
:: === wxUseDll, Release ===
K:\DEV\bin\wxWidgets-2.8.4\include\wx\platform.h:196: wx/setup.h: No such file or directory
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:98: #error "wxUSE_DYNLIB_CLASS must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:106: #error "wxUSE_EXCEPTIONS must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:114: #error "wxUSE_FILESYSTEM must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:122: #error "wxUSE_FS_ARCHIVE must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:135: #error "wxUSE_DYNAMIC_LOADER must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:143: #error "wxUSE_LOG must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:151: #error "wxUSE_LONGLONG must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:159: #error "wxUSE_MIMETYPE must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:175: #error "wxUSE_PRINTF_POS_PARAMS must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:183: #error "wxUSE_PROTOCOL must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:225: #error "wxUSE_REGEX must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:233: #error "wxUSE_STDPATHS must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:241: #error "wxUSE_XML must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:249: #error "wxUSE_SOCKETS must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:257: #error "wxUSE_STREAMS must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:265: #error "wxUSE_STOPWATCH must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:273: #error "wxUSE_TEXTBUFFER must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:281: #error "wxUSE_TEXTFILE must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:297: #error "wxUSE_URL must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:305: #error "wxUSE_VARIANT must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:325: #error "wxUSE_ABOUTDLG must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:333: #error "wxUSE_ACCEL must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:341: #error "wxUSE_ANIMATIONCTRL must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:349: #error "wxUSE_BITMAPCOMBOBOX must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:357: #error "wxUSE_BMPBUTTON must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:365: #error "wxUSE_BUTTON must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:373: #error "wxUSE_CALENDARCTRL must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:381: #error "wxUSE_CARET must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:389: #error "wxUSE_CHECKBOX must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:405: #error "wxUSE_CHOICE must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:413: #error "wxUSE_CHOICEBOOK must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:421: #error "wxUSE_CHOICEDLG must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:429: #error "wxUSE_CLIPBOARD must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:437: #error "wxUSE_COLLPANE must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:445: #error "wxUSE_COLOURDLG must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:453: #error "wxUSE_COLOURPICKERCTRL must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:461: #error "wxUSE_COMBOBOX must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:469: #error "wxUSE_COMBOCTRL must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:477: #error "wxUSE_DATAOBJ must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:485: #error "wxUSE_DATAVIEWCTRL must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:493: #error "wxUSE_DATEPICKCTRL must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:501: #error "wxUSE_DIRPICKERCTRL must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:509: #error "wxUSE_DISPLAY must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:517: #error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:525: #error "wxUSE_FILEDLG must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:533: #error "wxUSE_FILEPICKERCTRL must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:541: #error "wxUSE_FONTDLG must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:549: #error "wxUSE_FONTMAP must be defined."
K:\DEV\bin\wxWidgets-2.8.4\include\wx\chkconf.h:557: #error "wxUSE_FONTPICKERCTRL must be defined."
:: More errors follow but not being shown.
:: Edit the max errors limit in compiler options...
:: === Build finished: 50 errors, 0 warnings ===

Thanks.

Regards,

zac

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7678
    • My Best Post
Re: About wxmsw28u_gcc_custom.dll
« Reply #21 on: September 27, 2007, 04:06:59 am »
I need to see the "Build Log" not the "Build Messages"

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: About wxmsw28u_gcc_custom.dll
« Reply #22 on: September 27, 2007, 05:52:39 am »
Biplab, I have changed the global variable settings to have base pointed to K:\DEV\bin\wxWidgets-2.8.4, include pointed to K:\DEV\bin\wxWidgets-2.8.4\include and lib pointed to K:\DEV\bin\wxWidgets-2.8.4\lib, but I got error when using the wizard to create a new project. This back to the original question of how to make CB to use the wxmsw28u_gcc_xxx.dll as CB seems to look for wxmsw28u_gcc_custom.dll instead.

Wizard looks for appropriate (import) libraries. So if you provide the following information to the wizard:
Shared= true, Unicode = true, Monolithic = true, $(#wx)=C:\foo then wizard will look for-
  • C:\foo\lib\gcc_dll\libwxmsw28ud.a for Debug configuration
  • C:\foo\lib\gcc_dll\libwxmsw28u.a for Release configuration

This ensures that you have the proper libraries installed.

I guess in your case a libwxmsw28u.a file exists in your C:\MinGW\lib folder. That could be the cause that despite you provide link to the new import library it tries to load old dll.


BTW, the errors you have posted shows that there is no setup.h file inside K:\DEV\bin\wxWidgets-2.8.4\lib\gcc_dll\mswu\wx folder. Which also means that there is no library inside K:\DEV\bin\wxWidgets-2.8.4\lib\gcc_dll\ folder. :)
Be a part of the solution, not a part of the problem.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7678
    • My Best Post
Re: About wxmsw28u_gcc_custom.dll
« Reply #23 on: September 27, 2007, 06:25:01 am »
I have uploaded what I did to test SVN 4425 to this file "wxWidgets project using SVN 4425.7z"
On http://www.savefile.com/projects/1039215

Please try these directions and see if it works for you.

If they don't, I still need the "Build Log"  to figure out what is going wrong.

Tim S
« Last Edit: September 27, 2007, 06:46:51 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline zac

  • Multiple posting newcomer
  • *
  • Posts: 27
Re: About wxmsw28u_gcc_custom.dll
« Reply #24 on: September 27, 2007, 07:02:33 am »
Dear Tim,

Where can I find the "Build Messages"?

Regards,

zac

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7678
    • My Best Post
Re: About wxmsw28u_gcc_custom.dll
« Reply #25 on: September 27, 2007, 07:07:06 am »
Use F2 Key to bring up or close down the "Message" Window.
It has several tabs.

Right clicking on a Tab will bring up a menu to show tabs not being displayed.

I need to see the "Build Log" results to figure out the cause of the problem.

The two tabs farthest right are normally the "Build Log" and "Build Messages"

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline zac

  • Multiple posting newcomer
  • *
  • Posts: 27
Re: About wxmsw28u_gcc_custom.dll
« Reply #26 on: September 27, 2007, 07:09:21 am »
Dear Biplab,

I cannot find any libwxmsw28u.a files under K:\DEV\bin\MinGW-5.1.3\lib. And yes, I cannot find setup.h inside K:\DEV\bin\wxWidgets-2.8.4\lib\gcc_dll\mswu\wx. So, should I recompile wxWidgets?

I'll use the following to recompile once more to see any difference.
Code
set path=K:\DEV\bin\MinGW-5.1.3\bin;K:\DEV\bin\MinGW-5.1.3\mingw32\bin
K:
cd \DEV\bin\wxWidgets-2.8.4\build\msw

mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_OPENGL=1 USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 VENDOR=xxx clean
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_OPENGL=1 USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1 VENDOR=xxx clean
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_OPENGL=1 USE_XRC=1 SHARED=0 RUNTIME_LIBS=static MONOLITHIC=1 BUILD=release UNICODE=1 VENDOR=xxx clean
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_OPENGL=1 USE_XRC=1 SHARED=0 RUNTIME_LIBS=static MONOLITHIC=1 BUILD=debug UNICODE=1 VENDOR=xxx clean

mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_OPENGL=1 USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 VENDOR=xxx
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_OPENGL=1 USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1 VENDOR=xxx
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_OPENGL=1 USE_XRC=1 SHARED=0 RUNTIME_LIBS=static MONOLITHIC=1 BUILD=release UNICODE=1 VENDOR=xxx
mingw32-make -f makefile.gcc USE_GUI=1 USE_HTML=1 USE_ODBC=1 USE_OPENGL=1 USE_XRC=1 SHARED=0 RUNTIME_LIBS=static MONOLITHIC=1 BUILD=debug UNICODE=1 VENDOR=xxx

Thanks.

Regards,

zac

Offline zac

  • Multiple posting newcomer
  • *
  • Posts: 27
Re: About wxmsw28u_gcc_custom.dll
« Reply #27 on: September 27, 2007, 07:10:51 am »
Thanks Tim,

I'll try again, also with your project file, after I re-compile the wxWidgets libraries.

Regards,

zac

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7678
    • My Best Post
Re: About wxmsw28u_gcc_custom.dll
« Reply #28 on: September 27, 2007, 07:19:08 am »
Yes, try again after you get the setup.h in the folder "K:\DEV\bin\wxWidgets-2.8.4\lib\gcc_dll\mswu\wx"

It should be created by the "mingw32-make -f makefile.gcc" commands without the clean target.

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline zac

  • Multiple posting newcomer
  • *
  • Posts: 27
Re: About wxmsw28u_gcc_custom.dll
« Reply #29 on: September 27, 2007, 10:04:51 am »
Thanks Tim and Biplab,

I finally made it.

I think it is the compiling of wxWidgets command causing some of the files being erased after compiling (Previously I perform a clean for each type of library being compiled, and this time, I've moved all the clean target at top of my cmd file for compilation).

Many thanks for your patients to teach me step by step.

Thanks again for all of you have contributed to my post.

Regards,

zac