Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install wxWidgets error #33

Open
edrobal opened this issue Nov 25, 2023 · 3 comments
Open

Cannot install wxWidgets error #33

edrobal opened this issue Nov 25, 2023 · 3 comments

Comments

@edrobal
Copy link

edrobal commented Nov 25, 2023

pgAdmin3.cpp: In member function ‘void frmDlgTest::OnSelect(wxCommandEvent&)’:
pgAdmin3.cpp:198:34: error: no matching function for call to ‘pgDialog::LoadResource(frmDlgTest*, wxString&)’
dlg->LoadResource(this, dlgName);
^
In file included from ../pgadmin/include/dlg/dlgFindReplace.h:15:0,
from ../pgadmin/include/ctl/ctlSQLBox.h:21,
from ../pgadmin/include/pgAdmin3.h:29,
from pgAdmin3.cpp:13:
../pgadmin/include/dlg/dlgClasses.h:37:7: note: candidate: void pgDialog::LoadResource(wxWindow*, const wxChar*)
void LoadResource(wxWindow parent, const wxChar name = 0);
^~~~~~~~~~~~
../pgadmin/include/dlg/dlgClasses.h:37:7: note: no known conversion for argument 2 from ‘wxString’ to ‘const wxChar
{aka const wchar_t
}’
pgAdmin3.cpp: In member function ‘virtual bool pgAdmin3::OnInit()’:
pgAdmin3.cpp:320:2: error: cannot convert ‘const wxString’ to ‘const char*’ in initialization
};
^
pgAdmin3.cpp:320:2: error: cannot convert ‘const wxString’ to ‘const char*’ in initialization
pgAdmin3.cpp:320:2: error: cannot convert ‘const wxString’ to ‘const char*’ in initialization
pgAdmin3.cpp:320:2: error: cannot convert ‘const wxString’ to ‘const char*’ in initialization
pgAdmin3.cpp:320:2: error: cannot convert ‘const wxString’ to ‘const char*’ in initialization
pgAdmin3.cpp:320:2: error: cannot convert ‘const wxString’ to ‘const char*’ in initialization
pgAdmin3.cpp:320:2: error: cannot convert ‘const wxString’ to ‘const char*’ in initialization
pgAdmin3.cpp:320:2: error: cannot convert ‘const wxString’ to ‘const char*’ in initialization
pgAdmin3.cpp:320:2: error: cannot convert ‘const wxString’ to ‘const char*’ in initialization
pgAdmin3.cpp:320:2: error: cannot convert ‘const wxString’ to ‘const char*’ in initialization
pgAdmin3.cpp:320:2: error: cannot convert ‘const wxString’ to ‘const char*’ in initialization
pgAdmin3.cpp:320:2: error: cannot convert ‘const wxString’ to ‘const char*’ in initialization
pgAdmin3.cpp:320:2: error: cannot convert ‘const wxString’ to ‘const char*’ in initialization

@edrobal
Copy link
Author

edrobal commented Dec 10, 2023

I install wxGTK 2.8 and make finish with 👍
mv -f $depbase.Tpo $depbase.Po
ctl/explainShape.cpp: In member function ‘virtual void ExplainLine::OnDraw(wxDC&)’:
ctl/explainShape.cpp:527:57: error: ‘wxPENSTYLE_SOLID’ was not declared in this scope
dc.SetPen(*wxThePenList->FindOrCreatePen(*wxBLACK, 1, wxPENSTYLE_SOLID));
^~~~~~~~~~~~~~~~
ctl/explainShape.cpp:527:57: note: suggested alternative: ‘wxFONTSTYLE_SLANT’
dc.SetPen(*wxThePenList->FindOrCreatePen(*wxBLACK, 1, wxPENSTYLE_SOLID));
^~~~~~~~~~~~~~~~
wxFONTSTYLE_SLANT
ctl/explainShape.cpp:528:65: error: ‘wxBRUSHSTYLE_SOLID’ was not declared in this scope
dc.SetBrush(*wxTheBrushList->FindOrCreateBrush(*wxLIGHT_GREY, wxBRUSHSTYLE_SOLID));
^~~~~~~~~~~~~~~~~~
ctl/explainShape.cpp:528:65: note: suggested alternative: ‘wxBG_STYLE_COLOUR’
dc.SetBrush(*wxTheBrushList->FindOrCreateBrush(*wxLIGHT_GREY, wxBRUSHSTYLE_SOLID));
^~~~~~~~~~~~~~~~~~
wxBG_STYLE_COLOUR
make[3]: *** [Makefile:5391: ctl/explainShape.o] Error 1
make[3] : on quitte le répertoire « /tmp/pgadmin3-lts-master/pgadmin »
make[2]: *** [Makefile:3469: all] Error 2
make[2] : on quitte le répertoire « /tmp/pgadmin3-lts-master/pgadmin »
make[1]: *** [Makefile:582: all-recursive] Error 1
make[1] : on quitte le répertoire « /tmp/pgadmin3-lts-master »
make: *** [Makefile:475: all] Error 2

@edrobal edrobal changed the title Cannot install with wxWidgets 3 Cannot install wxWidgets error Dec 13, 2023
@proxy-m
Copy link
Contributor

proxy-m commented Apr 25, 2024

from ‘wxString’ to ‘const wxChar {aka const wchar_t}’

Wrong headers or version of dependencies.

@99Percent
Copy link

In debian12 I installed wxWidgets like this:

sudo apt install libwxgtk3.2-dev libxml2-dev libxslt-dev 
sudo apt install libwxgtk-webview3.2-1 libwxgtk-webview3.2-dev

But I am still getting errors and the query tool hangs while retrieving the results of a select query.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants