3

我在尝试使用 chromium 嵌入式框架编译 Qt 项目时遇到了一些麻烦。它抱怨无法读取我用 VS2010 创建和编译的 .lib 文件,:-1: error: LNK1104: cannot open file 'libcef_dll_wrapperd.lib'.

以下是我的 .pro 文件的配置。注释掉的行是我尝试过的一些事情。

QT       += core gui webkit webkitwidgets

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

#LIBS += -L"C:\cef_binary_3.1547.1412_windows32\Release" -llibcef
#LIBS += "C:\cef_binary_3.1547.1412_windows32\out\Release\lib\libcef_dll_wrapper.lib" # "C:\cef_binary_3.1547.1412_windows32\Release\libcef.dll"
INCLUDEPATH += C:\cef_binary_3.1547.1412_windows32
DEFINES += NOMINMAX

TARGET = browser
TEMPLATE = app


SOURCES += main.cpp\
        mainwindow.cpp \
    clientapp.cpp

HEADERS  += mainwindow.h \
    clientapp.h

FORMS    += mainwindow.ui

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../../../../../cef_binary_3.1547.1412_windows32/out/Release/lib/ -llibcef_dll_wrapper
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../../../../../cef_binary_3.1547.1412_windows32/out/Release/lib/ -llibcef_dll_wrapperd

INCLUDEPATH += $$PWD/../../../../../../../../cef_binary_3.1547.1412_windows32/out/Release
DEPENDPATH += $$PWD/../../../../../../../../cef_binary_3.1547.1412_windows32/out/Release

我使用默认设置编译了 chromium 嵌入式框架,但我不明白为什么在尝试链接到它时收到“无法打开文件”错误。

4

1 回答 1

0

Have you confirmed the existence of libcef_dll_wrapperd.lib?

Maybe you should change libcef_dll_wrapperd.lib to libcef_dll_wrapper.lib.

Or you can try this project qtcefclient (a simple cef3 client with Qt).

于 2013-12-26T01:35:50.790 回答