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

Offline zac

  • Multiple posting newcomer
  • *
  • Posts: 27
About wxmsw28u_gcc_custom.dll
« on: September 20, 2007, 09:46:14 am »
Dear all,

I'm trying to create a project using wxWidgets DLL and enable unicode. The issue is, if I want to have a version of wxmsw28u_gcc_xxx.dll instead of wxmsw28u_gcc_custom.dll, like Code:Blocks using wxmsw28u_gcc_cb.dll, how can I configure the project to look up the wxmsw28u_gcc_xxx.dll?

Thanks a lot.

zac

Offline raph

  • Almost regular
  • **
  • Posts: 242
Re: About wxmsw28u_gcc_custom.dll
« Reply #1 on: September 20, 2007, 10:00:39 am »
You need to overwrite the VENDOR variable when compiling wxWidgets.
see build/msw/config.gcc
Quote
# Use this to name your customized DLLs differently
VENDOR := custom

Offline zac

  • Multiple posting newcomer
  • *
  • Posts: 27
Re: About wxmsw28u_gcc_custom.dll
« Reply #2 on: September 20, 2007, 10:26:48 am »
Dear raph,

Sorry, I've not made myself clear. I've already compiled the wxmsw28u_gcc_xxx.dll with the makefile VENDOR=xxx option already. The problem is, when I create a project in Code:Blocks, how can I configure the project to use wxmsw28u_gcc_xxx.dll? (Projects created with the wizard will use wxmsw28u_gcc_custom.dll)

If I copy the wxmsw28u_gcc_xxx.dll to the exe folder and run the exe, it will complain that it cannot find the file wxmsw28u_gcc_custom.dll.

Thanks.

zac

Offline raph

  • Almost regular
  • **
  • Posts: 242
Re: About wxmsw28u_gcc_custom.dll
« Reply #3 on: September 20, 2007, 10:42:26 am »
You need to link against the libwxmsw28u.a being created when you compiled your wxmsw28u_gcc_xxx.dll.
You probably have some wxmsw28u_gcc_custom.dll wxwidgets folder around. Simply adjust the path of the global variable you specified in wxWidget wizard ("wx" by default) to point to wxmsw28u_gcc_xxx.dll wxwidgets folder.

Offline zac

  • Multiple posting newcomer
  • *
  • Posts: 27
Re: About wxmsw28u_gcc_custom.dll
« Reply #4 on: September 21, 2007, 07:14:18 am »
Dear raph,

I've used the default folder of wxWidgets to compiled the wxmsw28u_gcc_xxx.dll and should I change the global variables?

Since when I create a new project with the wizard, it is ok and have the source file created for me. However, when I compiled and run my project, it is still looking for the wxmsw28u_gcc_custom.dll.

Thanks.

zac

Offline zac

  • Multiple posting newcomer
  • *
  • Posts: 27
Re: About wxmsw28u_gcc_custom.dll
« Reply #5 on: September 21, 2007, 08:01:52 am »
Dear all,

Is there anything wrong with my compilation of wxWidgets? I use a cmd file to compile on a XP machine with SP2.  The commands are as follow:-

Code
set path=C:\MinGW\bin;C:\MinGW\mingw32\bin
C:
cd \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=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 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

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=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 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

Thanks.

zac

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7592
    • My Best Post
Re: About wxmsw28u_gcc_custom.dll
« Reply #6 on: September 21, 2007, 02:41:26 pm »
I put all my clean together at the top.

I have no idea what RUNTIME_LIBS=static means in building wxWidgets, so it might be causing an problem.

Tim S

Code
set path=C:\MinGW\bin;C:\MinGW\mingw32\bin
C:
cd \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
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: 7592
    • My Best Post
Re: About wxmsw28u_gcc_custom.dll
« Reply #7 on: September 21, 2007, 02:44:30 pm »
Dear raph,

I've used the default folder of wxWidgets to compiled the wxmsw28u_gcc_xxx.dll and should I change the global variables?

Since when I create a new project with the wizard, it is ok and have the source file created for me. However, when I compiled and run my project, it is still looking for the wxmsw28u_gcc_custom.dll.

Thanks.

zac

Yes, you have to change the wx global variable in order for your wxWidgets to be used.

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 #8 on: September 22, 2007, 07:47:13 am »
Dear Tim,

Since I'm still new in using Code:Blocks (and C++), could you tell me how and what to change?

Thanks a lot.

Regards,

zac

Offline raph

  • Almost regular
  • **
  • Posts: 242
Re: About wxmsw28u_gcc_custom.dll
« Reply #9 on: September 22, 2007, 11:04:43 am »
We highly recommend to read this excellent article about global variables.
You will find them under Settings->Global variables...

raph

Offline zac

  • Multiple posting newcomer
  • *
  • Posts: 27
