I just finished spending an hour reading Ecclesiastes. The conclusion of Salomon: everything under the sun in meaningless. However, even with all his wisdom, Salomon did not foresee Jesus. So in effect Salomon, by laying out his dissection of life and concluding that all is meaningless, paved the way for us to conclude that life without Jesus (as in Salomon’s day) is indeed meaningless. Consequently, the true meaning in life can only be found in Jesus.
My recommendation to you is this: if your life feels meaningless, get to know Jesus better.