News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

How to modify the Linux's build script if adding new source file

Started by cyberkoa, January 17, 2006, 06:15:47 AM

Previous topic - Next topic

cyberkoa

which file should I modify ? tiwag mentioned before is Makefile.am but I see a lot of Makefile.am.

I found that under wxSmith there is one , so I add to the Makefile.am. When I do a "make" , it gives message "no rule to compile xxxx.cpp"

Anything I left out ?   :(


yop

You have to ./cofigure first when adding a new source file.
Life would be so much easier if we could just look at the source code.

mandrav

Quote from: cyberkoa on January 17, 2006, 06:15:47 AM
Anything I left out ?   :(

Yes, probably ;)
Post your modified Makefile.am.

Quote from: yop on January 17, 2006, 08:41:45 AM
You have to ./cofigure first when adding a new source file.

No need to run ./configure. This is needed only when adding a new Makefile.am. When editing an existing Makefile.am, it regenerates the Makefile automatically incorporating any changes.
Be patient!
This bug will be fixed soon...

cyberkoa

I found out what I left out already , I left out one 's' in the filename :oops:  because the wxSmith source used to start with "wxs" ..

manage to compile, link and load wxSmith plugin now. Makefile.am committed.

Linux version quite buggy compare to Windows version .. still testing in progress. ..

yop

Quote from: mandrav on January 17, 2006, 08:44:32 AM
No need to run ./configure. This is needed only when adding a new Makefile.am. When editing an existing Makefile.am, it regenerates the Makefile automatically incorporating any changes.
Learned something today thanks
Life would be so much easier if we could just look at the source code.