Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build with audio support #435

Open
locatw opened this issue Feb 15, 2015 · 4 comments
Open

Cannot build with audio support #435

locatw opened this issue Feb 15, 2015 · 4 comments
Milestone

Comments

@locatw
Copy link

locatw commented Feb 15, 2015

I'm trying to build libfreenect with audio support on Ubuntu 14.04 (x86), but an error occurred when extracting SystemUpdate.zip in make step.

$ cmake -DBUILD_PYTHON=ON -DBUILD_CV=ON -DPYTHON_EXECUTABLE=/usr/bin/python2 -DBUILD_REDIST_PACKAGE=OFF -L ..
$ make
Scanning dependencies of target firmware
Downloading SystemUpdate.zip from http://www.xbox.com/system-update-usb
Reading response...
done, saved to SystemUpdate.zip
Extracting $systemupdate/FFFE07DF00000001 from system update file...
Traceback (most recent call last):
  File "/home/loca/build/libfreenect/src/fwfetcher.py", line 548, in <module>
    pirs = extractPirsFromZip(fw)
  File "/home/loca/build/libfreenect/src/fwfetcher.py", line 538, in extractPirsFromZip
    pirs = z.open("$systemupdate/FFFE07DF00000001").read()
  File "/usr/lib/python2.7/zipfile.py", line 961, in open
    zinfo = self.getinfo(name)
  File "/usr/lib/python2.7/zipfile.py", line 909, in getinfo
    'There is no item named %r in the archive' % name)
KeyError: "There is no item named '$systemupdate/FFFE07DF00000001' in the archive"
make[2]: *** [src/CMakeFiles/firmware] error 1
make[1]: *** [src/CMakeFiles/firmware.dir/all] error 2
make: *** [all] error 2

Downloading SystemUpdate.zip was successful and file was saved at build/src/ directory, and a file "FFFE07DF00000001" exists in unzipped directory.

Why this error occurs?

My python environment is (extracts from cmake output log):

-- Found PythonInterp: python2 (found version "2.7.6") 
-- Found PythonLibs: /usr/lib/i386-linux-gnu/libpython2.7.so (found version "2.7.6") 

Thank you

@fabian247
Copy link

I ran into the same problem. It's due to a misspelling in fwfetcher.py or because Microsoft renamed a path in their SystemUpdate.zip.

fwfetcher.py refers to $systemupdate/FFFE07DF00000001 in line 538. The MS file SystemUpdate.zip extracts to $Systemupdate. Note the capital 'S'.

You can correct the foldername in fwfetcher.py or you can also repack SystemUpdate.zip and rename the folder inside the archive.

Hope this helps.

@piedar piedar added this to the v0.6.0 milestone Feb 26, 2015
@locatw
Copy link
Author

locatw commented Feb 28, 2015

I can build successfully when I correct the line 538 in fwfetcher.py. Thanks!

@locatw locatw closed this as completed Feb 28, 2015
@piedar piedar reopened this Mar 1, 2015
@piedar
Copy link
Contributor

piedar commented Mar 1, 2015

Reopened to remind me to fix it. Thanks for finding the solution, @fabian247

@piedar piedar closed this as completed in 95ae970 Mar 2, 2015
@piedar piedar modified the milestones: v0.5.3, v0.6.0 Jul 14, 2015
@sloughlin
Copy link

sloughlin commented Dec 7, 2018

Hi! Just ran into this issue again, it worked with $SystemUpdate though!` (Edit: capital U)

@piedar piedar reopened this Dec 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants