Страниц: [1]
  Печать  
Автор Тема: Сборка проекта из Help-а QNX6.5 wave.c  (Прочитано 320 раз)
Дмитрий
Участник
*
Offline Offline

Сообщений: 38


Просмотр профиля
« : Июля 08, 2017, 06:20:33 pm »

Здравствуйте!

Попробовал собрать проект wave.c в Momentics IDE 4.7 для QNX6.5. Думал будет просто, но не тут то было...
Создал проект QNX C. Добавил файл.в нем есть #include <sys/asoundlib.h>, в котором присутствуют все ниже перечисленные функции. libasound.so на месте.
Но проект не собирается, почему? Где и какие пути нужны?
Код:
Description Resource Path Location Type
undefined reference to `snd_strerror' wave.c /wave line 0 C/C++ Problem
undefined reference to `snd_strerror' wave.c /wave line 270 C/C++ Problem
undefined reference to `snd_strerror' wave.c /wave line 278 C/C++ Problem
undefined reference to `snd_strerror' wave.c /wave line 313 C/C++ Problem
undefined reference to `snd_strerror' wave.c /wave line 319 C/C++ Problem
undefined reference to `snd_strerror' wave.c /wave line 338 C/C++ Problem
undefined reference to `snd_strerror' wave.c /wave line 354 C/C++ Problem
undefined reference to `snd_strerror' wave.c /wave line 378 C/C++ Problem
undefined reference to `snd_strerror' wave.c /wave line 486 C/C++ Problem
undefined reference to `snd_pcm_plugin_write' wave.c /wave line 0 C/C++ Problem
undefined reference to `snd_pcm_plugin_write' wave.c /wave line 531 C/C++ Problem
undefined reference to `snd_pcm_plugin_write' wave.c /wave line 553 C/C++ Problem
undefined reference to `snd_pcm_plugin_status' wave.c /wave line 0 C/C++ Problem
undefined reference to `snd_pcm_plugin_status' wave.c /wave line 537 C/C++ Problem
undefined reference to `snd_pcm_plugin_setup' wave.c /wave line 0 C/C++ Problem
undefined reference to `snd_pcm_plugin_setup' wave.c /wave line 337 C/C++ Problem
undefined reference to `snd_pcm_plugin_set_voice_conversion' wave.c /wave line 0 C/C++ Problem
undefined reference to `snd_pcm_plugin_set_voice_conversion' wave.c /wave line 329 C/C++ Problem
undefined reference to `snd_pcm_plugin_set_disable' wave.c /wave line 0 C/C++ Problem
undefined reference to `snd_pcm_plugin_set_disable' wave.c /wave line 269 C/C++ Problem
undefined reference to `snd_pcm_plugin_prepare' wave.c /wave line 0 C/C++ Problem
undefined reference to `snd_pcm_plugin_prepare' wave.c /wave line 317 C/C++ Problem
undefined reference to `snd_pcm_plugin_prepare' wave.c /wave line 544 C/C++ Problem
undefined reference to `snd_pcm_plugin_params' wave.c /wave line 0 C/C++ Problem
undefined reference to `snd_pcm_plugin_params' wave.c /wave line 312 C/C++ Problem
undefined reference to `snd_pcm_plugin_info' wave.c /wave line 0 C/C++ Problem
undefined reference to `snd_pcm_plugin_info' wave.c /wave line 277 C/C++ Problem
undefined reference to `snd_pcm_plugin_get_voice_conversion' wave.c /wave line 0 C/C++ Problem
undefined reference to `snd_pcm_plugin_get_voice_conversion' wave.c /wave line 323 C/C++ Problem
undefined reference to `snd_pcm_plugin_flush' wave.c /wave line 0 C/C++ Problem
undefined reference to `snd_pcm_plugin_flush' wave.c /wave line 560 C/C++ Problem
undefined reference to `snd_pcm_open' wave.c /wave line 0 C/C++ Problem
undefined reference to `snd_pcm_open' wave.c /wave line 240 C/C++ Problem
undefined reference to `snd_pcm_open_preferred' wave.c /wave line 0 C/C++ Problem
undefined reference to `snd_pcm_open_preferred' wave.c /wave line 236 C/C++ Problem
undefined reference to `snd_pcm_open_name' wave.c /wave line 0 C/C++ Problem
undefined reference to `snd_pcm_open_name' wave.c /wave line 228 C/C++ Problem
undefined reference to `snd_pcm_info' wave.c /wave line 0 C/C++ Problem
undefined reference to `snd_pcm_info' wave.c /wave line 232 C/C++ Problem
undefined reference to `snd_pcm_get_format_name' wave.c /wave line 0 C/C++ Problem
undefined reference to `snd_pcm_get_format_name' wave.c /wave line 341 C/C++ Problem
undefined reference to `snd_pcm_file_descriptor' wave.c /wave line 0 C/C++ Problem
undefined reference to `snd_pcm_file_descriptor' wave.c /wave line 368 C/C++ Problem
undefined reference to `snd_pcm_file_descriptor' wave.c /wave line 370 C/C++ Problem
undefined reference to `snd_pcm_file_descriptor' wave.c /wave line 524 C/C++ Problem
undefined reference to `snd_pcm_close' wave.c /wave line 0 C/C++ Problem
undefined reference to `snd_pcm_close' wave.c /wave line 563 C/C++ Problem
undefined reference to `snd_mixer_read' wave.c /wave line 0 C/C++ Problem
undefined reference to `snd_mixer_read' wave.c /wave line 521 C/C++ Problem
undefined reference to `snd_mixer_open' wave.c /wave line 0 C/C++ Problem
undefined reference to `snd_mixer_open' wave.c /wave line 353 C/C++ Problem
undefined reference to `snd_mixer_group_write' wave.c /wave line 0 C/C++ Problem
undefined reference to `snd_mixer_group_write' wave.c /wave line 485 C/C++ Problem
undefined reference to `snd_mixer_group_read' wave.c /wave line 0 C/C++ Problem
undefined reference to `snd_mixer_group_read' wave.c /wave line 377 C/C++ Problem
undefined reference to `snd_mixer_file_descriptor' wave.c /wave line 0 C/C++ Problem
undefined reference to `snd_mixer_file_descriptor' wave.c /wave line 367 C/C++ Problem
undefined reference to `snd_mixer_file_descriptor' wave.c /wave line 370 C/C++ Problem
undefined reference to `snd_mixer_file_descriptor' wave.c /wave line 518 C/C++ Problem
undefined reference to `snd_mixer_close' wave.c /wave line 0 C/C++ Problem
undefined reference to `snd_mixer_close' wave.c /wave line 562 C/C++ Problem
make.exe[2]: *** [C:/ide-4.7-workspace/wave/x86/o/wave] Error 1 wave line 0 C/C++ Problem
make.exe[2]: *** [C:/ide-4.7-workspace/wave/x86/o-g/wave_g] Error 1 wave line 0 C/C++ Problem
make.exe[1]: [all] Error 2 (ignored) wave line 0 C/C++ Problem


P.S. qcc -lasound -o wave wave.c
на целевой системе нормально собирается
« Последнее редактирование: Июля 08, 2017, 08:09:08 pm от Дмитрий » Записан
Дмитрий
Участник
*
Offline Offline

Сообщений: 38


Просмотр профиля
« Ответ #1 : Июля 08, 2017, 08:12:20 pm »

Отвечаю на собственный вопрос.
В свойствах проекта  (QNX C/C++ Project) есть закладка Linker options с соответствующими пунктами выпадающих меню (Extra Libraries, Extra Include Paths и т.д.) В Extra Libraries необходимо добавить путь к libasound.so.
Profit!
Записан
Страниц: [1]
  Печать  
 
Перейти в: