User forums > Using Code::Blocks

Huge problem with Code::Blocks installation

<< < (2/3) > >>

oBFusCATed:
Using prefix=/usr is even more dangerous, because you mess with system files. Now you've messed your original wx install... For the wx you want to develop against use a prefix in your home folder or in something like /opt...

codeks:
I have installed latest wxWidgets 3.1.5 and GTK3 with prefix to a /home folder
and have configured wxFreeChart using
 
--- Code: -----with-wxdir=/full/wxWidgets/prefix/path --with-wx-config=/full/wxWidgets/wx-config/path --prefix=/home/prefix/path
--- End code ---
but when I try to run my compiled program from the executable it doesn't launch.
I ran Valgrind's Cachegrind utillity and the results are as follows:

--- Code: ---BasicGUI/bin/Debug/BasicGUI: error while loading shared libraries: libwxcode_gtk3u_freechart-3.1.so.0: cannot open shared object file: No such file or directory
==4535==
==4535== I   refs:      76,620
==4535== I1  misses:       547
==4535== LLi misses:       539
==4535== I1  miss rate:   0.71%
==4535== LLi miss rate:   0.70%
==4535==
==4535== D   refs:      21,542  (15,740 rd   + 5,802 wr)
==4535== D1  misses:       783  (   358 rd   +   425 wr)
==4535== LLd misses:       768  (   343 rd   +   425 wr)
==4535== D1  miss rate:    3.6% (   2.3%     +   7.3%  )
==4535== LLd miss rate:    3.6% (   2.2%     +   7.3%  )
==4535==
==4535== LL refs:        1,330  (   905 rd   +   425 wr)
==4535== LL misses:      1,307  (   882 rd   +   425 wr)
==4535== LL miss rate:     1.3% (   1.0%     +   7.3%  )
cachegrind.out.4535
--- End code ---

oBFusCATed:
1. valgrind and cachegrind aren't tools for debugging this problem.
2. Are you running it from inside or outside of codeblocks? Where does it work and where it doesn't?

codeks:

--- Quote from: oBFusCATed on August 12, 2021, 10:12:25 am ---1. valgrind and cachegrind aren't tools for debugging this problem.
2. Are you running it from inside or outside of codeblocks? Where does it work and where it doesn't?

--- End quote ---
It compiles in codeblocks but there is some sort of a runtime problem when I try to launch the executable. When I try to launch it from terminal, it just hangs.
Only lead I have is the cachegrind error telling me the shared library isn't linked, although it is. That and, Valgrind shows a stack error.

Miguel Gimenez:
The libwxcode_gtk3u_freechart-3.1.so.0 must be in the library search path. Usually calling make install does this, but you can do it manually, see the shared libraries howto

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version