# Ubuntu 16

# Qt 4.7.4


qt 컴파일 에러가 발생하였음


qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory



해결 방법


sudo apt-get install qt4-qmake libqt4-dev







출처: http://www.debugpoint.com/2016/01/how-to-solve-qmake-error-qmake-no-such-file-or-directory/

# Virtual Box 5.1

# Ubuntu 16


공유 디렉토리 설정



• 게스트 확장 설치

이전 버전에서는 "장치 게스트 확장 CD 이미지 삽입"하여 설치 하였으나, 오류가 발생하였음. 



가상 광 디스크 C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso을(를) 가상 머신 Ubuntu16_Env에 삽입할 수 없습니다.

Could not mount the media/drive 'C:\Program Files\Oracle\VirtualBox/VBoxGuestAdditions.iso' (VERR_PDM_MEDIA_LOCKED).

결과 코드: E_FAIL (0x80004005)

구성 요소: ConsoleWrap

인터페이스: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}

호출자: IMachine {b2547866-a0a1-4391-8b86-6952d82efaa0}



• 해결방법

$ sudo apt-get install virtualbox-guest-additions-iso

$ sudo apt-get install virtualbox-guest-utils




$ sudo usermod -G vboxsf -a ubuntu

$ reboot


• 공유 디렉토리 경로

$ cd /media/sf_share



완료.


• Mount 명령어는 아래와 같다

$ sudo mount -t vboxsf share /mnt/share




출처 : https://askubuntu.com/questions/99003/error-in-installing-virtualbox-guest-additions-iso-file-mount

출처 : https://superuser.com/questions/745868/mount-failed-unknown-file-system-in-virtualbox-in-ubuntu-14-04-and-windows-7-a

$ sudo vi /etc/vim/vimrc

→ 맨 아래 입력해 줍니다. (ctag, cscope는 다음에 다루기로 함)



set nu

syntax on

set autoindent

set cindent

set smartindent

set tabstop=4

set shiftwidth=4

highlight Comment term=bold cterm=bold ctermfg=4

set tags=./tags

set csprg=/usr/bin/cscope

set csto=0

set cst

set nocsverb

if filereadable("./cscope.out")

    cs add cscope.out

else

    cs add ./cscope.out

endif

set csverb

set fileencodings=utf8,euc-kr

 





# Oracle VM VirtualBox 5.1

# ubuntu-16.04.2-desktop-i386.iso 



호스트키 변경

파일 → 환경설정 → 입력 → 가상 머신



가상 머신 만들기

새로 만들기를 클릭한다.






동적 할당 또는 고정크기를 선택합니다.

필자는 고정 크기를 사용하여 설치하였습니다.
















# Ubuntu 10.04.4 LTS

# Linux 2.6.32


# apt-get update 아래와 같은 오류가 발생함


E: 동적 mmap이 한계를 벗어났습니다. APT::Cache-Limit의 크기를 높이십시오. 현재 값: 25165824. (man 5 apt.conf)

E: libstdc++6-powerpcspe-cross 처리하는 중에 오류가 발생했습니다 (NewVersion1)

E: Problem with MergeList /var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_xenial-updates_universe_binary-i386_Packages

W: Unable to munmap

E: 패키지 목록이나 상태 파일을 파싱할 수 없거나 열 수 없습니다.


해결방법



# vi /etc/apt/apt.conf.d/70debconf

파일 끝에 다음 내용을 추가한다.


APT::Cache-Limit "100000000";


# apt-get clean

# apt-get update --fix-missing

 


출처: https://askubuntu.com/questions/219523/dynamic-mmap-ran-out-of-room-when-trying-to-sudo-apt-get-anything/219532

# Ubuntu 10.04.4 LTS

# Linux 2.6.32



apt-get update 명령어를 입력하니 아래와 같은 오류가 발생하였다.


root@ubuntu-desktop:/etc/apt# apt-get update

무시http://ftp.daum.net lucid Release.gpg

무시http://ftp.daum.net/ubuntu/ lucid/main Translation-ko

무시http://ftp.daum.net/ubuntu/ lucid/restricted Translation-ko

무시http://ftp.daum.net/ubuntu/ lucid/universe Translation-ko

무시http://ftp.daum.net/ubuntu/ lucid/multiverse Translation-ko

무시http://ftp.daum.net lucid-updates Release.gpg

무시http://ftp.daum.net/ubuntu/ lucid-updates/main Translation-ko

무시http://ftp.daum.net/ubuntu/ lucid-updates/restricted Translation-ko

무시http://ftp.daum.net/ubuntu/ lucid-updates/universe Translation-ko

무시http://ftp.daum.net/ubuntu/ lucid-updates/multiverse Translation-ko

무시http://ftp.daum.net lucid Release

