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: th-cam.com/video/urIpZnCTeKw/w-d-xo.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: th-cam.com/video/urIpZnCTeKw/w-d-xo.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 😀
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.
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)
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
when i open the .sin file in vs code, it shows a bunch a code and there is no option for debug and win64 ? what am i doing wrong, i followed all the steps up to that point
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.
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.
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?
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
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)
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)
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 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!
Thank you 😊Some of my projects take a lot of time and effort to complete, that's why I don't upload so often. This year, I will try doing more short videos and hopefully upload a bit more frequently.
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 ☺️
Ahtung!!! For those who can not build check following: Properties -> Configuration properties -> Advanced -> Character Set. And change this field to "Use Unicode Character Set"
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
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.
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.
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.
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?
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?
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.
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.
Finally A Person Who Talks About GUI Programming I Dont Know Why There Is No Other Courses Like Yours👍
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 😀
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 👍
*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:
th-cam.com/video/urIpZnCTeKw/w-d-xo.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: th-cam.com/video/urIpZnCTeKw/w-d-xo.html 😊
Everything worked out on the first run! Great series of tutorials!!!💯
Glad to hear it! Thanks 😁
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 😊
Your explanation is easy to understand. Go ahead continuing that series.
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 😀
@@OttoBotCode Thanks for the explanation!
Perfect step by step explanation. Worked 100%.
You have worked hard to produce a spotless tutorial!
I'm glad the hard work is visible. Thanks for the comment!
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
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!
wxFrame is showing incomplete type not allowed and some variables are still not defined
This tutorial is just perfect. Everything was explained clearly and I was successful in the end. Thank 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.
Cheers dude, you have broken this down really well and made it easy to follow. Thank you.
Everything works as it should! Great tutorial man! God bless you !
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 😁
Why do we specifically need Visual Studio? Can't we do it on Vs Code?
THANKS! You helped me a lot!! you´re amazing, thank you!!
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!
thanks a lot . I watched 4 clips until I watched your clip. Everything works perfectly. Tks again
Great to hear 😊
Super, thanks a million. I was going a bit mad trying to build this.
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!
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
Finally found the tutorial that i need for gui.. thx man !!
Fantastic video and great explanation, Thank you.
i don't have the linker option on my project properties why is it not there and how can i make it apear?
It took a big of fanagling (I had a few typos), but it works. Thank you so much!
Great to hear. Well done! 😀
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.
Good video, bro! Very well explained.
when i open the .sin file in vs code, it shows a bunch a code and there is no option for debug and win64 ? what am i doing wrong, i followed all the steps up to that point
I got 45 errors with wx_vc17 :/
C++ for no reason be like:
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
Very well explained!
Thank you so much bro, it worked perfectly. +1 subscribe er 😎😎
Thank you this is Super Mega Helpful!!!
Well wxWidgets on Linux (debian) is wx-common but I don't know how to trigger it on Geany
Love it. Simple and easy
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 😊
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.
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.
very clear and good tutrorial thank you very much
How to set it up on m2 ? I am new to programming and can't figure out how to do these things on mac.
ily so much dude
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?
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
you might have to reboot vs studio for your IDE to find the libs
like half of the projects fail building when i try to build the solution (yes im using vs22 and trying to build wx_vc17)
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
Works in Visual Studio project, but in Visual Studio Cmake project doesnt work
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)
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.
wxDefaultPosition undefined, and other stuffs to :/
it works in visual studio 2022 but i cant make it work for visual code. i need help please
So this process wont affect my other project that i use console??!
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.
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!
can you tell me about the warning , is that a major issue or nothing to worry about?
Bro great cideos you teach really well I wish I found your channel sooner. Shame you don't upload more frequently
Thank you 😊Some of my projects take a lot of time and effort to complete, that's why I don't upload so often. This year, I will try doing more short videos and hopefully upload a bit more frequently.
hello there i tried your code but it is giving a lot of errors to me
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 ☺️
nice man
But what if I use Visual Studio Code instead?
To make sense, as free software (GPL), Visual Studio should not be used, it would be better to use codeblocks with mingw, or something similar.
Is there some way to do this with XCode and on a mac? I'm lost...
Ahtung!!! For those who can not build check following: Properties -> Configuration properties -> Advanced -> Character Set. And change this field to "Use Unicode Character Set"
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
Watching this video on February 12, 2024. What a coincidence that this video is exactly 2 years old.
All this just to start coding is crazy.
Environment variable doesn't work for some reason. Direct path does. Thanks though.
I'm using CLion, can you help me with that?
Do you have a video for Netbean and wxWidgets setup instructions? thank you,
Hi, your video is great ,if you do everything right it's work perfectly, thanks for all.
how do i install on linux?
Can you do a VSCode example?
On that note I'd like to see a codeblocks example!
can you do a XCODE example
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"?
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 😉
救命恩人!困扰了我一天的东西这个视频几分钟讲清楚了。
I know this video is old but does anyone have a way to debug .sln file in VS?
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.
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
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?
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?
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??
Hello , how about integrating wxwidget to dev-c++?
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.
pastebin blocked from turkiye.
Thanks for letting me know. You can download the code here:
ottobotcode.com/gui/FirstGui.cpp
Just copy and paste it into your project!
@@OttoBotCode Thank you
Cpp için hangi gui library kullaniyorsun şuan?
@@Broyuz cpp bıraktım şuanlık ama arkadaş olabiliriz
@@tr.themasterdev Olur, bende yaz ın cpp içinden geçmeyi planlıyorum. Bide büyük ihtimalle web ui kullanıcam.
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.
The link for the code to copy-paste doesn't work anymore, otherwise great tutorial.
Thanks for letting me know, I'll get it fixed!
Please can you help me to install wxWidgets on Clion platform ?
Is there a way to set it up foe Clion?
How to install into the eclipse?
Does anyone know how to do it on Codeblocks?