No building shall be constructed, enlarged, altered or moved until a building permit has been obtained from the building inspector; and such official shall not issue such permit if the proposed construction, enlargement, alteration or moving would in any manner violate the housing, building, fire, plumbing, electrical, heating and air conditioning, zoning, or subdivision codes or regulations or any other codes or ordinances adopted by the county.