sipp icon indicating copy to clipboard operation
sipp copied to clipboard

CMake Generate step failed. Build files cannot be regenerated correctly.

Open Tomoe1157 opened this issue 2 years ago • 7 comments

I have been facing this issue after executing ./build.sh --full on my terminal which I was using on Ubuntu via vbox

  • Configuring done CMake Error at CMakeLists.txt:122 (add_executable): Cannot find source file

CMake Error at CMakeLists.txt:122 (add_executable): No SOURCES given to target: sipp_unittest

Tomoe1157 avatar Jan 11 '23 16:01 Tomoe1157

I see the same issue on Centos 7. It looks the problem was inserted in https://github.com/SIPp/sipp/pull/553

cmake . -DUSE_SSL=1 -DUSE_SCTP=1 -DUSE_PCAP=1 -- Configuring done CMake Error at CMakeLists.txt:122 (add_executable): Cannot find source file:

/root/sipp-master-github/sipp/gtest/googletest/src/gtest-all.cc

Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .ispc

CMake Error at CMakeLists.txt:122 (add_executable): No SOURCES given to target: sipp_unittest

alrod999 avatar Jan 22 '23 08:01 alrod999

Try:

git submodule sync
git submodule update --init

then build again.

orgads avatar Jan 22 '23 08:01 orgads

Yes, that solved the problem

alrod999 avatar Feb 09 '23 11:02 alrod999

But - it is better to mention in Documentation that you have external dependencies

alrod999 avatar Feb 21 '23 11:02 alrod999

Good point. Can you create a PR for this?

orgads avatar Feb 21 '23 13:02 orgads

I think the gtest repository update might be a part of cmake. I am not a specialist to be sure though

alrod999 avatar Feb 22 '23 09:02 alrod999

Try:

git submodule sync
git submodule update --init

then build again.

Thank you, I had this same issue and luckily I found this comment!!

PcChip avatar Apr 11 '23 20:04 PcChip