Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
New Variable to support wx-config in MSys2 MinGW
stahta01:
Thanks for putting the directions needed together. And, one more person confirms the wxWidgets 3.2 package works.
Tim S.
BlueHazzard:
Can you put this in the wiki?
stahta01:
--- Quote from: BlueHazzard on August 14, 2022, 06:20:35 pm ---Can you put this in the wiki?
--- End quote ---
I am creating more CB projects; once I am done will see if I still can edit the wiki.
Tim S.
AndrewCot:
I have come across two issues as described below:
WX_CONFIG Library usage
Cannot build SDK target using what I think is the standard using the library linker tag as follows:
You cannot use the following
<Add library="`$(WX_CONFIG) --libs std,aui,propgrid`" />
You need to use this
<Add option="`$(WX_CONFIG) --libs std,aui,propgrid`" />
Because the library code does not work with the wx_config results correctly. Another issue is that when using the wx_config as an option the libraries are included in the link command order like they are options and not libraries. The work around in Tim's CodeBlocks_wx32-msys2.zip project is to specify libraries that need to be included before the wxWidgets libraries as an option like:
<Add option="-lwxscintilla_cb" />
Does anyone know if there is a way to use the library tags instead of option tags? I could not find any way of doing this with the current code that I looked at, but I may not have looked in the right place.
Additional Paths issue and potential changes required:
When you include $(TARGET_COMPILER_DIR)../usr/bin in the "Additional Paths" option in the global Compiler setting then on Windows any existing project that includes the zip command in the <ExtraCommands /> you will need to change the directory delim '\' to '/' if you are using the '/' delim as you will now use the MSYS2 usr/bin/zip instead of your existing windows zip file.
stahta01:
--- Quote from: AndrewCot on August 15, 2022, 04:50:42 am ---I have come across two issues as described below:
WX_CONFIG Library usage
Cannot build SDK target using what I think is the standard using the library linker tag as follows:
You cannot use the following
<Add library="`$(WX_CONFIG) --libs std,aui,propgrid`" />
You need to use this
<Add option="`$(WX_CONFIG) --libs std,aui,propgrid`" />
--- End quote ---
I see no difference between what you say works and not works.
Oops I see it now.
Tim S
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version