Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problem library during compilation
Qt 6.11 is out! See what's new in the release blog

Problem library during compilation

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 1.2k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    Xav12358
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      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).

      (Z(:^

      1 Reply Last reply
      2
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        Did you install the matching development packages ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved