LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Dependencies. Audacity is not running on Slackware (https://www.linuxquestions.org/questions/slackware-14/dependencies-audacity-is-not-running-on-slackware-4175659324/)

Nick-us 08-17-2019 07:16 PM

Dependencies. Audacity is not running on Slackware
 
I use slackwarex64-current
I installed the package http://slakfinder.org/show.php?pkg=3384046
audacity-2.3.2-x86_64-1cf.txz

Problem:
He complains about dependencies:
libwx_gtk3u_xrc-3.0.so.0
libwx_gtk3u_html-3.0.so.0

I found them in the folder: /usr/lib64/python3.6/site-packages/wx/
I linked them to the folder: /usr/lib64/

so he complains about another dependency: libwx_gtk3u_qa-3.0.so.0
Doesn't have it on my computer

Problem:
I can't find what package there is in slackware
I can't identify which Audacity dependency this exists on
Even knowing which Audacity dependencies is difficult is incomplete information.

If anyone knows and can help to know what is missing on my PC to run Audacity thank you.

Nick-us 08-19-2019 03:22 PM

To help with the problem. The OLD Package audacity-2.2.2-x86_64-1alien.tgz
It works, Because it does not use the above files.

USUARIONUEVO 08-19-2019 03:43 PM

You are mixing packages from different sites, good luck with this.

abga 08-19-2019 04:02 PM

The Manual:
https://docs.slackware.com/howtos:sl...lling_software
If you'd like to compile it on your own:
http://www.slackbuilds.org/repositor...udio/audacity/
- note the dependencies: This requires: lame, wxGTK3
- you'll need to build and install them first
Community Repositories:
https://docs.slackware.com/howtos:sl...y_repositories
- user ponce does a great job fixing build scripts and compiling packages for Slackware -current (the development version)
http://ponce.cc/slackware/slackware64-current/
http://ponce.cc/slackware/slackware64-current/packages/

Okie 08-19-2019 06:12 PM

i built my own, (its safer that way) but yeah, i have noticed a recent update broke audacity-2.2.2, and it took only a few minutes to rebuild audacity so it would run with the updated packages, i did not investigate what broke it because i just wanted to edit some audio

i agree with USUARIONUEVO that installing pre-built packages from various known websites isnt necessarily dangerous but you could end up with a broken system or broken packages because of version conflict since not everybody has exactly the same setup you have, its always best to build your own because it is made to run on your system with the existing libraries that you have,

the ONLY third party package i use is alien's chromium,

Nick-us 08-19-2019 10:49 PM

Quote:

Originally Posted by USUARIONUEVO (Post 6026961)
You are mixing packages from different sites, good luck with this.

I have no idea what you mean

As I said in the question, I am trying to install this package.: audacity-2.3.2-x86_64-1cf.txz
I just explained that if I install the AlienBOB package it works without problems. But it is an old package

Then explain to me: Where did you understand that I am mixing packages?

I'm not compiling Source, I always did install ready packages. That can be removed without leaving any system junk

Nick-us 08-19-2019 11:18 PM

Thanks for the links
 
Quote:

Originally Posted by abga (Post 6026965)
The Manual:
https://docs.slackware.com/howtos:sl...lling_software
If you'd like to compile it on your own:
http://www.slackbuilds.org/repositor...udio/audacity/
- note the dependencies: This requires: lame, wxGTK3
- you'll need to build and install them first
Community Repositories:
https://docs.slackware.com/howtos:sl...y_repositories
- user ponce does a great job fixing build scripts and compiling packages for Slackware -current (the development version)
http://ponce.cc/slackware/slackware64-current/
http://ponce.cc/slackware/slackware64-current/packages/

Thanks for all these links you posted. They will be very helpful!

I tried to build my own package using Conrad https://github.com/conraid/SlackBuil...aster/audacity and Ponce http://www.slackbuilds.org/repositor...udio/audacity/ Slackbuilds but they didn't compile, they gave several errors, even correcting some things in Script like Package name and etc...

This link you reported from Slackbuild could not download Source, it was giving me invalid site. So when I tried to compile it, it was from Source from Audacity's own site. But it gave numerous errors, starting with the different name in Source that I even corrected in the script but still didn't compile before. Source name on Audacity site was audacity-minsrc-2.3.2.tar.xz

Today, at this very moment the source link you passed was working Audacity-2.3.2.tar.gz

Interestingly the Package was modified 2 days ago, just the day I tried and posted here in the forum. Maybe that's why the link was broken. Maybe bad luck at that moment.
https://git.slackbuilds.org/slackbui...udacity?h=14.2

But still it wasn't this time, the mistake is now completely different from the previous ones.
I tried to create the Package, I didn't need to modify anything. I just run slackbuild
And presented the error below, these of course are the last lines
Can you tell me what went wrong this time?

Packages installed on my system:
wxGTK3-3.0.4-x86_64-1_slonly
lame-3.100-x86_64-2

Code:

In file included from prefs/../../lib-src/header-substitutes/allegro.h:15,
                from prefs/../AudioIO.h:37,
                from prefs/PrefsDialog.cpp:37:
prefs/../../lib-src/header-substitutes/../portsmf/allegro.h: In destructor ‘virtual Alg_track::~Alg_track()’:
prefs/../../lib-src/header-substitutes/../portsmf/allegro.h:672:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
        if (time_map) time_map->dereference(); time_map = NULL; }
        ^~
prefs/../../lib-src/header-substitutes/../portsmf/allegro.h:672:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
        if (time_map) time_map->dereference(); time_map = NULL; }
                                                ^~~~~~~~
prefs/PrefsDialog.cpp: In constructor ‘PrefsDialog::PrefsDialog(wxWindow*, const wxString&, PrefsDialog::Factories&)’:
prefs/PrefsDialog.cpp:590:36: error: invalid use of incomplete type ‘class wxTreeCtrl’
          mCategories->GetTreeCtrl()->SetName(_("Category"));
                                    ^~
In file included from /usr/include/wx-3.1/wx/treebook.h:20,
                from prefs/PrefsDialog.cpp:35:
/usr/include/wx-3.1/wx/treebase.h:57:35: note: forward declaration of ‘class wxTreeCtrl’
 friend class WXDLLIMPEXP_FWD_CORE wxTreeCtrl;
                                  ^~~~~~~~~~
prefs/PrefsDialog.cpp:659:33: error: invalid use of incomplete type ‘class wxTreeCtrl’
      mCategories->GetTreeCtrl()->EnsureVisible(mCategories->GetTreeCtrl()->GetRootItem());
                                ^~
In file included from /usr/include/wx-3.1/wx/treebook.h:20,
                from prefs/PrefsDialog.cpp:35:
/usr/include/wx-3.1/wx/treebase.h:57:35: note: forward declaration of ‘class wxTreeCtrl’
 friend class WXDLLIMPEXP_FWD_CORE wxTreeCtrl;
                                  ^~~~~~~~~~
prefs/PrefsDialog.cpp:659:75: error: invalid use of incomplete type ‘class wxTreeCtrl’
 mCategories->GetTreeCtrl()->EnsureVisible(mCategories->GetTreeCtrl()->GetRootItem());
                                                                    ^~

In file included from /usr/include/wx-3.1/wx/treebook.h:20,
                from prefs/PrefsDialog.cpp:35:
/usr/include/wx-3.1/wx/treebase.h:57:35: note: forward declaration of ‘class wxTreeCtrl’
 friend class WXDLLIMPEXP_FWD_CORE wxTreeCtrl;
                                  ^~~~~~~~~~
make[2]: *** [Makefile:6546: prefs/audacity-PrefsDialog.o] Error 1
make[2]: Leaving directory '/tmp/SBo/audacity-Audacity-2.3.2/src'
make[1]: *** [Makefile:1988: all] Error 2
make[1]: Leaving directory '/tmp/SBo/audacity-Audacity-2.3.2/src'
make: *** [Makefile:819: all-recursive] Error 1
bash-4.4#


Nick-us 08-19-2019 11:30 PM

Quote:

Originally Posted by Okie (Post 6026989)
installing pre-built packages from various known websites isnt necessarily dangerous but you could end up with a broken system or broken packages because of version conflict since not everybody has exactly the same setup you have, its always best to build your own because it is made to run on your system with the existing libraries that you have,

the ONLY third party package i use is alien's chromium,

Yes I understand that. but I choose packages according to what suits my system the most. When I first chose to use conrad's package it was because his was the most current, while Ponce's was using an older version.
When I went to try the Ponce version I even downloaded all dependencies that it reported only Ponce versions.

Whenever I can, I also prefer to create packages from slackbuilds, because ready-made packges don't always work for that computer due to different versions of installed dependencies. As was my case with Clementine.

My case with Audacity was that no Slackbuild I tried worked, and only found 3 versions of version 2.3.2. I still tried to fix these Slackbuilds but couldn't in any way make them work.

And I'm not an expert on that, I'm still learning. I would love to know how to create a package slackware from source

I think maybe my biggest difficulty is not knowing English correctly, I'm Brazilian. Think how difficult it is to read a text in another language, and this text is complicated even to understand in the language itself

But I haven't given up yet. The day I learn how to create the package I will have no problem looking for packages created by other people that sometimes work, sometimes not. I will not have problems with Slackbuilds that do not work or with older versions of the program ...

Nick-us 08-19-2019 11:35 PM

Another detail that can help solve my problem.
It shows on the error screen wxWidgets controls.
I want to remember that I use wxWidgets, and the version installed on my system is v.3.1.2
Could it be that?

Nick-us 08-19-2019 11:48 PM

Quote:

Originally Posted by abga (Post 6026965)
- user ponce does a great job fixing build scripts and compiling packages for Slackware -current (the development version)
http://ponce.cc/slackware/slackware64-current/
http://ponce.cc/slackware/slackware64-current/packages/

Error trying to run ponce package:
http://ponce.cc/slackware/slackware6..._64-1ponce.txz
Code:

bash-4.4$ audacity
audacity: relocation error: audacity: symbol _ZThn696_N14wxTextCtrlBase8overflowEi version WXU_3.0 not defined in file libwx_gtk2u_core-3.0.so.0 with link time reference
bash-4.4$

i have link: /usr/lib64/libwx_gtk2u_core-3.0.so.0
FOR: /usr/lib64/libwx_gtk2u_core-3.0.so.0.4.0 (which is the one installed on my system)
Is it because mine is younger?

ponce 08-20-2019 02:30 AM

Hi Nick-us!

let's go in order
Quote:

Originally Posted by Nick-us (Post 6026249)
I use slackwarex64-current

ok
Quote:

I installed the package http://slakfinder.org/show.php?pkg=3384046
avoid using packages search engines and then installing packages from different repositories: what has been packaged for repository "foo" most probably has been at a different time than repository "bar", and might use different dependencies and link to different libraries to what you can find on repository "bar".
the moral of the story is, like USUARIONUEVO hints, don't use packages from multiple repositories and for different version of Slackware: yes, it's what you are doing, installing, for example, a package from Conraid's repository for slackware64-current and wxGTK-3.0.4 from the slackonly repository, wxGTK3-3.0.4-x86_64-1_slonly, built for slackware64-14.2 (slackonly doesn't provide version 3.0.4 for current).
Quote:

audacity-2.3.2-x86_64-1cf.txz

Problem:
He complains about dependencies:
libwx_gtk3u_xrc-3.0.so.0
libwx_gtk3u_html-3.0.so.0

I found them in the folder: /usr/lib64/python3.6/site-packages/wx/
the fact that these python modules are in a "python3.6" directory most probably means that they were built for a previous version of current (that ships 3.7 since february)
Quote:

I linked them to the folder: /usr/lib64/
don't do that: creating random symlinks will never help you, it will only break your system.

Quote:

so he complains about another dependency: libwx_gtk3u_qa-3.0.so.0
I wonder why...
Quote:

Doesn't have it on my computer

Problem:
I can't find what package there is in slackware
I can't identify which Audacity dependency this exists on
Even knowing which Audacity dependencies is difficult is incomplete information.
if you look at where you downloaded your package, http://slack.conraid.net/repository/...rent/audacity/, you can see, at the bottom of the page
Code:

REQUIRES: wxgtk
so, installing wxgtk from the same repository would have made audacity from the same repository work.

note also that you cannot install multiple versions of the wxwidgets (wxWidgets, wxGTK3, etc.) on your system and hope that they will they work fine together, they just won't.
so you better clean your system from third party packages and decide which binary repository you want to use and use just one, or switch to build the third party packages you need yourself using a SlackBuilds repository for current.

Quote:

Originally Posted by Nick-us (Post 6027094)
Error trying to run ponce package:
http://ponce.cc/slackware/slackware6..._64-1ponce.txz
Code:

bash-4.4$ audacity
audacity: relocation error: audacity: symbol _ZThn696_N14wxTextCtrlBase8overflowEi version WXU_3.0 not defined in file libwx_gtk2u_core-3.0.so.0 with link time reference
bash-4.4$

i have link: /usr/lib64/libwx_gtk2u_core-3.0.so.0
FOR: /usr/lib64/libwx_gtk2u_core-3.0.so.0.4.0 (which is the one installed on my system)
Is it because mine is younger?

like I wrote before it's because your wxGTK3 package is built for slackware 14.2.
note that if you want to use the packages I provide you have to read the README.txt file in the same directory in which you can find them: I'll paste it here for you, highlighting some important parts
Quote:

personal packages repository for slackware64-current
--------------------------------------------------

this is my personal repository for slackware64-current: these are
the packages I use on my own installations.
you are free to use this stuff but there are no guarantees they
will work for you (in particular if used with packages from other
third party repositories), nor I take any responsibility if your
cat is harmed during their use. :)
if not yet clear, this means this repository is *UNSUPPORTED*.


you can check for dependencies on SlackBuilds.org if you need
single packages (optional dependencies might be also required), but
all you need besides a current full default installation should
be already in this folder.
MANDATORY: install the full set, package managers are *UNSUPPORTED*
too ;)

before installing the whole, run these commands to create the
needed users/groups:

groupadd -g 210 clamav
useradd -u 210 -d /dev/null -s /bin/false -g clamav clamav
groupadd -g 220 tor
useradd -u 220 -g 220 -c "The Onion Router" -d /dev/null -s /bin/false tor
groupadd -g 206 privoxy
useradd -u 206 -g 206 -c "Web Proxy" -d /dev/null -s /bin/false privoxy
groupadd -g 208 lighttpd
useradd -u 208 -g lighttpd -d /var/www lighttpd

some packages might require additional steps: you are invited to
read their README on SlackBuilds.org.


(latest global rebuild august 14th 2019)
going in the specifics of my audacity package, it uses also all the optional dependencies listed on SlackBuilds.org

Nick-us 08-20-2019 05:36 AM

Thanks
 
Quote:

Originally Posted by ponce (Post 6027151)
Hi Nick-us!
let's go in order
for example, a package from Conraid's repository for slackware64-current and wxGTK-3.0.4 from the slackonly repository, wxGTK3-3.0.4-x86_64-1_slonly, built for slackware64-14.2 (slackonly doesn't provide version 3.0.4 for current).

the fact that these python modules are in a "python3.6" directory most probably means that they were built for a previous version of current (that ships 3.7 since february)

