The problem of joining multicast routing and spectrum allocation with QoS constraints is studied in cognitive wireless mesh networks. A framework of solving the above problem, which contains a problem description, a representation of solution, fitness function, spectrum allocation algorithm, is proposed in this paper. Two algorithms for joint multicast routing and a spectrum allocation with end-to-end delay constraints based on intelligent computation are proposed in this paper. The first one is multicast routing and spectrum allocation algorithm based on genetic algorithm (GA-MRSA). The second one is multicast routing and spectrum allocation algorithm based on simulated annealing algorithm (SA-MRSA). The object of the two algorithms is to minimize the total channel conflict. Under the condition of getting lower total channel conflict number, the number of used channels is also few. Simulation results show that the two algorithms can achieve the expected goal: it can achieve a lower total channel conflict number.