WP34s build compiler



#2

Looking at the WP34s build files, it seems that I need CodeSourcery G++ Lite. Exactly what target platform flavor should I choose when downloading this?


#3

No you don't. What platform do you want to build for and what do you want to build? The calc.bin firmware? The old Windows emulator? The new Qt Emulator?


#4

Quote:
The old Windows emulator? The new Qt Emulator?

Is there any advantage of the new Qt emulator over the old Windows emulator?

I'm sure some here would like to try this new emulator, but certainly not many of us (including me) have (or want to download and install) a complete C environment just to compile this sources.

Is it really so difficult to provide a ready-to-use Windows EXE for this new Qt emulator?

Franz


#5

I'm currently working on the packaging so the next releases will include an .EXE (and the equivalent for Mac & Linux).
I'll finish the serial communication after.

The main advantage over the old one will be its availability on other platforms and the fact that it will be easier for the team to add functions. We are considering flashing from the emulator for instance...

#6

You'll find pages describing the free Windows build environment (for emulator and calc.bin) at wiki4hp.

I would say the Qt emulator is less mature (e.g. serial comms still a work in progress) plus the focus has been on getting the Mac and Linux emulators to work.

On the other hand - the Qt windows emulator certainly needs testers. The basic calculator, including simulator flash handing, works fine and Pascal could use some help testing.



Edited: 5 Jan 2012, 10:24 a.m.

#7

I tried CodeSourcery, was pleased with the space optimizations it was able to do, and was very frustrated that the nicely optimized code simply didn't work correctly. That's the reason why I chose Yagarto.de as the compiler. No issues so far.

#8

I forgot to mention that I use Linux and would like to avoid having to mess with Wine in order to do compilation.


#9

plain old gcc / g++ works for the Qt version then. I'm sure there is an ARM chain for Linux but I'm not sure there is a Linux based tool to flash the HP-20b/30b with calc.bin


#10

The regular GCC setup in Linux seems to work for the Qt emulator so far. I haven't yet identified all the development packages that are necessary. Is there anyone here using Linux to tinker about with the WP34s source code from whom I can get some info? I'm still trying to identify the correct cross-compiler to install for building the calculator firmware. For flashing the firmware image to the calculator, there's a version of SAM-BA for Linux.

qextserialenumerator_unix.cpp:(.text._ZN5QListI7QStringE13detach_helperEi[QList<QString>::detach_helper(int)]+0x27): undefined reference to `QListData::detach(int)'
collect2: ld returned 1 exit status

Edited: 6 Jan 2012, 10:26 p.m.


#11

Quote:
qextserialenumerator_unix.cpp:(.text._ZN5QListI7QStringE13detach_helperEi[QList<QString>::detach_helper(int)]+0x27): undefined reference to `QListData::detach(int)'
collect2: ld returned 1 exit status

This one is strange and I cannot reproduce it. Anyway, still a lot of work to do on the serial port and I'm quite busy with my real-world work at the moment.


#12

That error message is what I got when I tried to compile the Qt interface emulator.


#13

So... are there any Linux users out there who can give me a hand?


#14

Quote:
qextserialenumerator_unix.cpp:(.text._ZN5QListI7QStringE13detach_helperEi[QList<QString>::detach_helper(int)]+0x27): undefined reference to `QListData::detach(int)' collect2: ld returned 1 exit status

I'll poke around tomorrow when I can get at my Linux environment. My initial guess is there is something wrong with your Qt build, since it's complaining that one QtCore bit is failing to link to another.

What version of Qt are you using and what verion of gcc?


#15

I'm compiling using gcc-4.6.1 and Qt4.7.4. Other versions of gcc should work.

The problem may come from the qextserial library binaries. I plan to add a way to not include the serial code and also another to recompile the library too.

#16

I'm using GCC 4.4.5 and Qt 4.6.3 as installed though APT on Debian Squeeze. I suspected my Qt problems might be because I don't have the right development packages installed, but based on what I see here today, that might not be right.


#17

Qt 4.7.4 or Qt 4.8 are supported. I never tested with an older version.


#18

You can also try "make qt_gui_no_serial". It compiles without the serial libraries.
Just commited it.

#19

You should download the source code of 'qextserialport' using Mercurial and rebuild qextserialport.a reading trunk/QtGui/SerialPort.txt.
The qextserialport.a which is downloaded from Sourceforge.net(SVN) is used only limited enviorment. If your version of toolchain is different to Pascal, you should re-build qextserialport.a.

I'm using GCC 4.1.2 and Qt 4.6.1 on linux self build for QtGui, and arm-none-eabi-gcc 4.6.2 ,which is builded from source code by my self, on cross build for calc.bin.


#20

There is even a SerialPort.txt file in the WP34-s/QtGui distribution describing how to recompile this library.

#21

I think the Yagarto.de offering is a port of the standard GNU ARM cross compiler, neatly packaged for MacOS and Windows. As stated earlier, CodeSourcery G++ does not produce working binaries of the firmware. I have no idea why.


Possibly Related Threads…
Thread Author Replies Views Last Post
  WP 34S New Build with older GCC Marcus von Cube, Germany 4 1,882 06-22-2013, 05:12 PM
Last Post: Marcus von Cube, Germany
  HP-15C Simulator / Release 3.2.00, Build 5319 Torsten 10 2,893 05-11-2013, 05:19 PM
Last Post: Thomas Klemm
  Debug4X and "divide by zero" when attempting build Joe Veazey 3 1,437 11-25-2012, 08:45 PM
Last Post: Han
  they build their calculators like they build their words db (martinez, ca.) 22 5,293 10-30-2012, 05:57 AM
Last Post: Frank Boehm (Germany)
  [WP34S] WP34S firmware on the AT91SAM7L-STK dev kit? jerome ibanes 1 1,226 10-04-2012, 04:59 PM
Last Post: Paul Dale
  WP34S: New compiler to be tested Marcus von Cube, Germany 15 3,581 09-02-2012, 02:47 AM
Last Post: Walter B
  [WP34s] Build error on linux 64bit Nobby K. 9 2,701 04-08-2012, 02:11 PM
Last Post: pascal_meheut
  HP-41 Focal Compiler/Decompiler MichaelG 0 921 02-14-2012, 11:30 AM
Last Post: MichaelG
  WP34s V3 - Build Number recommended? Thomas Chrapkiewicz 27 6,841 01-28-2012, 01:22 PM
Last Post: Marcus von Cube, Germany
  [wp34s] Incomplete Gamma on the wp34s Les Wright 18 5,236 12-06-2011, 11:07 AM
Last Post: Namir

Forum Jump: