Compiling Nonpareil


Hi Eric,

I've just downloaded Nonpareil and want to compile it under Ubuntu on my Eee PC, but I get a missing library error:

marcus@eeepc:/media/sdcard/2/projekte/nonpareil-0.78$ scons
scons: Reading SConscript files ...
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
All libs seem to be missing. I can see the respective .so files in /usr/lib, but the requested .pc files aren't there. Can you direct me a little?



If you were running Fedora, I'd say that you probably need the various "-devel" packages. Perhaps Ubuntu also has development packages?


OK, after installing a bunch of -dev packages, flex and bison, I still get errors:

gcc -o build/posix/csim.o -c -Wall -g -pthread -D_GNU_SOURCE=1
-D_REENTRANT "-D{'DEFAULT_PATH': '/usr/local/lib/nonpareil'}"
-Ibuild/posix -Isrc -Ibuild/common -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/cairo -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/freetype2 -I/usr/include/libpng12
-I/usr/include/pixman-1 -I/usr/include/libxml2
-I/usr/include/SDL src/csim.c
<command-line>: error: macro names must be identifiers
scons: *** [build/posix/csim.o] Error 1
scons: building terminated because of errors.

Looks like GCC doesn't like the following: -D{'DEFAULT_PATH': '/usr/local/lib/nonpareil'}




No one there to help me? Can I patch the build scripts myself?


Looks like you're using a newer version of SCons than was supported by that release of Nonpareil.

You can try changing src/SConscript:

-    csim_env.Append (CPPDEFINES = {'SHAPE_DEFAULT': "false"})
+ csim_env.Append (CPPDEFINES = [('SHAPE_DEFAULT', "false")])

Probably needs other changes throughout the file.

Or use the scons-local that's supplied.


scon-local did the trick.

On my 800x480 pixel eeePC display, the 41.kml does not fit the screen. Are there alternatives to try?

Edited: 25 June 2008, 10:25 a.m.


Get and extract into your nonpareil directory (e.g. /usr/local/lib/nonpareil), then type nonpareil 41cxs. I created a short 35 as well: Both have been optimized for 640x480 screens. 800x480 is no problem.

Screen shots here:

You may also want to checkout the patches from here: Just get the x48 source and patch with Then you'll have a GX and SX as well. Use Linux C-Kermit to transfer code to/from the emulator. NOTE: I have an x86 x48 binary if you do not want to bother with patching and compiling. Of course you can just use wine and run emu48 if you like.

Edited: 25 June 2008, 12:02 p.m.


Thanks Egan!

Seems to work fine. Now it's time to play. It's a pity that the eeePC does not come with a touch screen. :(

Edited: 26 June 2008, 4:46 a.m.


The missing Software should be inside libgtk2.0-dev. Just do a apt-get install libgtk2.0-dev.

Possibly Related Threads...
Thread Author Replies Views Last Post
  Nonpareil Rom files davorin 2 1,142 09-20-2013, 06:20 PM
Last Post: Didier Lachieze
  Nonpareil + HP10C Mike (Stgt) 0 774 05-13-2013, 04:58 AM
Last Post: Mike (Stgt)
  [41CL] Trouble compiling CLWriter.cs Dan Grelinger 3 1,288 02-17-2013, 10:52 PM
Last Post: Dan Grelinger
  Nonpareil stuck Arnaud Amiel 3 1,028 08-05-2011, 10:00 PM
Last Post: Eric Smith
  HP65 in Nonpareil Harald 4 1,317 01-28-2011, 02:05 PM
Last Post: Harald
  A webserver running on a HP-41 and HPIL patch for nonpareil Khanh-Dang Nguyen Thu-Lam 10 2,350 02-01-2009, 12:59 PM
Last Post: Khanh-Dang Nguyen Thu-Lam
  MOD file format differences for V41 vs i41cx/Nonpareil PeterP 3 1,072 10-16-2008, 04:36 AM
Last Post: Meindert Kuipers
  Status of iPhone Ports of Free42 and Nonpareil? Les Wright 3 1,012 09-25-2008, 03:02 AM
Last Post: Les Wright
  Windows installer for Nonpareil nearly ready Eric Smith 0 562 07-31-2008, 04:02 AM
Last Post: Eric Smith
  Nonpareil progress on 67, 97, and 19C Eric Smith 0 591 07-27-2008, 06:00 PM
Last Post: Eric Smith

Forum Jump: