User forums > General (but related to Code::Blocks)
Installing from Source Code
archman007:
Compiling from svn trunk source I get this error.
/usr/bin/ld: /usr/local/lib/libwx_gtk3u_aui-3.1.a(auilib_framemanager.o): relocation R_X86_64_PC32 against symbol `_ZN17wxAuiManagerEvent12ms_classInfoE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:939: libcodeblocks.la] Error 1
make[3]: Leaving directory '/home/archman/devel/codeblocks-code/src/sdk'
make[2]: *** [Makefile:1105: all-recursive] Error 1
make[2]: Leaving directory '/home/archman/devel/codeblocks-code/src/sdk'
make[1]: *** [Makefile:543: all-recursive] Error 1
make[1]: Leaving directory '/home/archman/devel/codeblocks-code/src'
make: *** [Makefile:674: all-recursive] Error 1
archman@archman-B360M-DS3H:~/devel/codeblocks-code$ \
Here is my configuration.
*************************************************
* Code::Blocks source tree has been configured. *
*************************************************
You can now build Code::Blocks by issuing 'make'.
When the build is complete, become root and install
it by issuing 'make install'.
CFLAGS: -fPIC -fPIC -std=c90
CXXFLAGS: -Winvalid-pch -fPIC -fexceptions
CPPFLAGS: -DCB_AUTOCONF -DCB_PRECOMP -DPIC -I$(top_srcdir)/src/include/tinyxml -DTIXML_USE_STL=YES
LDFLAGS: -Wl,--no-undefined
CXX: g++
CC: gcc
archman@archman-B360M-DS3H:~/devel/codeblocks-code$
I would like to move on to make install but I cannot.
Thanks a ton folks.
oBFusCATed:
Most probably you're trying to use a statically build wxgtk.
Why are you trying to use a self-build wxgtk? Why don't you use the system package?
archman007:
Where are the code blocks system packages? The ones I have tried are busted also. Need version 17.xx. The 16.xx version is janky!
oBFusCATed:
It seems that you've built yourself wxgtk instead of installing wxgtk-dev and using those. On debian there is an easy way to create packages. Search the internet how to do it. Or inspect our travis file for the commands needed to build a package: https://github.com/obfuscated/codeblocks_sf/blob/master/.travis.yml
archman007:
Reply oBufsCATed
WxWidgets version 3.1 is loaded and operational. wxWidgets is not the problem here.
Navigation
[0] Message Index
[#] Next page
Go to full version