Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Debian package error with wxWidgets 3.2 - Need help

<< < (2/2)

blauzahn:

--- Code: ---warning: cannot find library libcodeblocks.so needed by debian/codeblocks/usr/lib/codeblocks/plugins/libabbreviations.so
--- End code ---


--- Code: ---error: no dependency information found for /opt/wx/lib/libwx_gtk3u_xrc-3.2.so.0 (used by debian/codeblocks/usr/lib/codeblocks/plugins/libabbreviations.so)
--- End code ---

It looks like you get this error during installation of wxwidgets, right? I have not seen this particular error. Sounds like a checken-and-egg-problem.

Do you still have some stale files from a previous blunt make install lying around? In my Makefile in the directory above trunk the install target nukes at least the share and lib directories of cb from the previous install prior installing it again. That normally does the trick.


--- Code: ---install:
-@if [ -d $(PREFIX)/share/codeblocks ]; then rm -rf $(PREFIX)/share/codeblocks; fi
-@if [ -d $(PREFIX)/lib/codeblocks ]; then rm -rf $(PREFIX)/lib/codeblocks; fi
(cd $(build) && $(MAKE) install)
mkdir -p $(PREFIX)/share/codeblocks/locale/de_DE
install -m 644 de_codeblocks.mo $(PREFIX)/share/codeblocks/locale/de_DE/de_codeblocks.mo

--- End code ---

On arch, I still use that unsafe way without involving the package manager pacman. I know, I should use it.

And I move the whole (out-of-tree) build directory away into build.old.

My daily build command line for wxwidgtes as for cb, conviently recalled by Ctrl-r, looks like this:


--- Code: ---$ rm -rf build.old; mv build build.old; make bootstrap && make config && time make -j 16

--- End code ---

In the Makefile above wxwidgets' trunk directory, bootstrap is an empty target. In cb it looks like:


--- Code: ---bootstrap:
(cd $(trunk) && ACLOCAL_FLAGS="-I `$(WX_PREFIX)/bin/wx-config --prefix`/share/aclocal" ./bootstrap )

--- End code ---

It does not hurt if you call it again.

Did you recompile codeblocks after you recompiled and installed wxwidgets? When I start cb after having recompiled wxwidgets sometimes I get an unresolved reference. Looks like wxwidgets trunk is not always ABI compatible but rather API compatible. This should surprise anybody who is willing to use trunk prior release. Recompiling and reinstalling cb usually helps in these cases. The only occation when it did not was with wxwidgets recent change with wxBitmapBundle.

I assume, you created a file /etc/ld.so.conf.d/wxwidgets.conf which includes /opt/wx/lib. And that you called ldconfig afterwards.

asking ldd I get:

--- Code: ---$ ldd /usr/local/lib/codeblocks/plugins/libabbreviations.so |grep libwx_gtk3u_xrc
libwx_gtk3u_xrc-3.2.so.0 => /opt/wx/lib/libwx_gtk3u_xrc-3.2.so.0 (0x00007f367be55000)

--- End code ---

and


--- Code: ---$ ldd /usr/local/lib/codeblocks/plugins/libabbreviations.so |grep libcodeb
libcodeblocks.so.0 => /usr/local/lib/libcodeblocks.so.0 (0x00007f5560a00000)

--- End code ---


--- Code: ---$ dpkg -S /opt/wx/lib/libwx_gtk3u_xrc-3.2.so.0
wxwidgets-trunk: /opt/wx/lib/libwx_gtk3u_xrc-3.2.so.0

--- End code ---

I named the package wxwidgets-trunk with a minus sign in between.

Does it help you?

blauzahn:
Forgot to mention: I use ubuntu 20.04. Do you have installed some related stuff on your ubuntu 22.04 with snap?

stahta01:
https://www.binarytides.com/install-wxwidgets-ubuntu/

I have no idea if the above link will help or hurt.

https://docs.wxwidgets.org/3.2.0/overview_install.html

Tim S.

AndrewCot:
I will get back to the C::B debian builds early next week and post how I go.

stahta01:
This might help https://docs.codelite.org/wxWidgets/repo320/#ubuntu-and-debian

Edit: It has been a few years since I last did Linux.

Navigation

[0] Message Index

[*] Previous page

Go to full version