News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Code::Blocks and Raspberry Pi 4

Started by dbrdh, January 01, 2020, 09:20:22 PM

Previous topic - Next topic

dbrdh

Hi all,

Have just bought a RP4 and installed C::B.

All OK but in trying out just to create a simple 'Hello World' GTK app. Sorted libraries for the compiler but I find the build fails due to:

'gtk_button_new_from_stock' is deprecated in the 'main.c' file: Use 'gtk_button_new_with_label' instead [-Wdeprecated-declarations]'

Wasn't expecting an IDE basic app build to fail out of the box but accept this maybe a Noob issue - where is the proper place to get an answer to this as I appreciate the "Read This' post and this may not be the correct forum to ask about this.

Thanks

stahta01

#1
Do you know the difference between error and warning?

Where is Code::Blocks installed? Edit2: On RP4 or other computer
What version is Code::Blocks?
What compiler are you using?
What is the Compiler version?

Edit: Add link on reporting issue
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

oBFusCATed

@dbrdh: If you're running a night build or recent svn version it is best to log this issue in the sf.net tickets section, so it is not forgotten. This is a problem with the GTK project template. What version of gtk+ are you using?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

dbrdh

#3
Thanks for the reply...

Quote from: stahta01 on January 01, 2020, 09:26:06 PM
Do you know the difference between error and warning?

yep. Now you've reminded me! :-)

Quote from: stahta01 on January 01, 2020, 09:26:06 PM
Where is Code::Blocks installed? Edit2: On RP4 or other computer
What version is Code::Blocks?
What compiler are you using?
What is the Compiler version?

C::B is on the Pi v17.12
GCC v.8.3.0.

Quote from: stahta01 on January 01, 2020, 09:26:06 PM
Edit: Add link on reporting issue
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

Thanks for this. I'm new to programming in Linux and new to the Pi - I have done a fair bit of Basic, VB, C and C++ but a long time ago - that helped with sorting the missing libraries. Maybe I'm being a real Noob but I was expecting, perhaps naively, just to compile and run a simple GUI 'Hello world' app without too much [any?] input. However, when this new to a platform/app/environment, it's difficult to know what are noob issues and what is a genuine issue! 8-)

Still reading up - a lot! 8-)

Sorted my initial issue and am ignoring the warnings. Having sorted out missing libraries, now have new errors relating to undefined references. I know what these are but they seem extensive and relate to the window construction/size/position so perhaps I'll post using info from link you supplied.

Thanks again,

Dave

dbrdh

Thanks for the reply...

Quote from: oBFusCATed on January 02, 2020, 11:08:14 AM
@dbrdh: If you're running a night build or recent svn version it is best to log this issue in the sf.net tickets section, so it is not forgotten. This is a problem with the GTK project template. What version of gtk+ are you using?

Noted.

GTK+ 3.0 version: 3.24.5-1+rpt2  armhf 

Sorted the initial issue but as you may have seen in my other reply, I now have 'undefined reference' errors relating to GUI window construction. This seems to fit with what you say about a template issue. Its tripping up on things like undefined border setting and window position.

Is the section you referenced above the right place for this?

Cheers,

Dave

oBFusCATed

Quote from: dbrdh on January 05, 2020, 03:10:59 PM
Is the section you referenced above the right place for this?
Most probably it is.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

stahta01

#6
FYI: Just looked at the wizard and it looks like it only support GTK version 2 under Windows.
Edit: And, that version seems to be the only one supported under other OSes.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]