vscode 에서 Qt 개발환경을 설정하기 위한 설정 (Ubuntu 20.04) qt cmake

vscode 를 실행한다.

 

 

control + shift + x 

cmake 를 검색하여 CMake, Cmake Tools 를 설치한다.

위 두개만 설치하면 가능한것으로 보임

QtCreator 에서 Gui 프로젝트 생성시 CMake 로 생성하도록 설정 (예제 테스트)

VSCode 에서 해당 프로젝트를 Load 한다.

ctrl + shift + P

CMake : Configure , Build

선택해주면 뭔 화면이 나오면서

c_cpp_properties.json 이 자동생성함

{

"configurations": [

{

"name": "Linux",

"includePath": [

"${workspaceFolder}/**",

"/Tools/QtInstall/5.14.2/gcc_64/include**",

"/Tools/QtInstall/5.14.2/gcc_64/include/QtGui"

],

"defines": [],

"compilerPath": "/usr/bin/g++-9",

"cStandard": "c11",

"cppStandard": "gnu++14",

"intelliSenseMode": "clang-x64",

"forcedInclude": [

"/Tools/QtInstall/5.14.2/gcc_64/include**"

]

}

],

"version": 4

}

F7 빌드 

Run폴더로 가서 벌레그림>  실행할 바이너리를 설정해줘야함

launch.json 파일이 생성된다.

 

{

"version": "0.2.0",

"configurations": [

{

"name": "(gdb) Launch",

"type": "cppdbg",

"request": "launch",

"program": "${workspaceFolder}/build/testQtcmake",

"args": [],

"stopAtEntry": false,

"cwd": "${workspaceFolder}",

"environment": [],

"externalConsole": false,

"MIMode": "gdb",

"setupCommands": [

{

"description": "Enable pretty-printing for gdb",

"text": "-enable-pretty-printing",

"ignoreFailures": true

}

]

}

]

}

 

"program": "${workspaceFolder}/build/testQtcmake",

실행할 프로그램 변경후 > 클릭하면 프로그램이 실행된다.

 

아래는 수행하지 X 

 

include 못잡는 것은 수행하지 못함.죄송..

 

 

 

https://marketplace.visualstudio.com/items?itemName=OralShaneCurtis-6510.launchqtcreator

 

Launch Qt Creator - Visual Studio Marketplace

OverviewQ & ARating & Review launchqtcreator README QtCreator is very useful for certain tasks! When working on Qt projects, there are things I find Qt Creator invaluable for -just too convenient to use anything else (almost). I often use Vislual Studio Co

marketplace.visualstudio.com

ctrl + p 입력후 내용 입력 

https://marketplace.visualstudio.com/items?itemName=OralShaneCurtis-6510.launchqtcreator

'Linux' 카테고리의 다른 글

[Qt5.15] Ubuntu 20.04 한글설정  (0) 2020.05.14
heaptrack  (0) 2020.05.13
Ubuntu 스킨 변경  (0) 2020.05.12
[USB] Ubuntu20.04 USB 이미지 만들기  (0) 2020.05.11

https://github.com/hamonikr/nimf

 

hamonikr/nimf

Nimf is a lightweight, fast and extensible input method framework - hamonikr/nimf

github.com

 

Ubuntu20.04 nimf 설치

 

설치완료후 

https://hamonikr.org/Free_Board/77175

 

자유게시판 - Fedora32 에서의 nimf 설치 후기

Fedora32의 경우 최신 배포판을 설치하고 한글 입력을 테스트 해 보니 ibus 입력기가 상태가 메롱하네요.. 한글을 입력하고 스페이스바를 치면 끝글자가 날아가 버리더군요.. 이 문제를 해결하기 위

hamonikr.org

일부 키보드의 우측 Alrt 키를 변경하도록 수정함 위 링크 참고

Alt 키로 사용하니 일부 프로그램 chrome 에서 한영 전환이 되지않았다.

위 블로그를 참고해서 Alt 키를 Hangul 로 인식되도록 수정함.

 

chrome 에서 동작확인

 

Qt5.14 온라인 인스톨 설치

크리에이터에서 qt 실행 후 한글 변환되지않음

 

이전 다른 입력기 일시 수행했던 방법을 수행함

nimf 를 apt-get 으로 설치된 이후

/usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts

폴더에 libqt5im-nimf.so 파일을 qtcreator 설치경로 Tools/QtCreator/lib/Qt/plugins 에 복사한다.

cp [filename] [copyDir]

 

qtcreator.sh 수정

#! /bin/bash
export QT_IM_MODULE=nimf
export GTK_IM_MODULE=nimf
export QT4_IM_MODULE=nimf
export QT5_IM_MODULE=nimf
export QT_IM_MODULE=nimf
export XMODIFIERS=@im=nimf

qt 실행후 한글변환 확인

 

한글입력기 nimf 감사합니다.

 

참고

https://cogniti-works.blogspot.com/2018/07/nimf-1.html

 

꿈의 입력기 nimf 이야기 1화 - nimf 의 탄생

개떡 같은 오픈소스

cogniti-works.blogspot.com

 

'Linux' 카테고리의 다른 글

