C++ Qt/Setup&Tips
<Ubuntu> GitHub in Qt
<Ubuntu> GitHub in Qt
2024.09.24Qt Creator에서 Git 저장 후, GitHub 업로드 방법만 간단히 요약합니다. ⏩ 작업 환경(2024.Sep.23) Ubuntu 22.04, Qt Creator 14.0.1 Based on Qt 6.7.2 (GCC 10.3.1, X86_64), Qt Creator 원격 저장소 공식문서 링크 ⏩ 요약더보기GitHub Terminal 사용법 요약git initgit commit -m "입력할메시지"git branch -M maingit remote add origin 깃허브주소git push -u origin main GitHub & Qt Creator 사용법 요약Git 설치Git 시작Git 로컬 저장소 커밋GitHub 원격 저장소 생성GitHub 원격 저장소 설정Qt Creator Push 단..
<Win> Qt Maintenance
<Win> Qt Maintenance
2024.01.28⏩ 미러 사이트에서 가까운 위치를 찾아, MaintenanceTool 실행 옵션으로 입력한다. 1. MaintenanceTool이 설치된 경로로 이동하여, 주소창에 "cmd" 를 입력하여 터미널을 실행시킨다. 2. 미러 사이트를 설정하여, MaintenanceTool을 실행시키는 명령어를 터미널에 입력한다. MaintenanceTool.exe --mirror http://ftp.jaist.ac.jp/pub/qtproject/ 3. MaintenanceTool을 실행
<Win> GitHub in Qt
<Win> GitHub in Qt
2024.01.28Qt Creator에서 Git 저장 후, GitHub 업로드 방법만 간단히 요약합니다. ⏩ 작업 환경(2024.Jan.28) Window11 22H2, Qt Creator 12.0.1 Based on Qt 6.6.0 (MSVC 2019, x86_64)Qt Creator 원격 저장소 공식문서 링크 ⏩ 요약더보기GitHub Terminal 사용법 요약git initgit commit -m "입력할메시지"git branch -M maingit remote add origin 깃허브주소git push -u origin main GitHub & Qt Creator 사용법 요약Git 설치Git 시작Git 로컬 저장소 커밋GitHub 원격 저장소 생성GitHub 원격 저장소 설정Qt Creator Push 단축..
CPU 아키텍처와 컴파일러
CPU 아키텍처와 컴파일러
2023.09.11아키텍처 종류32bit vs 64bit 구분 x86Intel 32bit CPUWindows, Linux, Mac x86_64 (amd64)x86 호환, Intel 64bit CPUAMD, Intel 라이센스 협약으로 amd64 명칭도 사용Windows, Linux, Mac ARMv7~v7arm 32bit CPUx86 은 데스크탑, arm은 모바일 등 저전력으로 대표됨 ARMv8-A64 (A64/64비트 명령어 집합)32bit arm 호환ARM 64bit CPU모바일(엑시노트, 스냅드레곤, 기린, A7이후) , 스마트tv, 가전 등 저전력 장치애플 PC는 M1 이후 아키텍처와 컴퍼일러빌드 결과물은, 특정 아키텍처에서만 실행되는 바이너리다.실행되는 아키텍처에 맞는 컴파일러를 선택하여 빌드해야 한다.
C2065: 'QRegExp': undeclared identifier
C2065: 'QRegExp': undeclared identifier
2023.08.31이슈 원인 Qt 6.2.2 이후 QRegExp 라이브러리 제거되어, 최신 Qt 버전에서 레거시 코드를 실행시면 해당 문제가 발생할 수 있다. 해결 Qt 공식 문서 링크
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..