Fri Jan 09, 2015 8:26 pm
Following Alec steps, after:
apt-get install libgnomeprintui2.2-dev
you can:
apt-get install libwxgtk2.8-dev
and it will install the library with headers and everything needed to compile your apps. Version 2.8.12 will be installed.
`wx-config --cppflags` will give you the flags needed to compile and `wx-config --libs` the libraries needed to link.
The only thing to be careful, at least in my case, is that the build is Unicode, whereas the original 2.8 windows build is not Unicode by default. That caused me a minor headache, as my sources were not unicode aware. I know it's silly, but since I'd been with wxwidgets since the days when it was wxWindows, and long before unicode appeared in the wx world, I needed a way to test my installation and my older apps wouldn't compile with the unicode change, so I disabled unicode all together as a test. Then, kept it disabled because of all the details to take care of with strings and chars seemed pointless. Now I'm porting everything to unicode.
On the very plus side, the library is just as strong as it gets. My test app, one running already in windows, runs just the same in the Raspberry, other than at lower speed, nothing annoying at all.
And it is not a "minimal" app at all. It uses network sockets, a personal protocol, has a lot of controls, including richtext with fonts and colors, a panel to draw several graphics and text, and the app flow enables/disables some controls and everything works as expected. The only thing the application doesn't have is menus, because since the beggining it was conceived to be ported to an iPad. Again, since the protocol was ASCII based, I had to be careful with moving the data between unicode and ascii for it to work properly.
In short, I can truly say that I can build at least a complex application in windows, take the source, compile it and run it in the Raspberry without hassles. I see this as a business oppotunity.
Regards.
Alfredo Meraz