Re: About wxmsw28u_gcc_custom.dll
« Reply #10 on: September 25, 2007, 02:39:31 am »
Dear Raph,

May be due to my poor English, after studying the recommended article, I still cannot figure out the way to set CB to link to wxmsw28u_gcc_xxx.dll. Could sb kindly list out the steps in setting up the environment for using wxmsw28u_gcc_xxx.dll for me to test with?

Thanks a lot.

Regards,

zac

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7592
    • My Best Post
Re: About wxmsw28u_gcc_custom.dll
« Reply #11 on: September 25, 2007, 04:46:18 am »
Dear Raph,

May be due to my poor English, after studying the recommended article, I still cannot figure out the way to set CB to link to wxmsw28u_gcc_xxx.dll. Could sb kindly list out the steps in setting up the environment for using wxmsw28u_gcc_xxx.dll for me to test with?

Thanks a lot.

Regards,

zac

What is the full path to where you compiled the DLL you wish to use?

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 #12 on: September 25, 2007, 07:04:17 am »
Dear Tim,

The full path for the wxmsw28u_gcc_xxx.dll are K:\DEV\bin\wxWidgets-2.8.4\lib\msw\gcc_dll, K:\DEV\bin\wxWidgets-2.8.4\lib\msw\gcc_lib where K:\DEV\bin\wxWidgets-2.8.4 is also my default wxWidgets installed folder. And I've installed MinGW in K:\DEV\bin\MinGW-5.1.3 and Code::Blocks in K:\DEV\bin\CodeBlocks-1.0.rc.svn.4425.

Thanks a lot.

Regards,

zac

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7592
    • My Best Post
Re: About wxmsw28u_gcc_custom.dll
« Reply #13 on: September 25, 2007, 07:47:52 am »
Set current variable to "wx"
Change the path in "base" to "K:\DEV\bin\wxWidgets-2.8.4\lib\msw\gcc_dll" without the quotes.

Leave "Include", "Lib" and the others blank.

The do a full rebuild of your project/workspace.

Tim S



[attachment deleted by admin]
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 #14 on: September 25, 2007, 08:15:02 am »
Thanks Tim,

However, I still got error when compiling.

Code
:: === wxUseDll, Debug ===
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllApp.h:13: wx/app.h: No such file or directory
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllApp.h:16: error: expected class-name before '{' token
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllMain.h:14: wx/frame.h: No such file or directory
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllMain.h:15: wx/menu.h: No such file or directory
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllMain.h:16: wx/statusbr.h: No such file or directory
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllMain.h:20: error: expected class-name before '{' token
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllMain.h:23: error: expected `)' before '*' token
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllMain.h:29: error: variable or field `OnQuit' declared void
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllMain.h:29: error: expected `;' before '(' token
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllMain.h:30: error: variable or field `OnAbout' declared void
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllMain.h:30: error: expected `;' before '(' token
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllMain.h:40: error: ISO C++ forbids declaration of `wxStatusBar' with no type
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllMain.h:40: error: expected `;' before '*' token
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllMain.h:44: error: ISO C++ forbids declaration of `DECLARE_EVENT_TABLE' with no type
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllMain.h:44: error: expected `;' before '}' token
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllMain.h:44: error: expected `;' before '}' token
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllApp.cpp:14: wx/image.h: No such file or directory
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllApp.cpp:17: error: expected constructor, destructor, or type conversion before ';' token
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllApp.cpp:: In member function `virtual bool wxUseDllApp::OnInit()':
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllApp.cpp:23: error: `wxInitAllImageHandlers' undeclared (first use this function)
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllApp.cpp:23: error: (Each undeclared identifier is reported only once for each function it appears in.)
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllApp.cpp:26: error: no matching function for call to `wxUseDllFrame::wxUseDllFrame(int)'
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllMain.h:20: note: candidates are: wxUseDllFrame::wxUseDllFrame()
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllMain.h:20: note:                 wxUseDllFrame::wxUseDllFrame(const wxUseDllFrame&)
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllApp.cpp:27: error: 'class wxUseDllFrame' has no member named 'Show'
K:\DEV\prj\wx\cb\wxUseDll\wxUseDllApp.cpp:28: error: `SetTopWindow' undeclared (first use this function)
:: === Build finished: 25 errors, 0 warnings ===


I've set the Global Variables to point to K:\DEV\bin\wxWidgets-2.8.4\lib\msw\gcc_dll and all other leave blanks.

Also, if I use the wizard to create a new project, I'll get error saying that wxWidgets' files not found.

Regards,

zac


[attachment deleted by admin]

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: 7592
    • 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: 7592
    • 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: 7592
    • 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: 7592
    • 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: 7592
    • 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: 7592
    • 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: 7592
    • 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