how to get libpulse.so.0 ?

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
ciremay
Posts: 9
Joined: 27. Jul 2014, 19:01

how to get libpulse.so.0 ?

Post by ciremay »

hello guys,

I am using Salix 14.0.1.
I try to compile Qt video player application using QMediaPlayer. I added multimedia and multimediawidgets to the project file:

Code: Select all

QT       += core gui multimedia multimediawidgets
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = vidplayer
TEMPLATE = app
SOURCES += main.cpp\
        dialog.cpp
HEADERS  += dialog.h
FORMS    += dialog.ui
at this step when I build the project it issuing error messages:

Code: Select all

10:20:01: Running steps for project vidplayer...
10:20:01: Configuration unchanged, skipping qmake step.
10:20:01: Starting: "/usr/bin/make" 
g++ -Wl,-rpath,/home/r831/Qt5.2.1/5.2.1/gcc -Wl,-rpath,/home/r831/Qt5.2.1/5.2.1/gcc/lib -Wl,-rpath-link,/home/r831/Qt5.2.1/5.2.1/gcc/lib -o vidplayer main.o dialog.o moc_dialog.o   -L/home/r831/Qt5.2.1/5.2.1/gcc/lib -lQt5MultimediaWidgets -lQt5Multimedia -lQt5Widgets -lQt5Network -lQt5Gui -lQt5Core -lGL -lpthread 
/usr/lib/gcc/i486-slackware-linux/4.7.1/../../../../i486-slackware-linux/bin/ld: warning: libpulse.so.0, needed by /home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so, not found (try using -rpath or -rpath-link)
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_context_errno@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_operation_unref@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_stream_set_write_callback@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_threaded_mainloop_start@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_stream_set_buffer_attr@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_sample_spec_init@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_proplist_sets@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_stream_get_state@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_proplist_new@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_stream_set_state_callback@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_context_set_sink_input_volume@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_threaded_mainloop_get_api@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_stream_cork@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_stream_writable_size@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_stream_write@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_context_new@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_stream_set_underflow_callback@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_context_unref@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_stream_connect_playback@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_sample_spec_equal@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_threaded_mainloop_free@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_context_connect@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_context_get_state@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_threaded_mainloop_unlock@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_threaded_mainloop_lock@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_stream_is_corked@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_context_set_state_callback@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_context_set_sink_input_mute@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_proplist_free@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_strerror@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_threaded_mainloop_stop@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_stream_unref@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_stream_disconnect@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_threaded_mainloop_new@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_stream_flush@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_stream_new_with_proplist@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_stream_get_index@PULSE_0'
/home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so: undefined reference to `pa_stream_get_buffer_attr@PULSE_0'
collect2: error: ld returned 1 exit status
make: *** [vidplayer] Error 1
10:20:01: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project vidplayer (kit: Desktop Qt 5.2.1 GCC 32bit)
When executing step 'Make'
10:20:01: Elapsed time: 00:00.
warning: libpulse.so.0, needed by /home/r831/Qt5.2.1/5.2.1/gcc/lib/libQt5Multimedia.so, not found (try using -rpath or -rpath-link)

my question: how to install libpulse.so.0 ?

I have downloaded pulseaudio-2.0.tar.xz and the slackbuild pulseaudio.tar.gz from http://slackbuilds.org/repository/14.0/ ... ulseaudio/. Is this the correct file? what should I do now? please help me guys

thanks :)
User avatar
gapan
Salix Wizard
Posts: 6361
Joined: 6. Jun 2009, 17:40

Re: how to get libpulse.so.0 ?

Post by gapan »

You're not explaining what you're trying to do exactly. From the output you're providing it seems that there is a separate gcc in your /home? I wouldn't even try to guess how that happened. And qt5? The first quote you post mentions qt4, the other qt5...
Image
Image
ciremay
Posts: 9
Joined: 27. Jul 2014, 19:01

Re: how to get libpulse.so.0 ?

Post by ciremay »

There is only one qt5.2.1 in /home directory while qt 4 was installed by default with Salix+KDE. So this is qt5 application.

I am just trying to follow a tutorial from voidRealm entitled "C++ Qt130-Playing videos with QMediaPlayer" from youtube.

It's an ordinary GUI application with single QDialog widget.
Initially before I adds anything to the project file if I click build and then run, it will compile and run smoothly (simply showing a blank dialog window).

After adding multimedia dan multimediawidgets to the .pro file and then click 'build' again the compiler complaining with above error messages.

I thought maybe I need to install pulseaudio but it then has dependecy to json-c. I have installed the json-c with guidance from:
https://github.com/json-c/json-c and
http://www.linuxfromscratch.org/blfs/vi ... son-c.html

But pulseaudio.SlackBuild unable to locate it. this is the error message when I run pulseaudio.SlackBuild:

Code: Select all

checking for LIBJSON... no
configure: error: Package requirements ( json >= 0.9 ) were not met:

No package 'json' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBJSON_CFLAGS
and LIBJSON_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
User avatar
gapan
Salix Wizard
Posts: 6361
Joined: 6. Jun 2009, 17:40

Re: how to get libpulse.so.0 ?

Post by gapan »

I advise you to take a step back and reconsider what you're doing. You're obviously over your head with this. Start by reading the Salix Startup Guide, linked from the main page. Especially the package management part. Since you're using 14.0 and not 14.1, some differences will exist, but except the su/sudo change (read the details in the blog if you have to), everything else should apply. json-c is a package in the repositories. You don't have to build it from source. You just have to install it.

And you're still not explaining how qt5 ended up in your /home. You've probably messed with your system in other ways that you're not explaining as well, so it's very difficult to give you any specific advice.
Image
Image
Post Reply