무시http://ftp.daum.net lucid-updates Release

무시http://security.ubuntu.com lucid-security Release.gpg

무시http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-ko

무시http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-ko

무시http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-ko

무시http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-ko

무시http://ftp.daum.net lucid/main Packages

무시http://ftp.daum.net lucid/restricted Packages

무시http://ftp.daum.net lucid/main Sources

무시http://ftp.daum.net lucid/restricted Sources

무시http://ftp.daum.net lucid/universe Packages

무시http://ftp.daum.net lucid/universe Sources

무시http://ftp.daum.net lucid/multiverse Packages

무시http://ftp.daum.net lucid/multiverse Sources

무시http://ftp.daum.net lucid-updates/main Packages

무시http://ftp.daum.net lucid-updates/restricted Packages

무시http://ftp.daum.net lucid-updates/main Sources

무시http://ftp.daum.net lucid-updates/restricted Sources

무시http://ftp.daum.net lucid-updates/universe Packages

무시http://ftp.daum.net lucid-updates/universe Sources

무시http://ftp.daum.net lucid-updates/multiverse Packages

무시http://ftp.daum.net lucid-updates/multiverse Sources

무시http://ftp.daum.net lucid/main Packages

무시http://ftp.daum.net lucid/restricted Packages

무시http://security.ubuntu.com lucid-security Release

무시http://ftp.daum.net lucid/main Sources

무시http://ftp.daum.net lucid/restricted Sources

무시http://ftp.daum.net lucid/universe Packages

무시http://ftp.daum.net lucid/universe Sources

무시http://ftp.daum.net lucid/multiverse Packages

무시http://ftp.daum.net lucid/multiverse Sources

무시http://ftp.daum.net lucid-updates/main Packages

무시http://ftp.daum.net lucid-updates/restricted Packages

무시http://ftp.daum.net lucid-updates/main Sources

무시http://ftp.daum.net lucid-updates/restricted Sources

무시http://ftp.daum.net lucid-updates/universe Packages

무시http://ftp.daum.net lucid-updates/universe Sources

무시http://ftp.daum.net lucid-updates/multiverse Packages

무시http://ftp.daum.net lucid-updates/multiverse Sources

오류 http://ftp.daum.net lucid/main Packages

  404  Not Found

오류 http://ftp.daum.net lucid/restricted Packages

  404  Not Found

오류 http://ftp.daum.net lucid/main Sources

  404  Not Found

오류 http://ftp.daum.net lucid/restricted Sources

  404  Not Found

오류 http://ftp.daum.net lucid/universe Packages

  404  Not Found

오류 http://ftp.daum.net lucid/universe Sources

  404  Not Found

무시http://security.ubuntu.com lucid-security/main Packages

오류 http://ftp.daum.net lucid/multiverse Packages

  404  Not Found

오류 http://ftp.daum.net lucid/multiverse Sources

  404  Not Found

오류 http://ftp.daum.net lucid-updates/main Packages

  404  Not Found

오류 http://ftp.daum.net lucid-updates/restricted Packages

  404  Not Found

오류 http://ftp.daum.net lucid-updates/main Sources

  404  Not Found

오류 http://ftp.daum.net lucid-updates/restricted Sources

  404  Not Found

오류 http://ftp.daum.net lucid-updates/universe Packages

  404  Not Found

오류 http://ftp.daum.net lucid-updates/universe Sources

  404  Not Found

오류 http://ftp.daum.net lucid-updates/multiverse Packages

  404  Not Found

오류 http://ftp.daum.net lucid-updates/multiverse Sources

  404  Not Found

무시http://security.ubuntu.com lucid-security/restricted Packages

무시http://security.ubuntu.com lucid-security/main Sources

무시http://security.ubuntu.com lucid-security/restricted Sources

무시http://security.ubuntu.com lucid-security/universe Packages

무시http://security.ubuntu.com lucid-security/universe Sources

무시http://security.ubuntu.com lucid-security/multiverse Packages

무시http://security.ubuntu.com lucid-security/multiverse Sources

무시http://security.ubuntu.com lucid-security/main Packages

무시http://security.ubuntu.com lucid-security/restricted Packages

무시http://security.ubuntu.com lucid-security/main Sources

무시http://security.ubuntu.com lucid-security/restricted Sources

무시http://security.ubuntu.com lucid-security/universe Packages

무시http://security.ubuntu.com lucid-security/universe Sources

무시http://security.ubuntu.com lucid-security/multiverse Packages

무시http://security.ubuntu.com lucid-security/multiverse Sources

오류 http://security.ubuntu.com lucid-security/main Packages

  404  Not Found [IP: 91.189.91.23 80]

오류 http://security.ubuntu.com lucid-security/restricted Packages

  404  Not Found [IP: 91.189.91.23 80]

