Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Program depends on build folder after install #263

Open
drkvogel opened this issue Jan 17, 2022 · 3 comments
Open

Program depends on build folder after install #263

drkvogel opened this issue Jan 17, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@drkvogel
Copy link
Contributor

Describe the bug
I built Sneedacity on my Ubuntu Studio system as per the instructions. It runs fine, but after I deleted the build folder in order to free up some disk space, I got an error:

To Reproduce
Steps to reproduce the behavior:

❯ mkdir build && cd build
❯ cmake -G "Unix Makefiles" -Dsneedacity_use_ffmpeg=loaded -DCMAKE_BUILD_TYPE=Release ..

(".." instead of "../sneedacity", which didn't work as there's no such directory, we're in sneedacity/build)

❯ make -j`nproc`
❯ sudo make install
❯ which sneedacity
/usr/local/bin/sneedacity
❯ sneedacity

OK, it runs, no complaints, but:

❯ cd ..
❯ mv build tmp
❯ sneedacity 
sneedacity: error while loading shared libraries: libwx_baseu_xml-3.1.so: cannot open shared object file: No such file or directory

Expected behavior
I expected the program to run after install without needing the build folder

Screenshots
If applicable, add screenshots to help explain your problem.

Additional information (please complete the following information):

  • OS: Ubuntu Studio 20.04
  • Version: Sneedacity 3.0.4-alpha-20220117
@Ckath
Copy link
Contributor

Ckath commented Jan 18, 2022 via email

@drkvogel
Copy link
Contributor Author

Yes, libwx_baseu_xml-3.1.so is linking to the build dir:

❯ ldd $(which sneedacity) | grep libwx_baseu 
	libwx_baseu_net-3.1.so => /usr/local/lib/sneedacity/libwx_baseu_net-3.1.so (0x00007f33c3649000)
	libwx_baseu-3.1.so => /usr/local/lib/sneedacity/libwx_baseu-3.1.so (0x00007f33c293e000)
	libwx_baseu_xml-3.1.so => /home/kvogel/p/sneedacity/build/bin/Release//lib/sneedacity/libwx_baseu_xml-3.1.so (0x00007f33c1c24000)

@ImGonnaChuck ImGonnaChuck self-assigned this Mar 24, 2022
@ImGonnaChuck ImGonnaChuck added the bug Something isn't working label Mar 24, 2022
@ImGonnaChuck ImGonnaChuck modified the milestone: Correct bugs Mar 24, 2022
@ImGonnaChuck ImGonnaChuck removed their assignment Mar 26, 2022
@Ckath
Copy link
Contributor

Ckath commented Jun 26, 2022

slowed by not being able to build it anymore with uptodate ffmpeg: #281

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants