For anyone looking to get up and running with wxWidgets in visual studio - THIS IS THE RIGHT SERIES! After spending a bunch of time sifting through outdated/incomplete wxWidgets documentation and other inconsistent youtube walkthroughs, finding this is a relief. Everything is clearly explained and works perfectly. Thanks a lot, great work!
@@poggarzz You need to link your project to wxWidgets. Doing so will be different if you use a text editor. Once you figure that out you can follow the rest of the series no problem 😊
Not only you have helped in installing wxWidgets here, you have made concept of libraries very clear for me. Thanks for your amazing video! Short and complete!
*Having Problems?* *Project Setup* Go to Properties -> C/C++ -> Preprocessor and check the "Preprocessor Definitions". Here you should have the flag "_UNICODE". For me it was there by default, if it is missing you have to add it explicitly. There is also an easier more convenient way to setup a wxWidgets project. I cover it in this video: ruclips.net/video/urIpZnCTeKw/видео.html *Building the library* The wxWidgets solution file MUST match the version of Visual Studio you are using. Make sure you are using the right one: wx_vc17 - Visual Studio 2022 wx_vc16 - Visual Studio 2019 wx_vc15 - Visual Studio 2017 wx_vc14 - Visual Studio 2015
@@atlantic_love I don't think you can but I'm very new to comp sci so I could be wrong. My thought process is that wxWidgets uses features of the Microsoft visual C++ compiler so unless codeblocks let's you use other compilers etc, I don't think you can. If codeblocks does let you choose a compiler, you would need to look up how to switch it to use the correct compiler as wxWidgets, and anything else that wxWidgets needs. As far as adding the library, codeblocks should have plenty of documentation on how to do it. It's basically the same process but the menus are different
@@atlantic_loveit has to be that way though, at the end of the day digital information is all binary. There are different levels of programming. Assembly Language for example pets you control more of the code like where in memory data gets stored but it's super complex whereas c++ has less control over what you can do. The less complex it is the less you can do. Since everything ends up getting translated to binary, there really isn't any way to make an easy to use language that you can use to program anything you would be able to in binary
@@atlantic_love I've recently learned that wxWidgets provides a property sheet that you can use to setup a project much faster. You can see the approach in this video: ruclips.net/video/urIpZnCTeKw/видео.html 😊
Beautiful! This is very exciting to be setting up a cross-platform GUI dev project! Very well explained with important terminology and the pacing and steps are informative, yet not too informative
Man, i must say thank you, out of every video, yours is the only one that actually worked. I subscribe immediately. Just a few questions, hope you dont mind. Why is it that other guides indicate that you must modify the preprocessor definitions under the c++ tab? Is there any advantage on using the precompiled wxwidgets dlls/headers on the site? Is their setup similar to the manually built ones? God bless.
Thank you! I'm glad it worked. You are always welcome to ask questions, I will try my best to answer them. There are a few symbols that should be defined for the C++ preprocessor in some cases. They are __WXMSW__, _UNICODE, NDEBUG, WXUSINGDLL. __WXMSW__ ensures that wxWidgets uses the correct port (i.e. it is not trying to build a Mac GUI on Windows for example). However, it seems to be defined without you having to do anything. _UNICODE is also defined by default. You can see that under the C++ tab. NDEBUG should be defined for Release configuration and it is by default. You can also see that under the C++ tab. WXUSINGDLL should only be defined if you are using DLLs. In this video we use static libraries instead. The only advantage to using the precompiled binaries (DLLs) is that the setup should be easier. wxWidgets recommend that you build the library from source, just like we did in this video. I hope that makes sense 😀
i hope that by now you might have realized that you may have been using visual studio code when you needed visual studio (they are different and have major differences)
Very instructive video, thank you. Do you think that those instructions can be followed to install wxWidgets on Visual Studio Code and Eclipse CDT as well?
I think you'd have to use Visual Studio build tools for C/C++ from the developer command prompt to have that work. I don't know how to even install the build tools alone so I'm not sure.
thank you for the tutorial i tried many other tutorials and they used anything else instead of empty project but that tutorial seems like straightfoward at least for now
6:52 For some reason i do not have any Linker there. I only have the Configuartion Properties and C/C++ . I swear there is always something that throws me off. IT can never go smoothly for me.
Thanks bro, i spent a 2 days trying to install first on gcc, and one day on vs and that short video show me how to do it on static. (and instead building x86 and x64 +debug, release you can use batch build and select all)
I'm afraid that the evaluated values screen for $(WXWIN)\include are not producing the same results as in the video. It just says \include and \include\msvc before %(AdditionalIncludeDirectories)
Hi. Your instructions are very helpful and I'm able to do this on my virtual Windows machine. However, I want to use my MacBook for more convenience. Are there any ways I can do this on VSCode for Mac? Thank you very much ❤
My dumbass literally commenting error message i had until i dropped it to chatgpt and appearently i was not listening. Thank you for making me a little more tech literate.
Ahtung!!! For those who can not build check following: Properties -> Configuration properties -> Advanced -> Character Set. And change this field to "Use Unicode Character Set"
Would you mind sending your entire project to ottobotcodehelp@gmail.com? It can be as a zip or github link. I'll take a look and hopefully find the problem for you.
Hey bro please help me I am using the new vs code and I don't see any debug, build, release, win32 etc options. What should I do to use the vs code solution file
I was getting the 'cannot open source file error' and I realized after an hour that the reason was simply because there was no 'mswud' inside the 'lib' folder, because I didn't build the debug version for x64, but just the release version! Hope this helps if someone is having the same problem
I have to link to a static 32-bit library, so need a c/cpp gui that can build into 32-bit. I've tried Visual Studio Community 2022 (Win10x64) with the NAppGUI library, but could only get it to build x64.. not x32. "LNK1112 module machine type 'x86' conflicts with target machine type 'x64'" Then I tried a 32-bit console program using Tk ( ActiveState's ActiveTcl or from Sourceforge) + Boost and setting the include path to the Tcl/Tk directories (C:\Tcl\include and cpptk_h and cpptk_cc files cpptkbase.h and cpptkbase_cc ). I'm sure I'm doing something wrong but same kind of error. How easy is it to build a 32-bit executable using C++/wxWidgets?
Thanks. This is the third video I have watched but, the first one that worked. It took me three times but I got it. I need to slow down and pay more attention. A personal problem I know. But thanks.
When I try to build the debug x64 version ( debug and release of win32 build OK) of wxWidgets 3.2.4 using wx_vc17 - in Visual Studio 2022 (Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.9.4) I get an unsuccessful build. It mentions error C1083: Cannot open include file: 'wx/setup.h': No such file or directory multiple times.
When I am trying to open the .sln file, it isnt showing me any version to open it. I have the latest vs code and the Im trying to open the vc17 file. Please help
I am getting an error that says cannot open file '$(WXWIN)\lib\vc_lib.obj'. Yet it recognizes all my include line #include . At least there is no red squiggly line under the includes relating to wxwidgets. How can I get past this error message at build time?
did you try building the all the configurations, for what ever reason static won't build for me. It seems everyone always just builds the x86 dll one..(other videos I have watched)
Hello dear brother, your videos are very informative, thank you for this. I have a question for you. Can I develop my own desktop application using the method you showed? For example, I want to make a simple application that calculates the acceleration of an object under the influence of the applied force (for example). This app needs to be downloadable for everyone. Is the path you showed suitable for this? If not can you guide me?
HELP! I NEED HELP! I'm tryingto install the latest version of wxWidgets to use with Red Panda DevC++ compiler. I compiled the library from source & the "samples/minimal" example from the command line. My problem is getting anything to work in the Red Panda DevC IDE I'm having the same problem with my Embarcadero IDE!
Frankly I left embarcadero because it is just a mess when it comes to compatiblity, it has all kind of issues when working with external libraries, you are better off using visual studio.
I used to do a lot of programming using wxWidgets, but never with Microsoft Visual Studio. This looks so easy, but I couldn't get it to work. I think the libraries are built with different folder names (it builds out "Libraries -> wxWidgets-3.1.5 -> lib -> vc_lib -> mswu" and "Libraries -> wxWidgets-3.1.5 -> lib -> vc_lib -> mswud") maybe the 'u' in the path name is unicode? When I go to build the sample application I get errors like this...[cannot open source file "../../../lib/vc_lib/mswd/wx/setup.h"]. It is trying to find the files in mswd instead of mswu. I am not sure what to change to get this to work. Am I missing an include directive? A path? Any thoughts?
I also have the folders "mswu" and "mswud" NOT "msw" and "mswd". The sample application on your machine is trying to find the files in the wrong directory. Go to Properties -> C/C++ -> Preprocessor and check out the "Preprocessor Definitions". Here you should have the flag "_UNICODE". For me it is there by default, so I didn't have to add it explicitly. If I remove "_UNICODE" then I get errors similar to yours. Let me know if this fixes the problem!
@@OttoBotCode Adding that flag got rid of the compile errors. Now I am getting a link error 'LNK1104 cannot open file 'wxbase31ud.lib'. Do I have to tell the linker somehow this is unicode as well?
I got it. I changed the linker path to '$(wxwin)\lib\vc_lib', removing the 'mswd' part from the end of the path name. After that I got a successful compile and link. Thanks for the helpful video and for the advice on adding that unicode flag.
I'd love to help! Send your entire project (github link is fine) and the error you get to ottobotcodehelp@gmail.com. Then I'll take a look and see if I can figure out what is wrong ☺️
I followed this video. It was really helpful. Is there anything to be aware of for like the future? Like do I need to undo what I did when following your video if I want to use other libraries that aren't wxWidgets, or when coding in a different langauge or something like that? I'm learning this stuff for the first time, so I'm guessing this is a stupid question, but i reallly want to be sure
Everything here is specific to C++ and the wxWidgets GUI library. If you want to write C++, and don't need any third party libraries, all you have to do (on Windows) is create a blank project in Visual Studio and start writing code. Other C++ libraries will have their own installation process that may or may not be similar to the one for wxWidgets. Other programming languages like C# and Python have other means of creating projects and using libraries. It is typically much simpler than what you see here. I hope this helps!
Great tutorial. However, I am not seeing visual studios solution files inside the build >msw folder. I am running Windows 10 and I have VS Code install. I use it for my other coding.
@@OttoBotCode You are a life saver. I want to create a small project for scholars. They will just need to cross the correct answer for given numbers, what is their gcd and lcm. Your tutorials on gui are very useful specially since they are for cross platforms.
Unfortunately I ran into the following linker error: error LNK2019: unresolved external symbol WinMain referenced in function "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ) I have followed all the steps from the video. The only differences between my setup und the one presented in the tutorial are versions (I have VS 2022 and wxWidgets-3.2.5). Could somebody help me?
i'm installing on Visual Studio 2022 using the wx_vc17 file, but I'm getting 43 errors and 2 warnings when I Build Solution, all the errors are similar: C1083 Não é possível abrir arquivo incluir: 'wx/setup.h': No such file or directory
I assume you are getting these errors in your wxWidgets project, not when building the library from source. The error is telling you that it cannot find wx/setup.h, which is a header file. Can you double-check that you have "$(WXWIN)\include\msvc" under "Additional Include Directories"?
Hello, Gabriel. It happened to me as well, and I think it was because the Topaz OFD / Warsaw program (which is used for internet bank account protection) blocks the creation of the setup.h file. I fixed this problem by uninstalling the Warsaw program.
Finally A Person Who Talks About GUI Programming I Dont Know Why There Is No Other Courses Like Yours👍
after 2 days of trying to figure it out through many different tutorials yours is the first that actually got it working! Thanks!
Great to hear! Thanks for the comment 👍
For anyone looking to get up and running with wxWidgets in visual studio - THIS IS THE RIGHT SERIES!
After spending a bunch of time sifting through outdated/incomplete wxWidgets documentation and other inconsistent youtube walkthroughs, finding this is a relief. Everything is clearly explained and works perfectly. Thanks a lot, great work!
Awesome to hear. Thank you for the kind words!
@@OttoBotCode can i follow along without an IDE? because my computer isn't powerful enough to run visual studio
@@poggarzz You need to link your project to wxWidgets. Doing so will be different if you use a text editor. Once you figure that out you can follow the rest of the series no problem 😊
@@OttoBotCode thank you for the suggestion 😁
Man, I didn't expect so many steps, at least it worked flawlessly.
Not only you have helped in installing wxWidgets here, you have made concept of libraries very clear for me. Thanks for your amazing video! Short and complete!
Awesome! Thank you 😀
*Having Problems?*
*Project Setup*
Go to Properties -> C/C++ -> Preprocessor and check the "Preprocessor Definitions". Here you should have the flag "_UNICODE". For me it was there by default, if it is missing you have to add it explicitly.
There is also an easier more convenient way to setup a wxWidgets project. I cover it in this video:
ruclips.net/video/urIpZnCTeKw/видео.html
*Building the library*
The wxWidgets solution file MUST match the version of Visual Studio you are using.
Make sure you are using the right one:
wx_vc17 - Visual Studio 2022
wx_vc16 - Visual Studio 2019
wx_vc15 - Visual Studio 2017
wx_vc14 - Visual Studio 2015
How to get this to install for codeblocks?
@@atlantic_love I don't think you can but I'm very new to comp sci so I could be wrong. My thought process is that wxWidgets uses features of the Microsoft visual C++ compiler so unless codeblocks let's you use other compilers etc, I don't think you can. If codeblocks does let you choose a compiler, you would need to look up how to switch it to use the correct compiler as wxWidgets, and anything else that wxWidgets needs. As far as adding the library, codeblocks should have plenty of documentation on how to do it. It's basically the same process but the menus are different
@@spiraldj It's a shame that the process is so convoluted in this day and age.
@@atlantic_loveit has to be that way though, at the end of the day digital information is all binary. There are different levels of programming. Assembly Language for example pets you control more of the code like where in memory data gets stored but it's super complex whereas c++ has less control over what you can do. The less complex it is the less you can do. Since everything ends up getting translated to binary, there really isn't any way to make an easy to use language that you can use to program anything you would be able to in binary
@@atlantic_love I've recently learned that wxWidgets provides a property sheet that you can use to setup a project much faster. You can see the approach in this video: ruclips.net/video/urIpZnCTeKw/видео.html 😊
Beautiful! This is very exciting to be setting up a cross-platform GUI dev project! Very well explained with important terminology and the pacing and steps are informative, yet not too informative
Absolutely brilliant! You've made everything crystal clear and easy. Thank you very much and keep on producing videos.
Thank you! I will keep at it 😊
Bruh, you are literally my saviour, it's the 3rd tutorial I've watched and the 1st one that worked for me, thanks a lot
You're welcome! Good to hear that it works 😃
@@OttoBotCode Same Here, Thanks!
Everything worked out on the first run! Great series of tutorials!!!💯
Glad to hear it! Thanks 😁
You have worked hard to produce a spotless tutorial!
I'm glad the hard work is visible. Thanks for the comment!
Your explanation is easy to understand. Go ahead continuing that series.
Perfect step by step explanation. Worked 100%.
Cheers dude, you have broken this down really well and made it easy to follow. Thank you.
Man, i must say thank you, out of every video, yours is the only one that actually worked. I subscribe immediately.
Just a few questions, hope you dont mind.
Why is it that other guides indicate that you must modify the preprocessor definitions under the c++ tab?
Is there any advantage on using the precompiled wxwidgets dlls/headers on the site? Is their setup similar to the manually built ones?
God bless.
Thank you! I'm glad it worked. You are always welcome to ask questions, I will try my best to answer them.
There are a few symbols that should be defined for the C++ preprocessor in some cases. They are __WXMSW__, _UNICODE, NDEBUG, WXUSINGDLL.
__WXMSW__ ensures that wxWidgets uses the correct port (i.e. it is not trying to build a Mac GUI on Windows for example). However, it seems to be defined without you having to do anything.
_UNICODE is also defined by default. You can see that under the C++ tab.
NDEBUG should be defined for Release configuration and it is by default. You can also see that under the C++ tab.
WXUSINGDLL should only be defined if you are using DLLs. In this video we use static libraries instead.
The only advantage to using the precompiled binaries (DLLs) is that the setup should be easier. wxWidgets recommend that you build the library from source, just like we did in this video.
I hope that makes sense 😀
@@OttoBotCode Thanks for the explanation!
my vs code is completely different than yours .... i did everything till 3:27 but you lost me after 3:28
how to tackle this problem?
i hope that by now you might have realized that you may have been using visual studio code when you needed visual studio (they are different and have major differences)
@@op1be Thanks bro!
Thanks Otto, this worked brilliantly and was easy to follow. You're a treasure.
Thank you so much 😁😊
Omg thank you so much, I've been struggling from two days ago to do that, again thank you and have good day !
I'm glad I could help 😁
Everything works as it should! Great tutorial man! God bless you !
Very instructive video, thank you. Do you think that those instructions can be followed to install wxWidgets on Visual Studio Code and Eclipse CDT as well?
I think you'd have to use Visual Studio build tools for C/C++ from the developer command prompt to have that work. I don't know how to even install the build tools alone so I'm not sure.
this tutorial picked me up and held me gently in its warm arms, as a human would a worm that's sitting on the sidewalk in the rain
thank you for the tutorial i tried many other tutorials and they used anything else instead of empty project but that tutorial seems like straightfoward at least for now
thanks a lot . I watched 4 clips until I watched your clip. Everything works perfectly. Tks again
Great to hear 😊
Why do we specifically need Visual Studio? Can't we do it on Vs Code?
wxFrame is showing incomplete type not allowed and some variables are still not defined
Thanks a lot for this very nice tutorial! I have forgot quite a lot of it and could now recap everything!
I'm glad you like it!
6:52 For some reason i do not have any Linker there. I only have the Configuartion Properties and C/C++ . I swear there is always something that throws me off. IT can never go smoothly for me.
Perhaps you've created a library project instead of an "empty project"?
do you have a video to build wxwidgets on a Mac using Xcode?
I'm pretty sure I followed your steps properly, but I still get squigglies over the GUI commands and it says 'identifier .... undefined"
If you are interested you can send your entire project to ottobotcodehelp@gmail.com. Then I'll try to find out what the problem is.
Thanks bro, i spent a 2 days trying to install first on gcc, and one day on vs and that short video show me how to do it on static. (and instead building x86 and x64 +debug, release you can use batch build and select all)
I'm afraid that the evaluated values screen for $(WXWIN)\include are not producing the same results as in the video. It just says \include and \include\msvc before %(AdditionalIncludeDirectories)
same
Same for me, it looks like maybe something changed in VS2022. But it worked perfectly when I just typed out the whole directory name.
Super, thanks a million. I was going a bit mad trying to build this.
THANKS! You helped me a lot!! you´re amazing, thank you!!
Well wxWidgets on Linux (debian) is wx-common but I don't know how to trigger it on Geany
wxDefaultPosition undefined, and other stuffs to :/
It took a big of fanagling (I had a few typos), but it works. Thank you so much!
Great to hear. Well done! 😀
Finally found the tutorial that i need for gui.. thx man !!
Hi. Your instructions are very helpful and I'm able to do this on my virtual Windows machine. However, I want to use my MacBook for more convenience. Are there any ways I can do this on VSCode for Mac? Thank you very much ❤
like half of the projects fail building when i try to build the solution (yes im using vs22 and trying to build wx_vc17)
Fantastic video and great explanation, Thank you.
please need one for vs code too it is very hard to add external libraries there
Can I use wxWidgets in Visual Studio Code?....if yes I require the guidance please
How to set it up on m2 ? I am new to programming and can't figure out how to do these things on mac.
My dumbass literally commenting error message i had until i dropped it to chatgpt and appearently i was not listening. Thank you for making me a little more tech literate.
Ahtung!!! For those who can not build check following: Properties -> Configuration properties -> Advanced -> Character Set. And change this field to "Use Unicode Character Set"
can you do a XCODE example
I've stated all of the libraries i need in visual studio but i still have 16 undefined errors.
Would you mind sending your entire project to ottobotcodehelp@gmail.com? It can be as a zip or github link. I'll take a look and hopefully find the problem for you.
I setup confg: (video to share)
project->optionns:
configuration: All Configuration
Plasfrom: All platfrom
C/C++->Genneral->Edit-> paste each:
1. C:\wxWidgets\include
2. C:\wxWidgets\include\msvc
Linker->System->SubSystem->chose Windows
Linker->Genneral->
Plasfrom-> win32->Additional library directoríes->paste
$(WXWIN)\lib\vc_lib
Plasfrom-> x64->Additional library directoríes->paste
$(WXWIN)\lib\vc_x64_lib
Hey bro please help me
I am using the new vs code and I don't see any debug, build, release, win32 etc options. What should I do to use the vs code solution file
I have same issue. Let me know if you found a fix
@@x2.mp3 I didn't
@@x2.mp3 It is not vscode. it is visual studio.
you might have to reboot vs studio for your IDE to find the libs
Good video, bro! Very well explained.
So this process wont affect my other project that i use console??!
I'm using CLion, can you help me with that?
i don't have the linker option on my project properties why is it not there and how can i make it apear?
Do you have a video for Netbean and wxWidgets setup instructions? thank you,
I was getting the 'cannot open source file error' and I realized after an hour that the reason was simply because there was no 'mswud' inside the 'lib' folder, because I didn't build the debug version for x64, but just the release version! Hope this helps if someone is having the same problem
I have to link to a static 32-bit library, so need a c/cpp gui that can build into 32-bit.
I've tried Visual Studio Community 2022 (Win10x64) with the NAppGUI library, but could only get it to build x64.. not x32.
"LNK1112 module machine type 'x86' conflicts with target machine type 'x64'"
Then I tried a 32-bit console program using Tk ( ActiveState's ActiveTcl or from Sourceforge) + Boost and setting the include path to the Tcl/Tk directories (C:\Tcl\include and cpptk_h and cpptk_cc files cpptkbase.h and cpptkbase_cc ). I'm sure I'm doing something wrong but same kind of error.
How easy is it to build a 32-bit executable using C++/wxWidgets?
Can you do a VSCode example?
On that note I'd like to see a codeblocks example!
Is there some way to do this with XCode and on a mac? I'm lost...
Thank you this is Super Mega Helpful!!!
can you tell me about the warning , is that a major issue or nothing to worry about?
Only helpful tutorial I have found you're awesome thank you
Thank you! For your next project, check out my newest video in this series. It will allow you to create a project much faster 😊
it works in visual studio 2022 but i cant make it work for visual code. i need help please
Thanks. This is the third video I have watched but, the first one that worked. It took me three times but I got it. I need to slow down and pay more attention. A personal problem I know. But thanks.
Works in Visual Studio project, but in Visual Studio Cmake project doesnt work
When I try to build the debug x64 version ( debug and release of win32 build OK) of wxWidgets 3.2.4 using wx_vc17 - in Visual Studio 2022 (Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.9.4) I get an unsuccessful build. It mentions error C1083: Cannot open include file: 'wx/setup.h': No such file or directory multiple times.
I have just tried again with my anti-virus disabled and everything has compiled OK.
This is a really good video thanks. It would be great if you could do this wxWidgets install and setup video also for Linux and Mac systems
Hello , how about integrating wxwidget to dev-c++?
Merci beaucoup! Super tuto!
When I am trying to open the .sln file, it isnt showing me any version to open it. I have the latest vs code and the Im trying to open the vc17 file. Please help
I got 45 errors with wx_vc17 :/
C++ for no reason be like:
Tysm it worked
Environment variable doesn't work for some reason. Direct path does. Thanks though.
I am getting an error that says cannot open file '$(WXWIN)\lib\vc_lib.obj'. Yet it recognizes all my include line #include . At least there is no red squiggly line under the includes relating to wxwidgets. How can I get past this error message at build time?
hello there i tried your code but it is giving a lot of errors to me
Thank you so much bro, it worked perfectly. +1 subscribe er 😎😎
did you try building the all the configurations, for what ever reason static won't build for me. It seems everyone always just builds the x86 dll one..(other videos I have watched)
Hello you have min work example how to use wxStaticBitmap for application
Hello dear brother, your videos are very informative, thank you for this. I have a question for you. Can I develop my own desktop application using the method you showed? For example, I want to make a simple application that calculates the acceleration of an object under the influence of the applied force (for example). This app needs to be downloadable for everyone. Is the path you showed suitable for this? If not can you guide me?
HELP! I NEED HELP! I'm tryingto install the latest version of wxWidgets to use with Red Panda DevC++ compiler. I compiled the library from source & the "samples/minimal" example from the command line. My problem is getting anything to work in the Red Panda DevC IDE I'm having the same problem with my Embarcadero IDE!
Frankly I left embarcadero because it is just a mess when it comes to compatiblity, it has all kind of issues when working with external libraries, you are better off using visual studio.
Please can you help me to install wxWidgets on Clion platform ?
Is there a way to set it up foe Clion?
Very well explained!
I used to do a lot of programming using wxWidgets, but never with Microsoft Visual Studio. This looks so easy, but I couldn't get it to work. I think the libraries are built with different folder names (it builds out "Libraries -> wxWidgets-3.1.5 -> lib -> vc_lib -> mswu" and "Libraries -> wxWidgets-3.1.5 -> lib -> vc_lib -> mswud") maybe the 'u' in the path name is unicode? When I go to build the sample application I get errors like this...[cannot open source file "../../../lib/vc_lib/mswd/wx/setup.h"]. It is trying to find the files in mswd instead of mswu. I am not sure what to change to get this to work. Am I missing an include directive? A path? Any thoughts?
I also have the folders "mswu" and "mswud" NOT "msw" and "mswd". The sample application on your machine is trying to find the files in the wrong directory.
Go to Properties -> C/C++ -> Preprocessor and check out the "Preprocessor Definitions". Here you should have the flag "_UNICODE". For me it is there by default, so I didn't have to add it explicitly.
If I remove "_UNICODE" then I get errors similar to yours.
Let me know if this fixes the problem!
@@OttoBotCode Adding that flag got rid of the compile errors. Now I am getting a link error 'LNK1104 cannot open file 'wxbase31ud.lib'. Do I have to tell the linker somehow this is unicode as well?
I got it. I changed the linker path to '$(wxwin)\lib\vc_lib', removing the 'mswd' part from the end of the path name. After that I got a successful compile and link. Thanks for the helpful video and for the advice on adding that unicode flag.
@@ramblingsFromJim You're welcome!
@@OttoBotCode I had the same errors in Visual Studio 2017. Adding _UNICODE solved all the problems and the program can be compiled fine.
I am using VScode, is it possibleto run it with VSCode??
How can i install for dev c++?
i just can't figure it out. I liked all the source file exactly like you did and i still get the compiling error. I tried like everithing
I'd love to help! Send your entire project (github link is fine) and the error you get to ottobotcodehelp@gmail.com. Then I'll take a look and see if I can figure out what is wrong ☺️
But what if I use Visual Studio Code instead?
I followed this video. It was really helpful. Is there anything to be aware of for like the future? Like do I need to undo what I did when following your video if I want to use other libraries that aren't wxWidgets, or when coding in a different langauge or something like that? I'm learning this stuff for the first time, so I'm guessing this is a stupid question, but i reallly want to be sure
Everything here is specific to C++ and the wxWidgets GUI library.
If you want to write C++, and don't need any third party libraries, all you have to do (on Windows) is create a blank project in Visual Studio and start writing code.
Other C++ libraries will have their own installation process that may or may not be similar to the one for wxWidgets.
Other programming languages like C# and Python have other means of creating projects and using libraries. It is typically much simpler than what you see here.
I hope this helps!
I know this video is old but does anyone have a way to debug .sln file in VS?
Great tutorial. However, I am not seeing visual studios solution files inside the build >msw folder. I am running Windows 10 and I have VS Code install. I use it for my other coding.
this is VS not VS code hope this helps
Is there a way to setup a setting where i don't need to always change these settings in vs?
Check out my "Fast Project Setup" video 😊
@@OttoBotCode You are a life saver. I want to create a small project for scholars. They will just need to cross the correct answer for given numbers, what is their gcd and lcm. Your tutorials on gui are very useful specially since they are for cross platforms.
Hi, how does installation work for Linux?
Unfortunately I ran into the following linker error:
error LNK2019: unresolved external symbol WinMain referenced in function "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ)
I have followed all the steps from the video. The only differences between my setup und the one presented in the tutorial are versions (I have VS 2022 and wxWidgets-3.2.5). Could somebody help me?
I have the same exact error with VS2019, quadruple checked everything
so every time I make a new project do I need to go in the project settings and do all of that?
There is a shortcut for most of these steps. Check out the "Fast Project Setup" video I uploaded 😉
how to do on vs code please guide me
Can I install all the libraries using VS, but make my project on another IDE? Our teacher is insisting to use her preferred IDE.
Unfortunately, you have to build the library with the same compiler you will use to compile your projects.
i'm installing on Visual Studio 2022 using the wx_vc17 file, but I'm getting 43 errors and 2 warnings when I Build Solution, all the errors are similar: C1083 Não é possível abrir arquivo incluir: 'wx/setup.h': No such file or directory
I assume you are getting these errors in your wxWidgets project, not when building the library from source.
The error is telling you that it cannot find wx/setup.h, which is a header file.
Can you double-check that you have "$(WXWIN)\include\msvc" under "Additional Include Directories"?
Hello, Gabriel. It happened to me as well, and I think it was because the Topaz OFD / Warsaw program (which is used for internet bank account protection) blocks the creation of the setup.h file. I fixed this problem by uninstalling the Warsaw program.
very clear and good tutrorial thank you very much
let me help how to install this in cxxdroid(mobile platform)