Russian Qt Forum
Апрель 27, 2024, 22:22 *
Добро пожаловать, Гость. Пожалуйста, войдите или зарегистрируйтесь.
Вам не пришло письмо с кодом активации?

Войти
 
  Начало   Форум  WIKI (Вики)FAQ Помощь Поиск Войти Регистрация  

Страниц: [1]   Вниз
  Печать  
Автор Тема: Помощь в настройке библиотек  (Прочитано 9093 раз)
genikoff
Гость
« : Сентябрь 07, 2016, 12:46 »

Добрый день.Суть вопроса такова.Мне достался проект по наследству на Visual Studio 2010 c использованием Qt(C Qt раньше не сталкивался,поэтому прошу заранее извинить за некоторую неграмотность в своих вопросах).Я перенес себе его на компьютер и в процессе компиляции выяснилось,что не хватает библиотек. Палазив по настройкам проекта,я заметил что в Include Directories прописан путь к библиотекам то есть D:\rabota\lib\Include(это у старого владельца проекта).у него по видимому была папка rabota на D,где и лежали библиотеки,которых мне не хватает.К сожалению посмотреть,что там было не могу(систему уже переустановили).Может есть у кого какие мысли,какие туда библиотеки нужно вернуть.Сейчас Выложу список ошибок при сборке проекта.


Код:
	99	IntelliSense: too few arguments in function call	d:\qt\4.8.0\src\corelib\tools\qmap.h	1020	51	
113 IntelliSense: too few arguments in function call d:\qt\4.8.0\src\corelib\tools\qmap.h 1030 62
34 IntelliSense: swap is not a template d:\qt\4.8.0\src\corelib\tools\qbytearray.h 611 1
50 IntelliSense: swap is not a template d:\qt\4.8.0\src\corelib\tools\qstring.h 1095 1
36 IntelliSense: qualified name is not allowed d:\qt\4.8.0\src\corelib\tools\qstring.h 58 9
58 IntelliSense: no instance of overloaded function "std::swap" matches the specified type d:\qt\4.8.0\src\gui\image\qpixmap.h 300 1
59 IntelliSense: no instance of overloaded function "std::swap" matches the specified type d:\qt\4.8.0\src\gui\painting\qbrush.h 159 1
60 IntelliSense: no instance of overloaded function "std::swap" matches the specified type d:\qt\4.8.0\src\gui\kernel\qkeysequence.h 219 1
63 IntelliSense: no instance of overloaded function "std::swap" matches the specified type d:\qt\4.8.0\src\corelib\kernel\qvariant.h 602 1
64 IntelliSense: no instance of overloaded function "std::swap" matches the specified type d:\qt\4.8.0\src\gui\image\qicon.h 146 1
103 IntelliSense: no instance of overloaded function "qMapLessThanKey" matches the argument list d:\qt\4.8.0\src\corelib\tools\qmap.h 1022 29
119 IntelliSense: no instance of overloaded function "qMapLessThanKey" matches the argument list d:\qt\4.8.0\src\corelib\tools\qmap.h 1032 29
56 IntelliSense: no instance of function template "std::swap" matches the specified type d:\qt\4.8.0\src\gui\image\qimage.h 349 1
42 IntelliSense: namespace "std" has no member "string" d:\qt\4.8.0\src\corelib\tools\qstring.h 487 52
43 IntelliSense: namespace "std" has no member "string" d:\qt\4.8.0\src\corelib\tools\qstring.h 488 17
46 IntelliSense: namespace "std" has no member "string" d:\qt\4.8.0\src\corelib\tools\qstring.h 1044 13
47 IntelliSense: namespace "std" has no member "string" d:\qt\4.8.0\src\corelib\tools\qstring.h 1047 50
40 IntelliSense: identifier "wchar_t" is undefined d:\qt\4.8.0\src\corelib\tools\qstring.h 336 22
41 IntelliSense: identifier "wchar_t" is undefined d:\qt\4.8.0\src\corelib\tools\qstring.h 337 41
33 IntelliSense: identifier "va_list" is undefined d:\qt\4.8.0\src\corelib\tools\qbytearray.h 110 68
39 IntelliSense: identifier "va_list" is undefined d:\qt\4.8.0\src\corelib\tools\qstring.h 174 46
71 IntelliSense: identifier "T" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 991 21
74 IntelliSense: identifier "T" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 992 21
77 IntelliSense: identifier "T" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 993 21
80 IntelliSense: identifier "T" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 994 21
83 IntelliSense: identifier "T" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 995 21
85 IntelliSense: identifier "T" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 1013 41
88 IntelliSense: identifier "T" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 1015 38
90 IntelliSense: identifier "T" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 1017 37
93 IntelliSense: identifier "T" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 1019 24
96 IntelliSense: identifier "T" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 1019 64
98 IntelliSense: identifier "T" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 1020 28
101 IntelliSense: identifier "T" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 1021 28
106 IntelliSense: identifier "T" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 1029 24
109 IntelliSense: identifier "T" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 1029 70
112 IntelliSense: identifier "T" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 1030 28
115 IntelliSense: identifier "T" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 1031 28
118 IntelliSense: identifier "T" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 1031 61
122 IntelliSense: identifier "T" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 1039 24
124 IntelliSense: identifier "T" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 1039 75
127 IntelliSense: identifier "T" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 1043 11
44 IntelliSense: identifier "QStdWString" is undefined d:\qt\4.8.0\src\corelib\tools\qstring.h 494 48
45 IntelliSense: identifier "QStdWString" is undefined d:\qt\4.8.0\src\corelib\tools\qstring.h 495 12
48 IntelliSense: identifier "QStdWString" is undefined d:\qt\4.8.0\src\corelib\tools\qstring.h 1051 8
49 IntelliSense: identifier "QStdWString" is undefined d:\qt\4.8.0\src\corelib\tools\qstring.h 1065 46
70 IntelliSense: identifier "Key" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 991 16
73 IntelliSense: identifier "Key" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 992 16
76 IntelliSense: identifier "Key" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 993 16
79 IntelliSense: identifier "Key" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 994 16
82 IntelliSense: identifier "Key" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 995 16
84 IntelliSense: identifier "Key" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 1013 25
87 IntelliSense: identifier "Key" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 1015 22
89 IntelliSense: identifier "Key" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 1017 21
92 IntelliSense: identifier "Key" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 1019 19
95 IntelliSense: identifier "Key" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 1019 48
97 IntelliSense: identifier "Key" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 1020 23
100 IntelliSense: identifier "Key" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 1021 23
104 IntelliSense: identifier "Key" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 1022 45
105 IntelliSense: identifier "Key" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 1029 19
108 IntelliSense: identifier "Key" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 1029 54
111 IntelliSense: identifier "Key" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 1030 23
114 IntelliSense: identifier "Key" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 1031 23
117 IntelliSense: identifier "Key" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 1031 56
120 IntelliSense: identifier "Key" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 1032 45
121 IntelliSense: identifier "Key" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 1039 19
123 IntelliSense: identifier "Key" is undefined d:\qt\4.8.0\src\corelib\tools\qmap.h 1039 59
66 IntelliSense: identifier "FILE" is undefined d:\qt\4.8.0\src\corelib\io\qtextstream.h 106 26
126 IntelliSense: expected a declaration d:\qt\4.8.0\src\corelib\tools\qmap.h 1041 1
37 IntelliSense: expected a ';' d:\qt\4.8.0\src\corelib\tools\qstring.h 58 26
94 IntelliSense: cannot overload functions distinguished by return type alone d:\qt\4.8.0\src\corelib\tools\qmap.h 1019 37
107 IntelliSense: cannot overload functions distinguished by return type alone d:\qt\4.8.0\src\corelib\tools\qmap.h 1029 43
31 IntelliSense: cannot open source file "string.h" d:\qt\4.8.0\src\corelib\tools\qbytearray.h 48 1
55 IntelliSense: cannot open source file "string.h" d:\qt\4.8.0\src\corelib\tools\qlist.h 60 1
35 IntelliSense: cannot open source file "string" d:\qt\4.8.0\src\corelib\tools\qstring.h 54 1
65 IntelliSense: cannot open source file "stdio.h" d:\qt\4.8.0\src\corelib\io\qtextstream.h 57 1
29 IntelliSense: cannot open source file "stddef.h" d:\qt\4.8.0\src\corelib\global\qglobal.h 45 1
32 IntelliSense: cannot open source file "stdarg.h" d:\qt\4.8.0\src\corelib\tools\qbytearray.h 49 1
38 IntelliSense: cannot open source file "stdarg.h" d:\qt\4.8.0\src\corelib\tools\qstring.h 63 1
53 IntelliSense: cannot open source file "new" d:\qt\4.8.0\src\corelib\tools\qlist.h 58 1
57 IntelliSense: cannot open source file "new" d:\qt\4.8.0\src\corelib\tools\qsharedpointer_impl.h 61 1
62 IntelliSense: cannot open source file "new" d:\qt\4.8.0\src\corelib\tools\qmap.h 53 1
68 IntelliSense: cannot open source file "new" d:\qt\4.8.0\src\corelib\tools\qcontiguouscache.h 47 1
61 IntelliSense: cannot open source file "map" d:\qt\4.8.0\src\corelib\tools\qmap.h 50 1
52 IntelliSense: cannot open source file "list" d:\qt\4.8.0\src\corelib\tools\qlist.h 51 1
54 IntelliSense: cannot open source file "limits.h" d:\qt\4.8.0\src\corelib\tools\qlist.h 59 1
67 IntelliSense: cannot open source file "limits.h" d:\qt\4.8.0\src\corelib\tools\qcontiguouscache.h 46 1
51 IntelliSense: cannot open source file "iterator" d:\qt\4.8.0\src\corelib\tools\qlist.h 50 1
30 IntelliSense: cannot open source file "algorithm" d:\qt\4.8.0\src\corelib\global\qglobal.h 68 1
86 IntelliSense: a type qualifier is not allowed on a nonmember function d:\qt\4.8.0\src\corelib\tools\qmap.h 1013 51
91 IntelliSense: a type qualifier is not allowed on a nonmember function d:\qt\4.8.0\src\corelib\tools\qmap.h 1017 47
110 IntelliSense: a type qualifier is not allowed on a nonmember function d:\qt\4.8.0\src\corelib\tools\qmap.h 1029 80
125 IntelliSense: a type qualifier is not allowed on a nonmember function d:\qt\4.8.0\src\corelib\tools\qmap.h 1039 85
116 IntelliSense: a nonstatic member reference must be relative to a specific object d:\qt\4.8.0\src\corelib\tools\qmap.h 1031 51
69 IntelliSense: a class-qualified name is not allowed d:\qt\4.8.0\src\corelib\tools\qmap.h 991 11
72 IntelliSense: a class-qualified name is not allowed d:\qt\4.8.0\src\corelib\tools\qmap.h 992 11
75 IntelliSense: a class-qualified name is not allowed d:\qt\4.8.0\src\corelib\tools\qmap.h 993 11
78 IntelliSense: a class-qualified name is not allowed d:\qt\4.8.0\src\corelib\tools\qmap.h 994 11
81 IntelliSense: a class-qualified name is not allowed d:\qt\4.8.0\src\corelib\tools\qmap.h 995 11
102 IntelliSense: 'this' may only be used inside a nonstatic member function d:\qt\4.8.0\src\corelib\tools\qmap.h 1021 45
128 IntelliSense: 'operator[]' must be a member function d:\qt\4.8.0\src\corelib\tools\qmap.h 1043 13
Error 2 error C1083: Cannot open source file: '..\..\..\lib\Include\HierarchicalHeaderView.cpp': No such file or directory D:\rabota\{OTP}\qtPlan\c1xx OTP
Error 1 error C1083: Cannot open include file: 'stddef.h': No such file or directory d:\qt\4.8.0\src\corelib\global\qglobal.h 45 1 OTPLauncher
Error 3 error C1083: Cannot open include file: 'stddef.h': No such file or directory d:\qt\4.8.0\src\corelib\global\qglobal.h 45 1 OTP
Error 4 error C1083: Cannot open include file: 'stddef.h': No such file or directory d:\qt\4.8.0\src\corelib\global\qglobal.h 45 1 OTP
Error 5 error C1083: Cannot open include file: 'stddef.h': No such file or directory d:\qt\4.8.0\src\corelib\global\qglobal.h 45 1 OTP
Error 6 error C1083: Cannot open include file: 'stddef.h': No such file or directory d:\qt\4.8.0\src\corelib\global\qglobal.h 45 1 OTP
Error 7 error C1083: Cannot open include file: 'stddef.h': No such file or directory d:\qt\4.8.0\src\corelib\global\qglobal.h 45 1 OTP
Error 8 error C1083: Cannot open include file: 'stddef.h': No such file or directory d:\qt\4.8.0\src\corelib\global\qglobal.h 45 1 OTP
Error 9 error C1083: Cannot open include file: 'stddef.h': No such file or directory d:\qt\4.8.0\src\corelib\global\qglobal.h 45 1 OTP
Error 10 error C1083: Cannot open include file: 'stddef.h': No such file or directory d:\qt\4.8.0\src\corelib\global\qglobal.h 45 1 OTP
Error 12 error C1083: Cannot open include file: 'stddef.h': No such file or directory d:\qt\4.8.0\src\corelib\global\qglobal.h 45 1 OTP
Error 13 error C1083: Cannot open include file: 'stddef.h': No such file or directory d:\qt\4.8.0\src\corelib\global\qglobal.h 45 1 OTP
Error 14 error C1083: Cannot open include file: 'stddef.h': No such file or directory d:\qt\4.8.0\src\corelib\global\qglobal.h 45 1 OTP
Error 15 error C1083: Cannot open include file: 'stddef.h': No such file or directory d:\qt\4.8.0\src\corelib\global\qglobal.h 45 1 OTP
Error 16 error C1083: Cannot open include file: 'stddef.h': No such file or directory d:\qt\4.8.0\src\corelib\global\qglobal.h 45 1 OTP
Error 17 error C1083: Cannot open include file: 'stddef.h': No such file or directory d:\qt\4.8.0\src\corelib\global\qglobal.h 45 1 OTP
Error 18 error C1083: Cannot open include file: 'stddef.h': No such file or directory d:\qt\4.8.0\src\corelib\global\qglobal.h 45 1 OTP
Error 19 error C1083: Cannot open include file: 'stddef.h': No such file or directory d:\qt\4.8.0\src\corelib\global\qglobal.h 45 1 OTP
Error 20 error C1083: Cannot open include file: 'stddef.h': No such file or directory d:\qt\4.8.0\src\corelib\global\qglobal.h 45 1 OTP
Error 21 error C1083: Cannot open include file: 'stddef.h': No such file or directory d:\qt\4.8.0\src\corelib\global\qglobal.h 45 1 OTP
Error 22 error C1083: Cannot open include file: 'stddef.h': No such file or directory d:\qt\4.8.0\src\corelib\global\qglobal.h 45 1 OTP
Error 23 error C1083: Cannot open include file: 'stddef.h': No such file or directory d:\qt\4.8.0\src\corelib\global\qglobal.h 45 1 OTP
Error 24 error C1083: Cannot open include file: 'stddef.h': No such file or directory d:\qt\4.8.0\src\corelib\global\qglobal.h 45 1 OTP
Error 25 error C1083: Cannot open include file: 'stddef.h': No such file or directory d:\qt\4.8.0\src\corelib\global\qglobal.h 45 1 OTP
Error 26 error C1083: Cannot open include file: 'stddef.h': No such file or directory d:\qt\4.8.0\src\corelib\global\qglobal.h 45 1 OTP
Error 27 error C1083: Cannot open include file: 'stddef.h': No such file or directory d:\qt\4.8.0\src\corelib\global\qglobal.h 45 1 OTP
Error 28 error C1083: Cannot open include file: 'stddef.h': No such file or directory d:\qt\4.8.0\src\corelib\global\qglobal.h 45 1 OTP
Error 11 error C1083: Cannot open include file: 'excpt.h': No such file or directory C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include\windows.h 151 1 OTP
Записан
gil9red
Administrator
Джедай : наставник для всех
*****
Offline Offline

Сообщений: 1805



Просмотр профиля WWW
« Ответ #1 : Сентябрь 07, 2016, 13:37 »

Какая версия Qt стоит на машине?
Записан

genikoff
Гость
« Ответ #2 : Сентябрь 07, 2016, 13:40 »

Какая версия Qt стоит на машине?

4.8.0
VS 2010
Записан
gil9red
Administrator
Джедай : наставник для всех
*****
Offline Offline

Сообщений: 1805



Просмотр профиля WWW
« Ответ #3 : Сентябрь 07, 2016, 13:56 »

И Qt находится по адресу d:\qt\4.8.0?
Записан

genikoff
Гость
« Ответ #4 : Сентябрь 07, 2016, 14:07 »

И Qt находится по адресу d:\qt\4.8.0?
совершенно верно.
Записан
Johnik
Крякер
****
Offline Offline

Сообщений: 339


Просмотр профиля
« Ответ #5 : Сентябрь 07, 2016, 14:10 »

Установлен Visual Studio Add-in for Qt4?
Записан
genikoff
Гость
« Ответ #6 : Сентябрь 07, 2016, 14:55 »

Установлен Visual Studio Add-in for Qt4?
да.установлен.версия 1.1.10
Записан
Racheengel
Джедай : наставник для всех
*******
Offline Offline

