Author Topic: Can't get it to run on Debian Buster missing  (Read 3392 times)

Offline dfatcb

  • Multiple posting newcomer
  • *
  • Posts: 67

I was using Debian Jessie with, I believe, Code::Blocks 17.12.  I upgraded to stretch then buster.  When done, Code::Blocks wouldn't run.  I then looked for updates and found the which is supposed to be made for Debian 10 (Buster).   

I extracted the file, change to that directory and ran sudo dpkg -i *.deb followed by sudo apt-get install -f (which didn't update or change anything - just ran it because instructions I found for install said to).    Anyway, once done the icon still wouldn't launch so I ran "codeblocks" from terminal and it says:

 codeblocks: error while loading shared libraries: cannot open shared object file: No such file or directory

So I'm stuck, I can't see to find that file anywhere and the only package I found it listed was for SID.

What do I need to do for code::blocks to run on Debian Buster?

Online Commaster

  • Almost regular
  • **
  • Posts: 171
Why i386? Is your Debian 32-bit and not 64-bit? Do you have 32-bit wxWidgets libraries installed?

Offline dfatcb

  • Multiple posting newcomer
  • *
  • Posts: 67
Need to build 32 bit apps that run on all platforms and the main custom linux environment (which needs to run in limited memory) has the 32 bit libraries.  If they wouldn't have went with 32bit wchar and 64bit longs the transition would be much easier like on windows.   There is well over a million lines of code that would need to be reviewed and change.

But what is the debian package I need to install?  is it apt-get install wxWidgets ?

Offline dfatcb

  • Multiple posting newcomer
  • *
  • Posts: 67

under the extracted folder (wxGTK-2.8.12)
mkdir buildgdk
cd buildgdk
../configure --width-gdk --enable-unicode

Edit Makefile and add the following to the CFLAGS and CXXFLAGS

 -Wno-narrowing  -D__GXX_ABI_VERSION=1002



make install

Not sure if needed, also added to ~/.bashrc

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

(log out and back in)

code::blocks now runs, but says 17.12, but that's fine.