element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Autodesk EAGLE
  • Products
  • More
Autodesk EAGLE
EAGLE User Chat (English) run cam processor from a makefile
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Autodesk EAGLE to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 4 replies
  • Subscribers 172 subscribers
  • Views 307 views
  • Users 0 members are here
Related

run cam processor from a makefile

Former Member
Former Member over 12 years ago

I've looked at discussions on this in the forums and can't find a straight answer.

 

I'm running eagle6.3 in Fedora 14.  I want to include a command in a makefile (which I assume you realize is just a normal shell command) that runs the cam processor using my cam job file based on dependencies (gerber/drill files older than board file).

 

Can that be done?  Without entering eagle and loading the job, loading the board and running it.  Some magic you pass to 'eagle -X ........'?

 

Thanks,

Robert

  • Sign in to reply
  • Cancel
  • AnalogNotes
    0 AnalogNotes over 12 years ago

    I haven't tried the Linux version myself yet, but on winders, you can give the command eaglecon -C <command> to accomplish this.  I think you just use the "eagle" command on Linux or OS X.

     

    In my version 5 manual, it's on page 289, section 10.3 "Options at a Glance"...

     

    Regards,

    Doug

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago in reply to AnalogNotes

    Any idea what goes in the <command> part of "eaglecon -C <command>" to process a cam job?

     

    Robert

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago

    I think I'm most of the way there with a Tcl script I wrote this afternoon.  Given a job file testx.cam and a board file test.brd, I can do this:

     

    $ ./ecamx.tcl --sections testx

    Outline

    measures

    Component side (CS)

    Layer 2

    Layer 3

    Layer 14

    Layer 15

    Solder side (SS)

    CS Silk screen

    CS Cream

    CS Solder stop mask

    SS Silk Screen

    SS Cream

    SS Solder stop mask

    Drills

     

     

    $ ./ecamx.tcl --verbose --dry-run testx test

    job:      testx.cam

    board:    test.brd

    sections: ALL

    found Outline

    exec eagle -X -dGERBER_RS274X -otest.dim test.brd  20 49

    found measures

    exec eagle -X -dGERBER_RS274X -otest.mea test.brd  20 44 45 47 49

    found Component side (CS)

    exec eagle -X -dGERBER_RS274X -otest.cmp test.brd  1 17 18 20 49

    found Layer 2

    exec eagle -X -dGERBER_RS274X -otest.ly2 test.brd  2 17 18 20 49

    found Layer 3

    exec eagle -X -dGERBER_RS274X -otest.ly3 test.brd  3 17 18 20 49

    found Layer 14

    exec eagle -X -dGERBER_RS274X -otest.ly14 test.brd  14 17 18 20 49

    found Layer 15

    exec eagle -X -dGERBER_RS274X -otest.ly15 test.brd  15 17 18 20 49

    found Solder side (SS)

    exec eagle -X -dGERBER_RS274X -otest.sol test.brd  16 17 18 20 49

    found CS Silk screen

    exec eagle -X -dGERBER_RS274X -otest.plc test.brd  20 21 25 49

    found CS Cream

    exec eagle -X -dGERBER_RS274X -otest.crc test.brd  20 31 49

    found CS Solder stop mask

    exec eagle -X -dGERBER_RS274X -otest.stc test.brd  20 29 49

    found SS Silk Screen

    exec eagle -X -dGERBER_RS274X -otest.pls test.brd  20 22 26 49

    found SS Cream

    exec eagle -X -dGERBER_RS274X -otest.crs test.brd  20 32 49

    found SS Solder stop mask

    exec eagle -X -dGERBER_RS274X -otest.sts test.brd  20 30 49

    found Drills

    exec eagle -X -dEXCELLON -otest.drd test.brd  44 45

     

     

    This may be all I need, even though I'm ignoring a lot of the other data in the job file and I'm not expanding placeholders (which I don't use anyways).

     

    But I'm still open to better ideas image

     

    Robert

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago

    I guess I can withdraw the question now, since I've got the answer.  This snippet out of my Makefile does the trick:

     

     

    CAMX = ecamx.tcl

    JOB := project.cam

    BOARD := project.brd

    GERBERS := $(shell $(CAMX) --files $(JOB) $(BOARD))

     

     

    $(GERBERS): $(JOB) $(BOARD)

              $(CAMX) $(JOB) $(BOARD)

     

    As far as I know, this is Linux only.  I made no attempt to make this cross-platform.

    Attachments:
    https://community.element14.com/cfs-file/__key/communityserver-discussions-components-files/309/ecamx.tcl
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube