CARACAS, Venezuela — By the hundreds of thousands, Hugo Chavez’s tearful supporters carried their dead president through streets still plastered with his smiling image, an epic farewell to a larger-than-life leader remembered simply as “our commander.”

In a display of raw, and at times, unruly emotion, generations of Venezuelans, many dressed in the red of Chavez’s socialist party, filled Caracas’ streets Wednesday to remember the man who dominated their country for 14 years before succumbing to cancer.

Chavez’s flag-draped coffin floated over hundreds of thousands of supporters as it made its way atop an open hearse on a seven-hour journey to a military academy in the capital, where it will lie in state. Mourners, many of them weeping, lined the streets or walked with the casket, which followed the lead of a grim drum major dressed in Chavez’s trademark red.

Mourners shouted out “nuestro comandante” — “our commander,” in English — as the coffin passed.

But even amid the mass outpouring of grief, questions about the country’s future could not be put off for long, with worries amplified by the government’s lack of regard for the letter of the constitution, and the military’s eagerness to choose political sides.

Vice President Nicolas Maduro, the late president’s hand-picked successor, and Bolivian President Evo Morales, one of his staunchest allies, mingled with the crowd, at one point falling to the ground in the jostle of bodies pushing in every direction. Military officers and Cabinet members ringed the president’s coffin, stone-faced with grief.

Other mourners pumped their fists and held aloft images of the late president, amid countless waving yellow-blue-and-red Venezuelan flags.

“The fight goes on! Chavez lives!” the mourners shouted in unison, many through eyes red from crying late into the night.

Chavez’s bereaved mother, Elena Frias de Chavez, leaned against her son’s casket, while a priest read a prayer before the procession left the military hospital where Chavez died Tuesday at age 58. His funeral is scheduled for Friday.