flashlight / wav2letter

Facebook AI Research's Automatic Speech Recognition Toolkit
https://github.com/facebookresearch/wav2letter/wiki
Other
6.37k stars 1.01k forks source link

CMake Error: Target "SerializeConvLM" links to target "Threads::Threads" but the target was not found #880

Closed jimbozhang closed 3 years ago

jimbozhang commented 3 years ago

An error occurs when I run cmake, reporting that Target "SerializeConvLM" links to target "Threads::Threads" but the target was not found:

$ cmake ..

-- OpenMP found
-- ArrayFire found (include: /home/jz/src/arrayfire/include, library: ArrayFire::afcuda)
-- flashlight found (include:  lib: flashlight::flashlight )
-- flashlight/app/asr is found.
-- flashlight/lib is found.
-- Configuring done

CMake Error at recipes/utilities/convlm_serializer/CMakeLists.txt:3 (add_executable):
  Target "SerializeConvLM" links to target "Threads::Threads" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?

CMake Error at recipes/self_training/pseudo_labeling/CMakeLists.txt:3 (add_executable):
  Target "analyze_pseudo_label_dataset" links to target "Threads::Threads"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?

I noticed that there is no Serialization.h under my flashlight/app/asr/runtime:

$ pwd
/home/jz/src/flashlight/install/include/flashlight/app/asr/runtime

$ ls
Helpers.h  Logger.h  Optimizer.h  runtime.h  SpeechStatMeter.h

Some settings of the CMakeLists.txt of flashlight:

option(FL_BUILD_TESTS "Build tests" OFF)
option(FL_BUILD_EXAMPLES "Build examples" OFF)
option(FL_BUILD_EXPERIMENTAL "Build internal experimental components" OFF)
option(FL_BUILD_SCRIPTS "Build internal scripts for wav2letter++" ON)
option(FL_BUILD_RECIPES "Build recipes" ON)
option(FL_BUILD_CORE_ONLY "Build flashlight core only" OFF)
option(FL_BUILD_LIBRARIES_ONLY "Build flashlight libraries only" OFF)
tlikhomanenko commented 3 years ago

Could you try again from the master (we recently had sent the fix and improvement in cmake)?

jimbozhang commented 3 years ago

Could you try again from the master (we recently had sent the fix and improvement in cmake)?

Thanks for replying. I just updated and rebuilt both wav2letter++ and flashlight, but the same problem occurred. 😭

tlikhomanenko commented 3 years ago

@jacobkahn could you help?

jacobkahn commented 3 years ago

@jimbozhang - fix coming tonight or tomorrow morning. Sorry about this

jacobkahn commented 3 years ago

@jimbozhang sorry for the delayed follow-up; fix should work as of https://github.com/facebookresearch/flashlight/commit/7990a3d538bdf814a0a34b9c8e62384d1ee75e5e in flashlight and 66e72a5acf1884019a2428e54e8cf9a477863bb6 in wav2letter.