Embedded Motion Control 2017/FAQ: Difference between revisions

From Control Systems Technology Group
Jump to navigation Jump to search
(Created page with 'When you ran into a problem, try to find the solution here first. If it's not here, try to find an answer by googling your problem, asking fellow students, or, as a very last res…')
 
 
(One intermediate revision by one other user not shown)
Line 36: Line 36:


Everything related to version control using git
Everything related to version control using git
'''Q:'''
installing/updating git with "sudo apt-get install git" results in the following error:
    start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
    No apport report written because the error message indicates its a followup error from a previous failure.
    dpkg: error processing package runit (--configure):
    subprocess installed post-installation script returned error exit status 1
    dpkg: dependency problems prevent configuration of git-daemon-run:
    git-daemon-run depends on runit; however:
    Package runit is not configured yet.
    dpkg: error processing package git-daemon-run (--configure):
    dependency problems - leaving unconfigured
    Errors were encountered while processing:
    runit
    git-daemon-run
    E: Sub-process /usr/bin/dpkg returned an error code (1)
How could I solve this?
'''A:'''
A possible solution is to remove the "git-daemon-run" and "runit" file as explained in https://askubuntu.com/questions/631615/unable-to-connect-to-upstart-error-when-installing-git-all (a bug is possible causing the error).
# Remove git-daemon-run
#*    <pre> sudo dpkg -r git-daemon-run </pre>
# Remove runit
#*    <pre> sudo dpkg -r runit </pre>
# install again
#*    <pre> sudo apt-get install git </pre>


== PICO ==
== PICO ==
Line 54: Line 84:


Select the entire output (you probably only need a few relevant variables, but copying everything works fine), and copy (ctrl+shift+c). Paste the entire output in your QT creator Batch Edit window, and click OK. Building with CTRL+B should work now!
Select the entire output (you probably only need a few relevant variables, but copying everything works fine), and copy (ctrl+shift+c). Paste the entire output in your QT creator Batch Edit window, and click OK. Building with CTRL+B should work now!
If you're still getting undefined reference errors try running the following in the terminal
    emc-update

Latest revision as of 07:33, 2 May 2018

When you ran into a problem, try to find the solution here first. If it's not here, try to find an answer by googling your problem, asking fellow students, or, as a very last resort, ask your tutor! If you found a solution, please put it here such that others can use it! Try to be as consise yet descriptive as possible, and try to file your Problem-Solution pair under the correct category (or add a new category if necessary).

Example

Just as an example! Please remove this section if you're the first to add a Problem-Solution pair!

My computer is on fire. Is this a bad thing?

Nah, probably not, the fire will soon die out. Be sure though to commit all your changes to git! Just in case...

Ubuntu

My laptop is stuck on maximum brightness

Open your Terminal. Type

sudo gedit /usr/share/X11/xorg.conf.d/20-intel.conf

A text editor will open. Add the following content

Section "Device"
        Identifier  "card0"
        Driver      "intel"
        Option      "Backlight"  "intel_backlight"
        BusID       "PCI:0:2:0"
EndSection

Log out and back in. You can now use the brightness controls on your keyboard to change the brightness.

C++

Everything related to the programming language

Version control (git)

Everything related to version control using git

Q:

installing/updating git with "sudo apt-get install git" results in the following error:

   start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
   No apport report written because the error message indicates its a followup error from a previous failure.
   dpkg: error processing package runit (--configure):
   subprocess installed post-installation script returned error exit status 1
   dpkg: dependency problems prevent configuration of git-daemon-run:
   git-daemon-run depends on runit; however:
   Package runit is not configured yet.
   dpkg: error processing package git-daemon-run (--configure):
   dependency problems - leaving unconfigured
   Errors were encountered while processing:
   runit
   git-daemon-run
   E: Sub-process /usr/bin/dpkg returned an error code (1)

How could I solve this?

A:

A possible solution is to remove the "git-daemon-run" and "runit" file as explained in https://askubuntu.com/questions/631615/unable-to-connect-to-upstart-error-when-installing-git-all (a bug is possible causing the error).

  1. Remove git-daemon-run
    •  sudo dpkg -r git-daemon-run 
  2. Remove runit
    •  sudo dpkg -r runit 
  3. install again
    •  sudo apt-get install git 

PICO

Everything related to PICO

Qt Creator

My program is not building and running within Qt Creator

When building the program does not work in Qt creator, but does work in the terminal, the following may fix the problem.

When your project is open, click 'Projects' on the left task bar. Scroll down to 'Build Environment', and expand it (click Details). Now, all the way to the bottom right, click 'Batch Edit'.

Next, open your terminal (ctrl+alt+t), and type

   printenv

Select the entire output (you probably only need a few relevant variables, but copying everything works fine), and copy (ctrl+shift+c). Paste the entire output in your QT creator Batch Edit window, and click OK. Building with CTRL+B should work now!

If you're still getting undefined reference errors try running the following in the terminal

   emc-update