I might have been a tat too fast there.. It doesn’t seem to able to find the /configure script.. and I can’t seem to print the path it looking in..
[ 5%] Building CXX object src/include/spectogram/CMakeFiles/spectogram.dir/spectogram.cpp.o [ 11%] Linking CXX static library libspectogram.a [ 11%] Built target spectogram [ 16%] Building CXX object src/include/database/CMakeFiles/database.dir/database.cpp.o [ 22%] Linking CXX static library libdatabase.a [ 22%] Built target database [ 27%] Building CXX object src/include/match/CMakeFiles/match.dir/match.cpp.o [ 33%] Linking CXX static library libmatch.a [ 33%] Built target match [ 38%] Building CXX object src/include/record/CMakeFiles/record.dir/record.cpp.o [ 44%] Linking CXX static library librecord.a [ 44%] Built target record [ 50%] Building CXX object src/CMakeFiles/cmakeDemo.dir/main.cpp.o [ 55%] Linking CXX executable cmakeDemo [ 55%] Built target cmakeDemo [ 61%] Creating directories for 'project_portaudio' [ 66%] Performing download step (git clone) for 'project_portaudio' -- Avoiding repeated git clone, stamp file is up to date: '/Users/keerthikanratnarajah/soundcloud/build/src/include/record/lib/portaudio/src/project_portaudio-stamp/project_portaudio-gitclone-lastrun.txt' [ 72%] No patch step for 'project_portaudio' [ 77%] Performing update step for 'project_portaudio' Current branch master is up to date. [ 83%] Performing configure step for 'project_portaudio' /bin/sh: /configure: No such file or directory make[2]: *** [src/include/record/lib/portaudio/src/project_portaudio-stamp/project_portaudio-configure] Error 127 make[1]: *** [src/include/record/CMakeFiles/project_portaudio.dir/all] Error 2 make: *** [all] Error 2 > Den 29. okt. 2017 kl. 02.37 skrev Carlton Banks <nofl...@gmail.com>: > >> >> Den 29. okt. 2017 kl. 02.34 skrev Craig Scott <craig.sc...@crascit.com >> <mailto:craig.sc...@crascit.com>>: >> >> Your line 25 is incorrect, you left out the MAKE_DIRECTORY part and the path >> you specified doesn't seem to be right. It should be something more like: >> >> file(MAKE_DIRECTORY ${SOURCE_DIR}/include) >> >> >> You also seem to have missed one of my other emails. Replace this: >> >> target_include_directories(portaudio INTERFACE >> ${portaudio_inc_dir} >> ) >> >> with this: >> >> set_property(TARGET portaudio APPEND PROPERTY >> INTERFACE_INCLUDE_DIRECTORIES ${SOURCE_DIR}/include >> ) >> > > Those fixes made it work.. thanks :) > >> If that doesn't work, still get rid of the target_include_directories() call >> above and also replace this: >> >> target_include_directories(record PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} >> ${project_portaudio}) >> >> with this (as a last resort workaround): >> >> target_include_directories(record PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} >> ${SOURCE_DIR}/include) >> >> >> I'm going to have to leave it at that, gotta focus on other work now. >> Hopefully the above gets you further along. Otherwise, I'll have to leave it >> to others to continue to help you from here. >> >> >> On Sun, Oct 29, 2017 at 12:27 PM, Carlton Banks <nofl...@gmail.com >> <mailto:nofl...@gmail.com>> wrote: >> >>> Den 29. okt. 2017 kl. 02.20 skrev Craig Scott <craig.sc...@crascit.com >>> <mailto:craig.sc...@crascit.com>>: >>> >>> >>> >>> On Sun, Oct 29, 2017 at 12:18 PM, Carlton Banks <nofl...@gmail.com >>> <mailto:nofl...@gmail.com>> wrote: >>> >>>> Den 29. okt. 2017 kl. 02.15 skrev Craig Scott <craig.sc...@crascit.com >>>> <mailto:craig.sc...@crascit.com>>: >>>> >>>> file(MAKE_DIRECTORY) >>> Not sure about the workaround.. the problem here is that cmake does not >>> download, and make does. >>> So adding a workaround like that, would require to add a condition that >>> differentiates between cmake and make.. >>> >>> No condition should be needed, simply add it to CMakeLists.txt before the >>> command that adds the directory to the include path. The external make >>> build shouldn't complain if the path already exists, it will just go ahead >>> and populate it. At least, that's been my experience when I've used this >>> workaround before for this very problem. >>> >> It somehow still causes some problems.. >> >> >> https://pastebin.com/HqE5H95Q <https://pastebin.com/HqE5H95Q> >> >> Gives me this error: >> >> cmake .. >> “InsrcCMAKELIST” >> “InincludeCMAKELIST” >> “IndatabaseCMAKELIST” >> “InmatchCMAKELIST” >> “InrecordCMAKELIST” >> “Downloadexternalproject” >> CMake Error at src/include/record/CMakeLists.txt:25 (file): >> file must be called with at least two arguments. >> >> >> CMake Error at src/include/record/CMakeLists.txt:32 >> (target_include_directories): >> Cannot specify include directories for imported target "portaudio". >> >> >> “InspectogramCMAKELIST” >> -- Configuring incomplete, errors occurred! >> See also >> "/Users/keerthikanratnarajah/soundcloud/build/CMakeFiles/CMakeOutput.log". >> >>> >>> -- >>> Craig Scott >>> Melbourne, Australia >>> https://crascit.com <https://crascit.com/> >> >> >> >> >> -- >> Craig Scott >> Melbourne, Australia >> https://crascit.com <https://crascit.com/>
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake