LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-22-2017, 11:35 PM   #1
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
code::blocks wxwidgets example terminal program?


I'm looking for a simple example RS-232 terminal program for code::blocks using wxwidgets. I've never used either code::blocks or wxwidgets before, and it's been at least 15 years since I've written any sort of GUI code. So, I need some training wheels to get me started.

The example program doesn't need to do much, or even do it well. I just need something that actually compiles and runs to give me a start, and I haven't been able to find anything suitable on the net, or at least anything that I recognized as usable.

Most of the stuff I've been able to find was written only for Windows. I'd much rather do the development under Linux, which is more familiar to me at this point, and then deal with the cross platform mods (I will need to also create a Windows executable) after the Linux part is working.

Anyone have a link or even some simple sample code you'd be willing to share?

And, in case you're still reading and wondering what I'm doing: I've developed a good quality GPSDO (see AE6RV.com), and I need to build a user interface to save logs, change PID gains, kick off survey, hold, that sort of thing.

thanks in advance.
 
Old 01-23-2017, 12:48 PM   #2
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Since you haven't used code::blocks or wxwidgets, I recommend trying Qt. It has built in serial port capability via the QtSerialPort classes and example code. http://doc.qt.io/qt-5/qtserialport-index.html

Attached is a screen shot of the enumerator example running on my machine. ttyUSB0 is a Garmin device and ttyS0 is a Davis weather station.
Attached Thumbnails
Click image for larger version

Name:	enumerator.png
Views:	47
Size:	19.5 KB
ID:	24037  
 
Old 01-23-2017, 02:21 PM   #3
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Original Poster
Rep: Reputation: 141Reputation: 141
Hi,

I think I've gotten over the fear, uncertainty, and doubt of getting this started! I had tried to get a "simple" terminal program running that I found, but it was so tied to Windows that I couldn't even get a start on getting it compiled. After looking at it more, I realized that the files hadn't even downloaded properly. So I abandoned that and tried creating a simple "HelloWorld" project with a single text field. After looking at that, I started remembering some of the stuff I had done in the 90s, so maybe I can just use this dummy project to get it going. That's probably for the best. If I had found something "kinda" right, I would have been tied to whatever assumptions the author had made, and none of them would probably have fit my needs.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Trying to install Code::Blocks, wxWidgets on Debian Wheezy kathbeau Linux - Software 5 11-19-2014 01:05 PM
[SOLVED] how to open terminal through c program and run another code on it same time rohaanembedded Programming 10 05-30-2013 12:17 AM
Get Code::Blocks to use a Terminal Emulator Other Than XTerm tfnc99 Linux - Software 1 09-19-2012 04:48 AM
Is is possible to program Wxwidgets with Objective C? chutsu Programming 1 03-29-2008 12:36 PM
Running GUI wxWidgets program on eclipse mohtasham1983 Programming 2 06-23-2007 01:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration