Ubuntu 下 QT编译 make 时出错,求高人指点啊!!!具体错误信息如下:
make:Enteringdirectory`/home/ema/QtSDK/Demos/4.7/qmediaplayer-build-desktop-Desktop_Q...
make: Entering directory `/home/ema/QtSDK/Demos/4.7/qmediaplayer-build-desktop-Desktop_Qt_4_8_0_for_GCC__Qt_SDK____'
g++ -Wl,-O1 -Wl,-rpath,/home/ema/QtSDK/Desktop/Qt/4.8.0/gcc/lib -o qmediaplayer main.o mediaplayer.o moc_mediaplayer.o qrc_mediaplayer.o -L/home/ema/QtSDK/Desktop/Qt/4.8.0/gcc/lib -L/usr/X11R6/lib -lphonon -lQtOpenGL -lQtGui -lQtCore -lGL -lpthread
/home/ema/QtSDK/Desktop/Qt/4.8.0/gcc/lib/libQtCore.so: undefined reference to `g_main_context_push_thread_default'
/home/ema/QtSDK/Desktop/Qt/4.8.0/gcc/lib/libQtCore.so: undefined reference to `inotify_init1@GLIBC_2.9'
/home/ema/QtSDK/Desktop/Qt/4.8.0/gcc/lib/libQtGui.so: undefined reference to `pipe2@GLIBC_2.9'
/home/ema/QtSDK/Desktop/Qt/4.8.0/gcc/lib/libQtCore.so: undefined reference to `g_main_context_pop_thread_default'
/home/ema/QtSDK/Desktop/Qt/4.8.0/gcc/lib/libQtGui.so: undefined reference to `__longjmp_chk@GLIBC_2.11'
collect2: ld returned 1 exit status
make: Leaving directory `/home/ema/QtSDK/Demos/4.7/qmediaplayer-build-desktop-Desktop_Qt_4_8_0_for_GCC__Qt_SDK____'
make: *** [qmediaplayer] Error 1
09:28:59: 进程"/usr/bin/make"退出,退出代码 2 。
构建项目qmediaplayer 时发生错误 (目标: 桌面)
当执行构建步骤 'Make'时 展开
g++ -Wl,-O1 -Wl,-rpath,/home/ema/QtSDK/Desktop/Qt/4.8.0/gcc/lib -o qmediaplayer main.o mediaplayer.o moc_mediaplayer.o qrc_mediaplayer.o -L/home/ema/QtSDK/Desktop/Qt/4.8.0/gcc/lib -L/usr/X11R6/lib -lphonon -lQtOpenGL -lQtGui -lQtCore -lGL -lpthread
/home/ema/QtSDK/Desktop/Qt/4.8.0/gcc/lib/libQtCore.so: undefined reference to `g_main_context_push_thread_default'
/home/ema/QtSDK/Desktop/Qt/4.8.0/gcc/lib/libQtCore.so: undefined reference to `inotify_init1@GLIBC_2.9'
/home/ema/QtSDK/Desktop/Qt/4.8.0/gcc/lib/libQtGui.so: undefined reference to `pipe2@GLIBC_2.9'
/home/ema/QtSDK/Desktop/Qt/4.8.0/gcc/lib/libQtCore.so: undefined reference to `g_main_context_pop_thread_default'
/home/ema/QtSDK/Desktop/Qt/4.8.0/gcc/lib/libQtGui.so: undefined reference to `__longjmp_chk@GLIBC_2.11'
collect2: ld returned 1 exit status
make: Leaving directory `/home/ema/QtSDK/Demos/4.7/qmediaplayer-build-desktop-Desktop_Qt_4_8_0_for_GCC__Qt_SDK____'
make: *** [qmediaplayer] Error 1
09:28:59: 进程"/usr/bin/make"退出,退出代码 2 。
构建项目qmediaplayer 时发生错误 (目标: 桌面)
当执行构建步骤 'Make'时 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询