C++ Qt/Setup&Tips
LNK1181: cannot open input file 'debug\main.obj'
LNK1181: cannot open input file 'debug\main.obj'
2023.08.27Shadow build Qt 는 Shadow build 라는 기능으로, 동일한 소스 코드를 필요에 따라 다양한 스타일의 Qt를 빌드 하도록 옵션 기능을 지원한다. 문제는, Shadow build 기능을 체크하고 경로가 고정되어 있으면, 프로젝트 소스코드 경로에 빌드 파일이 생성되지 않고, 지정된 절대 경로에 빌드 파일이 생성된다. 실행시 빌드된 파일의 경로를 찾지 못하여 문제가 발생한다. 이슈 LNK1181: cannot open input file 'debug\main.obj' The build directory is not at the same level as the source directory, which could be the reason for the build failure. 해결법 1 Sh..
QML module not found
QML module not found
2023.08.18Issue QML module not found Examples > Application Examples >Coffee Machine Project Solution CMakeLists.txt 에 project's Imports 경로 추가 add the following command to the CMakeLists.txt file to set the QML import path CMakeLists.txt 에 Imports 경로 추가 # Directories where Qt Creator can find QML files. # (Not needed for builds, but makes Qt Creator code completion happy.) list(APPEND QML_IMPORT_PATH "/ho..
Qt 한글 입력시 fcitx5 이슈
Qt 한글 입력시 fcitx5 이슈
2023.08.14fcitx5 을 사용한 한국어 입력의 경우 Qt 등의 프로그램에서 한국어 입력이 불가능한 경우가 있다. QtCreator의 경우, 입력 기능을 우분투의 라이브러리 path를 사용하지 않고, Qt에서 지정된 path를 사용한다. 1. QtCreator에 fcitx5 입력기 라이브러리 경로 설정을 별도로 해주어야 한다. cd (QT 루트 폴더)/{QT 버전}/gcc_64/plugins/platforminputcontexts ln -s /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so libfcitxplatforminputcontextplugin.so 2. fcitx5 사용하는 것 대신..
<Win> Qt 설치
<Win> Qt 설치
2023.08.101. Qt 설치Qt download Link로 이동하여 Online Installer 를 다운받는다. (Qt는 5.15부터 Online Installer로만 Qt 설치가 가능하다.) ⏩ official_releases/ ⏩ online_installers/ ⏩ qt-unified-windows-x64-online.exe ⏩ 미러 사이트를 설정하여, Online Installer 를 실행한다. 1. Online Installer가 설치된 경로로 이동하여, 주소창에 "cmd" 를 입력하여 터미널을 실행시킨다. 2. 미러 사이트에서 가까운 위치를 찾아, Online Installer 를 실행 옵션으로 입력한다. qt-unified-windows-x64-4.6.1-online.exe --mirror..
<ubuntu> Qt 설치
<ubuntu> Qt 설치
2023.08.091. 사전작업더보기Step 1. g++ 설치 Qt 설치 전에, 반드시 g++ 을 별도로 설치해야 함sudo apt-get install g++ Step 2. 각종 라이브러리 설치 (Ubuntu 24.04 LTS)sudo apt update && sudo apt upgrade -y && sudo apt install -y \ build-essential cmake make \ libgl1-mesa-dev libglu1-mesa-dev \ libfontconfig1-dev libfreetype-dev \ libx11-dev libx11-xcb-dev libxext-dev libxfixes-dev libxi-dev libxrender-dev \ libxcb1 libxcb1-dev libxcb-c..