=======================================================================
Build Instructions:
====================
1> $tar -xvzf RT61_Linux_STA_Drv_x.x.x.x.tar.gz
go to «./RT61_Linux_STA_Drv_x.x.x.x/Module» directory.
2> $cp Makefile.4 ./Makefile # [kernel 2.4]
or
$cp Makefile.6 ./Makefile # [kernel 2.6]
or
$cp Makefile.RTL865x ./Makefile # big endian platform
3> [kernel 2.4]
$chmod 755 Configure
$make config # config build linux os version
4> $make all # compile driver source code
5> $cp rt2561.bin /etc/Wireless/RT61STA/ # copy firmware
$cp rt2561s.bin /etc/Wireless/RT61STA/
$cp rt2661.bin /etc/Wireless/RT61STA/
6> $dos2unix rt61sta.dat
$cp rt61sta.dat /etc/Wireless/RT61STA/rt61sta.dat
# !!!check if it is a binary file before loading !!!
7> $load
#[kernel 2.4]
# $/sbin/insmod rt61.o
# $/sbin/ifconfig ra0 inet YOUR_IP up
#[kernel 2.6]
# $/sbin/insmod rt61.ko
# $/sbin/ifconfig ra0 inet YOUR_IP up
Note: Script functionality:
load load module to kernel
unload unload module from kernel
Configure retrieve linux version
=======================================================================
Build Instructions:
====================
1> $tar -xvzf RT61_Linux_STA_Drv_x.x.x.x.tar.gz
go to «./RT61_Linux_STA_Drv_x.x.x.x/Module» directory.
2> $cp Makefile.4 ./Makefile # [kernel 2.4]
or
$cp Makefile.6 ./Makefile # [kernel 2.6]
or
$cp Makefile.RTL865x ./Makefile # big endian platform
3> [kernel 2.4]
$chmod 755 Configure
$make config # config build linux os version
4> $make all # compile driver source code
5> $cp rt2561.bin /etc/Wireless/RT61STA/ # copy firmware
$cp rt2561s.bin /etc/Wireless/RT61STA/
$cp rt2661.bin /etc/Wireless/RT61STA/
6> $dos2unix rt61sta.dat
$cp rt61sta.dat /etc/Wireless/RT61STA/rt61sta.dat
# !!!check if it is a binary file before loading !!!
7> $load
#[kernel 2.4]
# $/sbin/insmod rt61.o
# $/sbin/ifconfig ra0 inet YOUR_IP up
#[kernel 2.6]
# $/sbin/insmod rt61.ko
# $/sbin/ifconfig ra0 inet YOUR_IP up
Note: Script functionality:
load load module to kernel
unload unload module from kernel
Configure retrieve linux version
Модераторы: Warderer, Модераторы разделов
-
Bizdelnick
- Модератор
- Сообщения: 19769
- Статус: nulla salus bello
- ОС: Debian GNU/Linux
Re: Ошибка. Make
ormorph писал(а): ↑
05.07.2018 14:36
Собирали под тем же ядром что и топикластер?
Судя по всему, нет, но утверждать не могу: он же не сказал, какая у него версия. У меня 4.9.
Пишите правильно:
в консоли вку́пе (с чем-либо) в общем вообще |
в течение (часа) новичок нюанс по умолчанию |
приемлемо проблема пробовать трафик |
-
ormorph
- Сообщения: 2215
- ОС: Gentoo
Re: Ошибка. Make
Сообщение
ormorph » 05.07.2018 14:51
Bizdelnick писал: ↑
05.07.2018 14:38
В принципе можно спокойно грохнуть ту строчку, где эти макросы используются: sed -i ‘/__DATE__|__TIME__/d’ core/rtw_debug.c
Да это работает:
Shell
$ sed -i '/__DATE__/d' core/rtw_debug.c
Драйвер заработал.
-
rain_99
- Сообщения: 959
- ОС: Debian
Re: Ошибка. Make
Сообщение
rain_99 » 01.08.2018 05:52
ormorph писал(а): ↑
05.07.2018 14:51
Драйвер заработал.
Добрый день.
Вышел я из отпуска.
А можно по простому объяснить, что сделать, чтобы у меня тоже все заработало?
…Все в наших руках…
-
ormorph
- Сообщения: 2215
- ОС: Gentoo
Re: Ошибка. Make
Сообщение
ormorph » 01.08.2018 07:39
rain_99 писал: ↑
01.08.2018 05:52
А можно по простому объяснить, что сделать, чтобы у меня тоже все заработало?
Проще некуда.
Просто распаковываете архив с драйвером, тем что у вас на диске и заходите в каталог с распакованным драйвером:
Shell
$ cd rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51
выполняете:
Shell
$ sed -i '/__DATE__/d' core/rtw_debug.c
и все, дальше можно собирать.
Так как у меня версия компилятора отличалась, то пришлось собрать такой командой:
Если у вас то же самое ядро, все по старому, то должно собраться.
-
ormorph
- Сообщения: 2215
- ОС: Gentoo
Re: Ошибка. Make
Сообщение
ormorph » 01.08.2018 08:45
rain_99
Кстати для вашего адаптера есть драйвер который поддерживает монитор, который позволяет использовать такие программы как aircrack-ng.
Скачивается так:
Под вашим ядром собирается норм. Так же поддерживает достаточно новые ядра, например у меня работает под версией 4.16.
Стандартный драйвер от производителя этого не позволяет.
-
ormorph
- Сообщения: 2215
- ОС: Gentoo
Re: Ошибка. Make
Сообщение
ormorph » 02.08.2018 09:59
Если подключаться с Networkmanager, то следует добавить строчки:
в файл
/etc/NetworkManager/NetworkManager.conf
Иначе никак не хочет работать с wifi.
Такое наблюдается под debian.
-
rain_99
- Сообщения: 959
- ОС: Debian
Re: Ошибка. Make
Сообщение
rain_99 » 14.08.2018 10:28
всем спасибо, все получилось/
А как понять почему он вообще ругался?
И почему изначально сборка не шла?
…Все в наших руках…
-
rain_99
- Сообщения: 959
- ОС: Debian
Re: Ошибка. Make
Сообщение
rain_99 » 15.08.2018 10:08
ormorph писал(а): ↑
01.08.2018 08:45
Так же поддерживает достаточно новые ядра, например у меня работает под версией 4.16.
так поидее — в новом ядре должно быть поддержка данного устройства.
Почему его не прикрутят?
…Все в наших руках…
-
Bizdelnick
- Модератор
- Сообщения: 19769
- Статус: nulla salus bello
- ОС: Debian GNU/Linux
Re: Ошибка. Make
Сообщение
Bizdelnick » 15.08.2018 11:11
rain_99 писал: ↑
15.08.2018 10:08
так поидее — в новом ядре должно быть поддержка данного устройства.
Почему его не прикрутят?
Задайте этот вопрос производителю.
Пишите правильно:
в консоли вку́пе (с чем-либо) в общем вообще |
в течение (часа) новичок нюанс по умолчанию |
приемлемо проблема пробовать трафик |
-
rain_99
- Сообщения: 959
- ОС: Debian
Re: Ошибка. Make
Сообщение
rain_99 » 25.08.2018 19:18
Ну и дубль два.
На ноут купил это же железо.
Код: Выделить всё
root@debian:/home/rain/test/rtl8811aulinux# cd /home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/
root@debian:/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51# make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.9.0-8-amd64/build M=/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51 modules
make[1]: вход в каталог «/usr/src/linux-headers-4.9.0-8-amd64»
CC [M] /home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.o
In file included from /home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/drv_types.h:95:0,
from /home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.c:22:
/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/hal_com.h:412:13: error: ‘file_path’ redeclared as different kind of symbol
extern char file_path[PATH_LENGTH_MAX];
^~~~~~~~~
In file included from /usr/src/linux-headers-4.9.0-8-common/include/linux/seq_file.h:10:0,
from /usr/src/linux-headers-4.9.0-8-common/include/linux/pinctrl/consumer.h:17,
from /usr/src/linux-headers-4.9.0-8-common/include/linux/pinctrl/devinfo.h:21,
from /usr/src/linux-headers-4.9.0-8-common/include/linux/device.h:24,
from /usr/src/linux-headers-4.9.0-8-common/include/linux/dmaengine.h:20,
from /usr/src/linux-headers-4.9.0-8-common/include/linux/netdevice.h:38,
from /home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/osdep_service_linux.h:35,
from /home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/osdep_service.h:41,
from /home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/drv_types.h:32,
from /home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.c:22:
/usr/src/linux-headers-4.9.0-8-common/include/linux/fs.h:2731:14: note: previous declaration of ‘file_path’ was here
extern char *file_path(struct file *, char *, int);
^~~~~~~~~
In file included from /home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/drv_types.h:65:0,
from /home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.c:22:
/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.c: In function ‘btinfo_evt_dump’:
/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
#define _seqdump seq_printf
^
/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/;
^~~~~~~~
/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.c:3293:2: note: in expansion of macro ‘DBG_871X_SEL_NL’
DBG_871X_SEL_NL(sel, "cid:0x%02x, len:%un", info->cid, info->len);
^~~~~~~~~~~~~~~
/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
#define _seqdump seq_printf
^
/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/;
^~~~~~~~
/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.c:3296:3: note: in expansion of macro ‘DBG_871X_SEL_NL’
DBG_871X_SEL_NL(sel, "byte2:%s%s%s%s%s%s%s%sn"
^~~~~~~~~~~~~~~
/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
#define _seqdump seq_printf
^
/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/;
^~~~~~~~
/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.c:3308:3: note: in expansion of macro ‘DBG_871X_SEL_NL’
DBG_871X_SEL_NL(sel, "retry_cnt:%un", info->retry_cnt);
^~~~~~~~~~~~~~~
/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
#define _seqdump seq_printf
^
/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/;
^~~~~~~~
/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.c:3311:3: note: in expansion of macro ‘DBG_871X_SEL_NL’
DBG_871X_SEL_NL(sel, "rssi:%un", info->rssi);
^~~~~~~~~~~~~~~
/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
#define _seqdump seq_printf
^
/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/;
^~~~~~~~
/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.c:3314:3: note: in expansion of macro ‘DBG_871X_SEL_NL’
DBG_871X_SEL_NL(sel, "byte5:%s%sn"
^~~~~~~~~~~~~~~
/usr/src/linux-headers-4.9.0-8-common/scripts/Makefile.build:301: ошибка выполнения рецепта для цели «/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.o»
make[4]: *** [/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.o] Ошибка 1
/usr/src/linux-headers-4.9.0-8-common/Makefile:1526: ошибка выполнения рецепта для цели «_module_/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51»
make[3]: *** [_module_/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51] Ошибка 2
Makefile:152: ошибка выполнения рецепта для цели «sub-make»
make[2]: *** [sub-make] Ошибка 2
Makefile:8: ошибка выполнения рецепта для цели «all»
make[1]: *** [all] Ошибка 2
make[1]: выход из каталога «/usr/src/linux-headers-4.9.0-8-amd64»
Makefile:1551: ошибка выполнения рецепта для цели «modules»
make: *** [modules] Ошибка 2
…Все в наших руках…
Решил написать последовательность действий может кому пригодится
Ставим чистую убунту в моем случае ubutntu14.04-server-x86-64
# uname -a
Linux ubuntu1404 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
apt-get update
cp /<your_dir/npreal2_1.18.35_build_14081817.tgz /home/npreal2_1.18.35_build_14081817.tgz
cd /home
tar xvfz npreal2_1.18.35_build_14081817.tgz
cd moxa
apt-get -y install gcc openssl make libc6
./mxinst -m64 # -m64 # потому что моя убунта 64бит
# Вам предложат скомпелировать с поддержкой ssl
# Do you want to enable secure function? [y/N].
# Отказываемся, ставим нет (всю ночь промучился не решил проблемы с зависимостями, если у кого получилось поделитесь как)
N # отказались
# Получаем такой вывод
«
make -C /lib/modules/3.13.0-24-generic/build SUBDIRS=/home/ant/moxa modules
make[1]: Entering directory `/usr/src/linux-headers-3.13.0-24-generic’
CC [M] /home/ant/moxa/npreal2.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/ant/moxa/npreal2.mod.o
LD [M] /home/ant/moxa/npreal2.ko
make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-24-generic’
cp -p npreal2.ko /lib/modules/3.13.0-24-generic/kernel/drivers/char/
depmod -a
cc -c npreal2d.c
cc npreal2d.o -o npreal2d
strip npreal2d
cc -c redund_main.c
cc -c redund.c
cc redund_main.o redund.o -lpthread -o npreal2d_redund
strip npreal2d_redund
cc -o mxaddsvr mxaddsvr.c
strip mxaddsvr
cc -o mxdelsvr mxdelsvr.c
strip mxdelsvr
cc -o mxcfmat mxcfmat.c
strip mxcfmat
cc -o mxloadsvr mxloadsvr.c
strip mxloadsvr
cc -o mxsetsec mxsetsec.c
strip mxsetsec
Check Driver…
Copying configurations files … OK!
Copying driver files … OK!
Load driver…
OK!
Loading TTY Driver…
sh: 1: Syntax error: Unterminated quoted string
Adding system startup for /etc/init.d/npreals …
/etc/rc0.d/K90npreals -> ../init.d/npreals
/etc/rc1.d/K90npreals -> ../init.d/npreals
/etc/rc6.d/K90npreals -> ../init.d/npreals
/etc/rc2.d/S90npreals -> ../init.d/npreals
/etc/rc3.d/S90npreals -> ../init.d/npreals
/etc/rc4.d/S90npreals -> ../init.d/npreals
/etc/rc5.d/S90npreals -> ../init.d/npreals
Complete.
===============================================================================
Installation process is completed.
The all driver files are installed on /usr/lib/npreal2/driver.
Now you can cd /usr/lib/npreal2/driver and run ./mxaddsvr to add tty port.
===============================================================================
«
# Делаем что просят
cd /usr/lib/npreal2/driver
./mxaddsvr 192.168.100.199 1 # Первая цифра IP вашей моксы в сети которую хотим слушать. Вторая сколько виртуальных СОМ-портов хотим создать (мне надо один)
# Получам вывод
«
Adding Server…
ttyr00, cur00
Added RealCom server: ip : 192.168.100.199
mknod -m 666 ttyr00 c 33 0
mknod -m 666 cur00 c 38 0
sh: 1: Syntax error: Unterminated quoted string
System start/stop links for /etc/init.d/npreals already exist.
Complete.
«
# Проверяем подгрузился ли наш новоиспеченный модуль к ядру и как работает
ps -ef | grep npreal2d
«
root 5889 1 0 03:29 ? 00:00:00 /usr/lib/npreal2/driver/npreal2d_redund -t 1
root 5892 1 0 03:29 ? 00:00:00 /usr/lib/npreal2/driver/npreal2d -t 1
«
# Проверяем появился ли наш порт в девайсах
ls /dev/ttyr0*
«
/dev/ttyr0 /dev/ttyr00 # -это он ура!
«
# Если есть иксы, ставим например putty
apt-get -y install putty
# Открываем putty и натравливаем на ваш порт /dev/ttyr00, выставляем для начала скорость 9600 потом можно увеличить.
# Идем к моксе соединяем вместе RxD и TxD
# Пробуем печатать в Putty если текст печатается то все ОК ( Yahoo!!!), если нет то косяк
# Если нет иксов вместо Putty можно использовать к примеру minicom
Всем удачи в настройке!
- Печать
Страницы: [1] Вниз
Тема: Ошибка make (Прочитано 3948 раз)
0 Пользователей и 1 Гость просматривают эту тему.
Gifrom
На моем ноуте подключена на адаптере беспроводной сети rlt8723be только одна антена, возможно по этому он не видит сетей. Нашёл вот такой способ решения
Решение
Устанавливаем нужное:
sudo apt-get install build-essential linux-headers-generic git
Далее необходимо стянуть специфичный бранч для rtlwifi:
git clone -b «rock.new_btcoex» https://github.com/lwfinger/rtlwifi_new
Собираем:
cd rtlwifi_new/
make
sudo make installПерезагружаем модуль
sudo modprobe -rv rtl8723be
sudo modprobe -v rtl8723be ant_sel=2Должно работать.
Проверить можно командой:
sudo iwlist wlan scan | egrep «SSID|level»
Если отображается малое количество сетей, то стоит попробовать еще раз предыдущий шаг с параметром ant_sel=1.
Если все хорошо, рекомендуется выполнить команду, закрепляющую результат:
sudo echo «options rtl8723be fwlps=0 ant_sel=2» | sudo tee /etc/modprobe.d/rtl8723be.conf
, людям помогает, но вот проблема
gifrom@gifrom-HP-Laptop-15-bw0xx:~$ cd rtlwifi_new/
очень прошу помочь
gifrom@gifrom-HP-Laptop-15-bw0xx:~/rtlwifi_new$ make
make -C /lib/modules/4.10.0-37-generic/build M=/home/gifrom/rtlwifi_new modules
make[1]: вход в каталог «/usr/src/linux-headers-4.10.0-37-generic»
CC [M] /home/gifrom/rtlwifi_new/base.o
In file included from /home/gifrom/rtlwifi_new/base.c:26:0:
/home/gifrom/rtlwifi_new/wifi.h:43:2: error: #error "This branch is abandoned. Please do not use"
#error "This branch is abandoned. Please do not use"
^
scripts/Makefile.build:294: ошибка выполнения рецепта для цели «/home/gifrom/rtlwifi_new/base.o»
make[2]: *** [/home/gifrom/rtlwifi_new/base.o] Ошибка 1
Makefile:1524: ошибка выполнения рецепта для цели «_module_/home/gifrom/rtlwifi_new»
make[1]: *** [_module_/home/gifrom/rtlwifi_new] Ошибка 2
make[1]: выход из каталога «/usr/src/linux-headers-4.10.0-37-generic»
Makefile:57: ошибка выполнения рецепта для цели «all»
make: *** [all] Ошибка 2
gifrom@gifrom-HP-Laptop-15-bw0xx:~/rtlwifi_new$
Azure
Самому лень через поиск найти? rtlwifi
В Линукс можно сделать ВСЁ что угодно, достаточно знать КАК !
Gifrom
целый день искал. И это находил. Адаптер видит, драйвера вроде стоят, но сигналы почти на нуле даже возле самого роутера, сеть вручную добавляется но тут же рвётся. Я разбирал ноут, там действительно на модуле из двух антенных разъёмов только один подключен, а дрова пытаются через два работать. И нужно внести исправление по рекомендации выше, но make выдаёт ошибку, с которой я и прошу помочь. Или я что-то совсем неправилно понял?
Пользователь добавил сообщение 30 Октября 2017, 19:30:01:
всё решилось установкой ядра 4.13, всем спасибо
« Последнее редактирование: 30 Октября 2017, 19:30:01 от Gifrom »
alexchernov
Такая же проблема, но при этом обновление ядра не помогает
Вот ошибки
make -C /lib/modules/4.13.12-041312-generic/build M=/home/alex/rtlwifi_new modules
make[1]: вход в каталог «/usr/src/linux-headers-4.13.12-041312-generic»
CC [M] /home/alex/rtlwifi_new/base.o
In file included from /home/alex/rtlwifi_new/base.c:26:0:
/home/alex/rtlwifi_new/wifi.h:43:2: error: #error "This branch is abandoned. Please do not use"
#error "This branch is abandoned. Please do not use"
^~~~~
scripts/Makefile.build:302: ошибка выполнения рецепта для цели «/home/alex/rtlwifi_new/base.o»
make[2]: *** [/home/alex/rtlwifi_new/base.o] Ошибка 1
Makefile:1518: ошибка выполнения рецепта для цели «_module_/home/alex/rtlwifi_new»
make[1]: *** [_module_/home/alex/rtlwifi_new] Ошибка 2
make[1]: выход из каталога «/usr/src/linux-headers-4.13.12-041312-generic»
Makefile:57: ошибка выполнения рецепта для цели «all»
make: *** [all] Ошибка 2
- Печать
Страницы: [1] Вверх
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
Closed
dzmuh97 opened this issue
Jun 25, 2016
· 12 comments
Closed
make error
#6728
dzmuh97 opened this issue
Jun 25, 2016
· 12 comments
Comments
I get an error while compiling.
I ran the cmake with parameters:
-D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local
[ 15%] Building CXX object modules/cudev/test/CMakeFiles/opencv_test_cudev.dir/test_main.cpp.o Linking CXX executable ../../../bin/opencv_test_cudev CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_cmp_op.cu.o: In function `std::string testing::internal::StreamableToString<int>(int const&)': tmpxft_000020b8_00000000-10_test_cmp_op.compute_20.cudafe1.cpp:(.text._ZN7testing8internal18StreamableToStringIiEESsRKT_[_ZN7testing8internal18StreamableToStringIiEESsRKT_]+0x2b): undefined reference to `testing::Message::GetString() const' CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_lut.cu.o: In function `testing::internal::TypeParameterizedTest<LutTest, testing::internal::TemplateSel<LutTest_GpuMat_Test>, testing::internal::Types1<unsigned char> >::Register(char const*, char const*, char const*, int)': tmpxft_00002126_00000000-10_test_lut.compute_20.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI7LutTestNS0_11TemplateSelI19LutTest_GpuMat_TestEENS0_6Types1IhEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI7LutTestNS0_11TemplateSelI19LutTest_GpuMat_TestEENS0_6Types1IhEEE8RegisterEPKcSA_SA_i]+0x14b): undefined reference to `testing::Message::GetString() const' CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_arithm_func.cu.o: In function `testing::internal::TypeParameterizedTest<SqrtTest, testing::internal::TemplateSel<SqrtTest_GpuMat_Test>, testing::internal::Types1<float> >::Register(char const*, char const*, char const*, int)': tmpxft_00002203_00000000-10_test_arithm_func.compute_20.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI8SqrtTestNS0_11TemplateSelI20SqrtTest_GpuMat_TestEENS0_6Types1IfEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI8SqrtTestNS0_11TemplateSelI20SqrtTest_GpuMat_TestEENS0_6Types1IfEEE8RegisterEPKcSA_SA_i]+0x14b): undefined reference to `testing::Message::GetString() const' CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_arithm_func.cu.o: In function `testing::internal::TypeParameterizedTest<SqrtTest, testing::internal::TemplateSel<SqrtTest_Expr_Test>, testing::internal::Types1<float> >::Register(char const*, char const*, char const*, int)': tmpxft_00002203_00000000-10_test_arithm_func.compute_20.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI8SqrtTestNS0_11TemplateSelI18SqrtTest_Expr_TestEENS0_6Types1IfEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI8SqrtTestNS0_11TemplateSelI18SqrtTest_Expr_TestEENS0_6Types1IfEEE8RegisterEPKcSA_SA_i]+0x14b): undefined reference to `testing::Message::GetString() const' CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_arithm_func.cu.o: In function `testing::internal::TypeParameterizedTest<MagnitudeTest, testing::internal::TemplateSel<MagnitudeTest_Accuracy_Test>, testing::internal::Types1<float> >::Register(char const*, char const*, char const*, int)': tmpxft_00002203_00000000-10_test_arithm_func.compute_20.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI13MagnitudeTestNS0_11TemplateSelI27MagnitudeTest_Accuracy_TestEENS0_6Types1IfEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI13MagnitudeTestNS0_11TemplateSelI27MagnitudeTest_Accuracy_TestEENS0_6Types1IfEEE8RegisterEPKcSA_SA_i]+0x14b): undefined reference to `testing::Message::GetString() const' CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_arithm_func.cu.o:tmpxft_00002203_00000000-10_test_arithm_func.compute_20.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI7PowTestNS0_11TemplateSelI21PowTest_Accuracy_TestEENS0_6Types1IfEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI7PowTestNS0_11TemplateSelI21PowTest_Accuracy_TestEENS0_6Types1IfEEE8RegisterEPKcSA_SA_i]+0x14b): more undefined references to `testing::Message::GetString() const' follow CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_warp.cu.o: In function `testing::AssertionResult testing::internal::CmpHelperEQ<int, int>(char const*, char const*, int const&, int const&)': tmpxft_000023bc_00000000-10_test_warp.compute_20.cudafe1.cpp:(.text._ZN7testing8internal11CmpHelperEQIiiEENS_15AssertionResultEPKcS4_RKT_RKT0_[_ZN7testing8internal11CmpHelperEQIiiEENS_15AssertionResultEPKcS4_RKT_RKT0_]+0x5c): undefined reference to `testing::internal::EqFailure(char const*, char const*, std::string const&, std::string const&, bool)' CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_warp.cu.o: In function `testing::AssertionResult& testing::AssertionResult::operator<< <char [12]>(char const (&) [12])': tmpxft_000023bc_00000000-10_test_warp.compute_20.cudafe1.cpp:(.text._ZN7testing15AssertionResultlsIA12_cEERS0_RKT_[_ZN7testing15AssertionResultlsIA12_cEERS0_RKT_]+0x66): undefined reference to `testing::Message::GetString() const' CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_warp.cu.o: In function `testing::AssertionResult& testing::AssertionResult::operator<< <char const*>(char const* const&)': tmpxft_000023bc_00000000-10_test_warp.compute_20.cudafe1.cpp:(.text._ZN7testing15AssertionResultlsIPKcEERS0_RKT_[_ZN7testing15AssertionResultlsIPKcEERS0_RKT_]+0x67): undefined reference to `testing::Message::GetString() const' CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_warp.cu.o: In function `testing::AssertionResult& testing::AssertionResult::operator<< <char [7]>(char const (&) [7])': tmpxft_000023bc_00000000-10_test_warp.compute_20.cudafe1.cpp:(.text._ZN7testing15AssertionResultlsIA7_cEERS0_RKT_[_ZN7testing15AssertionResultlsIA7_cEERS0_RKT_]+0x66): undefined reference to `testing::Message::GetString() const' CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_warp.cu.o: In function `testing::AssertionResult& testing::AssertionResult::operator<< <std::string>(std::string const&)': tmpxft_000023bc_00000000-10_test_warp.compute_20.cudafe1.cpp:(.text._ZN7testing15AssertionResultlsISsEERS0_RKT_[_ZN7testing15AssertionResultlsISsEERS0_RKT_]+0x54): undefined reference to `testing::Message::GetString() const' CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_warp.cu.o: In function `testing::AssertionResult& testing::AssertionResult::operator<< <char [5]>(char const (&) [5])': tmpxft_000023bc_00000000-10_test_warp.compute_20.cudafe1.cpp:(.text._ZN7testing15AssertionResultlsIA5_cEERS0_RKT_[_ZN7testing15AssertionResultlsIA5_cEERS0_RKT_]+0x66): undefined reference to `testing::Message::GetString() const' CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_warp.cu.o: In function `testing::AssertionResult testing::internal::CmpHelperEQ<cv::Size_<int>, cv::Size_<int> >(char const*, char const*, cv::Size_<int> const&, cv::Size_<int> const&)': tmpxft_000023bc_00000000-10_test_warp.compute_20.cudafe1.cpp:(.text._ZN7testing8internal11CmpHelperEQIN2cv5Size_IiEES4_EENS_15AssertionResultEPKcS7_RKT_RKT0_[_ZN7testing8internal11CmpHelperEQIN2cv5Size_IiEES4_EENS_15AssertionResultEPKcS7_RKT_RKT0_]+0x5c): undefined reference to `testing::internal::EqFailure(char const*, char const*, std::string const&, std::string const&, bool)' CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_bitwize_op.cu.o: In function `testing::internal::TypeParameterizedTest<LShiftTest, testing::internal::TemplateSel<LShiftTest_Accuracy_Test>, testing::internal::Types1<int> >::Register(char const*, char const*, char const*, int)': tmpxft_0000242a_00000000-10_test_bitwize_op.compute_20.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI10LShiftTestNS0_11TemplateSelI24LShiftTest_Accuracy_TestEENS0_6Types1IiEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI10LShiftTestNS0_11TemplateSelI24LShiftTest_Accuracy_TestEENS0_6Types1IiEEE8RegisterEPKcSA_SA_i]+0x14b): undefined reference to `testing::Message::GetString() const' CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_bitwize_op.cu.o: In function `testing::internal::TypeParameterizedTest<BitNotTest, testing::internal::TemplateSel<BitNotTest_GpuMat_Test>, testing::internal::Types1<int> >::Register(char const*, char const*, char const*, int)': tmpxft_0000242a_00000000-10_test_bitwize_op.compute_20.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI10BitNotTestNS0_11TemplateSelI22BitNotTest_GpuMat_TestEENS0_6Types1IiEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI10BitNotTestNS0_11TemplateSelI22BitNotTest_GpuMat_TestEENS0_6Types1IiEEE8RegisterEPKcSA_SA_i]+0x14b): undefined reference to `testing::Message::GetString() const' CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_bitwize_op.cu.o: In function `testing::internal::TypeParameterizedTest<BitNotTest, testing::internal::TemplateSel<BitNotTest_GpuMat_Test>, testing::internal::Types2<short, int> >::Register(char const*, char const*, char const*, int)': tmpxft_0000242a_00000000-10_test_bitwize_op.compute_20.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI10BitNotTestNS0_11TemplateSelI22BitNotTest_GpuMat_TestEENS0_6Types2IsiEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI10BitNotTestNS0_11TemplateSelI22BitNotTest_GpuMat_TestEENS0_6Types2IsiEEE8RegisterEPKcSA_SA_i]+0x140): undefined reference to `testing::Message::GetString() const' CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_bitwize_op.cu.o: In function `testing::internal::TypeParameterizedTest<BitNotTest, testing::internal::TemplateSel<BitNotTest_GpuMat_Test>, testing::internal::Types3<unsigned short, short, int> >::Register(char const*, char const*, char const*, int)': tmpxft_0000242a_00000000-10_test_bitwize_op.compute_20.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI10BitNotTestNS0_11TemplateSelI22BitNotTest_GpuMat_TestEENS0_6Types3ItsiEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI10BitNotTestNS0_11TemplateSelI22BitNotTest_GpuMat_TestEENS0_6Types3ItsiEEE8RegisterEPKcSA_SA_i]+0xe6): undefined reference to `testing::Message::GetString() const' CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_bitwize_op.cu.o: In function `testing::internal::TypeParameterizedTest<BitNotTest, testing::internal::TemplateSel<BitNotTest_GpuMat_Test>, testing::internal::Types4<unsigned char, unsigned short, short, int> >::Register(char const*, char const*, char const*, int)': tmpxft_0000242a_00000000-10_test_bitwize_op.compute_20.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI10BitNotTestNS0_11TemplateSelI22BitNotTest_GpuMat_TestEENS0_6Types4IhtsiEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI10BitNotTestNS0_11TemplateSelI22BitNotTest_GpuMat_TestEENS0_6Types4IhtsiEEE8RegisterEPKcSA_SA_i]+0x140): undefined reference to `testing::Message::GetString() const' CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_bitwize_op.cu.o:tmpxft_0000242a_00000000-10_test_bitwize_op.compute_20.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI10BitAndTestNS0_11TemplateSelI29BitAndTest_GpuMat_GpuMat_TestEENS0_6Types1IiEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI10BitAndTestNS0_11TemplateSelI29BitAndTest_GpuMat_GpuMat_TestEENS0_6Types1IiEEE8RegisterEPKcSA_SA_i]+0x14b): more undefined references to `testing::Message::GetString() const' follow CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_reduction.cu.o: In function `testing::AssertionResult testing::internal::CmpHelperFloatingPointEQ<float>(char const*, char const*, float, float)': tmpxft_00001f67_00000000-10_test_reduction.compute_20.cudafe1.cpp:(.text._ZN7testing8internal24CmpHelperFloatingPointEQIfEENS_15AssertionResultEPKcS4_T_S5_[_ZN7testing8internal24CmpHelperFloatingPointEQIfEENS_15AssertionResultEPKcS4_T_S5_]+0x12a): undefined reference to `testing::internal::StringStreamToString(std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >*)' tmpxft_00001f67_00000000-10_test_reduction.compute_20.cudafe1.cpp:(.text._ZN7testing8internal24CmpHelperFloatingPointEQIfEENS_15AssertionResultEPKcS4_T_S5_[_ZN7testing8internal24CmpHelperFloatingPointEQIfEENS_15AssertionResultEPKcS4_T_S5_]+0x139): undefined reference to `testing::internal::StringStreamToString(std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >*)' tmpxft_00001f67_00000000-10_test_reduction.compute_20.cudafe1.cpp:(.text._ZN7testing8internal24CmpHelperFloatingPointEQIfEENS_15AssertionResultEPKcS4_T_S5_[_ZN7testing8internal24CmpHelperFloatingPointEQIfEENS_15AssertionResultEPKcS4_T_S5_]+0x154): undefined reference to `testing::internal::EqFailure(char const*, char const*, std::string const&, std::string const&, bool)' collect2: error: ld returned 1 exit status modules/cudev/test/CMakeFiles/opencv_test_cudev.dir/build.make:233: ошибка выполнения рецепта для цели «bin/opencv_test_cudev» make[2]: *** [bin/opencv_test_cudev] Ошибка 1 CMakeFiles/Makefile2:1161: ошибка выполнения рецепта для цели «modules/cudev/test/CMakeFiles/opencv_test_cudev.dir/all» make[1]: *** [modules/cudev/test/CMakeFiles/opencv_test_cudev.dir/all] Ошибка 2 Makefile:146: ошибка выполнения рецепта для цели «all» make: *** [all] Ошибка 2
System: Ubuntu 15.10 x86_64
Kernel: 4.2.0-36-generic DE: XFCE Session: xfce
Processor: Intel(R) Pentium(R) CPU G630 @ 2.70GHz
Video: 01:00.0 VGA compatible controller: NVIDIA Corporation GF108 [GeForce GT 430] (rev a1) Subsystem: Gigabyte Technology Co., Ltd Device 3534 Kernel driver in use: nvidia
gcc version 4.7.4 (Ubuntu/Linaro 4.7.4-3ubuntu3)
Keep in mind that 95% of the OpenCV community is not Russian and thus cannot read your errors. Might be better to translate to English!
Can’t reproduce problem on Ubuntu 14.04 + CUDA 7.5.
@dzmuh97 Try to build from scratch (clean build directory). Are you able to make successful build without CUDA support (-DWITH_CUDA=OFF)?
tinku@tinku-P65-P67SE:~/cuda/opencv-master/release$ sudo make -- Detected version of GNU GCC: 54 (504) -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found suitable version "1.2.8", minimum required is "1.2.3") -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8") -- Found OpenEXR: /usr/lib/x86_64-linux-gnu/libIlmImf.so CMake Warning at cmake/OpenCVFindLibsGUI.cmake:18 (find_package): By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt5Core", but CMake did not find one. Could not find a package configuration file provided by "Qt5Core" with any of the following names: Qt5CoreConfig.cmake qt5core-config.cmake Add the installation prefix of "Qt5Core" to CMAKE_PREFIX_PATH or set "Qt5Core_DIR" to a directory containing one of the above files. If "Qt5Core" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:550 (include) CMake Warning at cmake/OpenCVFindLibsGUI.cmake:19 (find_package): By not providing "FindQt5Gui.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt5Gui", but CMake did not find one. Could not find a package configuration file provided by "Qt5Gui" with any of the following names: Qt5GuiConfig.cmake qt5gui-config.cmake Add the installation prefix of "Qt5Gui" to CMAKE_PREFIX_PATH or set "Qt5Gui_DIR" to a directory containing one of the above files. If "Qt5Gui" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:550 (include) CMake Warning at cmake/OpenCVFindLibsGUI.cmake:20 (find_package): By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt5Widgets", but CMake did not find one. Could not find a package configuration file provided by "Qt5Widgets" with any of the following names: Qt5WidgetsConfig.cmake qt5widgets-config.cmake Add the installation prefix of "Qt5Widgets" to CMAKE_PREFIX_PATH or set "Qt5Widgets_DIR" to a directory containing one of the above files. If "Qt5Widgets" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:550 (include) CMake Warning at cmake/OpenCVFindLibsGUI.cmake:21 (find_package): By not providing "FindQt5Test.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt5Test", but CMake did not find one. Could not find a package configuration file provided by "Qt5Test" with any of the following names: Qt5TestConfig.cmake qt5test-config.cmake Add the installation prefix of "Qt5Test" to CMAKE_PREFIX_PATH or set "Qt5Test_DIR" to a directory containing one of the above files. If "Qt5Test" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:550 (include) CMake Warning at cmake/OpenCVFindLibsGUI.cmake:22 (find_package): By not providing "FindQt5Concurrent.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt5Concurrent", but CMake did not find one. Could not find a package configuration file provided by "Qt5Concurrent" with any of the following names: Qt5ConcurrentConfig.cmake qt5concurrent-config.cmake Add the installation prefix of "Qt5Concurrent" to CMAKE_PREFIX_PATH or set "Qt5Concurrent_DIR" to a directory containing one of the above files. If "Qt5Concurrent" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:550 (include) -- Looking for linux/videodev.h -- Looking for linux/videodev.h - not found -- Looking for linux/videodev2.h -- Looking for linux/videodev2.h - found -- Looking for sys/videoio.h -- Looking for sys/videoio.h - not found -- Checking for module 'libavresample' -- No package 'libavresample' found -- Looking for libavformat/avformat.h -- Looking for libavformat/avformat.h - found -- Looking for ffmpeg/avformat.h -- Looking for ffmpeg/avformat.h - not found -- Checking for module 'libgphoto2' -- No package 'libgphoto2' found -- A library with BLAS API found. -- A library with LAPACK API found. -- found IPP (ICV version): 9.0.1 [9.0.1] -- at: /home/tinku/cuda/opencv-master/3rdparty/ippicv/unpack/ippicv_lnx -- CUDA detected: 8.0 -- CUDA NVCC target flags: -gencode;arch=compute_52,code=sm_52;-D_FORCE_INLINES -- To enable PlantUML support, set PLANTUML_JAR environment variable or pass -DPLANTUML_JAR=<filepath> option to cmake -- Could NOT find Matlab (missing: MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN) -- Found VTK ver. 7.0.0 (usefile: /usr/local/lib/cmake/vtk-7.0/UseVTK.cmake) -- Caffe: NO -- Protobuf: NO -- Glog: NO -- HDF5: YES -- Module opencv_sfm disabled because the following dependencies are not found: Glog/Gflags -- HDF5: YES -- Could NOT find Protobuf (missing: PROTOBUF_LIBRARY PROTOBUF_INCLUDE_DIR) -- Build libprotobuf from sources: -- libprotobuf not found into system -- The protocol buffer compiler not found -- Tesseract: NO -- -- General configuration for OpenCV 3.1.0-dev ===================================== -- Version control: unknown -- -- Extra modules: -- Location (extra): /home/tinku/cuda/opencv_contrib-master/modules -- Version control (extra): unknown -- -- Platform: -- Timestamp: 2016-07-14T13:32:06Z -- Host: Linux 4.4.0-28-generic x86_64 -- CMake: 3.5.1 -- CMake generator: Unix Makefiles -- CMake build tool: /usr/bin/make -- Configuration: RELEASE -- -- C/C++: -- Built as dynamic libs?: YES -- C++ Compiler: /usr/bin/c++ (ver 5.4.0) -- C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffast-math -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG -- C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffast-math -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG -- C Compiler: /usr/bin/cc -- C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffast-math -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG -- C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffast-math -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG -- Linker flags (Release): -- Linker flags (Debug): -- Precompiled headers: YES -- Extra dependencies: /usr/lib/x86_64-linux-gnu/libQtOpenGL.so /usr/lib/x86_64-linux-gnu/libQtGui.so /usr/lib/x86_64-linux-gnu/libQtTest.so /usr/lib/x86_64-linux-gnu/libQtCore.so /usr/lib/x86_64-linux-gnu/libpng.so /usr/lib/x86_64-linux-gnu/libtiff.so /usr/lib/x86_64-linux-gnu/libjasper.so /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/x86_64-linux-gnu/libImath.so /usr/lib/x86_64-linux-gnu/libIlmImf.so /usr/lib/x86_64-linux-gnu/libIex.so /usr/lib/x86_64-linux-gnu/libHalf.so /usr/lib/x86_64-linux-gnu/libIlmThread.so gstvideo-1.0 gstapp-1.0 gstbase-1.0 gstriff-1.0 gstpbutils-1.0 gstreamer-1.0 gobject-2.0 glib-2.0 dc1394 avcodec-ffmpeg avformat-ffmpeg avutil-ffmpeg swscale-ffmpeg /usr/lib/x86_64-linux-gnu/libbz2.so /usr/lib/x86_64-linux-gnu/hdf5/serial/lib/libhdf5.so /usr/lib/x86_64-linux-gnu/libpthread.so /usr/lib/x86_64-linux-gnu/libsz.so /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/x86_64-linux-gnu/libdl.so /usr/lib/x86_64-linux-gnu/libm.so vtkRenderingOpenGL2 vtkCommonExecutionModel vtkCommonDataModel vtkCommonMath vtkCommonCore vtksys vtkCommonMisc vtkCommonSystem vtkCommonTransforms vtkImagingHybrid vtkIOImage vtkDICOMParser vtkIOCore vtkzlib vtkmetaio vtkjpeg vtkpng vtktiff vtkImagingCore vtkRenderingCore vtkCommonColor vtkFiltersExtraction vtkFiltersCore vtkFiltersGeneral vtkCommonComputationalGeometry vtkFiltersStatistics vtkImagingFourier vtkalglib vtkFiltersGeometry vtkFiltersSources vtkglew vtkInteractionStyle vtkRenderingLOD vtkFiltersModeling vtkIOPLY vtkIOGeometry vtkFiltersTexture vtkRenderingFreeType vtkfreetype vtkIOExport vtkRenderingAnnotation vtkImagingColor vtkRenderingContext2D vtkRenderingLabel dl m pthread rt /usr/lib/x86_64-linux-gnu/libGLU.so /usr/lib/x86_64-linux-gnu/libGL.so tbb atomic cudart nppc nppi npps cublas cufft -L/usr/local/cuda/lib64 -- 3rdparty dependencies: libwebp libprotobuf -- -- OpenCV modules: -- To be built: cudev core cudaarithm flann hdf imgproc ml reg surface_matching video viz cudabgsegm cudafilters cudaimgproc cudawarping dnn fuzzy imgcodecs photo shape videoio cudacodec highgui objdetect plot ts xobjdetect xphoto bgsegm bioinspired dpm face features2d line_descriptor saliency text calib3d ccalib cudafeatures2d cudalegacy cudaobjdetect cudaoptflow cudastereo datasets rgbd stereo structured_light superres tracking videostab xfeatures2d ximgproc aruco optflow stitching python2 -- Disabled: world contrib_world -- Disabled by dependency: - -- Unavailable: java python3 cvv matlab sfm -- -- GUI: -- QT 4.x: YES (ver 4.8.7 EDITION = OpenSource) -- QT OpenGL support: YES (/usr/lib/x86_64-linux-gnu/libQtOpenGL.so) -- OpenGL support: YES (/usr/lib/x86_64-linux-gnu/libGLU.so /usr/lib/x86_64-linux-gnu/libGL.so) -- VTK support: YES (ver 7.0.0) -- -- Media I/O: -- ZLib: /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.8) -- JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (ver ) -- WEBP: build (ver 0.3.1) -- PNG: /usr/lib/x86_64-linux-gnu/libpng.so (ver 1.2.54) -- TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (ver 42 - 4.0.6) -- JPEG 2000: /usr/lib/x86_64-linux-gnu/libjasper.so (ver 1.900.1) -- OpenEXR: /usr/lib/x86_64-linux-gnu/libImath.so /usr/lib/x86_64-linux-gnu/libIlmImf.so /usr/lib/x86_64-linux-gnu/libIex.so /usr/lib/x86_64-linux-gnu/libHalf.so /usr/lib/x86_64-linux-gnu/libIlmThread.so (ver 2.2.0) -- GDAL: NO -- -- Video I/O: -- DC1394 1.x: NO -- DC1394 2.x: YES (ver 2.2.4) -- FFMPEG: YES -- codec: YES (ver 56.60.100) -- format: YES (ver 56.40.101) -- util: YES (ver 54.31.100) -- swscale: YES (ver 3.1.101) -- resample: NO -- gentoo-style: YES -- GStreamer: -- base: YES (ver 1.8.1) -- video: YES (ver 1.8.1) -- app: YES (ver 1.8.1) -- riff: YES (ver 1.8.1) -- pbutils: YES (ver 1.8.1) -- OpenNI: NO -- OpenNI PrimeSensor Modules: NO -- OpenNI2: NO -- PvAPI: NO -- GigEVisionSDK: NO -- UniCap: NO -- UniCap ucil: NO -- V4L/V4L2: NO/YES -- XIMEA: NO -- Xine: NO -- gPhoto2: NO -- -- Parallel framework: TBB (ver 4.4 interface 9002) -- -- Other third-party libraries: -- Use IPP: 9.0.1 [9.0.1] -- at: /home/tinku/cuda/opencv-master/3rdparty/ippicv/unpack/ippicv_lnx -- Use IPP Async: NO -- Use VA: NO -- Use Intel VA-API/OpenCL: NO -- Use Lapack: NO -- Use Eigen: YES (ver 3.2.8) -- Use Cuda: YES (ver 8.0) -- Use OpenCL: YES -- Use custom HAL: NO -- -- NVIDIA CUDA -- Use CUFFT: YES -- Use CUBLAS: YES -- USE NVCUVID: NO -- NVIDIA GPU arch: 52 -- NVIDIA PTX archs: -- Use fast math: YES -- -- OpenCL: <Dynamic loading of OpenCL library> -- Include path: /home/tinku/cuda/opencv-master/3rdparty/include/opencl/1.2 -- Use AMDFFT: NO -- Use AMDBLAS: NO -- -- Python 2: -- Interpreter: /usr/bin/python2.7 (ver 2.7.11) -- Libraries: /usr/lib/x86_64-linux-gnu/libpython2.7.so (ver 2.7.11+) -- numpy: /usr/lib/python2.7/dist-packages/numpy/core/include (ver 1.11.0) -- packages path: lib/python2.7/dist-packages -- -- Python 3: -- Interpreter: /usr/bin/python3 (ver 3.5.1) -- -- Python (for build): /usr/bin/python2.7 -- -- Java: -- ant: NO -- JNI: /usr/lib/jvm/default-java/include /usr/lib/jvm/default-java/include/linux /usr/lib/jvm/default-java/include -- Java wrappers: NO -- Java tests: NO -- -- Matlab: Matlab not found or implicitly disabled -- -- Documentation: -- Doxygen: /usr/bin/doxygen (ver 1.8.11) -- PlantUML: NO -- -- Tests and samples: -- Tests: YES -- Performance tests: YES -- C/C++ Examples: YES -- -- Install path: /usr/local/opencv-cuda -- -- cvconfig.h is in: /home/tinku/cuda/opencv-master/release -- ----------------------------------------------------------------- -- -- Configuring done -- Generating done -- Build files have been written to: /home/tinku/cuda/opencv-master/release [ 1%] Built target libwebp [ 1%] Built target opencv_cudev [ 1%] Built target opencv_videoio_pch_dephelp [ 1%] Built target pch_Generate_opencv_videoio [ 1%] Built target opencv_core_pch_dephelp [ 1%] Built target pch_Generate_opencv_core Scanning dependencies of target opencv_core [ 1%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/system.cpp.o [ 1%] Linking CXX shared library ../../lib/libopencv_core.so [ 2%] Built target opencv_core [ 2%] Built target opencv_imgproc_pch_dephelp [ 2%] Built target pch_Generate_opencv_imgproc [ 2%] Linking CXX shared library ../../lib/libopencv_imgproc.so [ 4%] Built target opencv_imgproc [ 4%] Built target opencv_imgcodecs_pch_dephelp [ 4%] Built target pch_Generate_opencv_imgcodecs [ 4%] Linking CXX shared library ../../lib/libopencv_imgcodecs.so [ 6%] Built target opencv_imgcodecs [ 6%] Linking CXX shared library ../../lib/libopencv_videoio.so [ 6%] Built target opencv_videoio [ 6%] Built target opencv_highgui_pch_dephelp [ 6%] Built target pch_Generate_opencv_highgui [ 6%] Linking CXX shared library ../../lib/libopencv_highgui.so [ 6%] Built target opencv_highgui [ 6%] Built target opencv_ts_pch_dephelp [ 6%] Built target pch_Generate_opencv_ts [ 6%] Built target opencv_ts [ 6%] Linking CXX executable ../../../bin/opencv_test_cudev CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_arithm_op.cu.o: In function `std::string testing::internal::StreamableToString<int>(int const&)': tmpxft_00007b3c_00000000-4_test_arithm_op.cudafe1.cpp:(.text._ZN7testing8internal18StreamableToStringIiEESsRKT_[_ZN7testing8internal18StreamableToStringIiEESsRKT_]+0x3b): undefined reference to `testing::Message::GetString() const' CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_warp.cu.o: In function `testing::AssertionResult testing::internal::CmpHelperEQ<int, int>(char const*, char const*, int const&, int const&)': tmpxft_00007b4b_00000000-4_test_warp.cudafe1.cpp:(.text._ZN7testing8internal11CmpHelperEQIiiEENS_15AssertionResultEPKcS4_RKT_RKT0_[_ZN7testing8internal11CmpHelperEQIiiEENS_15AssertionResultEPKcS4_RKT_RKT0_]+0x62): undefined reference to `testing::internal::EqFailure(char const*, char const*, std::string const&, std::string const&, bool)' CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_warp.cu.o: In function `testing::AssertionResult testing::internal::CmpHelperLE<double, double>(char const*, char const*, double const&, double const&)': tmpxft_00007b4b_00000000-4_test_warp.cudafe1.cpp:(.text._ZN7testing8internal11CmpHelperLEIddEENS_15AssertionResultEPKcS4_RKT_RKT0_[_ZN7testing8internal11CmpHelperLEIddEENS_15AssertionResultEPKcS4_RKT_RKT0_]+0xa2): undefined reference to `testing::Message::GetString() const' tmpxft_00007b4b_00000000-4_test_warp.cudafe1.cpp:(.text._ZN7testing8internal11CmpHelperLEIddEENS_15AssertionResultEPKcS4_RKT_RKT0_[_ZN7testing8internal11CmpHelperLEIddEENS_15AssertionResultEPKcS4_RKT_RKT0_]+0x14b): undefined reference to `testing::Message::GetString() const' tmpxft_00007b4b_00000000-4_test_warp.cudafe1.cpp:(.text._ZN7testing8internal11CmpHelperLEIddEENS_15AssertionResultEPKcS4_RKT_RKT0_[_ZN7testing8internal11CmpHelperLEIddEENS_15AssertionResultEPKcS4_RKT_RKT0_]+0x1ea): undefined reference to `testing::Message::GetString() const' tmpxft_00007b4b_00000000-4_test_warp.cudafe1.cpp:(.text._ZN7testing8internal11CmpHelperLEIddEENS_15AssertionResultEPKcS4_RKT_RKT0_[_ZN7testing8internal11CmpHelperLEIddEENS_15AssertionResultEPKcS4_RKT_RKT0_]+0x2a5): undefined reference to `testing::Message::GetString() const' tmpxft_00007b4b_00000000-4_test_warp.cudafe1.cpp:(.text._ZN7testing8internal11CmpHelperLEIddEENS_15AssertionResultEPKcS4_RKT_RKT0_[_ZN7testing8internal11CmpHelperLEIddEENS_15AssertionResultEPKcS4_RKT_RKT0_]+0x359): undefined reference to `testing::Message::GetString() const' CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_warp.cu.o:tmpxft_00007b4b_00000000-4_test_warp.cudafe1.cpp:(.text._ZN7testing8internal11CmpHelperLEIddEENS_15AssertionResultEPKcS4_RKT_RKT0_[_ZN7testing8internal11CmpHelperLEIddEENS_15AssertionResultEPKcS4_RKT_RKT0_]+0x40c): more undefined references to `testing::Message::GetString() const' follow CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_warp.cu.o: In function `testing::AssertionResult testing::internal::CmpHelperEQ<cv::Size_<int>, cv::Size_<int> >(char const*, char const*, cv::Size_<int> const&, cv::Size_<int> const&)': tmpxft_00007b4b_00000000-4_test_warp.cudafe1.cpp:(.text._ZN7testing8internal11CmpHelperEQIN2cv5Size_IiEES4_EENS_15AssertionResultEPKcS7_RKT_RKT0_[_ZN7testing8internal11CmpHelperEQIN2cv5Size_IiEES4_EENS_15AssertionResultEPKcS7_RKT_RKT0_]+0x62): undefined reference to `testing::internal::EqFailure(char const*, char const*, std::string const&, std::string const&, bool)' CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_bitwize_op.cu.o: In function `testing::internal::TypeParameterizedTest<LShiftTest, testing::internal::TemplateSel<LShiftTest_Accuracy_Test>, testing::internal::Types1<int> >::Register(char const*, char const*, char const*, int)': tmpxft_00007c6e_00000000-4_test_bitwize_op.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI10LShiftTestNS0_11TemplateSelI24LShiftTest_Accuracy_TestEENS0_6Types1IiEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI10LShiftTestNS0_11TemplateSelI24LShiftTest_Accuracy_TestEENS0_6Types1IiEEE8RegisterEPKcSA_SA_i]+0x151): undefined reference to `testing::Message::GetString() const' CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_bitwize_op.cu.o: In function `testing::internal::TypeParameterizedTest<BitNotTest, testing::internal::TemplateSel<BitNotTest_GpuMat_Test>, testing::internal::Types2<short, int> >::Register(char const*, char const*, char const*, int)': tmpxft_00007c6e_00000000-4_test_bitwize_op.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI10BitNotTestNS0_11TemplateSelI22BitNotTest_GpuMat_TestEENS0_6Types2IsiEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI10BitNotTestNS0_11TemplateSelI22BitNotTest_GpuMat_TestEENS0_6Types2IsiEEE8RegisterEPKcSA_SA_i]+0x158): undefined reference to `testing::Message::GetString() const' tmpxft_00007c6e_00000000-4_test_bitwize_op.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI10BitNotTestNS0_11TemplateSelI22BitNotTest_GpuMat_TestEENS0_6Types2IsiEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI10BitNotTestNS0_11TemplateSelI22BitNotTest_GpuMat_TestEENS0_6Types2IsiEEE8RegisterEPKcSA_SA_i]+0x446): undefined reference to `testing::Message::GetString() const' CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_bitwize_op.cu.o: In function `testing::internal::TypeParameterizedTest<BitNotTest, testing::internal::TemplateSel<BitNotTest_GpuMat_Test>, testing::internal::Types4<unsigned char, unsigned short, short, int> >::Register(char const*, char const*, char const*, int)': tmpxft_00007c6e_00000000-4_test_bitwize_op.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI10BitNotTestNS0_11TemplateSelI22BitNotTest_GpuMat_TestEENS0_6Types4IhtsiEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI10BitNotTestNS0_11TemplateSelI22BitNotTest_GpuMat_TestEENS0_6Types4IhtsiEEE8RegisterEPKcSA_SA_i]+0x16b): undefined reference to `testing::Message::GetString() const' tmpxft_00007c6e_00000000-4_test_bitwize_op.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI10BitNotTestNS0_11TemplateSelI22BitNotTest_GpuMat_TestEENS0_6Types4IhtsiEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI10BitNotTestNS0_11TemplateSelI22BitNotTest_GpuMat_TestEENS0_6Types4IhtsiEEE8RegisterEPKcSA_SA_i]+0x471): undefined reference to `testing::Message::GetString() const' CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_bitwize_op.cu.o:tmpxft_00007c6e_00000000-4_test_bitwize_op.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI10BitAndTestNS0_11TemplateSelI29BitAndTest_GpuMat_GpuMat_TestEENS0_6Types2IsiEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI10BitAndTestNS0_11TemplateSelI29BitAndTest_GpuMat_GpuMat_TestEENS0_6Types2IsiEEE8RegisterEPKcSA_SA_i]+0x158): more undefined references to `testing::Message::GetString() const' follow CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_reduction.cu.o: In function `testing::AssertionResult testing::internal::CmpHelperFloatingPointEQ<float>(char const*, char const*, float, float)': tmpxft_00007c8c_00000000-4_test_reduction.cudafe1.cpp:(.text._ZN7testing8internal24CmpHelperFloatingPointEQIfEENS_15AssertionResultEPKcS4_T_S5_[_ZN7testing8internal24CmpHelperFloatingPointEQIfEENS_15AssertionResultEPKcS4_T_S5_]+0x41f): undefined reference to `testing::internal::StringStreamToString(std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >*)' tmpxft_00007c8c_00000000-4_test_reduction.cudafe1.cpp:(.text._ZN7testing8internal24CmpHelperFloatingPointEQIfEENS_15AssertionResultEPKcS4_T_S5_[_ZN7testing8internal24CmpHelperFloatingPointEQIfEENS_15AssertionResultEPKcS4_T_S5_]+0x42e): undefined reference to `testing::internal::StringStreamToString(std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >*)' tmpxft_00007c8c_00000000-4_test_reduction.cudafe1.cpp:(.text._ZN7testing8internal24CmpHelperFloatingPointEQIfEENS_15AssertionResultEPKcS4_T_S5_[_ZN7testing8internal24CmpHelperFloatingPointEQIfEENS_15AssertionResultEPKcS4_T_S5_]+0x44d): undefined reference to `testing::internal::EqFailure(char const*, char const*, std::string const&, std::string const&, bool)' CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_cvt.cu.o: In function `testing::internal::TypeParameterizedTest<CvtTest, testing::internal::TemplateSel<CvtTest_GpuMat_Test>, testing::internal::Types2<int, float> >::Register(char const*, char const*, char const*, int)': tmpxft_00007d9a_00000000-4_test_cvt.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI7CvtTestNS0_11TemplateSelI19CvtTest_GpuMat_TestEENS0_6Types2IifEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI7CvtTestNS0_11TemplateSelI19CvtTest_GpuMat_TestEENS0_6Types2IifEEE8RegisterEPKcSA_SA_i]+0x158): undefined reference to `testing::Message::GetString() const' tmpxft_00007d9a_00000000-4_test_cvt.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI7CvtTestNS0_11TemplateSelI19CvtTest_GpuMat_TestEENS0_6Types2IifEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI7CvtTestNS0_11TemplateSelI19CvtTest_GpuMat_TestEENS0_6Types2IifEEE8RegisterEPKcSA_SA_i]+0x446): undefined reference to `testing::Message::GetString() const' CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_cvt.cu.o: In function `testing::internal::TypeParameterizedTest<CvtTest, testing::internal::TemplateSel<CvtTest_GpuMat_Test>, testing::internal::Types4<unsigned short, short, int, float> >::Register(char const*, char const*, char const*, int)': tmpxft_00007d9a_00000000-4_test_cvt.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI7CvtTestNS0_11TemplateSelI19CvtTest_GpuMat_TestEENS0_6Types4ItsifEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI7CvtTestNS0_11TemplateSelI19CvtTest_GpuMat_TestEENS0_6Types4ItsifEEE8RegisterEPKcSA_SA_i]+0x16b): undefined reference to `testing::Message::GetString() const' tmpxft_00007d9a_00000000-4_test_cvt.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI7CvtTestNS0_11TemplateSelI19CvtTest_GpuMat_TestEENS0_6Types4ItsifEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI7CvtTestNS0_11TemplateSelI19CvtTest_GpuMat_TestEENS0_6Types4ItsifEEE8RegisterEPKcSA_SA_i]+0x471): undefined reference to `testing::Message::GetString() const' CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_cvt.cu.o: In function `testing::internal::TypeParameterizedTest<CvtTest, testing::internal::TemplateSel<CvtTest_GpuMat_Test>, testing::internal::Types5<unsigned char, unsigned short, short, int, float> >::Register(char const*, char const*, char const*, int)': tmpxft_00007d9a_00000000-4_test_cvt.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI7CvtTestNS0_11TemplateSelI19CvtTest_GpuMat_TestEENS0_6Types5IhtsifEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI7CvtTestNS0_11TemplateSelI19CvtTest_GpuMat_TestEENS0_6Types5IhtsifEEE8RegisterEPKcSA_SA_i]+0x151): undefined reference to `testing::Message::GetString() const' CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_lut.cu.o:tmpxft_00007eb7_00000000-4_test_lut.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI7LutTestNS0_11TemplateSelI19LutTest_GpuMat_TestEENS0_6Types1IhEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI7LutTestNS0_11TemplateSelI19LutTest_GpuMat_TestEENS0_6Types1IhEEE8RegisterEPKcSA_SA_i]+0x151): more undefined references to `testing::Message::GetString() const' follow collect2: error: ld returned 1 exit status modules/cudev/test/CMakeFiles/opencv_test_cudev.dir/build.make:5508: recipe for target 'bin/opencv_test_cudev' failed make[2]: *** [bin/opencv_test_cudev] Error 1 CMakeFiles/Makefile2:2053: recipe for target 'modules/cudev/test/CMakeFiles/opencv_test_cudev.dir/all' failed make[1]: *** [modules/cudev/test/CMakeFiles/opencv_test_cudev.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: *** [all] Error 2
I got the same error , trying to build from latest opencv-master with cuda 8.0
and these are the cmake flags i set
sudo cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local/opencv-cuda/ -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON -D ENABLE_FAST_MATH=1 -D CUDA_FAST_MATH=1 -D WITH_CUBLAS=1 -D OPENCV_EXTRA_MODULES_PATH=/home/tinku/cuda/opencv_contrib-master/modules/ -D CUDA_ARCH_BIN=5.2 -D CUDA_ARCH_PTX= -D CUDA_HOST_COMPILER=/usr/bin/gcc-4.9 -D BUILD_opencv_python=OFF ..
And also i have gcc 5.4 but CUDA dosent support 5.3 or above so i did
sudo ln -s /usr/bin/gcc-4.9 /usr/local/cuda-8.0/bin/gcc sudo ln -s /usr/bin/g++-4.9 /usr/local/cuda-8.0/bin/g++`
hence i set the -D CUDA_HOST_COMPILER=/usr/bin/gcc-4.9
same error with opencv 3.1.0, maybe its cuda 8.0 fault
While this is not a fix, the following workaround avoids the issue with cuda 8 rc by not building the tests:
Untick the BUILD_TESTS in the cmake-gui (so that -DBUILD_TESTS=OFF is set)
Build is OK on Ubuntu 16.04 with CUDA 8.0.
@tinnted That works for me, but for future use, if the defauls gcc is still gcc5, will it be any potential problem?
I have to sadly confirm, that this bug occurred during my build of OpenCV 3.4.1 with CUDA 8.0, gcc 6.3.0, (gcc 4.9.2 passed to nvcc 8.0.44) on Debian stretch. Omitting the build of tests seems to work, although is not ideal.
I got the same error with gcc-4.9 and cuda-8.0.44, but when I change the gcc version into 5.4, the problem solved. Maybe the cuda version 8.0.44 is not compatible with gcc-4.9. Hope this will help.
Succesfully compiled after sudo apt-get install libopenblas-dev liblapack-dev libatlas-base-dev
. Ubuntu 16.04, gcc 5.4.0
While this is not a fix, the following workaround avoids the issue with cuda 8 rc by not building the tests:
Untick the BUILD_TESTS in the cmake-gui (so that -DBUILD_TESTS=OFF is set)
this time I get the following error on make install (although build is OK):
modules/core/CMakeFiles/opencv_perf_core.dir/build.make:884: recipe for target ‘bin/opencv_perf_core’ failed
make[2]: *** [bin/opencv_perf_core] Error 1
CMakeFiles/Makefile2:2476: recipe for target ‘modules/core/CMakeFiles/opencv_perf_core.dir/all’ failed
I have successfully finished «make install» process with the following options:
-D BUILD_opencv_cudacodec=OFF
-D BUILD_opencv_xfeatures2d=OFF
my build options are given below (for Ubuntu 18.04 & OpenCV 3.3.1)
cmake -D CMAKE_BUILD_TYPE=RELEASE
-D CMAKE_INSTALL_PREFIX=/usr/local
-D INSTALL_C_EXAMPLES=ON
-D INSTALL_PYTHON_EXAMPLES=ON
-D WITH_TBB=ON
-D WITH_V4L=ON
-D WITH_QT=ON
-D WITH_OPENGL=ON
-D BUILD_opencv_cudacodec=OFF
-D BUILD_opencv_xfeatures2d=OFF
-D BUILD_TESTS=OFF
-D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules
-D BUILD_EXAMPLES=ON ..
This release includes Linux* Base Drivers for Intel(R) Ethernet
Network Connections.
— igb driver supports all 82575-, 82576-, 82580-, I350-, I210-, I211- and
I354-based gigabit network connections.
— igbvf driver supports 82576-based virtual function devices that can only
be activated on kernels that support SR-IOV.
— e1000e driver supports all PCI Express gigabit network connections, except
those that are 82575-, 82576-, 82580-, and I350-, I210-, and I211-based*.
* NOTES:
— The Intel(R) PRO/1000 P Dual Port Server Adapter is supported by
the e1000 driver, not the e1000e driver due to the 82546 part being used
behind a PCI Express bridge.
— Gigabit devices based on the Intel(R) Ethernet Controller X722 are
supported by the i40e driver.
igb-x.x.x.tar.gz
igbvf-x.x.x.tar.gz
e1000e-x.x.x.tar.gz
Due to the continuous development of the Linux kernel, the drivers are updated
more often than the bundled releases. The latest driver can be found on
http://e1000.sourceforge.net (and also on http://downloadcenter.intel.com.)
Upgrading
———
If you currently have the e1000 driver installed and need to install e1000e,
perform the following:
— If your version of e1000 is 7.6.15.5 or less, upgrade to e1000 version
8.x, using the instructions in the e1000 README.
— Install the e1000e driver using the instructions in the Building and
Installation section below.
— Modify /etc/modprobe.conf to point your PCIe devices to use the new e1000e
driver using alias ethX e1000e, or use your distribution’s specific method
for configuring network adapters like RedHat’s setup/system-config-network
or SuSE’s yast2.
[свернуть]
Модераторы: Warderer, Модераторы разделов
-
Bizdelnick
- Модератор
- Сообщения: 20363
- Статус: nulla salus bello
- ОС: Debian GNU/Linux
Re: Ошибка. Make
ormorph писал(а): ↑
05.07.2018 14:36
Собирали под тем же ядром что и топикластер?
Судя по всему, нет, но утверждать не могу: он же не сказал, какая у него версия. У меня 4.9.
Пишите правильно:
в консоли вку́пе (с чем-либо) в общем вообще |
в течение (часа) новичок нюанс по умолчанию |
приемлемо проблема пробовать трафик |
-
ormorph
- Сообщения: 2485
- ОС: Gentoo
Re: Ошибка. Make
Сообщение
ormorph » 05.07.2018 14:51
Bizdelnick писал: ↑
05.07.2018 14:38
В принципе можно спокойно грохнуть ту строчку, где эти макросы используются: sed -i ‘/__DATE__|__TIME__/d’ core/rtw_debug.c
Да это работает:
Shell
$ sed -i '/__DATE__/d' core/rtw_debug.c
Драйвер заработал.
-
rain_99
- Сообщения: 959
- ОС: Debian
Re: Ошибка. Make
Сообщение
rain_99 » 01.08.2018 05:52
ormorph писал(а): ↑
05.07.2018 14:51
Драйвер заработал.
Добрый день.
Вышел я из отпуска.
А можно по простому объяснить, что сделать, чтобы у меня тоже все заработало?
…Все в наших руках…
-
ormorph
- Сообщения: 2485
- ОС: Gentoo
Re: Ошибка. Make
Сообщение
ormorph » 01.08.2018 07:39
rain_99 писал: ↑
01.08.2018 05:52
А можно по простому объяснить, что сделать, чтобы у меня тоже все заработало?
Проще некуда.
Просто распаковываете архив с драйвером, тем что у вас на диске и заходите в каталог с распакованным драйвером:
Shell
$ cd rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51
выполняете:
Shell
$ sed -i '/__DATE__/d' core/rtw_debug.c
и все, дальше можно собирать.
Так как у меня версия компилятора отличалась, то пришлось собрать такой командой:
Если у вас то же самое ядро, все по старому, то должно собраться.
-
ormorph
- Сообщения: 2485
- ОС: Gentoo
Re: Ошибка. Make
Сообщение
ormorph » 01.08.2018 08:45
rain_99
Кстати для вашего адаптера есть драйвер который поддерживает монитор, который позволяет использовать такие программы как aircrack-ng.
Скачивается так:
Под вашим ядром собирается норм. Так же поддерживает достаточно новые ядра, например у меня работает под версией 4.16.
Стандартный драйвер от производителя этого не позволяет.
-
ormorph
- Сообщения: 2485
- ОС: Gentoo
Re: Ошибка. Make
Сообщение
ormorph » 02.08.2018 09:59
Если подключаться с Networkmanager, то следует добавить строчки:
в файл
/etc/NetworkManager/NetworkManager.conf
Иначе никак не хочет работать с wifi.
Такое наблюдается под debian.
-
rain_99
- Сообщения: 959
- ОС: Debian
Re: Ошибка. Make
Сообщение
rain_99 » 14.08.2018 10:28
всем спасибо, все получилось/
А как понять почему он вообще ругался?
И почему изначально сборка не шла?
…Все в наших руках…
-
rain_99
- Сообщения: 959
- ОС: Debian
Re: Ошибка. Make
Сообщение
rain_99 » 15.08.2018 10:08
ormorph писал(а): ↑
01.08.2018 08:45
Так же поддерживает достаточно новые ядра, например у меня работает под версией 4.16.
так поидее — в новом ядре должно быть поддержка данного устройства.
Почему его не прикрутят?
…Все в наших руках…
-
Bizdelnick
- Модератор
- Сообщения: 20363
- Статус: nulla salus bello
- ОС: Debian GNU/Linux
Re: Ошибка. Make
Сообщение
Bizdelnick » 15.08.2018 11:11
rain_99 писал: ↑
15.08.2018 10:08
так поидее — в новом ядре должно быть поддержка данного устройства.
Почему его не прикрутят?
Задайте этот вопрос производителю.
Пишите правильно:
в консоли вку́пе (с чем-либо) в общем вообще |
в течение (часа) новичок нюанс по умолчанию |
приемлемо проблема пробовать трафик |
-
rain_99
- Сообщения: 959
- ОС: Debian
Re: Ошибка. Make
Сообщение
rain_99 » 25.08.2018 19:18
Ну и дубль два.
На ноут купил это же железо.
Код: Выделить всё
root@debian:/home/rain/test/rtl8811aulinux# cd /home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/
root@debian:/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51# make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.9.0-8-amd64/build M=/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51 modules
make[1]: вход в каталог «/usr/src/linux-headers-4.9.0-8-amd64»
CC [M] /home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.o
In file included from /home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/drv_types.h:95:0,
from /home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.c:22:
/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/hal_com.h:412:13: error: ‘file_path’ redeclared as different kind of symbol
extern char file_path[PATH_LENGTH_MAX];
^~~~~~~~~
In file included from /usr/src/linux-headers-4.9.0-8-common/include/linux/seq_file.h:10:0,
from /usr/src/linux-headers-4.9.0-8-common/include/linux/pinctrl/consumer.h:17,
from /usr/src/linux-headers-4.9.0-8-common/include/linux/pinctrl/devinfo.h:21,
from /usr/src/linux-headers-4.9.0-8-common/include/linux/device.h:24,
from /usr/src/linux-headers-4.9.0-8-common/include/linux/dmaengine.h:20,
from /usr/src/linux-headers-4.9.0-8-common/include/linux/netdevice.h:38,
from /home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/osdep_service_linux.h:35,
from /home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/osdep_service.h:41,
from /home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/drv_types.h:32,
from /home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.c:22:
/usr/src/linux-headers-4.9.0-8-common/include/linux/fs.h:2731:14: note: previous declaration of ‘file_path’ was here
extern char *file_path(struct file *, char *, int);
^~~~~~~~~
In file included from /home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/drv_types.h:65:0,
from /home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.c:22:
/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.c: In function ‘btinfo_evt_dump’:
/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
#define _seqdump seq_printf
^
/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/;
^~~~~~~~
/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.c:3293:2: note: in expansion of macro ‘DBG_871X_SEL_NL’
DBG_871X_SEL_NL(sel, "cid:0x%02x, len:%un", info->cid, info->len);
^~~~~~~~~~~~~~~
/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
#define _seqdump seq_printf
^
/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/;
^~~~~~~~
/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.c:3296:3: note: in expansion of macro ‘DBG_871X_SEL_NL’
DBG_871X_SEL_NL(sel, "byte2:%s%s%s%s%s%s%s%sn"
^~~~~~~~~~~~~~~
/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
#define _seqdump seq_printf
^
/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/;
^~~~~~~~
/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.c:3308:3: note: in expansion of macro ‘DBG_871X_SEL_NL’
DBG_871X_SEL_NL(sel, "retry_cnt:%un", info->retry_cnt);
^~~~~~~~~~~~~~~
/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
#define _seqdump seq_printf
^
/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/;
^~~~~~~~
/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.c:3311:3: note: in expansion of macro ‘DBG_871X_SEL_NL’
DBG_871X_SEL_NL(sel, "rssi:%un", info->rssi);
^~~~~~~~~~~~~~~
/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
#define _seqdump seq_printf
^
/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/;
^~~~~~~~
/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.c:3314:3: note: in expansion of macro ‘DBG_871X_SEL_NL’
DBG_871X_SEL_NL(sel, "byte5:%s%sn"
^~~~~~~~~~~~~~~
/usr/src/linux-headers-4.9.0-8-common/scripts/Makefile.build:301: ошибка выполнения рецепта для цели «/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.o»
make[4]: *** [/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.o] Ошибка 1
/usr/src/linux-headers-4.9.0-8-common/Makefile:1526: ошибка выполнения рецепта для цели «_module_/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51»
make[3]: *** [_module_/home/rain/test/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51] Ошибка 2
Makefile:152: ошибка выполнения рецепта для цели «sub-make»
make[2]: *** [sub-make] Ошибка 2
Makefile:8: ошибка выполнения рецепта для цели «all»
make[1]: *** [all] Ошибка 2
make[1]: выход из каталога «/usr/src/linux-headers-4.9.0-8-amd64»
Makefile:1551: ошибка выполнения рецепта для цели «modules»
make: *** [modules] Ошибка 2
…Все в наших руках…
Устанавливаю, значит, драйвера на DWA-171 (беспроводной wifi адаптер).
Устанавливаю по гайду.
На шаге с Make выдаёт ошибку -> https://goo. gl/hnV4Kx
*Сори за снимок с телефона. Уж очень долго делать его по-другому.
Говорят проблема с Linux-headers, но дров к моей версии ядра
Код
(Linux kali 4.14.0-kali3-amd64 #1 SMP Debian 4.14.12-2kali1 (2018-01-08) x86_64 GNU/Linux
я чёт не нахожу.
Памагити
Добавлено через 6 минут
Код
make ARCH=x86_64 CR0SS_COMPILE= -C /lib/modules/4.14.0-kali3-amd64/build M=/root/rtl8812AU_8821AU_linux modules make[1]: *** /lib/modules/4.14.0-kali3-amd64/build: Нет такого файла или каталога. Останов. Makefile:1584: ошибка выполнения рецепта для цели "modules" make: *** [modules] Ошибка 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
Closed
dzmuh97 opened this issue
Jun 25, 2016
· 12 comments
Closed
make error
#6728
dzmuh97 opened this issue
Jun 25, 2016
· 12 comments
Comments
I get an error while compiling.
I ran the cmake with parameters:
-D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local
[ 15%] Building CXX object modules/cudev/test/CMakeFiles/opencv_test_cudev.dir/test_main.cpp.o
Linking CXX executable ../../../bin/opencv_test_cudev
CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_cmp_op.cu.o: In function `std::string testing::internal::StreamableToString<int>(int const&)':
tmpxft_000020b8_00000000-10_test_cmp_op.compute_20.cudafe1.cpp:(.text._ZN7testing8internal18StreamableToStringIiEESsRKT_[_ZN7testing8internal18StreamableToStringIiEESsRKT_]+0x2b): undefined reference to `testing::Message::GetString() const'
CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_lut.cu.o: In function `testing::internal::TypeParameterizedTest<LutTest, testing::internal::TemplateSel<LutTest_GpuMat_Test>, testing::internal::Types1<unsigned char> >::Register(char const*, char const*, char const*, int)':
tmpxft_00002126_00000000-10_test_lut.compute_20.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI7LutTestNS0_11TemplateSelI19LutTest_GpuMat_TestEENS0_6Types1IhEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI7LutTestNS0_11TemplateSelI19LutTest_GpuMat_TestEENS0_6Types1IhEEE8RegisterEPKcSA_SA_i]+0x14b): undefined reference to `testing::Message::GetString() const'
CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_arithm_func.cu.o: In function `testing::internal::TypeParameterizedTest<SqrtTest, testing::internal::TemplateSel<SqrtTest_GpuMat_Test>, testing::internal::Types1<float> >::Register(char const*, char const*, char const*, int)':
tmpxft_00002203_00000000-10_test_arithm_func.compute_20.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI8SqrtTestNS0_11TemplateSelI20SqrtTest_GpuMat_TestEENS0_6Types1IfEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI8SqrtTestNS0_11TemplateSelI20SqrtTest_GpuMat_TestEENS0_6Types1IfEEE8RegisterEPKcSA_SA_i]+0x14b): undefined reference to `testing::Message::GetString() const'
CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_arithm_func.cu.o: In function `testing::internal::TypeParameterizedTest<SqrtTest, testing::internal::TemplateSel<SqrtTest_Expr_Test>, testing::internal::Types1<float> >::Register(char const*, char const*, char const*, int)':
tmpxft_00002203_00000000-10_test_arithm_func.compute_20.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI8SqrtTestNS0_11TemplateSelI18SqrtTest_Expr_TestEENS0_6Types1IfEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI8SqrtTestNS0_11TemplateSelI18SqrtTest_Expr_TestEENS0_6Types1IfEEE8RegisterEPKcSA_SA_i]+0x14b): undefined reference to `testing::Message::GetString() const'
CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_arithm_func.cu.o: In function `testing::internal::TypeParameterizedTest<MagnitudeTest, testing::internal::TemplateSel<MagnitudeTest_Accuracy_Test>, testing::internal::Types1<float> >::Register(char const*, char const*, char const*, int)':
tmpxft_00002203_00000000-10_test_arithm_func.compute_20.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI13MagnitudeTestNS0_11TemplateSelI27MagnitudeTest_Accuracy_TestEENS0_6Types1IfEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI13MagnitudeTestNS0_11TemplateSelI27MagnitudeTest_Accuracy_TestEENS0_6Types1IfEEE8RegisterEPKcSA_SA_i]+0x14b): undefined reference to `testing::Message::GetString() const'
CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_arithm_func.cu.o:tmpxft_00002203_00000000-10_test_arithm_func.compute_20.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI7PowTestNS0_11TemplateSelI21PowTest_Accuracy_TestEENS0_6Types1IfEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI7PowTestNS0_11TemplateSelI21PowTest_Accuracy_TestEENS0_6Types1IfEEE8RegisterEPKcSA_SA_i]+0x14b): more undefined references to `testing::Message::GetString() const' follow
CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_warp.cu.o: In function `testing::AssertionResult testing::internal::CmpHelperEQ<int, int>(char const*, char const*, int const&, int const&)':
tmpxft_000023bc_00000000-10_test_warp.compute_20.cudafe1.cpp:(.text._ZN7testing8internal11CmpHelperEQIiiEENS_15AssertionResultEPKcS4_RKT_RKT0_[_ZN7testing8internal11CmpHelperEQIiiEENS_15AssertionResultEPKcS4_RKT_RKT0_]+0x5c): undefined reference to `testing::internal::EqFailure(char const*, char const*, std::string const&, std::string const&, bool)'
CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_warp.cu.o: In function `testing::AssertionResult& testing::AssertionResult::operator<< <char [12]>(char const (&) [12])':
tmpxft_000023bc_00000000-10_test_warp.compute_20.cudafe1.cpp:(.text._ZN7testing15AssertionResultlsIA12_cEERS0_RKT_[_ZN7testing15AssertionResultlsIA12_cEERS0_RKT_]+0x66): undefined reference to `testing::Message::GetString() const'
CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_warp.cu.o: In function `testing::AssertionResult& testing::AssertionResult::operator<< <char const*>(char const* const&)':
tmpxft_000023bc_00000000-10_test_warp.compute_20.cudafe1.cpp:(.text._ZN7testing15AssertionResultlsIPKcEERS0_RKT_[_ZN7testing15AssertionResultlsIPKcEERS0_RKT_]+0x67): undefined reference to `testing::Message::GetString() const'
CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_warp.cu.o: In function `testing::AssertionResult& testing::AssertionResult::operator<< <char [7]>(char const (&) [7])':
tmpxft_000023bc_00000000-10_test_warp.compute_20.cudafe1.cpp:(.text._ZN7testing15AssertionResultlsIA7_cEERS0_RKT_[_ZN7testing15AssertionResultlsIA7_cEERS0_RKT_]+0x66): undefined reference to `testing::Message::GetString() const'
CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_warp.cu.o: In function `testing::AssertionResult& testing::AssertionResult::operator<< <std::string>(std::string const&)':
tmpxft_000023bc_00000000-10_test_warp.compute_20.cudafe1.cpp:(.text._ZN7testing15AssertionResultlsISsEERS0_RKT_[_ZN7testing15AssertionResultlsISsEERS0_RKT_]+0x54): undefined reference to `testing::Message::GetString() const'
CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_warp.cu.o: In function `testing::AssertionResult& testing::AssertionResult::operator<< <char [5]>(char const (&) [5])':
tmpxft_000023bc_00000000-10_test_warp.compute_20.cudafe1.cpp:(.text._ZN7testing15AssertionResultlsIA5_cEERS0_RKT_[_ZN7testing15AssertionResultlsIA5_cEERS0_RKT_]+0x66): undefined reference to `testing::Message::GetString() const'
CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_warp.cu.o: In function `testing::AssertionResult testing::internal::CmpHelperEQ<cv::Size_<int>, cv::Size_<int> >(char const*, char const*, cv::Size_<int> const&, cv::Size_<int> const&)':
tmpxft_000023bc_00000000-10_test_warp.compute_20.cudafe1.cpp:(.text._ZN7testing8internal11CmpHelperEQIN2cv5Size_IiEES4_EENS_15AssertionResultEPKcS7_RKT_RKT0_[_ZN7testing8internal11CmpHelperEQIN2cv5Size_IiEES4_EENS_15AssertionResultEPKcS7_RKT_RKT0_]+0x5c): undefined reference to `testing::internal::EqFailure(char const*, char const*, std::string const&, std::string const&, bool)'
CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_bitwize_op.cu.o: In function `testing::internal::TypeParameterizedTest<LShiftTest, testing::internal::TemplateSel<LShiftTest_Accuracy_Test>, testing::internal::Types1<int> >::Register(char const*, char const*, char const*, int)':
tmpxft_0000242a_00000000-10_test_bitwize_op.compute_20.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI10LShiftTestNS0_11TemplateSelI24LShiftTest_Accuracy_TestEENS0_6Types1IiEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI10LShiftTestNS0_11TemplateSelI24LShiftTest_Accuracy_TestEENS0_6Types1IiEEE8RegisterEPKcSA_SA_i]+0x14b): undefined reference to `testing::Message::GetString() const'
CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_bitwize_op.cu.o: In function `testing::internal::TypeParameterizedTest<BitNotTest, testing::internal::TemplateSel<BitNotTest_GpuMat_Test>, testing::internal::Types1<int> >::Register(char const*, char const*, char const*, int)':
tmpxft_0000242a_00000000-10_test_bitwize_op.compute_20.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI10BitNotTestNS0_11TemplateSelI22BitNotTest_GpuMat_TestEENS0_6Types1IiEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI10BitNotTestNS0_11TemplateSelI22BitNotTest_GpuMat_TestEENS0_6Types1IiEEE8RegisterEPKcSA_SA_i]+0x14b): undefined reference to `testing::Message::GetString() const'
CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_bitwize_op.cu.o: In function `testing::internal::TypeParameterizedTest<BitNotTest, testing::internal::TemplateSel<BitNotTest_GpuMat_Test>, testing::internal::Types2<short, int> >::Register(char const*, char const*, char const*, int)':
tmpxft_0000242a_00000000-10_test_bitwize_op.compute_20.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI10BitNotTestNS0_11TemplateSelI22BitNotTest_GpuMat_TestEENS0_6Types2IsiEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI10BitNotTestNS0_11TemplateSelI22BitNotTest_GpuMat_TestEENS0_6Types2IsiEEE8RegisterEPKcSA_SA_i]+0x140): undefined reference to `testing::Message::GetString() const'
CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_bitwize_op.cu.o: In function `testing::internal::TypeParameterizedTest<BitNotTest, testing::internal::TemplateSel<BitNotTest_GpuMat_Test>, testing::internal::Types3<unsigned short, short, int> >::Register(char const*, char const*, char const*, int)':
tmpxft_0000242a_00000000-10_test_bitwize_op.compute_20.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI10BitNotTestNS0_11TemplateSelI22BitNotTest_GpuMat_TestEENS0_6Types3ItsiEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI10BitNotTestNS0_11TemplateSelI22BitNotTest_GpuMat_TestEENS0_6Types3ItsiEEE8RegisterEPKcSA_SA_i]+0xe6): undefined reference to `testing::Message::GetString() const'
CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_bitwize_op.cu.o: In function `testing::internal::TypeParameterizedTest<BitNotTest, testing::internal::TemplateSel<BitNotTest_GpuMat_Test>, testing::internal::Types4<unsigned char, unsigned short, short, int> >::Register(char const*, char const*, char const*, int)':
tmpxft_0000242a_00000000-10_test_bitwize_op.compute_20.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI10BitNotTestNS0_11TemplateSelI22BitNotTest_GpuMat_TestEENS0_6Types4IhtsiEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI10BitNotTestNS0_11TemplateSelI22BitNotTest_GpuMat_TestEENS0_6Types4IhtsiEEE8RegisterEPKcSA_SA_i]+0x140): undefined reference to `testing::Message::GetString() const'
CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_bitwize_op.cu.o:tmpxft_0000242a_00000000-10_test_bitwize_op.compute_20.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI10BitAndTestNS0_11TemplateSelI29BitAndTest_GpuMat_GpuMat_TestEENS0_6Types1IiEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI10BitAndTestNS0_11TemplateSelI29BitAndTest_GpuMat_GpuMat_TestEENS0_6Types1IiEEE8RegisterEPKcSA_SA_i]+0x14b): more undefined references to `testing::Message::GetString() const' follow
CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_reduction.cu.o: In function `testing::AssertionResult testing::internal::CmpHelperFloatingPointEQ<float>(char const*, char const*, float, float)':
tmpxft_00001f67_00000000-10_test_reduction.compute_20.cudafe1.cpp:(.text._ZN7testing8internal24CmpHelperFloatingPointEQIfEENS_15AssertionResultEPKcS4_T_S5_[_ZN7testing8internal24CmpHelperFloatingPointEQIfEENS_15AssertionResultEPKcS4_T_S5_]+0x12a): undefined reference to `testing::internal::StringStreamToString(std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >*)'
tmpxft_00001f67_00000000-10_test_reduction.compute_20.cudafe1.cpp:(.text._ZN7testing8internal24CmpHelperFloatingPointEQIfEENS_15AssertionResultEPKcS4_T_S5_[_ZN7testing8internal24CmpHelperFloatingPointEQIfEENS_15AssertionResultEPKcS4_T_S5_]+0x139): undefined reference to `testing::internal::StringStreamToString(std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >*)'
tmpxft_00001f67_00000000-10_test_reduction.compute_20.cudafe1.cpp:(.text._ZN7testing8internal24CmpHelperFloatingPointEQIfEENS_15AssertionResultEPKcS4_T_S5_[_ZN7testing8internal24CmpHelperFloatingPointEQIfEENS_15AssertionResultEPKcS4_T_S5_]+0x154): undefined reference to `testing::internal::EqFailure(char const*, char const*, std::string const&, std::string const&, bool)'
collect2: error: ld returned 1 exit status
modules/cudev/test/CMakeFiles/opencv_test_cudev.dir/build.make:233: ошибка выполнения рецепта для цели «bin/opencv_test_cudev»
make[2]: *** [bin/opencv_test_cudev] Ошибка 1
CMakeFiles/Makefile2:1161: ошибка выполнения рецепта для цели «modules/cudev/test/CMakeFiles/opencv_test_cudev.dir/all»
make[1]: *** [modules/cudev/test/CMakeFiles/opencv_test_cudev.dir/all] Ошибка 2
Makefile:146: ошибка выполнения рецепта для цели «all»
make: *** [all] Ошибка 2
System: Ubuntu 15.10 x86_64
Kernel: 4.2.0-36-generic DE: XFCE Session: xfce
Processor: Intel(R) Pentium(R) CPU G630 @ 2.70GHz
Video: 01:00.0 VGA compatible controller: NVIDIA Corporation GF108 [GeForce GT 430] (rev a1) Subsystem: Gigabyte Technology Co., Ltd Device 3534 Kernel driver in use: nvidia
gcc version 4.7.4 (Ubuntu/Linaro 4.7.4-3ubuntu3)
Keep in mind that 95% of the OpenCV community is not Russian and thus cannot read your errors. Might be better to translate to English!
Can’t reproduce problem on Ubuntu 14.04 + CUDA 7.5.
@dzmuh97 Try to build from scratch (clean build directory). Are you able to make successful build without CUDA support (-DWITH_CUDA=OFF)?
tinku@tinku-P65-P67SE:~/cuda/opencv-master/release$ sudo make
-- Detected version of GNU GCC: 54 (504)
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found suitable version "1.2.8", minimum required is "1.2.3")
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8")
-- Found OpenEXR: /usr/lib/x86_64-linux-gnu/libIlmImf.so
CMake Warning at cmake/OpenCVFindLibsGUI.cmake:18 (find_package):
By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Qt5Core", but
CMake did not find one.
Could not find a package configuration file provided by "Qt5Core" with any
of the following names:
Qt5CoreConfig.cmake
qt5core-config.cmake
Add the installation prefix of "Qt5Core" to CMAKE_PREFIX_PATH or set
"Qt5Core_DIR" to a directory containing one of the above files. If
"Qt5Core" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
CMakeLists.txt:550 (include)
CMake Warning at cmake/OpenCVFindLibsGUI.cmake:19 (find_package):
By not providing "FindQt5Gui.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Qt5Gui", but
CMake did not find one.
Could not find a package configuration file provided by "Qt5Gui" with any
of the following names:
Qt5GuiConfig.cmake
qt5gui-config.cmake
Add the installation prefix of "Qt5Gui" to CMAKE_PREFIX_PATH or set
"Qt5Gui_DIR" to a directory containing one of the above files. If "Qt5Gui"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
CMakeLists.txt:550 (include)
CMake Warning at cmake/OpenCVFindLibsGUI.cmake:20 (find_package):
By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"Qt5Widgets", but CMake did not find one.
Could not find a package configuration file provided by "Qt5Widgets" with
any of the following names:
Qt5WidgetsConfig.cmake
qt5widgets-config.cmake
Add the installation prefix of "Qt5Widgets" to CMAKE_PREFIX_PATH or set
"Qt5Widgets_DIR" to a directory containing one of the above files. If
"Qt5Widgets" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
CMakeLists.txt:550 (include)
CMake Warning at cmake/OpenCVFindLibsGUI.cmake:21 (find_package):
By not providing "FindQt5Test.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Qt5Test", but
CMake did not find one.
Could not find a package configuration file provided by "Qt5Test" with any
of the following names:
Qt5TestConfig.cmake
qt5test-config.cmake
Add the installation prefix of "Qt5Test" to CMAKE_PREFIX_PATH or set
"Qt5Test_DIR" to a directory containing one of the above files. If
"Qt5Test" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
CMakeLists.txt:550 (include)
CMake Warning at cmake/OpenCVFindLibsGUI.cmake:22 (find_package):
By not providing "FindQt5Concurrent.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"Qt5Concurrent", but CMake did not find one.
Could not find a package configuration file provided by "Qt5Concurrent"
with any of the following names:
Qt5ConcurrentConfig.cmake
qt5concurrent-config.cmake
Add the installation prefix of "Qt5Concurrent" to CMAKE_PREFIX_PATH or set
"Qt5Concurrent_DIR" to a directory containing one of the above files. If
"Qt5Concurrent" provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
CMakeLists.txt:550 (include)
-- Looking for linux/videodev.h
-- Looking for linux/videodev.h - not found
-- Looking for linux/videodev2.h
-- Looking for linux/videodev2.h - found
-- Looking for sys/videoio.h
-- Looking for sys/videoio.h - not found
-- Checking for module 'libavresample'
-- No package 'libavresample' found
-- Looking for libavformat/avformat.h
-- Looking for libavformat/avformat.h - found
-- Looking for ffmpeg/avformat.h
-- Looking for ffmpeg/avformat.h - not found
-- Checking for module 'libgphoto2'
-- No package 'libgphoto2' found
-- A library with BLAS API found.
-- A library with LAPACK API found.
-- found IPP (ICV version): 9.0.1 [9.0.1]
-- at: /home/tinku/cuda/opencv-master/3rdparty/ippicv/unpack/ippicv_lnx
-- CUDA detected: 8.0
-- CUDA NVCC target flags: -gencode;arch=compute_52,code=sm_52;-D_FORCE_INLINES
-- To enable PlantUML support, set PLANTUML_JAR environment variable or pass -DPLANTUML_JAR=<filepath> option to cmake
-- Could NOT find Matlab (missing: MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN)
-- Found VTK ver. 7.0.0 (usefile: /usr/local/lib/cmake/vtk-7.0/UseVTK.cmake)
-- Caffe: NO
-- Protobuf: NO
-- Glog: NO
-- HDF5: YES
-- Module opencv_sfm disabled because the following dependencies are not found: Glog/Gflags
-- HDF5: YES
-- Could NOT find Protobuf (missing: PROTOBUF_LIBRARY PROTOBUF_INCLUDE_DIR)
-- Build libprotobuf from sources:
-- libprotobuf not found into system
-- The protocol buffer compiler not found
-- Tesseract: NO
--
-- General configuration for OpenCV 3.1.0-dev =====================================
-- Version control: unknown
--
-- Extra modules:
-- Location (extra): /home/tinku/cuda/opencv_contrib-master/modules
-- Version control (extra): unknown
--
-- Platform:
-- Timestamp: 2016-07-14T13:32:06Z
-- Host: Linux 4.4.0-28-generic x86_64
-- CMake: 3.5.1
-- CMake generator: Unix Makefiles
-- CMake build tool: /usr/bin/make
-- Configuration: RELEASE
--
-- C/C++:
-- Built as dynamic libs?: YES
-- C++ Compiler: /usr/bin/c++ (ver 5.4.0)
-- C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffast-math -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG
-- C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffast-math -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG
-- C Compiler: /usr/bin/cc
-- C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffast-math -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG
-- C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffast-math -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG
-- Linker flags (Release):
-- Linker flags (Debug):
-- Precompiled headers: YES
-- Extra dependencies: /usr/lib/x86_64-linux-gnu/libQtOpenGL.so /usr/lib/x86_64-linux-gnu/libQtGui.so /usr/lib/x86_64-linux-gnu/libQtTest.so /usr/lib/x86_64-linux-gnu/libQtCore.so /usr/lib/x86_64-linux-gnu/libpng.so /usr/lib/x86_64-linux-gnu/libtiff.so /usr/lib/x86_64-linux-gnu/libjasper.so /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/x86_64-linux-gnu/libImath.so /usr/lib/x86_64-linux-gnu/libIlmImf.so /usr/lib/x86_64-linux-gnu/libIex.so /usr/lib/x86_64-linux-gnu/libHalf.so /usr/lib/x86_64-linux-gnu/libIlmThread.so gstvideo-1.0 gstapp-1.0 gstbase-1.0 gstriff-1.0 gstpbutils-1.0 gstreamer-1.0 gobject-2.0 glib-2.0 dc1394 avcodec-ffmpeg avformat-ffmpeg avutil-ffmpeg swscale-ffmpeg /usr/lib/x86_64-linux-gnu/libbz2.so /usr/lib/x86_64-linux-gnu/hdf5/serial/lib/libhdf5.so /usr/lib/x86_64-linux-gnu/libpthread.so /usr/lib/x86_64-linux-gnu/libsz.so /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/x86_64-linux-gnu/libdl.so /usr/lib/x86_64-linux-gnu/libm.so vtkRenderingOpenGL2 vtkCommonExecutionModel vtkCommonDataModel vtkCommonMath vtkCommonCore vtksys vtkCommonMisc vtkCommonSystem vtkCommonTransforms vtkImagingHybrid vtkIOImage vtkDICOMParser vtkIOCore vtkzlib vtkmetaio vtkjpeg vtkpng vtktiff vtkImagingCore vtkRenderingCore vtkCommonColor vtkFiltersExtraction vtkFiltersCore vtkFiltersGeneral vtkCommonComputationalGeometry vtkFiltersStatistics vtkImagingFourier vtkalglib vtkFiltersGeometry vtkFiltersSources vtkglew vtkInteractionStyle vtkRenderingLOD vtkFiltersModeling vtkIOPLY vtkIOGeometry vtkFiltersTexture vtkRenderingFreeType vtkfreetype vtkIOExport vtkRenderingAnnotation vtkImagingColor vtkRenderingContext2D vtkRenderingLabel dl m pthread rt /usr/lib/x86_64-linux-gnu/libGLU.so /usr/lib/x86_64-linux-gnu/libGL.so tbb atomic cudart nppc nppi npps cublas cufft -L/usr/local/cuda/lib64
-- 3rdparty dependencies: libwebp libprotobuf
--
-- OpenCV modules:
-- To be built: cudev core cudaarithm flann hdf imgproc ml reg surface_matching video viz cudabgsegm cudafilters cudaimgproc cudawarping dnn fuzzy imgcodecs photo shape videoio cudacodec highgui objdetect plot ts xobjdetect xphoto bgsegm bioinspired dpm face features2d line_descriptor saliency text calib3d ccalib cudafeatures2d cudalegacy cudaobjdetect cudaoptflow cudastereo datasets rgbd stereo structured_light superres tracking videostab xfeatures2d ximgproc aruco optflow stitching python2
-- Disabled: world contrib_world
-- Disabled by dependency: -
-- Unavailable: java python3 cvv matlab sfm
--
-- GUI:
-- QT 4.x: YES (ver 4.8.7 EDITION = OpenSource)
-- QT OpenGL support: YES (/usr/lib/x86_64-linux-gnu/libQtOpenGL.so)
-- OpenGL support: YES (/usr/lib/x86_64-linux-gnu/libGLU.so /usr/lib/x86_64-linux-gnu/libGL.so)
-- VTK support: YES (ver 7.0.0)
--
-- Media I/O:
-- ZLib: /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.8)
-- JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (ver )
-- WEBP: build (ver 0.3.1)
-- PNG: /usr/lib/x86_64-linux-gnu/libpng.so (ver 1.2.54)
-- TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (ver 42 - 4.0.6)
-- JPEG 2000: /usr/lib/x86_64-linux-gnu/libjasper.so (ver 1.900.1)
-- OpenEXR: /usr/lib/x86_64-linux-gnu/libImath.so /usr/lib/x86_64-linux-gnu/libIlmImf.so /usr/lib/x86_64-linux-gnu/libIex.so /usr/lib/x86_64-linux-gnu/libHalf.so /usr/lib/x86_64-linux-gnu/libIlmThread.so (ver 2.2.0)
-- GDAL: NO
--
-- Video I/O:
-- DC1394 1.x: NO
-- DC1394 2.x: YES (ver 2.2.4)
-- FFMPEG: YES
-- codec: YES (ver 56.60.100)
-- format: YES (ver 56.40.101)
-- util: YES (ver 54.31.100)
-- swscale: YES (ver 3.1.101)
-- resample: NO
-- gentoo-style: YES
-- GStreamer:
-- base: YES (ver 1.8.1)
-- video: YES (ver 1.8.1)
-- app: YES (ver 1.8.1)
-- riff: YES (ver 1.8.1)
-- pbutils: YES (ver 1.8.1)
-- OpenNI: NO
-- OpenNI PrimeSensor Modules: NO
-- OpenNI2: NO
-- PvAPI: NO
-- GigEVisionSDK: NO
-- UniCap: NO
-- UniCap ucil: NO
-- V4L/V4L2: NO/YES
-- XIMEA: NO
-- Xine: NO
-- gPhoto2: NO
--
-- Parallel framework: TBB (ver 4.4 interface 9002)
--
-- Other third-party libraries:
-- Use IPP: 9.0.1 [9.0.1]
-- at: /home/tinku/cuda/opencv-master/3rdparty/ippicv/unpack/ippicv_lnx
-- Use IPP Async: NO
-- Use VA: NO
-- Use Intel VA-API/OpenCL: NO
-- Use Lapack: NO
-- Use Eigen: YES (ver 3.2.8)
-- Use Cuda: YES (ver 8.0)
-- Use OpenCL: YES
-- Use custom HAL: NO
--
-- NVIDIA CUDA
-- Use CUFFT: YES
-- Use CUBLAS: YES
-- USE NVCUVID: NO
-- NVIDIA GPU arch: 52
-- NVIDIA PTX archs:
-- Use fast math: YES
--
-- OpenCL: <Dynamic loading of OpenCL library>
-- Include path: /home/tinku/cuda/opencv-master/3rdparty/include/opencl/1.2
-- Use AMDFFT: NO
-- Use AMDBLAS: NO
--
-- Python 2:
-- Interpreter: /usr/bin/python2.7 (ver 2.7.11)
-- Libraries: /usr/lib/x86_64-linux-gnu/libpython2.7.so (ver 2.7.11+)
-- numpy: /usr/lib/python2.7/dist-packages/numpy/core/include (ver 1.11.0)
-- packages path: lib/python2.7/dist-packages
--
-- Python 3:
-- Interpreter: /usr/bin/python3 (ver 3.5.1)
--
-- Python (for build): /usr/bin/python2.7
--
-- Java:
-- ant: NO
-- JNI: /usr/lib/jvm/default-java/include /usr/lib/jvm/default-java/include/linux /usr/lib/jvm/default-java/include
-- Java wrappers: NO
-- Java tests: NO
--
-- Matlab: Matlab not found or implicitly disabled
--
-- Documentation:
-- Doxygen: /usr/bin/doxygen (ver 1.8.11)
-- PlantUML: NO
--
-- Tests and samples:
-- Tests: YES
-- Performance tests: YES
-- C/C++ Examples: YES
--
-- Install path: /usr/local/opencv-cuda
--
-- cvconfig.h is in: /home/tinku/cuda/opencv-master/release
-- -----------------------------------------------------------------
--
-- Configuring done
-- Generating done
-- Build files have been written to: /home/tinku/cuda/opencv-master/release
[ 1%] Built target libwebp
[ 1%] Built target opencv_cudev
[ 1%] Built target opencv_videoio_pch_dephelp
[ 1%] Built target pch_Generate_opencv_videoio
[ 1%] Built target opencv_core_pch_dephelp
[ 1%] Built target pch_Generate_opencv_core
Scanning dependencies of target opencv_core
[ 1%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/system.cpp.o
[ 1%] Linking CXX shared library ../../lib/libopencv_core.so
[ 2%] Built target opencv_core
[ 2%] Built target opencv_imgproc_pch_dephelp
[ 2%] Built target pch_Generate_opencv_imgproc
[ 2%] Linking CXX shared library ../../lib/libopencv_imgproc.so
[ 4%] Built target opencv_imgproc
[ 4%] Built target opencv_imgcodecs_pch_dephelp
[ 4%] Built target pch_Generate_opencv_imgcodecs
[ 4%] Linking CXX shared library ../../lib/libopencv_imgcodecs.so
[ 6%] Built target opencv_imgcodecs
[ 6%] Linking CXX shared library ../../lib/libopencv_videoio.so
[ 6%] Built target opencv_videoio
[ 6%] Built target opencv_highgui_pch_dephelp
[ 6%] Built target pch_Generate_opencv_highgui
[ 6%] Linking CXX shared library ../../lib/libopencv_highgui.so
[ 6%] Built target opencv_highgui
[ 6%] Built target opencv_ts_pch_dephelp
[ 6%] Built target pch_Generate_opencv_ts
[ 6%] Built target opencv_ts
[ 6%] Linking CXX executable ../../../bin/opencv_test_cudev
CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_arithm_op.cu.o: In function `std::string testing::internal::StreamableToString<int>(int const&)':
tmpxft_00007b3c_00000000-4_test_arithm_op.cudafe1.cpp:(.text._ZN7testing8internal18StreamableToStringIiEESsRKT_[_ZN7testing8internal18StreamableToStringIiEESsRKT_]+0x3b): undefined reference to `testing::Message::GetString() const'
CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_warp.cu.o: In function `testing::AssertionResult testing::internal::CmpHelperEQ<int, int>(char const*, char const*, int const&, int const&)':
tmpxft_00007b4b_00000000-4_test_warp.cudafe1.cpp:(.text._ZN7testing8internal11CmpHelperEQIiiEENS_15AssertionResultEPKcS4_RKT_RKT0_[_ZN7testing8internal11CmpHelperEQIiiEENS_15AssertionResultEPKcS4_RKT_RKT0_]+0x62): undefined reference to `testing::internal::EqFailure(char const*, char const*, std::string const&, std::string const&, bool)'
CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_warp.cu.o: In function `testing::AssertionResult testing::internal::CmpHelperLE<double, double>(char const*, char const*, double const&, double const&)':
tmpxft_00007b4b_00000000-4_test_warp.cudafe1.cpp:(.text._ZN7testing8internal11CmpHelperLEIddEENS_15AssertionResultEPKcS4_RKT_RKT0_[_ZN7testing8internal11CmpHelperLEIddEENS_15AssertionResultEPKcS4_RKT_RKT0_]+0xa2): undefined reference to `testing::Message::GetString() const'
tmpxft_00007b4b_00000000-4_test_warp.cudafe1.cpp:(.text._ZN7testing8internal11CmpHelperLEIddEENS_15AssertionResultEPKcS4_RKT_RKT0_[_ZN7testing8internal11CmpHelperLEIddEENS_15AssertionResultEPKcS4_RKT_RKT0_]+0x14b): undefined reference to `testing::Message::GetString() const'
tmpxft_00007b4b_00000000-4_test_warp.cudafe1.cpp:(.text._ZN7testing8internal11CmpHelperLEIddEENS_15AssertionResultEPKcS4_RKT_RKT0_[_ZN7testing8internal11CmpHelperLEIddEENS_15AssertionResultEPKcS4_RKT_RKT0_]+0x1ea): undefined reference to `testing::Message::GetString() const'
tmpxft_00007b4b_00000000-4_test_warp.cudafe1.cpp:(.text._ZN7testing8internal11CmpHelperLEIddEENS_15AssertionResultEPKcS4_RKT_RKT0_[_ZN7testing8internal11CmpHelperLEIddEENS_15AssertionResultEPKcS4_RKT_RKT0_]+0x2a5): undefined reference to `testing::Message::GetString() const'
tmpxft_00007b4b_00000000-4_test_warp.cudafe1.cpp:(.text._ZN7testing8internal11CmpHelperLEIddEENS_15AssertionResultEPKcS4_RKT_RKT0_[_ZN7testing8internal11CmpHelperLEIddEENS_15AssertionResultEPKcS4_RKT_RKT0_]+0x359): undefined reference to `testing::Message::GetString() const'
CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_warp.cu.o:tmpxft_00007b4b_00000000-4_test_warp.cudafe1.cpp:(.text._ZN7testing8internal11CmpHelperLEIddEENS_15AssertionResultEPKcS4_RKT_RKT0_[_ZN7testing8internal11CmpHelperLEIddEENS_15AssertionResultEPKcS4_RKT_RKT0_]+0x40c): more undefined references to `testing::Message::GetString() const' follow
CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_warp.cu.o: In function `testing::AssertionResult testing::internal::CmpHelperEQ<cv::Size_<int>, cv::Size_<int> >(char const*, char const*, cv::Size_<int> const&, cv::Size_<int> const&)':
tmpxft_00007b4b_00000000-4_test_warp.cudafe1.cpp:(.text._ZN7testing8internal11CmpHelperEQIN2cv5Size_IiEES4_EENS_15AssertionResultEPKcS7_RKT_RKT0_[_ZN7testing8internal11CmpHelperEQIN2cv5Size_IiEES4_EENS_15AssertionResultEPKcS7_RKT_RKT0_]+0x62): undefined reference to `testing::internal::EqFailure(char const*, char const*, std::string const&, std::string const&, bool)'
CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_bitwize_op.cu.o: In function `testing::internal::TypeParameterizedTest<LShiftTest, testing::internal::TemplateSel<LShiftTest_Accuracy_Test>, testing::internal::Types1<int> >::Register(char const*, char const*, char const*, int)':
tmpxft_00007c6e_00000000-4_test_bitwize_op.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI10LShiftTestNS0_11TemplateSelI24LShiftTest_Accuracy_TestEENS0_6Types1IiEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI10LShiftTestNS0_11TemplateSelI24LShiftTest_Accuracy_TestEENS0_6Types1IiEEE8RegisterEPKcSA_SA_i]+0x151): undefined reference to `testing::Message::GetString() const'
CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_bitwize_op.cu.o: In function `testing::internal::TypeParameterizedTest<BitNotTest, testing::internal::TemplateSel<BitNotTest_GpuMat_Test>, testing::internal::Types2<short, int> >::Register(char const*, char const*, char const*, int)':
tmpxft_00007c6e_00000000-4_test_bitwize_op.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI10BitNotTestNS0_11TemplateSelI22BitNotTest_GpuMat_TestEENS0_6Types2IsiEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI10BitNotTestNS0_11TemplateSelI22BitNotTest_GpuMat_TestEENS0_6Types2IsiEEE8RegisterEPKcSA_SA_i]+0x158): undefined reference to `testing::Message::GetString() const'
tmpxft_00007c6e_00000000-4_test_bitwize_op.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI10BitNotTestNS0_11TemplateSelI22BitNotTest_GpuMat_TestEENS0_6Types2IsiEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI10BitNotTestNS0_11TemplateSelI22BitNotTest_GpuMat_TestEENS0_6Types2IsiEEE8RegisterEPKcSA_SA_i]+0x446): undefined reference to `testing::Message::GetString() const'
CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_bitwize_op.cu.o: In function `testing::internal::TypeParameterizedTest<BitNotTest, testing::internal::TemplateSel<BitNotTest_GpuMat_Test>, testing::internal::Types4<unsigned char, unsigned short, short, int> >::Register(char const*, char const*, char const*, int)':
tmpxft_00007c6e_00000000-4_test_bitwize_op.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI10BitNotTestNS0_11TemplateSelI22BitNotTest_GpuMat_TestEENS0_6Types4IhtsiEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI10BitNotTestNS0_11TemplateSelI22BitNotTest_GpuMat_TestEENS0_6Types4IhtsiEEE8RegisterEPKcSA_SA_i]+0x16b): undefined reference to `testing::Message::GetString() const'
tmpxft_00007c6e_00000000-4_test_bitwize_op.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI10BitNotTestNS0_11TemplateSelI22BitNotTest_GpuMat_TestEENS0_6Types4IhtsiEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI10BitNotTestNS0_11TemplateSelI22BitNotTest_GpuMat_TestEENS0_6Types4IhtsiEEE8RegisterEPKcSA_SA_i]+0x471): undefined reference to `testing::Message::GetString() const'
CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_bitwize_op.cu.o:tmpxft_00007c6e_00000000-4_test_bitwize_op.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI10BitAndTestNS0_11TemplateSelI29BitAndTest_GpuMat_GpuMat_TestEENS0_6Types2IsiEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI10BitAndTestNS0_11TemplateSelI29BitAndTest_GpuMat_GpuMat_TestEENS0_6Types2IsiEEE8RegisterEPKcSA_SA_i]+0x158): more undefined references to `testing::Message::GetString() const' follow
CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_reduction.cu.o: In function `testing::AssertionResult testing::internal::CmpHelperFloatingPointEQ<float>(char const*, char const*, float, float)':
tmpxft_00007c8c_00000000-4_test_reduction.cudafe1.cpp:(.text._ZN7testing8internal24CmpHelperFloatingPointEQIfEENS_15AssertionResultEPKcS4_T_S5_[_ZN7testing8internal24CmpHelperFloatingPointEQIfEENS_15AssertionResultEPKcS4_T_S5_]+0x41f): undefined reference to `testing::internal::StringStreamToString(std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >*)'
tmpxft_00007c8c_00000000-4_test_reduction.cudafe1.cpp:(.text._ZN7testing8internal24CmpHelperFloatingPointEQIfEENS_15AssertionResultEPKcS4_T_S5_[_ZN7testing8internal24CmpHelperFloatingPointEQIfEENS_15AssertionResultEPKcS4_T_S5_]+0x42e): undefined reference to `testing::internal::StringStreamToString(std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >*)'
tmpxft_00007c8c_00000000-4_test_reduction.cudafe1.cpp:(.text._ZN7testing8internal24CmpHelperFloatingPointEQIfEENS_15AssertionResultEPKcS4_T_S5_[_ZN7testing8internal24CmpHelperFloatingPointEQIfEENS_15AssertionResultEPKcS4_T_S5_]+0x44d): undefined reference to `testing::internal::EqFailure(char const*, char const*, std::string const&, std::string const&, bool)'
CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_cvt.cu.o: In function `testing::internal::TypeParameterizedTest<CvtTest, testing::internal::TemplateSel<CvtTest_GpuMat_Test>, testing::internal::Types2<int, float> >::Register(char const*, char const*, char const*, int)':
tmpxft_00007d9a_00000000-4_test_cvt.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI7CvtTestNS0_11TemplateSelI19CvtTest_GpuMat_TestEENS0_6Types2IifEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI7CvtTestNS0_11TemplateSelI19CvtTest_GpuMat_TestEENS0_6Types2IifEEE8RegisterEPKcSA_SA_i]+0x158): undefined reference to `testing::Message::GetString() const'
tmpxft_00007d9a_00000000-4_test_cvt.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI7CvtTestNS0_11TemplateSelI19CvtTest_GpuMat_TestEENS0_6Types2IifEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI7CvtTestNS0_11TemplateSelI19CvtTest_GpuMat_TestEENS0_6Types2IifEEE8RegisterEPKcSA_SA_i]+0x446): undefined reference to `testing::Message::GetString() const'
CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_cvt.cu.o: In function `testing::internal::TypeParameterizedTest<CvtTest, testing::internal::TemplateSel<CvtTest_GpuMat_Test>, testing::internal::Types4<unsigned short, short, int, float> >::Register(char const*, char const*, char const*, int)':
tmpxft_00007d9a_00000000-4_test_cvt.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI7CvtTestNS0_11TemplateSelI19CvtTest_GpuMat_TestEENS0_6Types4ItsifEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI7CvtTestNS0_11TemplateSelI19CvtTest_GpuMat_TestEENS0_6Types4ItsifEEE8RegisterEPKcSA_SA_i]+0x16b): undefined reference to `testing::Message::GetString() const'
tmpxft_00007d9a_00000000-4_test_cvt.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI7CvtTestNS0_11TemplateSelI19CvtTest_GpuMat_TestEENS0_6Types4ItsifEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI7CvtTestNS0_11TemplateSelI19CvtTest_GpuMat_TestEENS0_6Types4ItsifEEE8RegisterEPKcSA_SA_i]+0x471): undefined reference to `testing::Message::GetString() const'
CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_cvt.cu.o: In function `testing::internal::TypeParameterizedTest<CvtTest, testing::internal::TemplateSel<CvtTest_GpuMat_Test>, testing::internal::Types5<unsigned char, unsigned short, short, int, float> >::Register(char const*, char const*, char const*, int)':
tmpxft_00007d9a_00000000-4_test_cvt.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI7CvtTestNS0_11TemplateSelI19CvtTest_GpuMat_TestEENS0_6Types5IhtsifEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI7CvtTestNS0_11TemplateSelI19CvtTest_GpuMat_TestEENS0_6Types5IhtsifEEE8RegisterEPKcSA_SA_i]+0x151): undefined reference to `testing::Message::GetString() const'
CMakeFiles/opencv_test_cudev.dir/opencv_test_cudev_generated_test_lut.cu.o:tmpxft_00007eb7_00000000-4_test_lut.cudafe1.cpp:(.text._ZN7testing8internal21TypeParameterizedTestI7LutTestNS0_11TemplateSelI19LutTest_GpuMat_TestEENS0_6Types1IhEEE8RegisterEPKcSA_SA_i[_ZN7testing8internal21TypeParameterizedTestI7LutTestNS0_11TemplateSelI19LutTest_GpuMat_TestEENS0_6Types1IhEEE8RegisterEPKcSA_SA_i]+0x151): more undefined references to `testing::Message::GetString() const' follow
collect2: error: ld returned 1 exit status
modules/cudev/test/CMakeFiles/opencv_test_cudev.dir/build.make:5508: recipe for target 'bin/opencv_test_cudev' failed
make[2]: *** [bin/opencv_test_cudev] Error 1
CMakeFiles/Makefile2:2053: recipe for target 'modules/cudev/test/CMakeFiles/opencv_test_cudev.dir/all' failed
make[1]: *** [modules/cudev/test/CMakeFiles/opencv_test_cudev.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
I got the same error , trying to build from latest opencv-master with cuda 8.0
and these are the cmake flags i set
sudo cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local/opencv-cuda/ -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON -D ENABLE_FAST_MATH=1 -D CUDA_FAST_MATH=1 -D WITH_CUBLAS=1 -D OPENCV_EXTRA_MODULES_PATH=/home/tinku/cuda/opencv_contrib-master/modules/ -D CUDA_ARCH_BIN=5.2 -D CUDA_ARCH_PTX= -D CUDA_HOST_COMPILER=/usr/bin/gcc-4.9 -D BUILD_opencv_python=OFF ..
And also i have gcc 5.4 but CUDA dosent support 5.3 or above so i did
sudo ln -s /usr/bin/gcc-4.9 /usr/local/cuda-8.0/bin/gcc
sudo ln -s /usr/bin/g++-4.9 /usr/local/cuda-8.0/bin/g++`
hence i set the -D CUDA_HOST_COMPILER=/usr/bin/gcc-4.9
same error with opencv 3.1.0, maybe its cuda 8.0 fault
While this is not a fix, the following workaround avoids the issue with cuda 8 rc by not building the tests:
Untick the BUILD_TESTS in the cmake-gui (so that -DBUILD_TESTS=OFF is set)
Build is OK on Ubuntu 16.04 with CUDA 8.0.
@tinnted That works for me, but for future use, if the defauls gcc is still gcc5, will it be any potential problem?
I have to sadly confirm, that this bug occurred during my build of OpenCV 3.4.1 with CUDA 8.0, gcc 6.3.0, (gcc 4.9.2 passed to nvcc 8.0.44) on Debian stretch. Omitting the build of tests seems to work, although is not ideal.
I got the same error with gcc-4.9 and cuda-8.0.44, but when I change the gcc version into 5.4, the problem solved. Maybe the cuda version 8.0.44 is not compatible with gcc-4.9. Hope this will help.
Succesfully compiled after sudo apt-get install libopenblas-dev liblapack-dev libatlas-base-dev
. Ubuntu 16.04, gcc 5.4.0
While this is not a fix, the following workaround avoids the issue with cuda 8 rc by not building the tests:
Untick the BUILD_TESTS in the cmake-gui (so that -DBUILD_TESTS=OFF is set)
this time I get the following error on make install (although build is OK):
modules/core/CMakeFiles/opencv_perf_core.dir/build.make:884: recipe for target ‘bin/opencv_perf_core’ failed
make[2]: *** [bin/opencv_perf_core] Error 1
CMakeFiles/Makefile2:2476: recipe for target ‘modules/core/CMakeFiles/opencv_perf_core.dir/all’ failed
I have successfully finished «make install» process with the following options:
-D BUILD_opencv_cudacodec=OFF
-D BUILD_opencv_xfeatures2d=OFF
my build options are given below (for Ubuntu 18.04 & OpenCV 3.3.1)
cmake -D CMAKE_BUILD_TYPE=RELEASE
-D CMAKE_INSTALL_PREFIX=/usr/local
-D INSTALL_C_EXAMPLES=ON
-D INSTALL_PYTHON_EXAMPLES=ON
-D WITH_TBB=ON
-D WITH_V4L=ON
-D WITH_QT=ON
-D WITH_OPENGL=ON
-D BUILD_opencv_cudacodec=OFF
-D BUILD_opencv_xfeatures2d=OFF
-D BUILD_TESTS=OFF
-D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules
-D BUILD_EXAMPLES=ON ..