Сообщений: 2679


Я работал с дискетам 5.25 :(


Просмотр профиля
« Ответ #7 : Сентябрь 07, 2016, 15:54 »

По сути самое важное сообщение - только это:

error C1083: Cannot open source file: '..\..\..\lib\Include\HierarchicalHeaderView.cpp': No such file or directory   

HierarchicalHeaderView.cpp это какой-то собственный файл, а вот его и не хватает... и это не Qt
Записан

What is the 11 in the C++11? It’s the number of feet they glued to C++ trying to obtain a better octopus.

COVID не волк, в лес не уйдёт
lit-uriy
Джедай : наставник для всех
*******
Offline Offline

Сообщений: 3880


Просмотр профиля WWW
« Ответ #8 : Сентябрь 08, 2016, 07:45 »

Тут его бери: https://www.linux-apps.com/p/1132194/

И это пригодится: http://www.prog.org.ru/topic_27667_0.html
Записан

Юра.
genikoff
Гость
« Ответ #9 : Сентябрь 08, 2016, 09:58 »

Тут его бери: https://www.linux-apps.com/p/1132194/

И это пригодится: http://www.prog.org.ru/topic_27667_0.html
Спасибо,уже скачал)
Записан
genikoff
Гость
« Ответ #10 : Сентябрь 08, 2016, 10:10 »

