Search found 20 matches

by alvindera97
Wed Jul 29, 2020 2:12 pm
Forum: Platform Related Issues
Topic: Error while loading shared libraries: libwx_gtk3u_core-3.1.so.3: cannot open shared object file: No such file or directo
Replies: 5
Views: 953

Re: Error while loading shared libraries: libwx_gtk3u_core-3.1.so.3: cannot open shared object file: No such file or dir

I downloaded the Linux/MacOS source (the file that ends in .tar.bz2). Then I followed the normal installation instructions A — Linux default — from here: https://wiki.wxwidgets.org/Compiling_and_getting_started . I also want to ask, since I already have wxWidgets 3.1.4 installed and I want to get th...
by alvindera97
Wed Jul 29, 2020 1:03 pm
Forum: Platform Related Issues
Topic: Error while loading shared libraries: libwx_gtk3u_core-3.1.so.3: cannot open shared object file: No such file or directo
Replies: 5
Views: 953

Re: Error while loading shared libraries: libwx_gtk3u_core-3.1.so.3: cannot open shared object file: No such file or dir

Yes you are right. On an older install of Ubuntu 18.04, I compiled the Grade Pending Calculator (binary — gpCalculator) with wxWidgets 3.1.3. I currently have wxWidgets 3.1.4 installed. Please how can I get wxWidgets 3.1.3 libraries installed? Is it even possible?
by alvindera97
Wed Jul 29, 2020 11:56 am
Forum: Platform Related Issues
Topic: Error while loading shared libraries: libwx_gtk3u_core-3.1.so.3: cannot open shared object file: No such file or directo
Replies: 5
Views: 953

Error while loading shared libraries: libwx_gtk3u_core-3.1.so.3: cannot open shared object file: No such file or directo

I have a fresh install of Ubuntu 18.04.4LTS and wxWidgets 3.1.4. When I try executing the wxWidgets binary with ./gpCalculator , I get the error message: ./gpCalculator: error while loading shared libraries: libwx_gtk3u_core-3.1.so.3: cannot open shared object file: No such file or directory This is...
by alvindera97
Wed May 13, 2020 8:03 am
Forum: Compiler / Linking / IDE Related
Topic: Cannot Compile For Windows Target
Replies: 7
Views: 1122

Re: Cannot Compile For Windows Target

Unfortunately it seems like the cross-platform claim is not actually possible with wxWidgets. As all the research I have made don't seem to have a realistic solution. I believe that if wxWidgets truly and comfortably can "cross platform", there would be proper support and a forum genre for it. Apart...
by alvindera97
Mon May 11, 2020 8:29 pm
Forum: Compiler / Linking / IDE Related
Topic: Cannot Compile For Windows Target
Replies: 7
Views: 1122

Re: Cannot Compile For Windows Target

Hi, No. Just run: wx-config --cxxflags --libs wx-config is a shell script. Thanks for the clarification. This is the output of the command: -I/usr/local/lib/wx/include/gtk3-unicode-3.1 -I/usr/local/include/wx-3.1 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -L/usr/local/lib -pthread -lw...
by alvindera97
Mon May 11, 2020 8:00 pm
Forum: Compiler / Linking / IDE Related
Topic: Cannot Compile For Windows Target
Replies: 7
Views: 1122

Re: Cannot Compile For Windows Target

Thanks for your reply and analysis of the situation. However, I would like to clarify something. Are you referring to the output of g++ `wx-config --cxxflags --libs As I got the result; /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux_gnu/Scrt1.o: In function `_start': (.text+0x20): undefined r...
by alvindera97
Mon May 11, 2020 9:20 am
Forum: General Development
Topic: map.find() not working
Replies: 12
Views: 7270

Re: map.find() not working

Yes... You are absolutely correct. However, my intention was to create a map of all the courses once (most suitably as a variable) and have my event handlers check that map whenever the credit load of a course had to evaluated.This is what I tried (in the constructor): using namespace std; std::map...
by alvindera97
Mon May 11, 2020 7:28 am
Forum: Compiler / Linking / IDE Related
Topic: Cannot Compile For Windows Target
Replies: 7
Views: 1122

Cannot Compile For Windows Target

I compiled wxWidgets source code as per the instructions described here https://wiki.wxwidgets.org/WxWindows_application_compile_(for_Linux)_and_cross-compile_(for_Windows)_under_Linux/Eclipse/CDT . This is the process I went through for the compilation: First I created a "windows_build" directory w...
by alvindera97
Mon May 11, 2020 7:24 am
Forum: General Development
Topic: map.find() not working
Replies: 12
Views: 7270

Re: map.find() not working

The other options for declaring maps were too complex for my current understanding of C++. I do not think it is that complex. ;) // declaration of a new type called Courses typedef std::map<wxString, int> Courses; // declaration of variable of type Courses Courses myCourses; Yes... You are absolute...
by alvindera97
Mon May 11, 2020 6:49 am
Forum: General Development
Topic: map.find() not working
Replies: 12
Views: 7270

Re: map.find() not working

I would like to thank everyone on the platform who have contributed to this question. For me, I have loads of years of experience with python - whom is far less verbose when compared to C++. After reading the comments and suggestions concerning this question, I realized that my problem was basically...
by alvindera97
Wed May 06, 2020 12:59 am
Forum: General Development
Topic: map.find() not working
Replies: 12
Views: 7270

Re: map.find() not working

I believe that std::map::find() returns an iterator which cannot be implicitly converted to a bool. You should try changing the comparison to if (first_courses.find(course_one->GetValue()) != first_courses.end()) BTW, this has nothing do with wxWidgets, this is just C++ standard library, you can ch...
by alvindera97
Wed May 06, 2020 12:56 am
Forum: General Development
Topic: map.find() not working
Replies: 12
Views: 7270

Re: map.find() not working

Thank you... After making research into wxComboBox , I understood the reason for your suggestion. You are right. However, the list of variables I have is well above 30. I wouldn't want my users to have to scroll through 20+ options to get to where they want to. This selection would happen about 17 t...
by alvindera97
Sun May 03, 2020 8:42 pm
Forum: General Development
Topic: map.find() not working
Replies: 12
Views: 7270

map.find() not working

Good day everyone. It's me again. I hope we you are all doing well. I have come to a point in my wxWidgets application where user input on wxTextCtrl needs to be evaluated against a map of keys and values (python's dictionary equivalent). If such entry in the wxTextCtrl is found in the dictionary, i...
by alvindera97
Sun Apr 19, 2020 11:05 am
Forum: Compiler / Linking / IDE Related
Topic: How to compile wxwidgets application on Linux machine targeted for windows machines
Replies: 1
Views: 473

How to compile wxwidgets application on Linux machine targeted for windows machines

I use Ubuntu 18.04 and wxwidgets-3.1.3. I have been able to successfully write, compile and run my GUI application for Linux. I would now like to compile my application to be able to run on Windows operating system. From the research that I made, this is possible however, I am not sure what resource...
by alvindera97
Tue Apr 14, 2020 7:05 pm
Forum: C++ Development
Topic: Segmentation fault (core dumped) on ID value
Replies: 5
Views: 6514

Re: Segmentation fault (core dumped) on ID value

MyFrame *frame = new MyFrame(); There's your problem right there. Let's see if you understand it and then solve it. @catalin: That's not really helpful. Even i didn't understand what you mean by that. Actually I was wrong there. I meant that a frame that was not yet created was being used, but fail...