Search found 2580 matches

by PB
Tue Oct 13, 2020 8:19 am
Forum: Compiler / Linking / IDE Related
Topic: How must build to produce those libs on Win10?
Replies: 14
Views: 341

Re: How must build to produce those libs on Win10?

I would assume that cleaning the build did not help. Then my only guess would be that something is wrong in your PATH, I would try running from WXDIR/build/msw folder this set PATH=C:\Program Files\CodeBlocks\MinGW\bin;%PATH% mingw32-make -f makefile.gcc LDFLAGS="-static" BTW, what is your wxWidgets...
by PB
Tue Oct 13, 2020 5:48 am
Forum: Compiler / Linking / IDE Related
Topic: How must build to produce those libs on Win10?
Replies: 14
Views: 341

Re: How must build to produce those libs on Win10?

I think one of the reasons for the issue above can be having more than one GCC-based compiler toolchain in the PATH. It is easy to check, with where $PATH:gcc.exe in the command prompt. I would also make sure to clean the build, deleting all folders starting with gcc_ in WXWIN/build/msw and WXWIN/li...
by PB
Mon Oct 12, 2020 7:24 pm
Forum: Compiler / Linking / IDE Related
Topic: Windows package creator/installer
Replies: 8
Views: 265

Re: NSIS

dkaip wrote:
Mon Oct 12, 2020 6:36 pm
Hello. I thing that the free and open source NSIS is the best and very easy tool.
Just curious: what do you think are the main practical advantages of NSIS over InnoSetup (I am familiar only with the latter)?
by PB
Mon Oct 12, 2020 7:10 pm
Forum: Compiler / Linking / IDE Related
Topic: How must build to produce those libs on Win10?
Replies: 14
Views: 341

Re: How must build to produce those libs on Win10?

BUILD=build is invalid. AFAIK, the only valid values of BUILD are debug and release . UNICODE=1 SHARED=0 These two are not needed since they are default. I would also not use SHELL parameter. dbgrid and ODBC are not present in post v2.8 wxWidgets, qa is only for MSVC. The rest of libraries should b...
by PB
Sat Oct 10, 2020 2:25 pm
Forum: Compiler / Linking / IDE Related
Topic: Windows package creator/installer
Replies: 8
Views: 265

Re: Windows package creator/installer

just be aware that regardless of the installer, if you do not have your executable signed, Windows will display a message than can scare some users and some may not even be able to find how to continue installation.
by PB
Sat Oct 10, 2020 7:10 am
Forum: C++ Development
Topic: Deallocate memory of wxGrid
Replies: 10
Views: 288

Re: Deallocate memory of wxGrid

The program crash and stop execution when reaching this line: gridTable->DeleteCols(0,gridTable->GetNumberRows(),false); The line before it is: cout<<"# of cols = "<<gridTable->GetNumberRows()<<endl; Give me correct output, which is 8 (the number of cols) I am confused, the second parameter of Dele...
by PB
Thu Oct 08, 2020 5:16 pm
Forum: C++ Development
Topic: How to make wxListCtrl draw lines and rows throughout the whole wxListCtrl Window
Replies: 8
Views: 404

Re: How to make wxListCtrl draw lines and rows throughout the whole wxListCtrl Window

I do not think that this is possible using wxListCtrl methods. I am using only Windows, where you can achieve that with a native call (setting LVS_EX_GRIDLINES style): #include <wx/wx.h> #include <wx/listctrl.h> #ifdef __WXMSW__ #include <wx/msw/wrapcctl.h> #endif // #ifdef __WXMSW__ class MyApp : p...
by PB
Wed Oct 07, 2020 8:51 pm
Forum: Platform Related Issues
Topic: "wx.rc" not found on MSYS2/W64 on Win10
Replies: 17
Views: 387

Re: "wx.rc" not found on MSYS2/W64 on Win10

