⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure

📁 Linux/Windows 环境下跨平台程序
💻
字号:
#! /bin/bash## This is a completely home made bash script that make som fixes to the Makefile.# I created this script because of a Qt bug which resulted in  compilation errors and# because of qmake's install options doesn't work very well.# Im solving those problems with simple sed commands.#echo "Starting configure script..."# Start with generating the source and header files from setupbase.ui and msgbox.ui${QTDIR}/bin/uic setupbase.ui -o setupbase.h${QTDIR}/bin/uic setupbase.ui -i setupbase.h -o setupbase.cpp${QTDIR}/bin/uic msgbox.ui -o msgbox.h${QTDIR}/bin/uic msgbox.ui -i msgbox.h -o msgbox.cpp# Fixing the 'double const'-bug to avoid compilation errors.sed -i 's/static const unsigned char const image0_data/static const unsigned char image0_data/g' setupbase.cppsed -i 's/static const unsigned char const image0_data/static const unsigned char image0_data/g' msgbox.cppsed -i 's/static const unsigned char const image1_data/static const unsigned char image1_data/g' msgbox.cpp# Do 'qmake <projectfile>' to generate a Makefile.${QTDIR}/bin/qmake netgo*.proecho "Generating Makefile..."# Remove the line in the Makefile that tries to 'strip' my bash script (results in errors).sed -i '/-strip "$(INSTALL_ROOT)\/usr\/bin\/netgo"/d' Makefile# Remove the line that tries to do 'rmdir /usr/bin'. Funny qmake :)sed -i '/-$(DEL_DIR) "$(INSTALL_ROOT)\/usr\/bin\/"/d' Makefile# Change the minumun version from 3.3 to 3.2 in the ui-files (this is harmless).sed -i 's/<!DOCTYPE UI><UI version="3.3" stdsetdef="1">/<!DOCTYPE UI><UI version="3.2" stdsetdef="1">/' *.uiecho "Setting upp install options in Makefile..."echoecho "Configuration finished - do \`make\`"echo

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -