User forums > Help
How to install codeblocks on raspberry pi 4?
oBFusCATed:
This happens when you mix package based codeblocks and manual "make install" codeblocks. Remove one or the other or use "./configure --prefix=/somehting/different/from/default"
MBajor:
I apologise for my stupid question but could you explain me more precisely what and where I should delete.
I installed the codeblocks in a different folder than the default ("./configure --prefix=/opt/codeblocks-svn") but after trying to run the codeblocks I get the following window with an error message:
--- Quote ---Cannot find resources...
Code::Blocks was configured to be installed in '/usr/local/share/codeblocks'.
Pleas use the command-line switch '--prefix' or set the CODEBLOCKS_DATA_DIR environment variable to point where Code::Blocks is installed, or try re-installing the application...
--- End quote ---
Thank you in advance for your help.
cacb:
Here is how I build Code::Blocks under Ubuntu, I guess it should work under PI4 as well
$ git clone https://github.com/obfuscated/codeblocks_sf
$ cd codeblocks_sf/
$ ./bootstrap
$ ./configure --with-contrib-plugins=all --with-wx-config=/usr/bin/wx-config --prefix=/ssd1/cb/
$ make
$ sudo make install
The value after --prefix is where the "make install" installs the binaries. Obviously a number of packages are required.
Another option you have (admittedly more work) is to cross compile from e.g. Ubuntu to PI4, see link in the Wiki http://wiki.codeblocks.org/index.php/Off-site_documentation
oBFusCATed:
MBajor:
Do you have any codeblocks related files outside of /opt/codeblocks-svn?
If you have and they are in a path that is searched before your current install path you'll have problems.
I'm talking specifically about library search paths.
MBajor:
cacb after the "./configure --with-contrib-plugins=all --with-wx-config=/usr/bin/wx-config --prefix=/ssd1/cb/" command I facing an error:
--- Quote ---configure: error: Could not find a version of the library!
--- End quote ---
But the "./configure --with-contrib-plugins=all --with-wx-config=/usr/bin/wx-config --prefix=/ssd1/cb/" command really helped me a lot for wxSmith. Thank you!
oBFusCATed Eventually I decided to completely reinstall the operating system.
After reinstalling, I encountered a lot of errors:
error:
--- Quote ---./bootstrap: 70: ./bootstrap: libtoolize: not found
--- End quote ---
Solution:
--- Quote ---sudo apt-get install libtool
--- End quote ---
error:
--- Quote ---configure.ac:141: warning: macro 'AM_OPTIONS_WXCONFIG' not found in library
configure.ac:142: warning: macro 'AM_PATH_WXCONFIG' not found in library
configure.ac:26: installing './compile'
configure.ac:22: installing './missing'
src/base/tinyxml/Makefile.am: installing './depcomp'
configure.ac:141: error: possibly undefined macro: AM_OPTIONS_WXCONFIG
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:142: error: possibly undefined macro: AM_PATH_WXCONFIG
--- End quote ---
Solution first make command:
--- Quote ---export ACLOCAL_FLAGS="-I `wx-config --prefix`/share/aclocal"
./bootstrap
--- End quote ---
error:
--- Quote ---configure: error: Package requirements (hunspell) were not met:
No package 'hunspell' found
--- End quote ---
Solution:
--- Quote ---sudo apt install libhunspell-dev
--- End quote ---
error:
--- Quote ---configure: error: Package requirements (gamin) were not met:
No package 'gamin' found
--- End quote ---
Solution:
--- Quote ---sudo apt-get install libgamin-dev libgamin0
--- End quote ---
error:
--- Quote ---/bin/bash: zip: command not found
--- End quote ---
Solution:
--- Quote ---sudo apt-get install zip
--- End quote ---
error:
--- Quote ---fatal error: boost/spirit/include/classic.hpp: No such file or directory
#include <boost/spirit/include/classic.hpp>
--- End quote ---
Solution:
--- Quote ---apt-get install libboost-all-dev
--- End quote ---
...
After this I successfully installed the svn codeblocks. But that's not exactly what I wanted. Because I wanted codeblocks 20.03. But attempt to build him give me an error which solution I can't find in internet.
--- Quote ---/tmp/ccg9Nnhb.s: Assembler messages:
/tmp/ccg9Nnhb.s:938: Error: bad instruction `int3'
make[4]: *** [Makefile:597: dragscrollcfg.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/home/pi/Downloads/codeblocks-20.03/src/plugins/contrib/dragscroll'
make[3]: *** [Makefile:639: all-recursive] Error 1
make[3]: Leaving directory '/home/pi/Downloads/codeblocks-20.03/src/plugins/contrib'
make[2]: *** [Makefile:535: all-recursive] Error 1
make[2]: Leaving directory '/home/pi/Downloads/codeblocks-20.03/src/plugins'
make[1]: *** [Makefile:545: all-recursive] Error 1
make[1]: Leaving directory '/home/pi/Downloads/codeblocks-20.03/src'
make: *** [Makefile:676: all-recursive] Error 1
--- End quote ---
How exactly can I fix this error?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version