cd src/tools/bootstrap/ && make -f Makefile
make[1]: 进入目录“/home/kangning/qt-all-opensource-src-4.5.3/src/tools/bootstrap”
make[1]: 对“first”无需做任何事。
make[1]: 离开目录“/home/kangning/qt-all-opensource-src-4.5.3/src/tools/bootstrap”
cd src/tools/moc/ && make -f Makefile
make[1]: 进入目录“/home/kangning/qt-all-opensource-src-4.5.3/src/tools/moc”
/home/kangning/qt-all-opensource-src-4.5.3/bin/qmake -spec ../../../mkspecs/linux-g++-64 -unix -o Makefile moc.pro
make[1]: 对“first”无需做任何事。
make[1]: 离开目录“/home/kangning/qt-all-opensource-src-4.5.3/src/tools/moc”
cd src/tools/rcc/ && make -f Makefile
make[1]: 进入目录“/home/kangning/qt-all-opensource-src-4.5.3/src/tools/rcc”
make[1]: 对“first”无需做任何事。
make[1]: 离开目录“/home/kangning/qt-all-opensource-src-4.5.3/src/tools/rcc”
cd src/tools/uic/ && make -f Makefile
make[1]: 进入目录“/home/kangning/qt-all-opensource-src-4.5.3/src/tools/uic”
make[1]: 对“first”无需做任何事。
make[1]: 离开目录“/home/kangning/qt-all-opensource-src-4.5.3/src/tools/uic”
cd src/corelib/ && make -f Makefile
make[1]: 进入目录“/home/kangning/qt-all-opensource-src-4.5.3/src/corelib”
make[1]: 对“first”无需做任何事。
make[1]: 离开目录“/home/kangning/qt-all-opensource-src-4.5.3/src/corelib”
cd src/xml/ && make -f Makefile
make[1]: 进入目录“/home/kangning/qt-all-opensource-src-4.5.3/src/xml”
/home/kangning/qt-all-opensource-src-4.5.3/bin/qmake -spec ../../mkspecs/linux-g++-64 -unix -o Makefile xml.pro
make[1]: 对“first”无需做任何事。
make[1]: 离开目录“/home/kangning/qt-all-opensource-src-4.5.3/src/xml”
cd src/network/ && make -f Makefile
make[1]: 进入目录“/home/kangning/qt-all-opensource-src-4.5.3/src/network”
g++ -c -include .pch/release-shared/QtNetwork -m64 -pipe -g -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_NETWORK_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++-64 -I. -I../../include/QtCore -I../../include -I../../include/QtNetwork -I.rcc/release-shared -Ikernel -I.moc/release-shared -o .obj/release-shared/qsslcertificate.o ssl/qsslcertificate.cpp
ssl/qsslcertificate.cpp: In member function ‘QSslKey QSslCertificate::publicKey() const’:
ssl/qsslcertificate.cpp:441: error: invalid use of incomplete type ‘struct x509_st’
../../include/QtNetwork/../../src/network/ssl/qsslcertificate.h:52: error: forward declaration of ‘struct x509_st’
ssl/qsslcertificate.cpp:445: error: invalid use of incomplete type ‘struct evp_pkey_st’
/usr/include/openssl/ossl_typ.h:93: error: forward declaration of ‘struct evp_pkey_st’
ssl/qsslcertificate.cpp:449: error: invalid use of incomplete type ‘struct evp_pkey_st’
/usr/include/openssl/ossl_typ.h:93: error: forward declaration of ‘struct evp_pkey_st’
ssl/qsslcertificate.cpp:453: error: invalid use of incomplete type ‘struct evp_pkey_st’
/usr/include/openssl/ossl_typ.h:93: error: forward declaration of ‘struct evp_pkey_st’
Makefile:10540: recipe for target '.obj/release-shared/qsslcertificate.o' failed
make[1]: *** [.obj/release-shared/qsslcertificate.o] Error 1
make[1]: 离开目录“/home/kangning/qt-all-opensource-src-4.5.3/src/network”
Makefile:277: recipe for target 'sub-network-make_default-ordered' failed
make: *** [sub-network-make_default-ordered] Error 2

急问:Ubuntu18.04安装QT4.5make时报错
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
2条回答 默认 最新
- KAnnnng 2022-05-23 16:00关注
报错原因是因为/usr/include/openssl/与QT冲突 将openssl文件夹删除 make 就可以通过
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 2无用 7