社区
Qt
帖子详情
qt程序在LINUX下编译make的问题
qianfl
2016-09-09 08:43:34
qt程序是在windows下写好,在LINUX环境(ubuntu)下生成makefile成功,但运行make时提示
,不知道是不是少什么环境,提示未发现的命令我在LINUX下没有搜索到同名的文件或目录
...全文
1072
6
打赏
收藏
qt程序在LINUX下编译make的问题
qt程序是在windows下写好,在LINUX环境(ubuntu)下生成makefile成功,但运行make时提示,不知道是不是少什么环境,提示未发现的命令我在LINUX下没有搜索到同名的文件或目录
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
6 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
诺水城子
2016-09-22
打赏
举报
回复
你Makefile中指定交叉编译工具是 arm-arago-linux-gnueabi-gcc,但实际上这个交叉编译工具你没有安装或者安装不正确,编译时找不到。导致出错
smq
2016-09-14
打赏
举报
回复
configure时指定的编译器不对,直接指定g++就行
donwmufromdying
2016-09-13
打赏
举报
回复
前面2楼的提醒你了啊!你的编译器要么没装,要么就是搜索路径没设置。你难道不会执行一下find / -name "arm-arago-linux-gnueabi-g++"看看吗?
qianfl
2016-09-12
打赏
举报
回复
求教一下高人
qianfl
2016-09-09
打赏
举报
回复
makefile的内容如下 ############################################################################# # Makefile for building: qt_demo_B # Generated by qmake (2.01a) (Qt 4.8.6) on: ?? 9? 7 16:43:40 2016 # Project: qt_demo_B.pro # Template: app # Command: /opt/qt_arago/bin/qmake -spec /opt/qt_arago/mkspecs/linux-arm-gnueabi-g++ -unix QMAKE_CXXFLAGS+=-D__ATOP__\ -DATOP335X\ -I/home/qianfl/IO6910_20160616/a335x\ -DATOP3352\ -DIO6910_SDK\ -DIO6910V03_SDK\ -DIO6910_SDK_SWFP\ -UIO6910_SDK_31426 PROJECT_ROOT_DIR=/home/qianfl/IO6910_20160616/a335x CROSS_COMPILE=arm-arago-linux-gnueabi- ENCRYPT= -o Makefile qt_demo_B.pro ############################################################################# ####### Compiler, tools and options CC = arm-arago-linux-gnueabi-gcc CXX = arm-arago-linux-gnueabi-g++ DEFINES = -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED CFLAGS = -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES) CXXFLAGS = -pipe -D__ATOP__ -DATOP335X -I/home/qianfl/IO6910_20160616/a335x -DATOP3352 -DIO6910_SDK -DIO6910V03_SDK -DIO6910_SDK_SWFP -UIO6910_SDK_31426 -O2 -Wall -W -D_REENTRANT $(DEFINES) INCPATH = -I/opt/qt_arago/mkspecs/linux-arm-gnueabi-g++ -I. -I/opt/qt_arago/include/QtCore -I/opt/qt_arago/include/QtNetwork -I/opt/qt_arago/include/QtGui -I/opt/qt_arago/include -I. -I. LINK = arm-arago-linux-gnueabi-g++ LFLAGS = -Wl,-rpath-link=/opt/qt_arago/tslib/lib -Wl,-O1 -Wl,-rpath,/opt/qt_arago/lib LIBS = $(SUBLIBS) -L/opt/qt_arago/lib -lQtGui -L/opt/qt_arago/tslib/lib/ -L/opt/qt_arago/lib -lQtNetwork -lQtCore -lpthread AR = arm-arago-linux-gnueabi-ar cqs RANLIB = QMAKE = /opt/qt_arago/bin/qmake TAR = tar -cf COMPRESS = gzip -9f COPY = cp -f SED = sed COPY_FILE = $(COPY) COPY_DIR = $(COPY) -r STRIP = arm-arago-linux-gnueabi-strip INSTALL_FILE = install -m 644 -p INSTALL_DIR = $(COPY_DIR) INSTALL_PROGRAM = install -m 755 -p DEL_FILE = rm -f SYMLINK = ln -f -s DEL_DIR = rmdir MOVE = mv -f CHK_DIR_EXISTS= test -d MKDIR = mkdir -p ####### Output directory OBJECTS_DIR = ./ ####### Files SOURCES = main.cpp \ mainwindow.cpp moc_mainwindow.cpp OBJECTS = main.o \ mainwindow.o \ moc_mainwindow.o DIST = /opt/qt_arago/mkspecs/common/unix.conf \ /opt/qt_arago/mkspecs/common/linux.conf \ /opt/qt_arago/mkspecs/common/gcc-base.conf \ /opt/qt_arago/mkspecs/common/gcc-base-unix.conf \ /opt/qt_arago/mkspecs/common/g++-base.conf \ /opt/qt_arago/mkspecs/common/g++-unix.conf \ /opt/qt_arago/mkspecs/qconfig.pri \ /opt/qt_arago/mkspecs/modules/qt_webkit_version.pri \ /opt/qt_arago/mkspecs/features/qt_functions.prf \ /opt/qt_arago/mkspecs/features/qt_config.prf \ /opt/qt_arago/mkspecs/features/exclusive_builds.prf \ /opt/qt_arago/mkspecs/features/default_pre.prf \ /opt/qt_arago/mkspecs/features/release.prf \ /opt/qt_arago/mkspecs/features/default_post.prf \ /opt/qt_arago/mkspecs/features/shared.prf \ /opt/qt_arago/mkspecs/features/unix/gdb_dwarf_index.prf \ /opt/qt_arago/mkspecs/features/warn_on.prf \ /opt/qt_arago/mkspecs/features/qt.prf \ /opt/qt_arago/mkspecs/features/unix/thread.prf \ /opt/qt_arago/mkspecs/features/moc.prf \ /opt/qt_arago/mkspecs/features/resources.prf \ /opt/qt_arago/mkspecs/features/uic.prf \ /opt/qt_arago/mkspecs/features/yacc.prf \ /opt/qt_arago/mkspecs/features/lex.prf \ /opt/qt_arago/mkspecs/features/include_source_dir.prf \ qt_demo_B.pro QMAKE_TARGET = qt_demo_B DESTDIR = TARGET = qt_demo_B first: all ####### Implicit rules .SUFFIXES: .o .c .cpp .cc .cxx .C .cpp.o: $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" .cc.o: $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" .cxx.o: $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" .C.o: $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" .c.o: $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" ####### Build rules all: Makefile $(TARGET) $(TARGET): ui_mainwindow.h $(OBJECTS) $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS) Makefile: qt_demo_B.pro /opt/qt_arago/mkspecs/linux-arm-gnueabi-g++/qmake.conf /opt/qt_arago/mkspecs/common/unix.conf \ /opt/qt_arago/mkspecs/common/linux.conf \ /opt/qt_arago/mkspecs/common/gcc-base.conf \ /opt/qt_arago/mkspecs/common/gcc-base-unix.conf \ /opt/qt_arago/mkspecs/common/g++-base.conf \ /opt/qt_arago/mkspecs/common/g++-unix.conf \ /opt/qt_arago/mkspecs/qconfig.pri \ /opt/qt_arago/mkspecs/modules/qt_webkit_version.pri \ /opt/qt_arago/mkspecs/features/qt_functions.prf \ /opt/qt_arago/mkspecs/features/qt_config.prf \ /opt/qt_arago/mkspecs/features/exclusive_builds.prf \ /opt/qt_arago/mkspecs/features/default_pre.prf \ /opt/qt_arago/mkspecs/features/release.prf \ /opt/qt_arago/mkspecs/features/default_post.prf \ /opt/qt_arago/mkspecs/features/shared.prf \ /opt/qt_arago/mkspecs/features/unix/gdb_dwarf_index.prf \ /opt/qt_arago/mkspecs/features/warn_on.prf \ /opt/qt_arago/mkspecs/features/qt.prf \ /opt/qt_arago/mkspecs/features/unix/thread.prf \ /opt/qt_arago/mkspecs/features/moc.prf \ /opt/qt_arago/mkspecs/features/resources.prf \ /opt/qt_arago/mkspecs/features/uic.prf \ /opt/qt_arago/mkspecs/features/yacc.prf \ /opt/qt_arago/mkspecs/features/lex.prf \ /opt/qt_arago/mkspecs/features/include_source_dir.prf \ /opt/qt_arago/lib/libQtGui.prl \ /opt/qt_arago/lib/libQtNetwork.prl \ /opt/qt_arago/lib/libQtCore.prl $(QMAKE) -spec /opt/qt_arago/mkspecs/linux-arm-gnueabi-g++ -unix QMAKE_CXXFLAGS+=-D__ATOP__\ -DATOP335X\ -I/home/qianfl/IO6910_20160616/a335x\ -DATOP3352\ -DIO6910_SDK\ -DIO6910V03_SDK\ -DIO6910_SDK_SWFP\ -UIO6910_SDK_31426 PROJECT_ROOT_DIR=/home/qianfl/IO6910_20160616/a335x CROSS_COMPILE=arm-arago-linux-gnueabi- ENCRYPT= -o Makefile qt_demo_B.pro /opt/qt_arago/mkspecs/common/unix.conf: /opt/qt_arago/mkspecs/common/linux.conf: /opt/qt_arago/mkspecs/common/gcc-base.conf: /opt/qt_arago/mkspecs/common/gcc-base-unix.conf: /opt/qt_arago/mkspecs/common/g++-base.conf: /opt/qt_arago/mkspecs/common/g++-unix.conf: /opt/qt_arago/mkspecs/qconfig.pri: /opt/qt_arago/mkspecs/modules/qt_webkit_version.pri: /opt/qt_arago/mkspecs/features/qt_functions.prf: /opt/qt_arago/mkspecs/features/qt_config.prf: /opt/qt_arago/mkspecs/features/exclusive_builds.prf: /opt/qt_arago/mkspecs/features/default_pre.prf: /opt/qt_arago/mkspecs/features/release.prf: /opt/qt_arago/mkspecs/features/default_post.prf: /opt/qt_arago/mkspecs/features/shared.prf: /opt/qt_arago/mkspecs/features/unix/gdb_dwarf_index.prf: /opt/qt_arago/mkspecs/features/warn_on.prf: /opt/qt_arago/mkspecs/features/qt.prf: /opt/qt_arago/mkspecs/features/unix/thread.prf: /opt/qt_arago/mkspecs/features/moc.prf: /opt/qt_arago/mkspecs/features/resources.prf: /opt/qt_arago/mkspecs/features/uic.prf: /opt/qt_arago/mkspecs/features/yacc.prf: /opt/qt_arago/mkspecs/features/lex.prf: /opt/qt_arago/mkspecs/features/include_source_dir.prf: /opt/qt_arago/lib/libQtGui.prl: /opt/qt_arago/lib/libQtNetwork.prl: /opt/qt_arago/lib/libQtCore.prl: qmake: FORCE @$(QMAKE) -spec /opt/qt_arago/mkspecs/linux-arm-gnueabi-g++ -unix QMAKE_CXXFLAGS+=-D__ATOP__\ -DATOP335X\ -I/home/qianfl/IO6910_20160616/a335x\ -DATOP3352\ -DIO6910_SDK\ -DIO6910V03_SDK\ -DIO6910_SDK_SWFP\ -UIO6910_SDK_31426 PROJECT_ROOT_DIR=/home/qianfl/IO6910_20160616/a335x CROSS_COMPILE=arm-arago-linux-gnueabi- ENCRYPT= -o Makefile qt_demo_B.pro dist: @$(CHK_DIR_EXISTS) .tmp/qt_demo_B1.0.0 || $(MKDIR) .tmp/qt_demo_B1.0.0 $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/qt_demo_B1.0.0/ && $(COPY_FILE) --parents mainwindow.h .tmp/qt_demo_B1.0.0/ && $(COPY_FILE) --parents main.cpp mainwindow.cpp .tmp/qt_demo_B1.0.0/ && $(COPY_FILE) --parents mainwindow.ui .tmp/qt_demo_B1.0.0/ && (cd `dirname .tmp/qt_demo_B1.0.0` && $(TAR) qt_demo_B1.0.0.tar qt_demo_B1.0.0 && $(COMPRESS) qt_demo_B1.0.0.tar) && $(MOVE) `dirname .tmp/qt_demo_B1.0.0`/qt_demo_B1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/qt_demo_B1.0.0 clean:compiler_clean -$(DEL_FILE) $(OBJECTS) -$(DEL_FILE) *~ core *.core ####### Sub-libraries distclean: clean -$(DEL_FILE) $(TARGET) -$(DEL_FILE) Makefile check: first mocclean: compiler_moc_header_clean compiler_moc_source_clean mocables: compiler_moc_header_make_all compiler_moc_source_make_all compiler_moc_header_make_all: moc_mainwindow.cpp compiler_moc_header_clean: -$(DEL_FILE) moc_mainwindow.cpp moc_mainwindow.cpp: mainwindow.h /opt/qt_arago/bin/moc $(DEFINES) $(INCPATH) mainwindow.h -o moc_mainwindow.cpp compiler_rcc_make_all: compiler_rcc_clean: compiler_image_collection_make_all: qmake_image_collection.cpp compiler_image_collection_clean: -$(DEL_FILE) qmake_image_collection.cpp compiler_moc_source_make_all: compiler_moc_source_clean: compiler_uic_make_all: ui_mainwindow.h compiler_uic_clean: -$(DEL_FILE) ui_mainwindow.h ui_mainwindow.h: mainwindow.ui /opt/qt_arago/bin/uic mainwindow.ui -o ui_mainwindow.h compiler_yacc_decl_make_all: compiler_yacc_decl_clean: compiler_yacc_impl_make_all: compiler_yacc_impl_clean: compiler_lex_make_all: compiler_lex_clean: compiler_clean: compiler_moc_header_clean compiler_uic_clean ####### Compile main.o: main.cpp mainwindow.h $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp mainwindow.o: mainwindow.cpp mainwindow.h \ ui_mainwindow.h $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o mainwindow.cpp moc_mainwindow.o: moc_mainwindow.cpp $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindow.o moc_mainwindow.cpp ####### Install install: FORCE uninstall: FORCE FORCE:
阳光柠檬_
2016-09-09
打赏
举报
回复
arm-arago-linux-gnueabi-g++ 这个是ARM的交叉编译器吧,检查下makefile中的GCC配置的是什么编译器?
linux
下使用命令模式去
编译
Qt
程序
1.打开终端输入,q
make
-v ,如果提示版本信息正,就可以
编译
程序
了。 2.当前目录切换到
程序
源代码目录,cd /home/likewei/untitled2 3.生成untitled2.pro文件(通过命令生成的pro文件,里面会缺少引用,最好还是...
linux
手动
编译
qt
5工程,
Qt
5.5.0在
Linux
下静态
编译
测试系统环境:Ubuntu12.04 (32bit/64bit)
编译
软件环境:
QT
5.5.0本文章主要介绍
Linux
下
QT
静态
编译
环境的搭建,以及如何
编译
我们的
程序
board_driver。1. 下载
QT
5.5.0源码进入...
linux
qt
编译
命令,
linux
下使用命令模式去
编译
Qt
程序
1.打开终端输入,q
make
-v ,如果提示版本信息正,就可以
编译
程序
了。2.当前目录切换到
程序
源代码目录,cd /home/likewei/untitled23.生成untitled2.pro文件(通过命令生成的pro文件,里面会缺少引用,最好还是通过
Qt
...
使用命令行
编译
Qt
程序
通过以上步骤,我们可以在
Linux
环境下使用命令行
编译
Qt
程序
。首先,需要安装
Qt
开发工具包;然后编写
Qt
程序
源代码;接着编写
编译
脚本,使用q
make
和
make
进行
编译
;最后执行
编译
脚本,生成可执行文件并运行。这种方式...
Qt
在windows 和
linux
下的
编译
教程
Qt
编译
Qt
16,211
社区成员
26,591
社区内容
发帖
与我相关
我的任务
Qt
Qt 是一个跨平台应用程序框架。通过使用 Qt,您可以一次性开发应用程序和用户界面,然后将其部署到多个桌面和嵌入式操作系统,而无需重复编写源代码。
复制链接
扫一扫
分享
社区描述
Qt 是一个跨平台应用程序框架。通过使用 Qt,您可以一次性开发应用程序和用户界面,然后将其部署到多个桌面和嵌入式操作系统,而无需重复编写源代码。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章