nanogui: Thread: Building my own examples


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Building my own examples
From: "Edward King" ####@####.####
Date: 11 Jun 2007 01:07:55 +0100
Message-Id: <012601c7abbc$772f7a30$460aa8c0@eklt1>

I finally got Nano-X to compile by removing the ttf (1 and 2) stuff from the config file. Thats a shame really, because it would be nice to use TTF's.

Anyway, after playing around with the demos (some of which work, some dont, but I'll look into that later on) I decided to have a crack at throwing together my own test. Basically just start up the graphics server and display 1 blank window and when you click on the window, the program exits. Nothing fancy. My implementation of nano-x is going to be sdi with dialog boxes anyway; very basic.

I started out with the example program from the "programming tutorial" document from the website. However it wont work. I wont bother listing all the errors because some of them I can work out for myself. 

The thing that I find odd though is that in the example in the programming tutorial, only two includes are specified (stdio.h and graphics.h) yet in the other demos, nano-X.h and stdlib.h are required.

Is this just a case of out of date documentation (and if so, should I be using the other demos as a template for testing) or is this the base usage appropriate for what Im trying to do?

Regards

EK
Subject: Re: [nanogui] Building my own examples
From: "Greg Haerr" ####@####.####
Date: 11 Jun 2007 23:44:16 +0100
Message-Id: <1a3201c7ac7a$05bb3150$6401a8c0@winXP>

> I finally got Nano-X to compile by removing the ttf (1 and 2) stuff from
the config file. Thats a shame really, because it would be nice to use
TTF's.

Well, all you have to do is install freetype and you'll have TTFs.


> The thing that I find odd though is that in the example in the programming
tutorial, only two includes are specified (stdio.h and graphics.h) yet in
the other demos, nano-X.h and stdlib.h are required.

No, that's not odd, its design.  The whole idea is to use only the standard
C header file stdio.h and microwindows' only public header file nano-X.h.


> Is this just a case of out of date documentation (and if so, should I be
using the other demos as a template for testing) or is this the base usage
appropriate for what Im trying to do?

Just make sure that <nano-X.h> is accessible either in /usr/include or
with a -I<path> in your makefile, along with the libnano-X.{a,so}
client link lib.

Regards,

Greg

Subject: Re: [nanogui] Building my own examples
From: "Edward King" ####@####.####
Date: 12 Jun 2007 14:13:05 +0100
Message-Id: <001601c7acf3$443bd230$460aa8c0@eklt1>

----- Original Message ----- 
From: "Greg Haerr" ####@####.####
To: "Edward King" ####@####.#### ####@####.####
Sent: Tuesday, June 12, 2007 1:43 AM
Subject: Re: [nanogui] Building my own examples


>> I finally got Nano-X to compile by removing the ttf (1 and 2) stuff from
> the config file. Thats a shame really, because it would be nice to use
> TTF's.
>
> Well, all you have to do is install freetype and you'll have TTFs.

Yes, I actually cant get freetype to build. Thats something else I have to 
look into!
Perhaps its because Im using Slackware and the freetype website seems to 
imply everything is geared towards redhat or debian?

>
>
>> The thing that I find odd though is that in the example in the 
>> programming
> tutorial, only two includes are specified (stdio.h and graphics.h) yet in
> the other demos, nano-X.h and stdlib.h are required.
>
> No, that's not odd, its design.  The whole idea is to use only the 
> standard
> C header file stdio.h and microwindows' only public header file nano-X.h.

No, I meant that its odd that in the programming tutorial graphics.h is 
specified, but in the demos in the source directory, nano-X.h is specified. 
Is the use of graphics.h no longer the way to do things?

>
>
>> Is this just a case of out of date documentation (and if so, should I be
> using the other demos as a template for testing) or is this the base usage
> appropriate for what Im trying to do?
>
> Just make sure that <nano-X.h> is accessible either in /usr/include or
> with a -I<path> in your makefile, along with the libnano-X.{a,so}
> client link lib.
>
> Regards,
>
> Greg
> 

Subject: Re: [nanogui] Building my own examples
From: "Greg Haerr" ####@####.####
Date: 12 Jun 2007 14:55:18 +0100
Message-Id: <1bc101c7acf9$39d82810$6401a8c0@winXP>

: No, I meant that its odd that in the programming tutorial graphics.h is
: specified, but in the demos in the source directory, nano-X.h is
specified.
: Is the use of graphics.h no longer the way to do things?

Sorry, you're right: graphics.h is no longer implemented, nano-X.h
is the only public header file for nano-X.

Regards,

Greg

Subject: Re: [nanogui] Building my own examples
From: "Edward King" ####@####.####
Date: 14 Jun 2007 00:10:46 +0100
Message-Id: <002b01c7ae0f$cace03f0$460aa8c0@eklt1>

Thanks for clearing that up Greg. I assumed I was being a wally.

I still cant get an example program to compile. Everything is fine when I 
use the make files to build the examples that came with the distribution, 
but Im obviously missing something because the linker is complaining like 
mad and failing.

The nano-x.h file is in my usr/include directory. Is there an easier way to 
search the archives than to submit a string to the mailing ist engine?
Would be kind of cool to send it a message and download all the archives 
(however big they are) for future reference...

Mad Dog Arthur
(and his collection of diseases)


----- Original Message ----- 
From: "Greg Haerr" ####@####.####
To: "Edward King" ####@####.#### ####@####.####
Sent: Tuesday, June 12, 2007 4:54 PM
Subject: Re: [nanogui] Building my own examples


>: No, I meant that its odd that in the programming tutorial graphics.h is
> : specified, but in the demos in the source directory, nano-X.h is
> specified.
> : Is the use of graphics.h no longer the way to do things?
>
> Sorry, you're right: graphics.h is no longer implemented, nano-X.h
> is the only public header file for nano-X.
>
> Regards,
>
> Greg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
> 

Subject: Re: [nanogui] Building my own examples
From: "Greg Haerr" ####@####.####
Date: 14 Jun 2007 22:54:53 +0100
Message-Id: <185601c7aece$acfc2450$6401a8c0@gregnewport>

> I still cant get an example program to compile. Everything is fine when I
> use the make files to build the examples that came with the distribution,
> but Im obviously missing something because the linker is complaining like
> mad and failing.

Its hard to help when I can't see the errors.


>
> The nano-x.h file is in my usr/include directory. Is there an easier way
to
> search the archives than to submit a string to the mailing ist engine?
> Would be kind of cool to send it a message and download all the archives
> (however big they are) for future reference...

Alex Holden runs the mailing list, I don't have it here at
Century Software.  Alex?

Regards,

Greg

Subject: Re: [nanogui] Building my own examples
From: Alex Holden ####@####.####
Date: 15 Jun 2007 00:14:31 +0100
Message-Id: <5723ACB3-34B5-4D3D-B7BD-4AC73E7F06B3@linuxhacker.org>

On 14 Jun 2007, at 22:55, Greg Haerr wrote:
>> search the archives than to submit a string to the mailing ist  
>> engine?
>> Would be kind of cool to send it a message and download all the  
>> archives
>> (however big they are) for future reference...
> Alex Holden runs the mailing list, I don't have it here at
> Century Software.  Alex?

Contact me offlist if you want a tarball of the list archive.

-- 
------------ Alex Holden - http://www.alexholden.net/ ------------
If it doesn't work, you're not hitting it with a big enough hammer


Subject: Re: [nanogui] Building my own examples
From: "Edward King" ####@####.####
Date: 15 Jun 2007 09:26:06 +0100
Message-Id: <002a01c7af26$b35b9490$460aa8c0@eklt1>

----- Original Message ----- 
From: "Greg Haerr" ####@####.####
To: "Edward King" ####@####.#### ####@####.####
Sent: Friday, June 15, 2007 12:55 AM
Subject: Re: [nanogui] Building my own examples


>> I still cant get an example program to compile. Everything is fine when I
>> use the make files to build the examples that came with the distribution,
>> but Im obviously missing something because the linker is complaining like
>> mad and failing.
>
> Its hard to help when I can't see the errors.

Its okay, I wasnt looking to you to do my work for me, I was just having a 
whinge :o)


>
>
>>
>> The nano-x.h file is in my usr/include directory. Is there an easier way
> to
>> search the archives than to submit a string to the mailing ist engine?
>> Would be kind of cool to send it a message and download all the archives
>> (however big they are) for future reference...
>
> Alex Holden runs the mailing list, I don't have it here at
> Century Software.  Alex?
>
> Regards,
>
> Greg
> 

[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.