Покапался,остались вот какие ошибки
 
Код:
	3	IntelliSense: cannot open source file "windows.h"	d:\qt\4.8.0\src\corelib\global\qt_windows.h	63	1	
Error 1 error C1083: Cannot open source file: '..\..\..\lib\Include\HierarchicalHeaderView.cpp': No such file or directory D:\rabota\{OTP}\qtPlan\c1xx OTP
Error 2 error C1083: Cannot open include file: 'windows.h': No such file or directory d:\qt\4.8.0\src\corelib\global\qt_windows.h 63 1 OTP

С windows.h разберусь,а вот почему не видит .cpp файл,вот это интересно.
Записан
genikoff
Гость
« Ответ #11 : Сентябрь 08, 2016, 10:28 »

Вот из вывода кусок,где ошибка с .cpp файлом

Код:
 Moc'ing HierarchicalHeaderView.h...
2>  moc: D:\lib\Include\HierarchicalHeaderView.h: No such file
2>  MOC include\mainwindow.hpp
2>  HierarchicalHeaderView.cpp
2>c1xx : fatal error C1083: Cannot open source file: '..\..\..\lib\Include\HierarchicalHeaderView.cpp': No such file or directory

Два файла есть в этой папке.но их почему-то не цепляет
« Последнее редактирование: Сентябрь 08, 2016, 10:33 от genikoff » Записан
genikoff
Гость
« Ответ #12 : Сентябрь 08, 2016, 10:58 »

Вот из вывода кусок,где ошибка с .cpp файлом

Код:
 Moc'ing HierarchicalHeaderView.h...
2>  moc: D:\lib\Include\HierarchicalHeaderView.h: No such file
2>  MOC include\mainwindow.hpp
2>  HierarchicalHeaderView.cpp
2>c1xx : fatal error C1083: Cannot open source file: '..\..\..\lib\Include\HierarchicalHeaderView.cpp': No such file or directory

Два файла есть в этой папке.но их почему-то не цепляет



С этим разобрался.Дальше вот такая вот беда

Код:
2>HierarchicalHeaderView.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall HierarchicalHeaderView::metaObject(void)const " (?metaObject@HierarchicalHeaderView@@UBEPBUQMetaObject@@XZ)
2>HierarchicalHeaderView.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall HierarchicalHeaderView::qt_metacast(char const *)" (?qt_metacast@HierarchicalHeaderView@@UAEPAXPBD@Z)
2>HierarchicalHeaderView.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall HierarchicalHeaderView::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@HierarchicalHeaderView@@UAEHW4Call@QMetaObject@@HPAPAX@Z)


тут уже что за история?
Записан
genikoff
Гость
« Ответ #13 : Сентябрь 08, 2016, 11:28 »

Все,разобрался,все подключил,все работает.Всем спасибо)
Записан
Страниц: [1]   Вверх
  Печать  
 
Перейти в:  


Страница сгенерирована за 0.055 секунд. Запросов: 23.