Recent Posts

Pages: 1 ... 5 6 7 8 9 [10]
91
Using Code::Blocks / Re: Huge problem with Code::Blocks installation
« Last post by codeks on July 14, 2021, 05:58:10 pm »
Thank you for the replies.

1. you can have multiple versions of wx installed
2. you can use one for cb and another for your software
3. there is a flag to give the correct wx-config executable to configure... Try ./configure --help...
4. never use the default prefix of /usr/local. It is a disaster waiting to happen.

I used --prefix=/usr when configuring wxWidgets and it installed wxprec.h in /usr/include/wx-3.0/wx instead of /usr/local/ but when building codeblocks I still get:
Code
./sdk_common.h:37:10: fatal error: wx/wxprec.h: No such file or directory

I have built code using wxFreeChart for a number of years using my own project file. It works with wx3. I don't think it depends on gtk2 either, not 100% sure.

As oBFusCATed said, there is no requirement to use the same wxWidgets version for building C::B and your own software. They can be different.
wxFreeChart doesn't work with GTK3, I've tried already.

How can I use a different version for my software if I'm using C::B to build it? Sorry for my ignorance, first time doing something like this.
92
Using Code::Blocks / Re: Huge problem with Code::Blocks installation
« Last post by cacb on July 14, 2021, 05:33:03 pm »
wxFreeChart uses gtk2 so I was forced to install wxWidgets with gtk2 as well(tried both versions 2.8.12 and 3.0.5 of wxWidgets with gtk2).

I have built code using wxFreeChart for a number of years using my own project file. It works with wx3. I don't think it depends on gtk2 either, not 100% sure.

As oBFusCATed said, there is no requirement to use the same wxWidgets version for building C::B and your own software. They can be different.
93
Using Code::Blocks / Re: Huge problem with Code::Blocks installation
« Last post by oBFusCATed on July 14, 2021, 04:45:32 pm »
1. you can have multiple versions of wx installed
2. you can use one for cb and another for your software
3. there is a flag to give the correct wx-config executable to configure... Try ./configure --help...
4. never use the default prefix of /usr/local. It is a disaster waiting to happen.
94
Using Code::Blocks / Huge problem with Code::Blocks installation
« Last post by codeks on July 14, 2021, 04:32:26 pm »
Hi. First of all I would like to say I visited this and many other forums to try and fix this issue, to no avail.

Recently I updated my whole system to the newest software. That includes wxWidgets, codeblocks etc.
The problem is that I use real time charting tool called wxFreeChart which has long but abandoned support.

wxFreeChart uses gtk2 so I was forced to install wxWidgets with gtk2 as well(tried both versions 2.8.12 and 3.0.5 of wxWidgets with gtk2).

I have ran into difficulties using the 20.03 codeblocks version with gtk2 so I tried version 17.12-1 which didn't let me install it's .deb files.
Now I am trying to use Code::Blocks version 16.01-release with wxWidgets version 3.0.5 with gtk2. I installed wxWidgets like so:
Code
../configure --with-gtk=2 --enable-monolithic
make -j4
sudo make install
sudo ldconfig

Then I tried installing Code::Blocks 16.01 like this:
Code
export CXXFLAGS="-std=c++11"
export ACLOCAL_FLAGS="-I `wx-config --prefix`/share/aclocal"
./bootstrap
./configure --prefix=/usr --with-contrib-plugins=all,-help
make

"make" gives me and error ./sdk_common.h:37:10: fatal error: wx/wxprec.h: No such file or directory
I should note I do have wxprec.h under /usr/include/wx-3.0/wx

Code
wx-config --version
shows:
Code
3.0.5
and,
Code
wx-config --list
shows:
Code
Default config is gtk2-unicode-3.0

  Default config will be used for output

  Alternate matches:
    gtk3-unicode-3.1
    gtk3-unicode-static-3.1

  Also available in /usr/local:
    gtk2-unicode-release-2.8

In summary: I'm trying to build and install Code::Blocks with gtk2 so my system could work with older software(wxFreeCharts) but am unable to compile from source.
95
Using Code::Blocks / Re: No project options showing
« Last post by oBFusCATed on July 14, 2021, 04:31:43 pm »
What are the exact and detailed steps you've taken?
96
Using Code::Blocks / Re: No project options showing
« Last post by vt on July 14, 2021, 04:24:14 pm »
Theres nothing to select which project to made. No option for going next
I just insatlled a latest version ming32 on window 10(64 bit)
97
Using Code::Blocks / Re: No project options showing
« Last post by oBFusCATed on July 14, 2021, 03:14:06 pm »
What do you mean by "nothing appears on screen"?
What are the exact and detailed steps you've taken?
98
Using Code::Blocks / Re: 20.3 Slow to launch on SSD Laptop
« Last post by oBFusCATed on July 14, 2021, 03:13:04 pm »
You continue to guess what the problem is. This rarely ends with solved problem. You need to use a profiler to see where time is spent. Unfortunately I cannot help much with windows guidance... Both ETW and VTune might be usable for find the root cause.
99
Help / Re: CB resolution compatible?
« Last post by oBFusCATed on July 14, 2021, 03:10:52 pm »
Settings -> Environment -> View -> Feature size...

What OS are you using? What is the scaling setting? Is this new install of C::B?
100
Using Code::Blocks / No project options showing
« Last post by vt on July 14, 2021, 11:48:47 am »
I tried both codeblock 17.12 and latest release also.
When I tried making project nothing appears on screen?
GNU GCC compiler is selected?

I want to make console application to printf some text toi get started.
Pages: 1 ... 5 6 7 8 9 [10]