linux - omn​​et++ on ubuntu 14.06 make 文件错误

标签 linux omnet++

我正在使用在 VMWare Workstation 12 播放器上运行的 Ubuntu 16.04 LTS 版本,我正在关注 https://omnetpp.org/doc/omnetpp/InstallGuide.pdf但它似乎没有找到 make 文件,是不是配置命令应该将配置转储到 makefile.ini 中,如果是这样,那么 make 应该可以工作,当我开始制作文件时给我一个错误。这是代码

ikhram@ubuntu:~$ cd omnetpp-5.3
ikhram@ubuntu:~/omnetpp-5.3$ ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
configure: -----------------------------------------------
configure: reading configure.user for your custom settings
configure: -----------------------------------------------
checking for clang... no
checking for icc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for clang++... no
checking for clang... no
checking for icpc... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for g++... g++
checking for ranlib... ranlib
checking whether g++ supports -fno-stack-protector... yes
checking whether g++ supports -Wl,--no-as-needed... yes
checking whether g++ supports -Wl,--as-needed... yes
checking for swapcontext... yes
checking if shared libs need -fPIC... no
checking for dlopen with CFLAGS="" LIBS=""... no
checking if --export-dynamic linker option is supported/needed... both
checking for flags needed to link with static libs containing simple modules... --whole-archive
configure: NOTE: Use the following syntax when linking with static libraries
configure: containing simple modules and other dynamically registered components:
configure:    g++ ... -Wl,--whole-archive <libs> -Wl,--no-whole-archive ...
checking whether linker supports -rpath... yes
checking for bison... bison -y
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... none needed
checking whether yytext is a pointer... no
checking for make... make
checking for perl... perl
checking for swig... not found
checking for math with CFLAGS="" LIBS=""... yes
checking for standard C++ lib with CFLAGS="" LIBS="-lstdc++"... yes
checking for dlopen with CFLAGS="" LIBS=""... no
checking for dlopen with CFLAGS="" LIBS="-ldl"... yes
checking for qmake... /usr/bin/qmake
checking for moc... /usr/bin/moc
checking for uic... /usr/bin/uic
checking for rcc... /usr/bin/rcc
qmake: could not exec '/usr/lib/i386-linux-gnu/qt4/bin/qmake': No such file or directory
qmake: could not exec '/usr/lib/i386-linux-gnu/qt4/bin/qmake': No such file or directory
checking for Qt5 with CFLAGS=" -std=c++11   -isystem  -isystem /QtCore -isystem /QtGui -isystem /QtWidgets -isystem /QtOpenGL -isystem /QtPrintSupport   -isystem  -isystem /QtCore -isystem /QtGui -isystem /QtWidgets -isystem /QtOpenGL -isystem /QtPrintSupport" LIBS="-lQt5Gui -lQt5Core -lQt5Widgets -lQt5PrintSupport -lQt5OpenGL -L -Wl,-rpath="... no
checking for Qt5 with CFLAGS=" -std=c++11   -isystem  -isystem /QtCore -isystem /QtGui -isystem /QtWidgets -isystem /QtOpenGL -isystem /QtPrintSupport   -isystem  -isystem /QtCore -isystem /QtGui -isystem /QtWidgets -isystem /QtOpenGL -isystem /QtPrintSupport" LIBS="-lQtGui5 -lQtCore5 -lQtWidgets5 -lQtPrintSupport5 -lQtOpenGL5"... no
checking for Qt5 with CFLAGS=" -std=c++11   -isystem  -isystem /QtCore -isystem /QtGui -isystem /QtWidgets -isystem /QtOpenGL -isystem /QtPrintSupport   -isystem  -isystem /QtCore -isystem /QtGui -isystem /QtWidgets -isystem /QtOpenGL -isystem /QtPrintSupport" LIBS=" -framework QtGui -framework QtCore -framework QtWidgets -framework QtPrintSupport -framework QtOpenGL"... no
configure: error: Cannot build Qt apps, probably due to missing or too old Qt packages. Make sure Qt development packages are installed and newer than Qt 5.4. You can disable Qtenv by setting the WITH_QTENV variable to "no" in configure.user.
ikhram@ubuntu:~/omnetpp-5.3$ make
Makefile:54: Makefile.inc: No such file or directory
make: *** No rule to make target 'Makefile.inc'.  Stop.
ikhram@ubuntu:~/omnetpp-5.3$ 

最佳答案

qmake: could not exec '/usr/lib/i386-linux-gnu/qt4/bin/qmake': No such file or directory
[...]
configure: error: Cannot build Qt apps, probably due to missing or too old Qt packages. Make sure Qt development packages are installed and newer than Qt 5.4. You can disable Qtenv by setting the WITH_QTENV variable to "no" in configure.user.

尝试安装 qt5-qmakeqtbase5-dev(路径显示 qt4,但后面的消息显示“比 Qt 5.4 更新”)。

关于linux - omn​​et++ on ubuntu 14.06 make 文件错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50209819/

相关文章:

c - 段错误,调试

c++ - 我如何通过 omnet++ 中的门发送 .message?

omnet++ - handleParkingUpdate() 到底做了什么?

linux - 有没有办法确定 Linux 中的 UFS 类型?

c++ - 获取其他模块访问变量的路径

c++ - 将结构与消息一起发送,累积消息并重新发送给 Veins 中的邻居

c++ - 在 omnet 中作为消息发送功能

Linux - 在 CSH 中循环用户输入

linux - 尽管有足够的内存,但无法使用 'tail -f"

c - 为什么客户端调用shutdown(sockfd, SHUT_RD)后,客户端程序中的recv()可以接收到发送给客户端的消息?