Giter Club home page Giter Club logo

wxmaterialdesignartprovider's Issues

error compiling on Visual Studio 2022

Hello

Is this supported on Visual Studio?
When I try to compile with VS2022, I get a number of C2026 errors on wxSimpleIconsArt.hpp, e.g.

1>C:\dev\wxMaterialDesignArtProvider\MaterialDesign\wxSimpleIconsArt.hpp(3615,1): error C2026: string too big, trailing characters truncated

indicating that string literals are too long.

Kind regards

Question about Windows build, where is your "wx-config.exe"?

Hi, I just see this:

		<Compiler>
			<Add option="-std=c++11" />
			<Add option="`wx-config --cflags`" />
		</Compiler>
		<Linker>
			<Add option="`wx-config --libs`" />
		</Linker>

Which looks like you need a "wx-config.exe" under Windows?

If that is correct, how does the "wx-config.exe" know about the wxWidgets library's location?

For me, under Windows + Code::Blocks, I use this kind of setting:

asmwarrior/cb_projects_for_wxWidgets: Code::Blocks projects for building wxWidgets sample code

With such kinds of setting, I can either build a wx project against the wx library from msys2 or my self built wx library.

Build errors

1>D:\usbip-win2\userspace\wxMaterialDesignArtProvider\MaterialDesign\wxMaterialDesignArtProvider.cpp(16,9): error C2678: binary '==': no operator found which takes a left-hand operand of type 'const wxArtClient' (or there is no acceptable conversion)
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\shared\guiddef.h(192,15):
1>could be 'bool operator ==(const GUID &,const GUID &)'
1>	D:\usbip-win2\userspace\wxMaterialDesignArtProvider\MaterialDesign\wxMaterialDesignArtProvider.cpp(16,9):
1>	'bool operator ==(const GUID &,const GUID &)': cannot convert argument 1 from 'const wxArtClient' to 'const GUID &'
1>		D:\usbip-win2\userspace\wxMaterialDesignArtProvider\MaterialDesign\wxMaterialDesignArtProvider.cpp(16,9):
1>		Reason: cannot convert from 'const wxArtClient' to 'const GUID'
1>		D:\usbip-win2\userspace\wxMaterialDesignArtProvider\MaterialDesign\wxMaterialDesignArtProvider.cpp(16,9):
1>		No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
1>D:\usbip-win2\packages\wxWidgets.3.2.2.1\include\wx\windowid.h(138,13):
1>or       'bool operator ==(long,const wxWindowIDRef &)'

My project defines wxNO_IMPLICIT_WXSTRING_ENCODING, that's the reason.
All comparisons like if (client == wxART_CLIENT_MATERIAL_FILLED) must be done as
if (client == wxASCII_STR(wxART_CLIENT_MATERIAL_FILLED))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.