The build error with samples is caused by the monolithic build. The issue has been fixed for bakefile-generated files here https://github.com/wxWidgets/wxWidgets/commit/68feb3e7fff264c95e3ecbe6a963bce7ff4fb2c8 but I guess it was not updated for configure? If so, this looks like a wxWidgets bug and s...
by PB
Wed Oct 07, 2020 6:09 pm
Forum: The Code Dump
Topic: Converting OpenCV bitmap (Mat) to wxBitmap
Replies: 0
Views: 276

Converting OpenCV bitmap (Mat) to wxBitmap

OpenCV itself can show a bitmap using imshow() function but sometimes one may want to display a bitmap acquired with OpenCV using a wxWidgets GUI. The most convenient class for doing that in wxWidgets is wxBitmap. The function bool ConvertMatBitmapTowxBitmap(const cv::Mat& matBitmap, wxBitmap& bitma...
by PB
Wed Oct 07, 2020 7:26 am
Forum: Platform Related Issues
Topic: "wx.rc" not found on MSYS2/W64 on Win10
Replies: 17
Views: 387

Re: "wx.rc" not found on MSYS2/W64 on Win10

I do not know what that error is. Do you have the MinGW bin folder in your PATH? Does the minimal sample produced the same error? If not, it may be the customizations you are doing in your makefile. If no help, I'll drop MSYS2 and start new strategy using DOS command line (which is completely new to...
by PB
Tue Oct 06, 2020 9:01 pm
Forum: Platform Related Issues
Topic: "wx.rc" not found on MSYS2/W64 on Win10
Replies: 17
Views: 387

Re: "wx.rc" not found on MSYS2/W64 on Win10

It does not seem that you asked for the builtin versions of the library. I think that e.g. for libjpeg that would be --with-libjpeg=builtin see https://forums.wxwidgets.org/viewtopic.php?p=120079#p120079 BTW, here is my guide to building wxWidgets on MSW with GCC with MSYS mingw-w64 package, but it ...
by PB
Tue Oct 06, 2020 5:52 pm
Forum: Platform Related Issues
Topic: "wx.rc" not found on MSYS2/W64 on Win10
Replies: 17
Views: 387

Re: "wx.rc" not found on MSYS2/W64 on Win10

(Once again, I do not use configure/wx-config) Regarding the image format DLLs needed even in the static build, I would try switching these libraries from "sys" to "builtin" to see if it helps. BTW, are you sure your application will not require any compiler DLLs? With MinGW makefiles, static wxWidg...
by PB
Tue Oct 06, 2020 4:36 pm
Forum: Platform Related Issues
Topic: "wx.rc" not found on MSYS2/W64 on Win10
Replies: 17
Views: 387

Re: "wx.rc" not found on MSYS2/W64 on Win10

but the make process stops later with a strange error: I believe that this may be the same issue that was somehow fixed only in 3.1 branch here: https://github.com/wxWidgets/wxWidgets/pull/887 From my experience, using old wxWidgets versions (3.0 is about 5 years old) with new compilers may not be ...
by PB
Tue Oct 06, 2020 4:31 pm
Forum: Platform Related Issues
Topic: "wx.rc" not found on MSYS2/W64 on Win10
Replies: 17
Views: 387

Re: "wx.rc" not found on MSYS2/W64 on Win10

With newer GCC, --use-temp-file made windres not working, see
https://github.com/msys2/MINGW-packages/issues/6558

And AFAIK, those WIN32 defines just mean that Win32 API is used and it has no relation to the actual binary bitness.
by PB
Sat Oct 03, 2020 6:29 pm
Forum: C++ Development
Topic: Help with Bind please
Replies: 2
Views: 173

Re: Help with Bind please

There are several issues in your Bind() call, at least 1. You are using a control ID (wxID_OK) where the event class should be (wxEVT_BUTTON). 2. You are missing "&" before the handler function name. 3. I would also bind the event before showing the dialog. An example of working similar code #includ...