Csound Csound-dev Csound-tekno Search About

[Csnd] wii don't recognized by scons build

Date2012-07-12 14:06
Fromfrancesco
Subject[Csnd] wii don't recognized by scons build
Hello All,
i am building Csound from git in a fresh installation of Ubuntu 12.04 and i
have some problem
building with wii opcode. I have build and installed wiiuse 0.12 (from Mr.
Ffitch) and seems ok,
at least there are libwiiuse.so in /usr/local/lib and wiiuse.h in
/usr/local/include.
But scons with option includeWii=12 seem don't find the header.

Is there something that i can do to fix this or i'm wrong somethings?

Ubuntu 12.04, 32bit, latest csound5 git.

Thanks All,
ciao,
francesco.


--
View this message in context: http://csound.1045644.n5.nabble.com/wii-don-t-recognized-by-scons-build-tp5714169.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-07-12 14:16
Fromjpff@cs.bath.ac.uk
SubjectRe: [Csnd] wii don't recognized by scons build
> Hello All,
> i am building Csound from git in a fresh installation of Ubuntu 12.04 and
> i
> have some problem
> building with wii opcode. I have build and installed wiiuse 0.12 (from Mr.
> Ffitch) and seems ok,
> at least there are libwiiuse.so in /usr/local/lib and wiiuse.h in
> /usr/local/include.
> But scons with option includeWii=12 seem don't find the header.

What message does scons give?  Looking at SConstruct that suggest sthar it
cannot find wiiuse.h in the paths.

My ubuntu system is at the other office -- can check more later today

==John ff



Date2012-07-12 14:50
Fromfrancesco
Subject[Csnd] Re: wii don't recognized by scons build
yes it seems that scons don't see the header (but the file is present),

Checking for C header file wiiuse.h... no
CONFIGURATION DECISION: No Wiimote support

maybe trying to add something in custom.py?

I tried adding CFLAGS to the src directory of wiiuse where are lib and
header,
but without luck (in my case it's really about luck).

Thanks,
ciao,
francesco.


--
View this message in context: http://csound.1045644.n5.nabble.com/wii-don-t-recognized-by-scons-build-tp5714169p5714171.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-07-12 15:32
Fromjpff@cs.bath.ac.uk
SubjectRe: [Csnd] Re: wii don't recognized by scons build
> yes it seems that scons don't see the header (but the file is present),
>
> Checking for C header file wiiuse.h... no
> CONFIGURATION DECISION: No Wiimote support
>
> maybe trying to add something in custom.py?
>
my custom.py says

if sys.platform[:5] == 'linux':
    platform = 'linux'
    customCPPPATH.append('/usr/lib64/jvm/java-1.5.0/include')
    customCPPPATH.append('/usr/lib64/jvm/java-1.5.0/include/linux')
    customCCFLAGS.append('-I/usr/local/include/libcwiimote-.4.0libcwiimote')

You might havre to add suimilar.  If wiiuse.h is in /usr/local/include
then say
    customCCFLAGS.append('-I/usr/local/include)
but that ought to be there.  Now to fire up the Ubuntu machine


Date2012-07-12 17:42
Fromjpff@cs.bath.ac.uk
SubjectRe: [Csnd] Re: wii don't recognized by scons build
I just built csound on xubuntu  I d/loaded sources fronm git, compiled
wiiuse and caled make install (which put it in /usr/lib and /usr/include
and mpt /usr/local..) copied my custom.py and it all built as expected.

This is a 32bit system using floats

cCleaning up and building doubles on the same system is also OK

==John ff



>> yes it seems that scons don't see the header (but the file is present),
>>
>> Checking for C header file wiiuse.h... no
>> CONFIGURATION DECISION: No Wiimote support
>>
>> maybe trying to add something in custom.py?
>>
> my custom.py says
>
> if sys.platform[:5] == 'linux':
>     platform = 'linux'
>     customCPPPATH.append('/usr/lib64/jvm/java-1.5.0/include')
>     customCPPPATH.append('/usr/lib64/jvm/java-1.5.0/include/linux')
>     customCCFLAGS.append('-I/usr/local/include/libcwiimote-.4.0libcwiimote')
>
> You might havre to add suimilar.  If wiiuse.h is in /usr/local/include
> then say
>     customCCFLAGS.append('-I/usr/local/include)
> but that ought to be there.  Now to fire up the Ubuntu machine
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>
>
>



Date2012-07-12 18:52
Fromfrancesco
Subject[Csnd] Re: wii don't recognized by scons build
right, in /usr and not local.
rebuild with this in custom.py

    customCCFLAGS.append('-I/usr/include/')
    customCCFLAGS.append('-L/usr/lib')
    customLIBPATH.append('/usr/lib')

but config.log say

scons: Configure: Checking for C header file wiiuse.h... 
.sconf_temp/conftest_4.c <-
  |
  |#include 
  |
  |
scons: Configure: Caught exception while building
".sconf_temp/conftest_4.o":

so maybe i've built wiiuse in a wrong way, or i missed some other system
library ...

i will try again tonight.

Thanks,
ciao,
francesco.
 


--
View this message in context: http://csound.1045644.n5.nabble.com/wii-don-t-recognized-by-scons-build-tp5714169p5714180.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-07-14 09:44
Fromfrancesco
Subject[Csnd] Re: wii don't recognized by scons build
Hello All again,
I'm not able to solve my problem with wii ...

config.log say:

scons: Configure: Checking for C header file wiiuse.h... 
.sconf_temp/conftest_4.c <-
  |
  |#include 
  |
  |
scons: Configure: Caught exception while building
".sconf_temp/conftest_4.o":

Traceback (most recent call last):
  File "/usr/lib/scons/SCons/Job.py", line 212, in start
    task.prepare()
  File "/usr/lib/scons/SCons/Taskmaster.py", line 172, in prepare
    self.exception_raise()
  File "/usr/lib/scons/SCons/Taskmaster.py", line 786, in
_find_next_ready_node
    children = executor.get_all_children()
  File "/usr/lib/scons/SCons/Executor.py", line 261, in get_all_children
    result.extend(target.children())
  File "/usr/lib/scons/SCons/Node/__init__.py", line 975, in children
    self.scan()
  File "/usr/lib/scons/SCons/Node/__init__.py", line 637, in scan
    executor.scan_sources(self.builder.source_scanner)
  File "/usr/lib/scons/SCons/Executor.py", line 451, in scan_sources
    self.scan(scanner, self.get_all_sources())
  File "/usr/lib/scons/SCons/Executor.py", line 470, in scan
    deps.extend(node.get_implicit_deps(env, s, path))
  File "/usr/lib/scons/SCons/Node/__init__.py", line 548, in
get_implicit_deps
    d = [x for x in n.get_found_includes(env, scanner, path) if x not in
seen]
  File "/usr/lib/scons/SCons/Node/FS.py", line 2681, in get_found_includes
    result = scanner(self, env, path)
  File "/usr/lib/scons/SCons/Scanner/__init__.py", line 211, in __call__
    list = self.function(node, env, path)
  File "/usr/lib/scons/SCons/Scanner/__init__.py", line 333, in _scan
    return self.scan(node, path)
  File "/usr/lib/scons/SCons/Scanner/__init__.py", line 359, in scan
    includes = self.find_include_names (node)
  File "/usr/lib/scons/SCons/Scanner/__init__.py", line 351, in
find_include_names
    return self.cre.findall(node.get_text_contents())
  File "/usr/lib/scons/SCons/Node/FS.py", line 2433, in get_text_contents
    contents = self.get_contents()
  File "/usr/lib/scons/SCons/Node/FS.py", line 2422, in get_contents
    contents = open(fname, "rb").read()
IOError: [Errno 13] Permission denied: '/usr/include/wiiuse.h'
scons: Configure: no

but i'm not able to understand what that means ...

(i have wii files installed in /usr/include and /usr/lib building wiiuse
from source
from Csound repository)

Ubuntu 12.04 32 bit.

Thanks,
ciao,
francesco.


--
View this message in context: http://csound.1045644.n5.nabble.com/wii-don-t-recognized-by-scons-build-tp5714169p5714197.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-07-14 09:47
Fromfrancesco
Subject[Csnd] Re: wii don't recognized by scons build
(sorry) i forgot to say that when i buid wiiuse trying to buid all (i.e. wii
for sdl etc.)
i had error in compiling example files for wii (not for wii and sdl).
Maybe this means that i have wrongly build wiiuse?

ciao,
francesco.
 

--
View this message in context: http://csound.1045644.n5.nabble.com/wii-don-t-recognized-by-scons-build-tp5714169p5714198.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-07-14 11:39
FromTito Latini
SubjectRe: [Csnd] Re: wii don't recognized by scons build
AttachmentsNone  

Date2012-07-14 12:45
Fromfrancesco
Subject[Csnd] Re: wii don't recognized by scons build
it was so easy ...
it was suffice to read the message log ...
and i feel so stupid ... one more time.

Thank You Tito,
ciao,
francesco.


--
View this message in context: http://csound.1045644.n5.nabble.com/wii-don-t-recognized-by-scons-build-tp5714169p5714203.html
Sent from the Csound - General mailing list archive at Nabble.com.