오류 http://security.ubuntu.com lucid-security/main Sources

  404  Not Found [IP: 91.189.91.23 80]

오류 http://security.ubuntu.com lucid-security/restricted Sources

  404  Not Found [IP: 91.189.91.23 80]

오류 http://security.ubuntu.com lucid-security/universe Packages

  404  Not Found [IP: 91.189.91.23 80]

오류 http://security.ubuntu.com lucid-security/universe Sources

  404  Not Found [IP: 91.189.91.23 80]

오류 http://security.ubuntu.com lucid-security/multiverse Packages

  404  Not Found [IP: 91.189.91.23 80]

오류 http://security.ubuntu.com lucid-security/multiverse Sources

  404  Not Found [IP: 91.189.91.23 80]

W: http://ftp.daum.net/ubuntu/dists/lucid/main/binary-i386/Packages.gz 파일을 받는 데 실패했습니다  404  Not Found

W: http://ftp.daum.net/ubuntu/dists/lucid/restricted/binary-i386/Packages.gz 파일을 받는 데 실패했습니다  404  Not Found

W: http://ftp.daum.net/ubuntu/dists/lucid/main/source/Sources.gz 파일을 받는 데 실패했습니다  404  Not Found

W: http://ftp.daum.net/ubuntu/dists/lucid/restricted/source/Sources.gz 파일을 받는 데 실패했습니다  404  Not Found

W: http://ftp.daum.net/ubuntu/dists/lucid/universe/binary-i386/Packages.gz 파일을 받는 데 실패했습니다  404  Not Found

W: http://ftp.daum.net/ubuntu/dists/lucid/universe/source/Sources.gz 파일을 받는 데 실패했습니다  404  Not Found

W: http://ftp.daum.net/ubuntu/dists/lucid/multiverse/binary-i386/Packages.gz 파일을 받는 데 실패했습니다  404  Not Found

W: http://ftp.daum.net/ubuntu/dists/lucid/multiverse/source/Sources.gz 파일을 받는 데 실패했습니다  404  Not Found

W: http://ftp.daum.net/ubuntu/dists/lucid-updates/main/binary-i386/Packages.gz 파일을 받는 데 실패했습니다  404  Not Found

W: http://ftp.daum.net/ubuntu/dists/lucid-updates/restricted/binary-i386/Packages.gz 파일을 받는 데 실패했습니다  404  Not Found

W: http://ftp.daum.net/ubuntu/dists/lucid-updates/main/source/Sources.gz 파일을 받는 데 실패했습니다  404  Not Found

W: http://ftp.daum.net/ubuntu/dists/lucid-updates/restricted/source/Sources.gz 파일을 받는 데 실패했습니다  404  Not Found

W: http://ftp.daum.net/ubuntu/dists/lucid-updates/universe/binary-i386/Packages.gz 파일을 받는 데 실패했습니다  404  Not Found

W: http://ftp.daum.net/ubuntu/dists/lucid-updates/universe/source/Sources.gz 파일을 받는 데 실패했습니다  404  Not Found

W: http://ftp.daum.net/ubuntu/dists/lucid-updates/multiverse/binary-i386/Packages.gz 파일을 받는 데 실패했습니다  404  Not Found

W: http://ftp.daum.net/ubuntu/dists/lucid-updates/multiverse/source/Sources.gz 파일을 받는 데 실패했습니다  404  Not Found

W: http://security.ubuntu.com/ubuntu/dists/lucid-security/main/binary-i386/Packages.gz 파일을 받는 데 실패했습니다  404  Not Found [IP: 91.189.91.23 80]

W: http://security.ubuntu.com/ubuntu/dists/lucid-security/restricted/binary-i386/Packages.gz 파일을 받는 데 실패했습니다  404  Not Found [IP: 91.189.91.23 80]

W: http://security.ubuntu.com/ubuntu/dists/lucid-security/main/source/Sources.gz 파일을 받는 데 실패했습니다  404  Not Found [IP: 91.189.91.23 80]

W: http://security.ubuntu.com/ubuntu/dists/lucid-security/restricted/source/Sources.gz 파일을 받는 데 실패했습니다  404  Not Found [IP: 91.189.91.23 80]

W: http://security.ubuntu.com/ubuntu/dists/lucid-security/universe/binary-i386/Packages.gz 파일을 받는 데 실패했습니다  404  Not Found [IP: 91.189.91.23 80]

W: http://security.ubuntu.com/ubuntu/dists/lucid-security/universe/source/Sources.gz 파일을 받는 데 실패했습니다  404  Not Found [IP: 91.189.91.23 80]

W: http://security.ubuntu.com/ubuntu/dists/lucid-security/multiverse/binary-i386/Packages.gz 파일을 받는 데 실패했습니다  404  Not Found [IP: 91.189.91.23 80]

