c++ - Compile generate 0 byte files on OS X -
i working on project little bit hard me because don't have extensive knowledge of mac os.
i have project works on windows , have compile on mac os, qt.
the problem when build project, generates me empty files : .dylib .o .cpp , .h
am missing special command in .pro file ?
here 1 .pro (others identical) :
#------------------------------------------------- # # project created qtcreator 2016-04-18t21:12:51 # #------------------------------------------------- qt += widgets target = mddimension template = lib defines += mddimension_library \ _toolkit_in_dll_ \ includepath += ../mdcore \ ../mdwidgets \ ../include \ ../include/teigha \ ../include/extensions/exservices \ ./gui \ release { destdir = ../release } debug { destdir = ../debug } sources += mddimensionmodule.cpp \ widgets/mddimstylecombo.cpp \ gui/mddimstyletoolbar.cpp headers += mddimensionmodule.h\ widgets/mddimstylecombo.h \ gui/mddimstyletoolbar.h \ mddimensiondefs.h win32{ config(debug, debug|release) { libs += -l$$pwd/../build/debug -lmdcore \ -l$$pwd/../build/debug -lmdwidgets \ -l$$pwd/../build/debug -lmdmodels \ # librairies oda libs += -l$$pwd/../lib/win32/debug -ltd_db \ -l$$pwd/../lib/win32/debug -ltd_root \ -l$$pwd/../lib/win32/debug -ltd_alloc \ -l$$pwd/../lib/win32/debug -ltd_dbroot \ -ladvapi32 dependpath += $$pwd/../lib/win32/debug } config(release, debug|release) { libs += -l$$pwd/../build/release -lmdcore \ -l$$pwd/../build/release -lmdwidgets \ -l$$pwd/../build/release -lmdmodels \ # librairies oda libs += -l$$pwd/../lib/win32/release -ltd_db \ -l$$pwd/../lib/win32/release -ltd_root \ -l$$pwd/../lib/win32/release -ltd_alloc \ -l$$pwd/../lib/win32/release/ -ltd_dbroot \ -ladvapi32 dependpath += $$pwd/../lib/win32/release } } unix{ config(debug, debug|release) { libs += -l$$pwd/../build/debug -lmdcore \ -l$$pwd/../build/debug -lmdwidgets \ -l$$pwd/../build/debug -lmdmodels \ # librairies oda libs += -l$$pwd/../lib/unix/debug -ltd_db \ -l$$pwd/../lib/unix/debug -ltd_root \ -l$$pwd/../lib/unix/debug -ltd_alloc \ -l$$pwd/../lib/unix/debug/ -ltd_dbroot \ dependpath += $$pwd/../lib/unix/debug } config(release, debug|release) { libs += -l$$pwd/../build/release -lmdcore \ -l$$pwd/../build/release -lmdwidgets \ -l$$pwd/../build/release -lmdmodels \ # librairies oda libs += -l$$pwd/../lib/unix/release -ltd_db \ -l$$pwd/../lib/unix/release -ltd_root \ -l$$pwd/../lib/unix/release -ltd_alloc \ -l$$pwd/../lib/unix/release -ltd_dbroot \ dependpath += $$pwd/../lib/unix/release } } unix { target.path = /usr/lib installs += target } target_ext = _4.02_14.mrx resources += \ mddimension.qrc
i don't have error or warning when build library.
so if have clue or explanation problem, interested :)
thank !
Comments
Post a Comment