![]() |
WP34s Development under Linux? - Printable Version +- HP Forums (https://archived.hpcalc.org/museumforum) +-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html) +--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html) +--- Thread: WP34s Development under Linux? (/thread-205345.html) |
WP34s Development under Linux? - Nobby K. - 11-22-2011 Hi, all. I'm trying to modify WP34 based on V2.2 using Linux enviorment. Q1. If based on V2.2 firmware, which SVN revision shoud be checked out?
I tried to build with CodeSourcery G++ Lite(4.5.2) on Linux and Anyone has seen that?
Q2. Which compiler should be used on linux?
regards,
Re: WP34s Development under Linux? - Eric Smith - 11-22-2011 Quote: I was told that there were problems using CodeSourcery.
Quote:
You! :-)
Re: WP34s Development under Linux? - Walter B - 11-22-2011 Quote:Build 1797 was a good v2.2 build IIRC. Generally, just read the comments submitted with each build - and a few of the following ones - and you'll get a feeling what was (and is) going on. But be aware you branch on work in progress! We let you follow the development process closely, giving you a lot of insight and OTOH a lot of responsibility for your deeds. If you want a probably more stable package, take the latest zipped build.
For the other questions, I concur with Eric.
Re: WP34s Development under Linux? - Marcus von Cube, Germany - 11-22-2011 As Eric already told you, CodeSourcery and WP 34S are a close mismatch. :-(
If you really want to participate in development, do it on the latest SVN revision. Pascal is just adding a Qt GUI to the project which makes it possible to run the GUI version on MacOS, Linux and whatever operating system supports Qt. Compiling this on a Linux system should be easy. In order to build the ARM binary, get a generic GCC 4.6.2 ARM cross compiler. Yagarto.de is supplying one for Windows and MacOS which I'm running both with success: They produce the same binaries.
Re: WP34s Development under Linux? - pascal_meheut - 11-22-2011 The project compiles under Linux indeed. But it is better to use GCC. I second Marcus: you should base your work on the last version. If you checkout it, you'll find a README in the QtGui subdirectory explaining how to build the whole project and the new emulator under Linux. Then you can indeed build the calc.bin if you have a compiler. Just configure the paths in the main Makefile (search for CROSS_COMPILE) and launch "make REALBUILD=1". If you really want to work on 2.2, it must be possible to merge the old source code with the emulator and the changes in the Makefile but you'll be on your own.
Re: WP34s Development under Linux? - Nobby K. - 11-23-2011 Thanks All! I will uninstall CodeSourcery and try YAGARTO on windows or generic GCC on linux.
I only want to add sum functions to every day using stable calculator.
Re: WP34s Development under Linux? - Marcus von Cube, Germany - 11-23-2011 Quote:Are you sure this is a missing functionality? There are functions for time and date and calculations therewith. Re: WP34s Development under Linux? - Nobby K. - 11-24-2011 I want to add 'SETJPN' and money exchange rate convertor.
OK,OK! I will follow trunk, but now building GCC toolchain.
SETJPN - Paul Dale - 11-24-2011 What should SETJPN do?
I think adding this command will consume 10 - 12 bytes of flash. If you want to do it yourself, you'll need to make changes to (at least):
- Pauli
Edited: 24 Nov 2011, 10:31 p.m.
Re: WP34s Development under Linux? - Dominic Richens - 11-25-2011 Quote: Wow good job Pascal! I'm posting the latest version of the emulator in a public share at work - I know there are a few RPN oriented people at my work.
Any plans to make a "compact" skin?
Re: WP34s Development under Linux? - Marcus von Cube, Germany - 11-25-2011 I've just updated the layout(s) again for Windows. Pascal, some work ahead! :-) Edited: 25 Nov 2011, 7:00 a.m.
Re: WP34s Development under Linux? - pascal_meheut - 11-25-2011 Yes, the new emulator will support the same set of skins. It is just a matter of converting them to the new XML format which can be partially automated. And the emulator must also be improved to detect the set of skins, create the menu, remember the last one selected... Nothing major but I'm working on the .dat files load&save right now. Anyway, a first "full" version of the new emulator should be ready in 2 to 4 weeks I guess. Maybe sooner if my real work stop bothering me :-)
Re: WP34s Development under Linux? - Marcus von Cube, Germany - 11-25-2011
Quote:The routines are all there (storage.c). What makes this difficult? Re: WP34s Development under Linux? - pascal_meheut - 11-25-2011 Nothing difficult but if we want the emulator to be a real application, packaged for several OS, it is better to use the .dat files as default values and to store the user's modifications as "preferences", i.e as a copy in its home directory. It allows the application to be installed for several users (in Program Files, /usr/local, /opt, /Applications...), avoids trying to write to the directory where the application is installed (which can be read-only...) Supporting the current behavior will still be possible of course.
Re: WP34s Development under Linux? - Marcus von Cube, Germany - 11-25-2011 I understand. You want to look at the current directory (or a preferences directory) first for any file, then in the emulator directory. Writing shall always go to the current or user's directory.
Re: WP34s Development under Linux? - pascal_meheut - 11-25-2011 Exactly.
Re: SETJPN - Nobby K. - 11-25-2011 So, I am Japanese. Anyone is there?
Quote:Radix indicator is dot. Time is 24h Thousands separate present(comma). J -> G: 1873 Date format is y.md Quote: J -> G year is not important for me.
I should try that. But if you do that, it is very welcome.
Re: SETJPN - pascal_meheut - 11-25-2011 Quote: If we want to add some personalization in the firmware without consuming flash, it is relatively easy: we can simply change a value in calc.bin itself. I've tried this to calibrate the STOPWATCH function and it works perfectly. My WP34s are now very accurate without a quartz.
I plan on implementing this kind of function, starting by calibration, in the new emulator.
Re: SETJPN - Paul Dale - 11-25-2011 Quote: Good, we only allow two choices :-) The history of the changeover is bizarre to say the least.
We errantly thought that the Chinese settings were suitable in Japan too :-( Live and learn.
Re: SETJPN - Nobby K. - 11-26-2011 Quote:
Thanks! Re: SETJPN - Nobby K. - 11-26-2011 I can't build rev 1924. --- decn.h (revision 1924) Re: WP34s Development under Linux? - Nobby K. - 11-26-2011 Hi, Pascal.
I try to build QtGui, but can not. QtEmulatorAdapter.c:66: undefined reference to `KeyCallback'
Sorry, I have few experience in Qt.
Thank you.
Re: SETJPN - Marcus von Cube, Germany - 11-26-2011 Nobby, Pauli has made some changes to the code in this area. What is the exact error message the compiler produces?
Re: SETJPN - Nobby K. - 11-26-2011 Sorry. I mistake. Re: WP34s Development under Linux? - pascal_meheut - 11-26-2011 Strange, work fine here.
Can you check that you have the last version and that QtEmulatorAdapter.c has the #include "stopwatch.h" at the beginning ? Edited: 26 Nov 2011, 10:54 a.m.
Re: WP34s Development under Linux? - Nobby K. - 11-26-2011 Quote:
Yes. % head -n 30 QtEmulatorAdapter.c | tail -n 15 Current SVN information is
% LANG=C svn info
The error messages is g++ -Wl,-O1 -o Linux/QtGui Linux/QtGuiMain.o Linux/QtEmulator.o Linux/QtBackgroundImage.o Linux/QtKey.o Linux/QtSkin.o Linux/QtScreenPainter.o Linux/QtKeyboard.o Linux/QtSerialPort.o Linux/QtScreen.o Linux/QtCalculatorThread.o Linux/QtHeartBeatThread.o Linux/moc_QtEmulator.o Linux/moc_QtBackgroundImage.o -L../Linux_qt/obj -lCalculator -ldecNum34s -lconsts -L/usr/lib/qt-4.6.1/lib -LLinux -lAdapter -L../Linux_qt/obj -lCalculator -ldecNum34s -lconsts -lQtXml -lQtGui -lQtCore -lpthread
Re: WP34s Development under Linux? - pascal_meheut - 11-27-2011 Ok, this is a link problem, not a compilation one. And something is wrong on your link command: you are missing both the calculator libraries ( -L../Darwin_qt/obj -lCalculator -ldecNum34s -lconsts) and the Qt libraries. Are you using the provided Makefile? Because I tried under Ubuntu yesterday and everything went smoothly with gcc & Qt installed, PATH & QMAKESPEC defined. All I had to do was "make".
Re: WP34s Development under Linux? - Nobby K. - 11-27-2011 Quote:
QtGui is builded successfully.
Thanks.
Re: WP34s Development under Linux? - pascal_meheut - 11-27-2011 Fine. Do not hesitate to report any problem, QtGui is still a work in progress.
|