Is wxwidgets.props assumed to be used mostly with the official binaries or is it supposed to be simple yet versatile and supersede including the MSVC-specific setup.h?
Seeing the recent wxwidgets.props-related commit, I have tried using wxwidgets.props (knowing nothing about MSVS properties system) with self-built binaries (I have both static and dynamic ones). As I prefer my paths not to be hard-coded, based on the comment in wxwidgets.props, I edited the .vcxproj file directly, copy-pasting
<Import Project="$(WXWIN)\wxwidgets.props"> right after <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
However, MSVS failed to load the project, complaining about syntax error. I noticed that a closing “ /” was missing before “>”, so I added it. After that, the project loaded successfully but when trying to build it, I ended with
>D:\Dev\Desktop\!Lib\wxWidgets-GIT\wxwidgets.props(111,5): error : wxWidgets libraries not found under "D:\Dev\Desktop\!Lib\wxWidgets-GIT\lib".
My bad, I guess I added the import too early before some required properties were evaluated. I moved the import line to the end of the .vcxproj file and the project built fine. However, when I tried to launch the built program, it complained about wxWidgets DLLs not found. I understand that the dynamic build is the default, but I was not able to figure out how to tell MSVS that I want to use the static build of wxWidgets.
So, is it possible to somehow easily set the build settings ($wxXYZ) per project and per configuration (analogically to defining e.g. WXUSINGDLL or wxCFG when using MSVC-specific setup.h) inside MSVS in the project settings; or, when using the .props file all customizations must be done via including a custom .props file (which seems quite powerful but overly complicated compared to setting the defines, but perhaps it's just me)?
PATH=$(WXWIN)\lib\vc_dll and Merge Environment to Yes. This will ensure that the DLLs are available without modifying the user's PATH variable or copying the DLLs. I think this could be perhaps also set with properties but it has at least one disadvantage: some less experienced programmers may be surprised when they distribute their program (or just launch it outside the IDE) and it won't run because it does not have the wxWidgets DLLs available.P> BTW, it looks as if the *wxwidgets.props* file does not modify Include
P> directories for Resources: Is it by design?
VZ> No, it's supposed to modify them, see ResourceCompile tags. If this....
VZ> This is probably not very important, but you're definitely supposed to see
VZ>the wx paths in the expanded/evaluated value when opening the dialog from
VZ>the field popup. Another way to see the options being actually used is to
VZ>look at the "Command line" in the properties window where the options
VZ>should definitely appear (and if they don't, this means that they're not
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+u...@googlegroups.com
or visit http://groups.google.com/group/wx-users
---
You received this message because you are subscribed to a topic in the Google Groups "wx-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wx-users/NsBx1h7xrYM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wx-users+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/7f70f1e5-3417-475f-b809-315da61e13f2%40googlegroups.com.