Author Topic: How to modify the Linux's build script if adding new source file  (Read 4732 times)

Offline cyberkoa

  • Plugin developer
  • Almost regular
  • ****
  • Posts: 145
    • http://
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 ?   :(


Offline yop

  • Regular
  • ***
  • Posts: 387
Re: How to modify the Linux's build script if adding new source file
« Reply #1 on: January 17, 2006, 08:41:45 am »
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.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: How to modify the Linux's build script if adding new source file
« Reply #2 on: January 17, 2006, 08:44:32 am »
Anything I left out ?   :(

Yes, probably ;)
Post your modified Makefile.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...

Offline cyberkoa

  • Plugin developer
  • Almost regular
  • ****
  • Posts: 145
    • http://
Re: How to modify the Linux's build script if adding new source file
« Reply #3 on: January 17, 2006, 06:05:28 pm »
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. ..

Offline yop

  • Regular
  • ***
  • Posts: 387
Re: How to modify the Linux's build script if adding new source file
« Reply #4 on: January 17, 2006, 06:15:55 pm »
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.