W: http://security.ubuntu.com/ubuntu/dists/lucid-security/multiverse/source/Sources.gz 파일을 받는 데 실패했습니다  404  Not Found [IP: 91.189.91.23 80]


E: 일부 인덱스 파일을 다운로드하는 데 실패했습니다. 해당 파일을 무시하거나 과거의 버전을 대신 사용합니다.



해결방법

sourcelist를 수정해 준다.


# vi sources.list



# deb cdrom:[Ubuntu 12.04.4 LTS _Precise Pangolin_ - Release amd64 (20140204)]/ dists/precise/main/binary-i386/


# deb cdrom:[Ubuntu 12.04.4 LTS _Precise Pangolin_ - Release amd64 (20140204)]/ dists/precise/restricted/binary-i386/

# deb cdrom:[Ubuntu 12.04.4 LTS _Precise Pangolin_ - Release amd64 (20140204)]/ precise main restricted


# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to

# newer versions of the distribution.

deb http://gb.archive.ubuntu.com/ubuntu/ xenial main restricted

deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial main restricted


## Major bug fix updates produced after the final release of the

## distribution.

deb http://gb.archive.ubuntu.com/ubuntu/ xenial-updates main restricted

deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-updates main restricted


## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu

## team. Also, please note that software in universe WILL NOT receive any

## review or updates from the Ubuntu security team.

deb http://gb.archive.ubuntu.com/ubuntu/ xenial universe

deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial universe

deb http://gb.archive.ubuntu.com/ubuntu/ xenial-updates universe

deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-updates universe


## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 

## team, and may not be under a free licence. Please satisfy yourself as to 

## your rights to use the software. Also, please note that software in 

## multiverse WILL NOT receive any review or updates from the Ubuntu

## security team.

deb http://gb.archive.ubuntu.com/ubuntu/ xenial multiverse

deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial multiverse

deb http://gb.archive.ubuntu.com/ubuntu/ xenial-updates multiverse

deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-updates multiverse


## N.B. software from this repository may not have been tested as

## extensively as that contained in the main release, although it includes

## newer versions of some applications which may provide useful features.

## Also, please note that software in backports WILL NOT receive any review

## or updates from the Ubuntu security team.

deb http://gb.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse

deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse


deb http://security.ubuntu.com/ubuntu xenial-security main restricted

deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted

deb http://security.ubuntu.com/ubuntu xenial-security universe

deb-src http://security.ubuntu.com/ubuntu xenial-security universe

deb http://security.ubuntu.com/ubuntu xenial-security multiverse

deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse


## Uncomment the following two lines to add software from Canonical's

## 'partner' repository.

## This software is not part of Ubuntu, but is offered by Canonical and the

## respective vendors as a service to Ubuntu users.

# deb http://archive.canonical.com/ubuntu precise partner

# deb-src http://archive.canonical.com/ubuntu precise partner



출처: https://ubuntuforums.org/showthread.php?t=2346051



FreeRTOS V7.x 를 V9.0으로 업그레이드 하는 도중에 컴파일 에러가 발생하였다.


캐스팅 연산을 컴파일러가 인식하지 못하는 듯 하다.



아래와 같이 수정해 주면 된다.




출처

:http://www.freertos.org/FreeRTOS_Support_Forum_Archive/August_2016/freertos_Portmacro.h_compile_error_in_9.0.0_adb740d7j.html

OrCAD 실행 시 cdn_sfl401as.dll 에러가 발생하였다.

환경변수에 OrCAD 설치 경로를 추가해 주면 된다.


This application has failed to start because cdn_sfl401as.dll was not found.  Re-Installing the application may fix this problem





OrCAD 16.5


출처 : https://community.cadence.com/cadence_technology_forums/f/27/t/19812



ST-Link, No MCU device found Session aborted!


또는


STLink USB Communication error


오류 메시지가 발생.


CubeMX로 코드 생성 후 CPU에 다운로드를 하면 메시지가 발생하였다. 


* 오류가 발생한 이유는 CubeMX에서 SWDIO, SWCLK Pin 설정을 해주지 않아서 였다. 




 아래와 같이 핀설정을 해준다.

 PA13 [SYS_JTMS-SWDIO] / PA14 [SYS_JECK-SWCLK]



 Peripherals → SYS → Debug "Serial Wire"를 선택한다.


 

 복구 방법은 아래 URL을 참고한다.

http://theniceguy.tistory.com/18


끝.

Can not connect to target!

Please select "Connect Under Reset" mode from Target -> Settings menu and try again.

If you're trying to connect to a low frequency application, please select a lower SWD Frequency mode from Target -> Setting menu.



+ Recent posts