Thanks for your detailed explanation!
Now I understood what they meant by mixing packages.

The problem occurred because the only place I know to find packages for slackware is the website: http://slakfinder.org/
That to my misfortune right now is not working

Only Today I was given a link from your entire repository.

I every time I downloaded from http://slakfinder.org/ site I always worried about downloading packages for current and newer version. Because that's what was informed on the site

This package wxGTK3-3.0.4-x86_64-1_slonly, I installed because it was a Codeblocks dependency when I installed.

Anyway, I see that I have to review everything right now. I think I'll take the opportunity to upgrade slackware to today's version on the site http://www.slackware.no/

And with that update and fix all dependencies that are mixed. And hopefully Codeblocks is compatible with the current version of Audacity, because in Audacity README it says it uses wxWidgets 3.1.1 but I use 3.1.2 I can't downgrade it.

Thanks again for the detailed explanation so I could understand what was wrong first!

Nick-us 08-20-2019 05:49 AM

And really looking here in my folders, because I save the copy of the site page to know what I did, this package is for slackware 14.2 and not for current.
Repository: slackonly64-14.2 in Fri Nov 16 2018 22:15:03 GMT-0200
Repository description: Some package built from Sbo for slackware64 14.2

Poprocks 08-20-2019 10:48 AM

I would try with slackbuilds.org instead of doing what you're doing. You might even want to uninstall a bunch of the packs you've installed thus far - or even try slackpkg clean-system if you're feeling adventurous - and start again using slackbuilds.org and sbopkg. The 'sqg' tool is your friend in this instance. You could use it to generate a queuefile for audacity, and then automatically build and install all dependencies in a chain-like manner. It will take a while because some of these sources are quite large and complex, but it should work.

abga 08-20-2019 11:22 AM

@Nick-us

Most of your questions were already answered by ponce and he also provided you with sound advice (and many details) on how to handle external packages on Slackware and keep your system solid, therefore I won't bother with these points anymore.
One thing that concerned me in your replies, was the apparent lack of understanding on how to use www.slackbuilds.org and I'll elaborate a little on the subject.

Let's start with audacity's dependency wxGTK3:
http://www.slackbuilds.org/repositor...raries/wxGTK3/
Build procedure:
Code:

# you create a folder, say /tmp/kit/
mkdir /tmp/kit/ && cd /tmp/kit/
# then download the wxGTK3 SlackBuild archive and unpack it
wget http://www.slackbuilds.org/slackbuilds/14.2/libraries/wxGTK3.tar.gz
tar -xzpf wxGTK3.tar.gz
cd /tmp/kit/wxGTK3/
# once in /tmp/kit/wxGTK3/, download the wxGTK3 source code archive - the SlackBuild script won't do it for you!
wget https://github.com/wxWidgets/wxWidgets/archive/v3.0.4/wxWidgets-3.0.4.tar.gz
# now you can execute the SlackBuild script and wait for the compilation to finish
./wxGTK3.SlackBuild
# once it finishes, the resulting package will be available in /tmp/ - you'll get this message:
Slackware package /tmp/wxGTK3-3.0.4-arm-2_SBo.tgz created.
# grab that package, save it somewhere for future use and install it:
installpkg wxGTK3-3.0.4-arm-2_SBo.tgz
# it's always recommended to execute a ldconfig -> updating the run-time linker after every installation (some install scripts do it anyways), just run:
/sbin/ldconfig
# clean the temp folder SlackBuild is creating - /tmp/SBo/
rm -rf /tmp/SBo/

Now you can proceed with the audacity in the same way:
http://www.slackbuilds.org/repositor...udio/audacity/

Just for the sake of testing, I successfully compiled wxGTK3 from www.slackbuilds.org on Slackware -current (on ARM - it's the only -current I'm using) and also started the audacity compilation, but stopped it - it's huge.


All times are GMT -5. The time now is 02:44 PM.