Unsolved Problem library during compilation
-
Hello,
I downloaded the 5.9 Qt version and I want to recompile my linux project.
It tells me that it can find the library:/usr/bin/ld : ne peut trouver -lpulse-mainloop-glib /usr/bin/ld : ne peut trouver -lpulse
The ldconfig -p :
ldconfig -p | grep libpulse libpulse.so.0 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libpulse.so.0 libpulse-simple.so.0 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libpulse-simple.so.0 libpulse-mainloop-glib.so.0 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libpulse-mainloop-glib.so.0
And the last line compilation:
g++ -Wl,-rpath,/home/cyclopus/Qt/5.9/gcc_64/lib -o BGE_GUI main.o BackgroundDetector_ControllerView.o Background_ControllerView.o BasicParameters_ControllerView.o ConnectedComponentAnalysis_ControllerView.o About.o SettingPanel.o StreamDialog.o MainController.o MainModel.o MainView.o FullScreenWidget.o PlayerController.o PlayerModel.o PlayerView.o V4l2pipe.o PreviewController.o PreviewModel.o PreviewView.o Region_ControllerView.o RenderingController.o RenderingModel.o RenderingView.o SkinDetection_ControllerView.o GLWidget.o MainWindow.o qrc_bge_gui_qrc.o moc_GLWidget.o moc_MainWindow.o moc_BackgroundDetector_ControllerView.o moc_Background_ControllerView.o moc_BasicParameters_ControllerView.o moc_ConnectedComponentAnalysis_ControllerView.o moc_About.o moc_SettingPanel.o moc_StreamDialog.o moc_MainController.o moc_MainModel.o moc_MainView.o moc_FullScreenWidget.o moc_PlayerController.o moc_PlayerModel.o moc_PlayerView.o moc_PreviewController.o moc_PreviewModel.o moc_PreviewView.o moc_Region_ControllerView.o moc_RenderingController.o moc_RenderingModel.o moc_RenderingView.o moc_SkinDetection_ControllerView.o -L/usr/local/lib -L/home/cyclopus/opencv-3.2.0/build/lib -lm -lpulse-mainloop-glib -lpulse -lGLEW -lGLU -lX11 -lglut -lcuda -lcudart -L/home/cyclopus/Bureau/Developpement/.Release/BGE/lib -lBGE_lib -L/usr/lib/x86_64-linux-gnu -lopencv_cudabgsegm -lopencv_cudaobjdetect -lopencv_cudastereo -lopencv_shape -lopencv_stitching -lopencv_cudafeatures2d -lopencv_superres -lopencv_cudacodec -lopencv_videostab -lopencv_cudaoptflow -lopencv_cudalegacy -lopencv_calib3d -lopencv_features2d -lopencv_objdetect -lopencv_highgui -lopencv_videoio -lopencv_photo -lopencv_imgcodecs -lopencv_cudawarping -lopencv_cudaimgproc -lopencv_cudafilters -lopencv_video -lopencv_ml -lopencv_imgproc -lopencv_flann -lopencv_cudaarithm -lopencv_viz -lopencv_core -lopencv_cudev -L/home/cyclopus/Qt/5.9/gcc_64/lib -lQt5OpenGL -lQt5Widgets -lQt5Multimedia -lQt5Gui -lQt5Network -lQt5Core -lGL -lpthread
The folder where the libpulse-mainloop-glib is well added. So why the compiler can find the library?
-
Linker is sequential, it adds dependencies one by one in exactly the same order as specified.
You have
-L/usr/lib/x86_64-linux-gnu
after you call-lpulse-mainloop-glib -lpulse
. That could be the issue (although I doubt it, to be honest. I'd suspect -rpath is to blame). -
Hi,
Did you install the matching development packages ?