Re: Kdevelop no longer compiles multi-source program?

2002-04-06 Thread John Gay
On Sat 06 Apr 2002 04:51, you wrote:
> On Fri, Apr 05, 2002 at 06:56:03PM +0100, John Gay wrote:
> > I realise this is more of a Kdevelop problem, but I know a few people
> > here use it so. . .
> >
> > After serveral problems, I've finally got my desktop mostly working. I
> > decided to play with kdevelop again. As I recently got some books on 
> > OpenGL, I decided to try to add some graphics to my project.
> >
> > To keep things simple, I created a new project, copied the files I
> > needed from the original project and then modified main.c to use OpenGL. 
> > When I tried to build my project, kdevelop can't seem to compile
> > multi-source programs properly, though it's probably more a fault with 
> > one of the auto* tools used.
>
> I experienced a very similar problem with the same version of Kdevelop. In
>  a C language project, I was getting the error:
>
> gcc: No input files
> make[2]: *** [clopen] Error 1
> =2E..
>
> The problem appears to be with Kdevelop's "Autoconf and automake". When I
> ran automake by hand first, everything worked fine after.
>
That was it! Thanks! My project works now, once I fix the lib calls ; )

> Btw, I first started the project in C++ (until I realized I don't know
> enough about C++), and there were none of these problems.
>
Well, I don't really know enough about C or OpenGL, but I'm giving it a bash 
anyway.

You can hav a look on:

homepage.eircom.net/~johngay

in the programme link. I'm still adding the OpenGL part to the site. The 
program requires a 3D card with 3Dglasses AND an accelerated X-Server that 
supports stereo, but I've got instructions on how to change it for mono cards.

Cheers,

John Gay


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Kdevelop no longer compiles multi-source program?

2002-04-05 Thread James Hirschorn
On Fri, Apr 05, 2002 at 06:56:03PM +0100, John Gay wrote:
> I realise this is more of a Kdevelop problem, but I know a few people here 
> use it so. . .
> 
> After serveral problems, I've finally got my desktop mostly working. I 
> decided to play with kdevelop again. As I recently got some books on OpenGL, 
> I decided to try to add some graphics to my project.
> 
> To keep things simple, I created a new project, copied the files I needed 
> from the original project and then modified main.c to use OpenGL. When I 
> tried to build my project, kdevelop can't seem to compile multi-source 
> programs properly, though it's probably more a fault with one of the auto* 
> tools used.

I experienced a very similar problem with the same version of Kdevelop. In a C 
language project, I was getting the error:

gcc: No input files
make[2]: *** [clopen] Error 1
...

The problem appears to be with Kdevelop's "Autoconf and automake". When I ran 
automake by hand first, everything worked fine after. 

Btw, I first started the project in C++ (until I realized I don't know enough 
about C++), and there were none of these problems.

Cheers,
James


pgpmuZ315EXY1.pgp
Description: PGP signature


Re: Kdevelop no longer compiles multi-source program?

2002-04-05 Thread David Bishop
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Friday 05 April 2002 1:13 pm, John Gay wrote:
> On Fri 05 Apr 2002 20:49, David Bishop wrote:
> > Try running make clean && ./configure first.  It looks like it thinks
> > it's already compiled everything, and just needs to link, which is wrong
> > :-)

> And, after that long list of configureing, it still failed. I tried
> removing the config.cache, same results?
>
> Somewhere, it is forgetting to compile the sources to objects. There are no
> .o's in the sources directory.
>
> What packages should I check the versions on? and what versions should they
> be?
>
> kdevelop is 2.0.2, but what other packages shoudl I check?
>
> Thanks for the info!

Well, honestly, bugger if I know :-)  I've never had kdevelop forget something 
on me before.  And the versions of you software will match mine if you're 
running the latest sid, so that isn't an issue.  About all I can recommend is 
trying it (again) from scratch: create a new project, make sure it compiles 
(just the normal "test" stuff), and then import your other source files.  
Remember, however, if you are going to be using opengl, to add -lgl to the 
linking stage (adding libs is under the project options).

HTH and HAND.

- -- 
D.A.Bishop
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD4DBQE8rgYxEHLN/FXAbC0RAs/5AKCVZQGWJTqLh7TMF+iwqmnHJyo2+QCXUO5a
tXlWxubAEGtxOi8aonbqyQ==
=t03l
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Kdevelop no longer compiles multi-source program?

2002-04-05 Thread David Bishop
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Friday 05 April 2002 10:56 am, John Gay wrote:
> I realise this is more of a Kdevelop problem, but I know a few people here
> use it so. . .
>
> After serveral problems, I've finally got my desktop mostly working. I
> decided to play with kdevelop again. As I recently got some books on
> OpenGL, I decided to try to add some graphics to my project.
>
> To keep things simple, I created a new project, copied the files I needed
> from the original project and then modified main.c to use OpenGL. When I
> tried to build my project, kdevelop can't seem to compile multi-source
> programs properly, though it's probably more a fault with one of the auto*
> tools used.

Try running make clean && ./configure first.  It looks like it thinks it's 
already compiled everything, and just needs to link, which is wrong :-)

- -- 
D.A.Bishop
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8rf/cEHLN/FXAbC0RAvlIAKDEub08rrttoscRP0pgGKVkB484qwCfeN0+
kcUG7j1EmIgcMUp5cZcjueQ=
=1wDV
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Kdevelop no longer compiles multi-source program?

2002-04-05 Thread John Gay
I realise this is more of a Kdevelop problem, but I know a few people here 
use it so. . .

After serveral problems, I've finally got my desktop mostly working. I 
decided to play with kdevelop again. As I recently got some books on OpenGL, 
I decided to try to add some graphics to my project.

To keep things simple, I created a new project, copied the files I needed 
from the original project and then modified main.c to use OpenGL. When I 
tried to build my project, kdevelop can't seem to compile multi-source 
programs properly, though it's probably more a fault with one of the auto* 
tools used.

Here is the Makefile.am created:

### kdevelop will overwrite this part!!! (begin)##
bin_PROGRAMS = glncad
glncad_SOURCES = fileio.c rotate.c project.c matmul.c materr.c matdump.c 
matcreat.c main.c
glncad_LDADD   = -lglut -lGL -lGLU -lm -lX11


EXTRA_DIST = main.c matcreat.c matdump.c materr.c matmul.c matrix.h project.c 
project.h rotate.c fileio.c cube.4d

### kdevelop will overwrite this part!!! (end)
# set the include path found by configure
INCLUDES= $(all_includes)

# the library search path.
glncad_LDFLAGS = $(all_libraries)

But when I try to build, gcc says 

[EMAIL PROTECTED]:~/glncad/glncad$ make
/bin/sh ../libtool --mode=link gcc  -O2   -O3 -g3 -Wall   -L/usr/X11R6/lib   
-o glncad-lglut -lGL -lGLU -lm -lX11
gcc -O2 -O3 -g3 -Wall -o glncad  -L/usr/X11R6/lib -lglut -lGL -lGLU -lm -lX11
/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [glncad] Error 1
[EMAIL PROTECTED]:~/glncad/glncad$

I've tried changing the Makefile.am, but kdevelop changes it back anyway.

Does anyone know what is going wrong?

Seems it's trying to build with no sources listed? Shouldn't it create the 
.o's  from my sources and then link them with the lib's to make an 
executable? I can compile my project fine by hand calling gcc with my files, 
the libs and the path to the X libs. Why doesn't kdevelop do this any more? 
It used to work?

Let me know what other info is needed to find out why this isn't working any 
more.

Cheers,

John Gay


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]