Heya,

I want to install TuxPaint on OpenSolaris.

I tried to install it by source, but it got stuck on the 'make' command. Can anyone please give the step-by-step process of doing that?

I am using the latest version of OpenSolaris.

Dani AI

Generated

Short summary and likely causes (based on the thread): saw a parser error from make and later many compiler errors. 's Makefile tweak was aimed at Solaris library layout, but that alone won't help if the wrong make is used or the SDL/png/ttf development headers and libs are missing. Two things fix most OpenSolaris builds: use GNU make, and ensure all development packages (SDL, SDL_image, SDL_ttf, libpng, libjpeg, freetype, zlib, plus a C/C++ toolchain) are installed and visible to the build system.

Practical sequence to try (adapt paths to where you installed libraries):

CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib -Wl,-rpath,/usr/local/lib" ./configure --prefix=/usr/local
gmake
gmake install

Notes on the above:

  • Use gmake (GNU make). The stock Solaris make differs and produces parser errors on GNU-style Makefiles.
  • Adjust the rpath/ld options for your toolchain if it expects a different syntax (Sun compilers historically use a different runtime-path flag).
  • Prefer running configure/make as an unprivileged user; run the install step as root.

Troubleshooting tips if compilation still fails:

  • Check that sdl-config or pkg-config finds SDL and friends; run sdl-config --cflags and sdl-config --libs (or pkg-config --cflags --libs sdl) and compare to the flags configure picked up.
  • If errors show missing headers, install the corresponding "-devel" or developer packages from your OpenSolaris package source (third-party repos such as OpenCSW/Blastwave or Sun-provided SFW collections).
  • If you get undefined references to C++ symbols at link time, make sure linking uses the C++ runtime (use the C++ linker or add the C++ stdlib to the link flags).
  • Capture and paste the first compiler error (the initial one, not the cascade) when asking for further help — that line pinpoints the root cause.

If building becomes painful, consider installing a prebuilt package from a trusted OpenSolaris repository to avoid toolchain/platform differences.

Recommended Answers

All 5 Replies

Here's the install documentation for TuxPaint:

Assuming you meet all the requirements described in that document, your next step is to post the error messages you encountered when trying to compile it.

I get the following error while running make -

make: Fatal error in reader: Makefile, line 13: Unexpected end of line seen

How do I resolve this?

This issue is specific to Solaris and appears to have been solved by editing the makefile:

For TuxPaint I did have to modify the Makefile to include: ARCH_LINKS=-L/usr/sfw/lib -R/usr/sfw/lib -lpng -lstdc++

(source)

This isn't working for OpenSolaris, the library structure is apparently different. Please help me with this, as I m new to installing applications by source.

I tried running 'make' again, this time not logged in as root.

It threw up many errors in the 'tuxpaint.c' file, then finally stopped at:

make: *** [obj/tuxpaint.o] Error 1

How do I rectify this?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.