Search found 93 matches

by pvn
Mon May 17, 2021 11:08 pm
Forum: Compiler / Linking / IDE Related
Topic: 3.1.5 Mac sample errors with Cmake
Replies: 8
Views: 3695

Re: 3.1.5 Mac sample errors with Cmake

BTW, the automatic wxWidgets build/test framework doesn't fail and didn't fail even when configuring with CMake-thingy.
I does fail;
I tried just to use the 3.1.5 distribution with CMake (not my app),
did you try to build with CMake on a Mac?
by pvn
Mon May 17, 2021 10:47 pm
Forum: Compiler / Linking / IDE Related
Topic: 3.1.5 Mac sample errors with Cmake
Replies: 8
Views: 3695

Re: 3.1.5 Mac sample errors with Cmake

this error /Volumes/Home/pvn/git/wx/wxwidgets-3.1.5/samples/menu/menu.cpp:191:5: error: unknown type name 'wxFileHistory' wxFileHistory* m_fileHistory; can be fixed by simply adding these 2 headers to the sample menu.cpp #include "wx/filehistory.h" #include "wx/filename.h" I don't know why the ./con...
by pvn
Mon May 17, 2021 10:32 pm
Forum: Compiler / Linking / IDE Related
Topic: 3.1.4 to 3.15 link error
Replies: 9
Views: 3931

Re: 3.1.4 to 3.15 link error

I build everything with configure and MSVC solution and then use MSVC, Anjuta w/Makefile and Xcode to build my program. I use CMake because I develop for these 3 platforms, and with 1 script I build everywhere; I hope MaartenB can chime in and help you include wx-config... I appreciate the concern,...
by pvn
Mon May 17, 2021 9:56 pm
Forum: Compiler / Linking / IDE Related
Topic: 3.1.4 to 3.15 link error
Replies: 9
Views: 3931

Re: 3.1.4 to 3.15 link error

Why you are not use wx-config in you "CMake-thingy"? this would be ideal, but I don't know how to do that. Do you do it in your CMake scripts ? this is the general method to add Apple libraries to CMake https://gitlab.kitware.com/cmake/community/-/wikis/doc/cmake/platform_dependent_issues/HowToUseE...
by pvn
Mon May 17, 2021 9:35 pm
Forum: Compiler / Linking / IDE Related
Topic: 3.1.4 to 3.15 link error
Replies: 9
Views: 3931

Re: 3.1.4 to 3.15 link error

that's it, thanks

the name of the library is "QuartzCore"

https://stackoverflow.com/questions/729 ... de-project

so, the Cmake must use

Code: Select all

find_library(ANIMATION QuartzCore)
by pvn
Mon May 17, 2021 9:13 pm
Forum: Compiler / Linking / IDE Related
Topic: 3.1.5 Mac sample errors with Cmake
Replies: 8
Views: 3695

Re: 3.1.5 Mac sample errors with Cmake

no errors, and the call to the menu sample was /Volumes/Home/pvn/tmp/wxWidgets-3.1.5/buildMac/bk-deps g++ -std=gnu++11 -mmacosx-version-min=10.10 -c -o menu_menu.o -I/Volumes/Home/pvn/tmp/wxWidgets-3.1.5/buildMac/lib/wx/include/osx_cocoa-unicode-3.1 -I../../../include -D_FILE_OFFSET_BITS=64 -D__WXOS...
by pvn
Mon May 17, 2021 8:07 pm
Forum: Compiler / Linking / IDE Related
Topic: 3.1.4 to 3.15 link error
Replies: 9
Views: 3931

3.1.4 to 3.15 link error

I have an app built with version 3.1.4, that builds on Mac, Linux, Windows I gave a try to build with 3.1.5 and this error shows up on Mac OS 11.3 (Big Sur) ; will post here later results for Windows and Linux [ 42%] Linking CXX executable alert_site_query.app/Contents/MacOS/alert_site_query Undefin...
by pvn
Mon May 17, 2021 7:55 pm
Forum: Compiler / Linking / IDE Related
Topic: 3.1.5 Mac sample errors with Cmake
Replies: 8
Views: 3695

3.1.5 Mac sample errors with Cmake

trying a 3.1.5 build with Cmake on Mac OS 11.3 (Big Sur), using Cmake call is cmake ../../wxwidgets-3.1.5 -DwxBUILD_COMPATIBILITY=3.1 -DwxBUILD_SHARED=OFF -DwxBUILD_SAMPLES=ALL cmake --build . --parallel 9 gcc is gcc --version Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-...
by pvn
Thu Mar 18, 2021 2:08 am
Forum: C++ Development
Topic: png images as icons in tree control
Replies: 6
Views: 719

Re: png images as icons in tree control

No, the code works fine

my remark is that I have the impression I am doing more than needed here in this call

Code: Select all

images->Add(wxBitmap(bitmap.ConvertToImage().Rescale(size, size)));
it seems there is a conversion to wxImage and then again to wxBitmap, that was all, thanks
by pvn
Thu Mar 18, 2021 1:23 am
Forum: C++ Development
Topic: png images as icons in tree control
Replies: 6
Views: 719

Re: png images as icons in tree control

and int size = 32; wxImageList* images = new wxImageList(size, size, true); wxBitmap bitmap; if (bitmap.LoadFile("database.png", wxBITMAP_TYPE_PNG)) { images->Add(wxBitmap(bitmap.ConvertToImage().Rescale(size, size))); } wxTreeCtrl* tree = new wxTreeCtrl(panel, ID_TREE_TABLES, wxDefaultPosition, wxS...
by pvn
Thu Mar 18, 2021 1:20 am
Forum: C++ Development
Topic: png images as icons in tree control
Replies: 6
Views: 719

Re: png images as icons in tree control

thanks

I did

Code: Select all

wxImage::AddHandler(new wxPNGHandler);
because of not wanting to link with other formats
by pvn
Tue Mar 16, 2021 12:57 am
Forum: C++ Development
Topic: png images as icons in tree control
Replies: 6
Views: 719

png images as icons in tree control

I would like to add some icons in PNG format (or a format that looks well on a Mac) to a tree control, using wxImageList https://docs.wxwidgets.org/trunk/classwx_tree_ctrl.html#a29e4021e0f110909a17517b476dfb58b all the samples load icons in XPM format is there any other resource , here , that has a ...
by pvn
Thu Nov 19, 2020 4:00 am
Forum: Platform Related Issues
Topic: wxCheckListBox Mac alignment
Replies: 1
Views: 446

Re: wxCheckListBox Mac alignment

making this call aligned the text

Code: Select all

sizer_col_1->Layout();
Screen Shot 2020-11-18 at 10.58.41 PM.png
by pvn
Wed Nov 18, 2020 8:05 pm
Forum: Platform Related Issues
Topic: wxCheckListBox Mac alignment
Replies: 1
Views: 446

wxCheckListBox Mac alignment

On MacOS, doing this code wxPanel* panel = new wxPanel(this, wxID_ANY); wxSizer* const sizer_lut_sat = new wxBoxSizer(wxHORIZONTAL); wxSizer* const sizer_col_1 = new wxBoxSizer(wxVERTICAL); { wxString* items = new wxString[ts.LUT.size()]; for (size_t idx = 0; idx < ts.LUT.size(); idx++) { items[idx]...
by pvn
Wed Nov 18, 2020 5:33 pm
Forum: C++ Development
Topic: wxLogDebug flush
Replies: 10
Views: 623

Re: wxLogDebug flush

Which log targets have you actually tried?
What would be the steps to try other wxLog targets?