Getting wxWidgets and Eclipse for C/C++Devs to work together

934 views
Skip to first unread message

asif saeed

unread,
Jun 24, 2013, 5:48:26 AM6/24/13
to wx-u...@googlegroups.com
Hi,

I am having a terrible time getting wxWidget and eclipse to work together. I have had no success at all even though I have followed the instructions on this page:

http://wiki.wxwidgets.org/Eclipse

However, I've failed to get this to work. Are there any tutorials/documentation on this on the web?

I would be thankful if anyone could help me on this.

Best regards,
-Asif



asif saeed

unread,
Jun 24, 2013, 5:53:54 AM6/24/13
to wx-u...@googlegroups.com
Hi,

On Mon, Jun 24, 2013 at 2:48 PM, asif saeed <asif...@gmail.com> wrote:
I am having a terrible time getting wxWidget and eclipse to work together. I have had no success at all even though I have followed the instructions on this page:

http://wiki.wxwidgets.org/Eclipse

However, I've failed to get this to work. Are there any tutorials/documentation on this on the web?

I am using Mint 15 64-bit Cinnamon and I can also install it via apt-get if that is a better alternative and if you can give me a valid launchpad or other link. I have googled out the following lauchpad link:

https://launchpad.net/~fransschreuder1/+archive/usbpicprog-devel/+sourcepub/3191787/+listing-archive-extra

Is above a valid link and will this install wxWidgets correctly on my system? I want both static and dynamic libraries and I want to compile my apps to both 32-bit and 64-bit executables.

Thanks in advance,

-Asif

lc

unread,
Jun 24, 2013, 8:17:31 AM6/24/13
to wx-u...@googlegroups.com

asif saeed

unread,
Jun 24, 2013, 9:04:26 AM6/24/13
to wx-u...@googlegroups.com
Hi,

On Mon, Jun 24, 2013 at 5:17 PM, lc <car...@gmail.com> wrote:
Try this: http://wiki.wxwidgets.org/Eclipse,_CDT_%26_MingW_Setup_Guide


Em segunda-feira, 24 de junho de 2013 06h48min26s UTC-3, asif escreveu:
Hi,

I am having a terrible time getting wxWidget and eclipse to work together. I have had no success at all even though I have followed the instructions on this page:

http://wiki.wxwidgets.org/Eclipse

However, I've failed to get this to work. Are there any tutorials/documentation on this on the web?

Thanks for replying, Ic. But the link is about MinGw and wxWidgets 2.8. I can go about using this wiki page to try and build 2.9.4 but I've been doing this for so long already. There seems to be absolutely NO WAY to install wxWidgets 2.9.4 comfortably on Linux and to get it to work comfortably with Eclipse. Even though the website's frontpage recommends using 2.9.4 but it is a real pain.

Goes without saying: I'll be thankful if any kind soul could end my frustration. I have very strinct deadlines and simply cannot affort to continue to experiment. I've spent a lot of time and I really expect the devs to help me out.

-Asif

asif saeed

unread,
Jun 24, 2013, 9:11:15 AM6/24/13
to wx-u...@googlegroups.com
Alternatively, I can use CodeBlocks IF, and this is a BIG IF, CodeBlocks can be configured ***easily*** (without spending a day!) to use wxWidgets-2.9.4.

Best regards,
-Asif

Igor Korot

unread,
Jun 24, 2013, 10:48:19 AM6/24/13
to wx-u...@googlegroups.com
Hi, Asif,
wxWidgets is a developmental library that is written in C++.
The best way of building it is thru terminal using standard:

cd wxWidgets-2.9.4
mkdir buildGTK
cd buildGTK
../configure
make
sudo make install

Then you can write your own project in Eclipse by pointing Eclipse project to use wx.

Are you having trouble with the former or the latter?

Thank you.


--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
 
To unsubscribe, send email to wx-users+u...@googlegroups.com
or visit http://groups.google.com/group/wx-users
 
 

asif saeed

unread,
Jun 24, 2013, 11:00:51 AM6/24/13
to wx-u...@googlegroups.com
Hi Igor,

On Mon, Jun 24, 2013 at 7:48 PM, Igor Korot <ikor...@gmail.com> wrote:
The best way of building it is thru terminal using standard:
cd wxWidgets-2.9.4
mkdir buildGTK
cd buildGTK
../configure
make
sudo make install
 
I did the same but I still got notifications. I suspect that support of some image formats, for example, didn't get into the build most likely because I don't have the required libs installed on my system. I'd be thankful if these dependencies could be cleanly listed in the docs.

Then you can write your own project in Eclipse by pointing Eclipse project to use wx.
Are you having trouble with the former or the latter?

I am having trouble with the latter. I tried to install wxWidgets in a folder under my own home directory. I have tried to run samples using "make" and they run file except the color issues in ribbondemo which are perhaps because of gtk3.

However, I am terrible with make files and I really need to get this running with an IDE - preferably eclipse. If this can be done by installing wxWidgets in the OS folders then I'll sure "sudo make install" but I don't know about the dependencies. I have ***very**** restricted network environment and I get true Internet access (I can browse but cannot use SVN, Git or download files beyond a few megabytes and the network doesn't like linux updater) only for 1.5 hours. So I am not at all free to install libs and other stuff via sudo apt-get, etc.

The management doesn't understand development problems. They only want results! So, with these constraints, I really need help from this list. I have no problem hacking into the wxwidgets library or make files internals but I simply don't have that kind of a time available.

I would be thankful if you could help me here.

Best regards,
-Asif

Igor Korot

unread,
Jun 24, 2013, 11:09:31 AM6/24/13
to wx-u...@googlegroups.com
Hi, Asif,

On Mon, Jun 24, 2013 at 8:00 AM, asif saeed <asif...@gmail.com> wrote:
Hi Igor,

On Mon, Jun 24, 2013 at 7:48 PM, Igor Korot <ikor...@gmail.com> wrote:
The best way of building it is thru terminal using standard:
cd wxWidgets-2.9.4
mkdir buildGTK
cd buildGTK
../configure
make
sudo make install
 
I did the same but I still got notifications. I suspect that support of some image formats, for example, didn't get into the build most likely because I don't have the required libs installed on my system. I'd be thankful if these dependencies could be cleanly listed in the docs.

What kind of notifications? Can you post them here?
 

Then you can write your own project in Eclipse by pointing Eclipse project to use wx.
Are you having trouble with the former or the latter?

I am having trouble with the latter. I tried to install wxWidgets in a folder under my own home directory. I have tried to run samples using "make" and they run file except the color issues in ribbondemo which are perhaps because of gtk3.

However, I am terrible with make files and I really need to get this running with an IDE - preferably eclipse. If this can be done by installing wxWidgets in the OS folders then I'll sure "sudo make install" but I don't know about the dependencies. I have ***very**** restricted network environment and I get true Internet access (I can browse but cannot use SVN, Git or download files beyond a few megabytes and the network doesn't like linux updater) only for 1.5 hours. So I am not at all free to install libs and other stuff via sudo apt-get, etc.

Now, lets start with the simple stuff.
Can you make a simple "Hello World" project in Eclipse C++ env. and  successfully compile/run?
Just a simple terminal-like app.

Thank you.


The management doesn't understand development problems. They only want results! So, with these constraints, I really need help from this list. I have no problem hacking into the wxwidgets library or make files internals but I simply don't have that kind of a time available.

I would be thankful if you could help me here.

Best regards,
-Asif

Message has been deleted

Stefano Mtangoo

unread,
Jun 24, 2013, 2:47:43 PM6/24/13
to wx-u...@googlegroups.com
If you real mean it Get CodeLite its a way the easiest of All C++ IDEs to me!
http://codelite.org/LiteEditor/Documentation

-Asif

Stefano Mtangoo

unread,
Jun 24, 2013, 2:49:02 PM6/24/13
to wx-u...@googlegroups.com

Igor Korot

unread,
Jun 24, 2013, 6:48:32 PM6/24/13
to wx-u...@googlegroups.com
Or even better, dedicated Linux IDE -  KDevelop or Anjuta.
I know KDevelop 3.5.x have a template for creating a working wxWidgets project.

Never tried Anjuta or _latest_ KDevelop 4.x.

Thank you.

On Mon, Jun 24, 2013 at 11:45 AM, Stefano Mtangoo <mwinj...@gmail.com> wrote:
Well I used Eclipse long ago and found it terrible and Javaish.
Is there any reason you don't want to use dedicated C++ IDEs?
CodeLite, Code::Blocks, Visual Studio, wxDevCpp....?

If you insist on Eclipse have you installed CDT? What is the error?

asif saeed

unread,
Jun 25, 2013, 12:44:12 AM6/25/13
to wx-u...@googlegroups.com
Hi Stefano,


On Mon, Jun 24, 2013 at 11:49 PM, Stefano Mtangoo <mwinj...@gmail.com> wrote:
forgot to mention: http://codelite.org/LiteEditor/Repositories

Thank you for replying. I also found that after posting my query on this list. I'm gonna try it now.

asif saeed

unread,
Jun 25, 2013, 12:55:53 AM6/25/13
to wx-u...@googlegroups.com
Hi Stefano,

On Mon, Jun 24, 2013 at 11:45 PM, Stefano Mtangoo <mwinj...@gmail.com> wrote:
On Monday, June 24, 2013 12:48:26 PM UTC+3, asif wrote:
I am having a terrible time getting wxWidget and eclipse to work together. I have had no success at all even though I have followed the instructions on this page:

http://wiki.wxwidgets.org/Eclipse

However, I've failed to get this to work. Are there any tutorials/documentation on this on the web?
...

If you insist on Eclipse have you installed CDT? What is the error?

I have downloaded, installed and tested Eclipse/CDT with a simple hello world app. All wxWidgets samples that I tried worked fine because I ran make from command-line and ran the executable. However, I am at a loss as to how I am going to put up a completely new project of my own (which is very large) in an IDE such as Eclipse. I am not particularly fond of eclipse or any IDE, for that matter. I just chose it because of its bugzilla/task-list/task-focused project-management features. I found out about CodeLite after posting to this list and I'm going to try it today.

There were no errors in building wxWidgets - there were some kind of a list of notifications such as so many targets failed (or missed or something like that, I don't remember). But the wxWidgets is still working as the samples that I tried work OK except blackish gradient-like color scheme in RibbonDemo. The RibbonDemo looks ok in MSW theme though.

Best regards,
-Asif

asif saeed

unread,
Jun 25, 2013, 1:17:52 AM6/25/13
to wx-u...@googlegroups.com
Hi

On Tue, Jun 25, 2013 at 9:55 AM, asif saeed <asif...@gmail.com> wrote:
On Mon, Jun 24, 2013 at 11:45 PM, Stefano Mtangoo <mwinj...@gmail.com> wrote:
On Monday, June 24, 2013 12:48:26 PM UTC+3, asif wrote:
I am having a terrible time getting wxWidget and eclipse to work together. I have had no success at all even though I have followed the instructions on this page:

http://wiki.wxwidgets.org/Eclipse

However, I've failed to get this to work. Are there any tutorials/documentation on this on the web?
...

If you insist on Eclipse have you installed CDT? What is the error?

I have downloaded, installed and tested Eclipse/CDT with a simple hello world app. All wxWidgets samples that I tried worked fine because I ran make from command-line and ran the executable. However, I am at a loss as to how I am going to put up a completely new project of my own (which is very large) in an IDE such as Eclipse.
I can create complete new C++ projects in Eclipse without any problem at all but I am having a hell of time getting wxWidgets integrated in a simple project. For now, I just want to run a simple hello world based on wxWidgets on Eclipse. But if Codelite works then I'll work with Codelite.

@Igor: I'll also try KDevelop. Thank you for the KDevelop reminder.

Best regards,
-Asif

asif saeed

unread,
Jun 25, 2013, 2:09:55 AM6/25/13
to wx-u...@googlegroups.com
Hi Igor,

On Tue, Jun 25, 2013 at 3:48 AM, Igor Korot <ikor...@gmail.com> wrote:
Or even better, dedicated Linux IDE -  KDevelop or Anjuta.
I know KDevelop 3.5.x have a template for creating a working wxWidgets project.

Do recall that KDevelop did have wxWidgets support. Haven't tried the latest Kdevelop version though. However, I want wxWidgets 2.9.4 support. I doubt Kdevelop has it. Codelite has it on the other hand.

Best regards,
-Asif

Stefano Mtangoo

unread,
Jun 25, 2013, 2:23:23 AM6/25/13
to wx-u...@googlegroups.com
You don't have to try all IDEs out there. Just what you need. I would say CodeLite and Code::Blocks (and wxDevCpp though its windows only) are developed by people from wxWidgets family and so the have tight solid integration. Those people are in this list and have strong forum and user base.
So you want something that is wx oriented get one of them (my preference is CodeLite though).

Apart from SVN and GIT integration, there are built in and external RAD designer!
 The best thing is if something is missing you can write a plugin for that, sometimes in 20minutes!

Best regards,
-Asif

asif saeed

unread,
Jun 25, 2013, 4:51:14 AM6/25/13
to wx-u...@googlegroups.com
Hi Sefano,

On Tue, Jun 25, 2013 at 11:23 AM, Stefano Mtangoo <mwinj...@gmail.com> wrote:
On Tuesday, June 25, 2013 9:09:55 AM UTC+3, asif wrote:
On Tue, Jun 25, 2013 at 3:48 AM, Igor Korot <ikor...@gmail.com> wrote:
Or even better, dedicated Linux IDE -  KDevelop or Anjuta.
I know KDevelop 3.5.x have a template for creating a working wxWidgets project.
.............
Apart from SVN and GIT integration, there are built in and external RAD designer!

Yes, CodeLite looks like a good code editor for wxWidgets - I prefer it as its latest version also comes with 2.9.4 support. I don't need the RAD designer, I am fine if it's a good editor with wxWidgets integrated.
 
 The best thing is if something is missing you can write a plugin for that, sometimes in 20minutes!

Nice to know that. Thanks.

Best regards,
-Asif
Reply all
Reply to author
Forward
0 new messages