Jump to content

Probleme mit dem Build Environment


Recommended Posts

Hallo Zusammen

 

Ich möchte mir gerne eine aktuelle offline Doku erstellen, aber das Ausführen des generate_all.py endet immer mit folgenden Fehler. Auch in einem osboxes-image Ubuntu 15.10 habe ich die gleichen Meldungen.

 

gus@CF-20:~/tf/generators$ python2 generate_all.py

 

Generating bindings for c:

* brick_dc

* brick_imu

* brick_imu_v2

* brick_master

* brick_red

* brick_servo

* brick_silent_stepper (not released, not documented)

Traceback (most recent call last):

  File "generate_all.py", line 33, in <module>

    module.generate(os.path.join(path, binding))

  File "/home/gus/tf/generators/c/generate_c_bindings.py", line 798, in generate

    common.generate(bindings_root_directory, 'en', CBindingsGenerator)

  File "/home/gus/tf/generators/common.py", line 743, in generate

    generator.generate(device)

  File "/home/gus/tf/generators/c/generate_c_bindings.py", line 790, in generate

    h.write(device.get_c_header())

  File "/home/gus/tf/generators/c/generate_c_bindings.py", line 632, in get_c_header

    header += self.get_c_function_declaration()

  File "/home/gus/tf/generators/c/generate_c_bindings.py", line 586, in get_c_function_declaration

    doc = packet.get_c_formatted_doc()

  File "/home/gus/tf/generators/c/generate_c_bindings.py", line 669, in get_c_formatted_doc

    text = self.get_device().specialize_c_doc_function_links(text)

  File "/home/gus/tf/generators/c/generate_c_bindings.py", line 44, in specialize_c_doc_function_links

    return self.specialize_doc_function_links(text, specializer)

  File "/home/gus/tf/generators/common.py", line 1410, in specialize_doc_function_links

    raise Exception('Unknown :func: found: ' + m.group(1))

Exception: Unknown :func: found: :func:`SetStallguardCoolstepConfiguration`

 

Link to comment
Share on other sites

Vielen Dank, leider treten noch ein paar Probleme auf.

 

am Ende vom generate_all.py

 

* bricklet_voltage_current

Traceback (most recent call last):

  File "generate_all.py", line 72, in <module>

    run_zip_generator(path, binding)

  File "generate_all.py", line 63, in run_zip_generator

    module.generate(os.path.join(path, binding))

  File "/home/gus/tf/generators/csharp/generate_csharp_zip.py", line 125, in generate

    common.generate(bindings_root_directory, 'en', CSharpZipGenerator)

  File "/home/gus/tf/generators/common.py", line 745, in generate

    generator.finish()

  File "/home/gus/tf/generators/csharp/generate_csharp_zip.py", line 110, in finish

    os.path.join(self.tmp_source_tinkerforge_dir, 'Tinkerforge.csproj')])

  File "/home/gus/tf/generators/common.py", line 620, in execute

    if subprocess.call(args, **kwargs) != 0:

  File "/usr/lib/python2.7/subprocess.py", line 523, in call

    return Popen(*popenargs, **kwargs).wait()

  File "/usr/lib/python2.7/subprocess.py", line 711, in __init__

    errread, errwrite)

  File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child

    raise child_exception

OSError: [Errno 2] No such file or directory

 

und dann beim ausführen des copy_all.py

 

gus@CF-20:~/tf/generators$ sudo python2 copy_all.py

[sudo] Passwort für gus:

 

Copying ip_connection to brickv:

 

Copying Python bindings to brickv:

 

Copying 'en' documentation and examples:

Copying 'de' documentation and examples:

 

Copying Tinkerforge.js to doc/en:

Traceback (most recent call last):

  File "copy_all.py", line 122, in <module>

    shutil.copy(src_file, dest_dir)

  File "/usr/lib/python2.7/shutil.py", line 119, in copy

    copyfile(src, dst)

  File "/usr/lib/python2.7/shutil.py", line 82, in copyfile

    with open(src, 'rb') as fsrc:

IOError: [Errno 2] No such file or directory: '/home/gus/tf/generators/javascript/Tinkerforge.js'

 

Link to comment
Share on other sites

Es sieht aus als ob dir xbuild fehlt. Das kommt aus dem mono-xbuild Package, das Teil von mono-complete sein sollte. mono-complete sollte allerdings vom Build Environment Script installiert worden sein.

 

Versuch mal das manual nachzuinstallieren:

 

sudo apt-get install mono-xbuild

Link to comment
Share on other sites

Besten Dank, jetzt habe ich den Fehler gefunden.

 

im build_environment_setup.sh

 

das php5 Paket konnte im Ubuntu 16.10 Yakkety nicht installiert werden, darum wurde die ganze apt-get Zeile nicht ausgeführt. Somit fehlte xbuild und alles andere aus dieser Anweisung.

Leider habe ich die mono 2.0 Files nicht nachinstallieren können. Hab jetzt die von der mono 4.5 benutzt und es funktioniert.

 

# Packages for "generators/generate_all.py"
sudo apt-get -y install build-essential mono-complete python3 perl default-jre default-jdk nodejs npm php5 php-pear ruby zip
sudo npm install -g browserify
sudo ln -s /usr/bin/nodejs /usr/local/bin/node

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...