There has to be an input to take prices from. If the cost approximation is not displaying anything, then either some or all materials do not have purchase terms or stock lots.
See User Manual here and here.
Getting an accurate cost estimate:
If you wish to get a cost estimate of produced items, then you need to simulate the manufacturing processes:
Use the "Estimate costs and dates" function in a Customer Order.
Start planning a Manufacturing Order.