[SOLVED]: wxGTK example compilation Topic is solved

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 4152
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

[SOLVED]: wxGTK example compilation

Post by ONEEYEMAN » Fri Aug 19, 2005 1:20 am

Hi, ALL,
I am new to the Linux world, so here is my "simple" question.
How I can compile an example of wxGTK on Linux. There are couple of Makefiles in the directory, but when I issue a "make" command or "make Makefile.in" or "make Makefile.gcc" nothing happened. All it saying is:

Code: Select all

make: Nothing to be done for 'Makefile.in'
make: nothing to be done foe 'makefile.gc'
make:  **** No targets specified and no makefile found.   Stop.
How I can compile it on Linux?

I have a KDevelop installed, but there is no KDevelop project for the samples, os I couldn't use it.

Thank you in advance.
Last edited by ONEEYEMAN on Sun Aug 21, 2005 6:28 am, edited 1 time in total.

leio
Can't get richer than this
Can't get richer than this
Posts: 802
Joined: Mon Dec 27, 2004 10:46 am
Location: Estonia, Tallinn
Contact:

Post by leio » Fri Aug 19, 2005 2:06 am

You have to run configure first.
Proper Makefile's will be under the samples/* subdirectories of the directory where you issued configure.
For example if you followed the instructions and configured in a build directory - lets say you did ../configure --enable-unicode in a subdirectory called gtk2ud - then you'll find the Makefile to compile all samples from under gtk2ud/samples, and the Makefile to compile the text sample (for example) from under gtk2ud/samples/text
Just issue make there without any further arguments, as it defaults to Makefile (among other name choices that are irrelevant in this case).
Compilers: gcc-3.3.6, gcc-3.4.5, gcc-4.0.2, gcc-4.1.0 and MSVC6
OS's: Gentoo Linux, WinXP; WX: CVS HEAD

Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 4152
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Post by ONEEYEMAN » Sun Aug 21, 2005 6:27 am

Thank you for the reply, lejo.
I am, actually, using Gentoo, which strips everything from the system, once the packet is installed. However, I solved this problem differently. I just created a KDevelop project and copied the source code in there.

Thank you.

leio
Can't get richer than this
Can't get richer than this
Posts: 802
Joined: Mon Dec 27, 2004 10:46 am
Location: Estonia, Tallinn
Contact:

Post by leio » Sun Aug 21, 2005 11:26 am

I suggest working with a self-compiled wxWidgets (with debug on, 2.4 compatibility disabled, etc), and using the gentoo package to just test before releases if your application builds fine with that.
Compilers: gcc-3.3.6, gcc-3.4.5, gcc-4.0.2, gcc-4.1.0 and MSVC6
OS's: Gentoo Linux, WinXP; WX: CVS HEAD

Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/

Post Reply