osx以及windows下为qt编译firebird库

windows下:

ibase.pro修改

INCLUDEPATH += “C:\Program Files\Firebird\Firebird_2_1\include”

LIBS += “C:\Program Files\FireBird\FireBird_2_1\lib\fbclient_ms.lib”

qmake ibase.pro

mingw32-make

osx下:

ibase.pro修改

INCLUDEPATH += /Library/Frameworks/Firebird.framework/Headers

LIBS += -L/Library/Frameworks/Firebird.framework/Libraries -lfbclient

#unix:!contains( LIBS, .*gds.* ):!contains( LIBS, .*libfb.* ):LIBS    *= -lgds

qmake -spec macx-g++ -o Makefile ibase.pro

make

INCLUDEPATHINCLUDEPATH += /Library/Frameworks/Firebird.framework/Headers
LIBS += -L/Library/Frameworks/Firebird.framework/Libraries -lfbclient
#unix:!contains( LIBS, .*gds.* ):!contains( LIBS, .*libfb.* ):LIBS    *= -lgds += /Library/Frameworks/Firebird.framework/Headers
LIBS += -L/Library/Frameworks/Firebird.framework/Libraries -lfbclient
#unix:!contains( LIBS, .*gds.* ):!contains( LIBS, .*libfb.* ):LIBS    *= -lgdsqmake -spec macx-g++ -o Makefile ibase.pro

发表评论

电子邮件地址不会被公开。 必填项已用*标注