[vscode] QT 연동하기  (0) 2020.05.15
heaptrack  (0) 2020.05.13
Ubuntu 스킨 변경  (0) 2020.05.12
[USB] Ubuntu20.04 USB 이미지 만들기  (0) 2020.05.11

dsffsd

 

www.github.com/KDE/heaptrack.git

 

KDE/heaptrack

A heap memory profiler for Linux. Contribute to KDE/heaptrack development by creating an account on GitHub.

github.com

 

$ sudo apt-get install libdwarf-dev

$ sudo apt-get install libunwind-dev

$ sudo apt-get install elfutils

$ sudo apt-get install libboost1.65-dev

$ sudo apt-get install libboost1.65-dev libboost1.65-tools-dev

$ sudo apt-get install libboost1.65-all-dev 

 

install library

 

 

$ cmake -DCMAKE_BUILD_TYPE=Release ..

 

-- Boost version: 1.65.1
-- Found the following Boost libraries:
--   system
--   filesystem
--   iostreams
--   regex
-- Could NOT find ZSTD (missing: ZSTD_LIBRARY ZSTD_INCLUDE_DIR) 
-- Boost version: 1.65.1
-- Found the following Boost libraries:
--   iostreams
--   program_options
--   regex
-- Could NOT find ECM (missing: ECM_DIR)
-- The following OPTIONAL packages have been found:

 * Qt5Core (required version >= 5.12.4)
 * Qt5Gui (required version >= 5.12.4)
 * Qt5Widgets
 * Qt5 (required version >= 5.10.0)

-- The following REQUIRED packages have been found:

 * Threads
 * ZLIB
 * Libunwind
 * Boost (required version >= 1.41.0)

-- The following OPTIONAL packages have not been found:

 * ECM (required version >= 1.0.0)

-- The following RECOMMENDED packages have not been found:

 * Zstd
   Zstandard offers better (de)compression performance compared with gzip/zlib, making heaptrack faster and datafiles smaller.

-- Configuring done
-- Generating done
-- Build files have been written to: /home/Project/kj/ccos/memory/heaptrack/build

 

make -j4

 

 

guid need library

- KDE Frameworks 5: CoreAddons, I18n, ItemModels, ThreadWeaver, ConfigWidgets, KIO

When any of these dependencies is missing, `heaptrack_gui` will not be build.
Optionally, install the following dependencies to get additional features in
the GUI:

- KDiagram: KChart (for chart visualizations)

 

----

 

Ubuntu install 

 

https://kde.org/applications/development/org.kde.heaptrack/development

 

Heaptrack - KDE's Applications

 

kde.org

heaptrack_gui

 

'Linux' 카테고리의 다른 글

[vscode] QT 연동하기  (0) 2020.05.15
[Qt5.15] Ubuntu 20.04 한글설정  (0) 2020.05.14
Ubuntu 스킨 변경  (0) 2020.05.12
[USB] Ubuntu20.04 USB 이미지 만들기  (0) 2020.05.11

$ sudo apt install gnome-tweak-tool

 

좌측 내비게이션 바이서 Tweaks 선택

 

Appearance Application - Adwaita-dark

                                         Radiance 로 변경 

 

sudo add-apt-repository ppa:tista/adapta

sudo apt-get install adapta-gtk-theme

 

sudo apt-get install chrome-gnome-shell

 

참고 링크 

https://geundung.dev/89

 

[Linux] Ubuntu 18.04 테마 설정하기

안녕하세요~ 이번 포스팅에서는 우분투 환경에서 테마를 적용하는 방법에 대해 알아보도록 하겠습니다! 우분투의 기본 테마는 아래와 같습니다. (이미지 출처: 구글) 이전의 16.xx 버전보다는 많이 깔끔해졌는데..

geundung.dev

 

'Linux' 카테고리의 다른 글

[vscode] QT 연동하기  (0) 2020.05.15
[Qt5.15] Ubuntu 20.04 한글설정  (0) 2020.05.14
heaptrack  (0) 2020.05.13
[USB] Ubuntu20.04 USB 이미지 만들기  (0) 2020.05.11

Ubuntu 다운로드

Ubuntu 20.04 LTS : https://ubuntu.com/download/desktop

 

Download Ubuntu Desktop | Download | Ubuntu

Ubuntu is an open source software operating system that runs from the desktop, to the cloud, to all your internet connected things.

ubuntu.com

 

USB 만드는 프로그램 : https://rufus.ie/

 

Rufus - The Official Website (Download, New Releases)

 

rufus.ie

www.github.com/pbatard/rufus/releases/download/v3.10/rufus-3.10.exe

 

USB 삽입후 다운로드 프로그램을 실행하면 해당 USB 파티션을 자동으로 인식한다.

부트선택에서 Ubuntu 이미지 선택 파티션 방식 GPT 변경 후 시작 

경고창 확인 OK. 이미지 라이팅중..

완료 닫기

 

'Linux' 카테고리의 다른 글

[vscode] QT 연동하기  (0) 2020.05.15
[Qt5.15] Ubuntu 20.04 한글설정  (0) 2020.05.14
heaptrack  (0) 2020.05.13
Ubuntu 스킨 변경  (0) 2020.05.12

+ Recent posts