2015-02-02 3 views
0

На ОС Windows 7 x64 коробке:как построить Qt5 с QtWebKit на Windows, с MSVC 2008 - LevelDB не может найти stdint.h

Так что мой qt5vars.cmd является:

CALL "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars64.bat" 
SET _ROOT=C:\qt\qt540 
SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;C:\Python27;C:\Python27\Scripts;%PATH% 
REM Uncomment the below line when using a git checkout of the source repository 
REM SET PATH=%_ROOT%\qtrepotools\bin;%PATH% 
SET QMAKESPEC=win32-msvc2008 
SET PATH=%PATH%;C:\icu\dist\lib;C:\Ruby193\bin 
SET INCLUDE=%INCLUDE%;C:\icu\dist\include 
SET LIB=%LIB%;C:\icu\dist\lib 
SET _ROOT= 

С этой установкой, от qt5vars.cmd подскажет выше, я настроил Qt с:

конфигурационного -prefix% CD% \ qtbase -developer-сборка -opensource -opengl настольных тестов -nomake -по-компиляции примеры -skip QtWebKit-примеры -icu -plugin-SQL-SQLite -platform win32-msvc2008 -confirm-лицензия

Затем побежал nmake. Я получаю кучу ошибок, которые LevelDB не могут найти stdint.h:

C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Sp 
ecify /EHsc 
C:\Qt\qt540\qtwebkit\Source\ThirdParty\leveldb\db/filename.h(10) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory 
c.cc 
C:\Qt\qt540\qtwebkit\Source\ThirdParty\leveldb\include\leveldb/c.h(50) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory 
dbformat.cc 
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Sp 
ecify /EHsc 
C:\Qt\qt540\qtwebkit\Source\ThirdParty\leveldb\include\leveldb/db.h(8) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory 
db_impl.cc 
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Sp 
ecify /EHsc 
C:\Qt\qt540\qtwebkit\Source\ThirdParty\leveldb\include\leveldb/db.h(8) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory 
db_iter.cc 
C:\Qt\qt540\qtwebkit\Source\ThirdParty\leveldb\db/db_iter.h(8) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory 
filename.cc 
C:\Qt\qt540\qtwebkit\Source\ThirdParty\leveldb\db/filename.h(10) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory 
log_reader.cc 
C:\Qt\qt540\qtwebkit\Source\ThirdParty\leveldb\db/log_reader.h(8) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory 
log_writer.cc 
C:\Qt\qt540\qtwebkit\Source\ThirdParty\leveldb\db/log_writer.h(8) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory 
memtable.cc 
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Sp 
ecify /EHsc 
C:\Qt\qt540\qtwebkit\Source\ThirdParty\leveldb\include\leveldb/db.h(8) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory 
repair.cc 
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Sp 
ecify /EHsc 
C:\Qt\qt540\qtwebkit\Source\ThirdParty\leveldb\include\leveldb/db.h(8) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory 
table_cache.cc 
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Sp 
ecify /EHsc 
C:\Qt\qt540\qtwebkit\Source\ThirdParty\leveldb\db/table_cache.h(11) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory 
version_edit.cc 
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Sp 
ecify /EHsc 
C:\Qt\qt540\qtwebkit\Source\ThirdParty\leveldb\include\leveldb/db.h(8) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory 
version_set.cc 
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Sp 
ecify /EHsc 
C:\Qt\qt540\qtwebkit\Source\ThirdParty\leveldb\include\leveldb/db.h(8) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory 
write_batch.cc 
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Sp 
ecify /EHsc 
C:\Qt\qt540\qtwebkit\Source\ThirdParty\leveldb\include\leveldb/db.h(8) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory 
Generating Code... 
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\cl.EXE"' : return code '0x2' 
Stop. 
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\nmake.exe"' : return code '0x2' 
Stop. 
NMAKE : fatal error U1077: '(' : return code '0x2' 
Stop. 
NMAKE : fatal error U1077: 'cd' : return code '0x2' 
Stop. 
NMAKE : fatal error U1077: 'cd' : return code '0x2' 
Stop. 

Существует stdint.h в C:\Qt\qt540\qtwebkit\Source\ThirdParty\leveldb\port\win, но скопировать этот файл или мой модифицированный stdint.h к leveldb\db и leveldb\include\leveldb не имеет никакого значения - Я получаю те же ошибки при построении Qt.

Что мне нужно сделать, чтобы построить qtwebkit с Qt или, по крайней мере, пройти мимо этой проблемы с leveldb sdtint.h?

ответ

1

ОК, я манекен. Просто нужно было скопировать stdint.h в C:\Program Files\Microsoft Visual Studio 9.0\VC\include вместо пути к каждому файлу, который жалуется. Кроме того, я прокомментировал объявление WCHAR_MIN в stdint.h, чтобы избежать тонких предупреждений о его повторном использовании.

Затем с использованием инструкции configure в исходном вопросе, Qt5.4.0 построен успешно, в том числе qtwebkit! Взял 11 часов, чтобы построить, но это сработало!

 Смежные вопросы

  • Нет связанных вопросов^_^