Installing / compiling / running kdemo...how to? Ubuntu 12.10

Asked by Russ

As in the summary, how does one install / complule / run kdemo in Ubuntu 12.10?

I have tried substituting some of the parts of the compile instructions for hunquat, but no luck.

'Scons' command in the kdemo folder produces only this output:

"scons: *** No SConstruct file found.
File "/usr/lib/scons/SCons/Script/Main.py", line 904, in _main"

Question information

Language:
English Edit question
Status:
Solved
For:
Kunquat Edit question
Assignee:
No assignee Edit question
Solved by:
Russ
Solved:
Last query:
Last reply:
Revision history for this message
Tomi Jylhä-Ollila (tomi.jylha-ollila) said :
#1

Hi,

The kdemo uses the build.py script in the package, so running ./build.py should work. See the INSTALL file for more information.

Revision history for this message
Russ (russelldyson) said :
#3

Running ./build.py as in the INSTALL instructions produces this output in Ubuntu 12.10:

Traceback (most recent call last):
  File "./build.py", line 22, in <module>
    sdl_cflags = [subprocess.check_output(['sdl-config', '--cflags']).split()]
  File "/usr/lib/python2.7/subprocess.py", line 537, in check_output
    process = Popen(stdout=PIPE, *popenargs, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1259, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

________________________________
 From: Tomi Jylhä-Ollila <email address hidden>
To: <email address hidden>
Sent: Tuesday, 11 December 2012, 12:50
Subject: Re: [Question #216340]: Installing / compiling / running kdemo...how to? Ubuntu 12.10

Your question #216340 on Kunquat changed:
https://answers.launchpad.net/kunquat/+question/216340

    Status: Open => Answered

Tomi Jylhä-Ollila proposed the following answer:
Hi,

The kdemo uses the build.py script in the package, so running ./build.py
should work. See the INSTALL file for more information.

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/kunquat/+question/216340/+confirm?answer_id=0

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/kunquat/+question/216340

You received this question notification because you asked the question.

Revision history for this message
Russ (russelldyson) said :
#4

Am I being a dumb ass here? I guess I should install Python first. I just done a thinko, or is that a usero. Doh!

Revision history for this message
Russ (russelldyson) said :
#5

I just installed Python 3.3 and I get the same output from ./build.py

Revision history for this message
Tomi Jylhä-Ollila (tomi.jylha-ollila) said :
#6

Hmm, do you have libsdl1.2-dev installed?

Revision history for this message
Russ (russelldyson) said :
#7

No, libsdl1.2-dev (or any of the associated packages) were not installed. Once that was installed, then ./build.py seemed to work.

Upon running ./demo I get the following error:

./demo: error while loading shared libraries: libkunquat.so.0: cannot open shared object file: No such file or directory

I have checked that these are both installed from the Requirements, and they do seem to be installed fine.

SDL 1.2 (libsdl1.2-dev in Ubuntu)
OpenGL (libgl1-mesa-dev in Ubuntu)

The only variable as I can see is that I'm using Python 3.3 and the Requirements call for Python 2.7.

Revision history for this message
Russ (russelldyson) said :
#8

Okay, I solved it.

I forgot to run kunquat first using:

export LD_LIBRARY_PATH=~/kunquat/lib
export PYTHONPATH=~/kunquat/lib/python2.7/site-packages
~/kunquat/bin/kunquat-tracker ~/kunquat/share/doc/kunquat/examples/example.kqt.bz2

Thanks all is working now.