[QBS] libFilePath in custom module

Stéphane Fabry sf at xris.eu
Mon Nov 3 15:48:09 CET 2014


Hi Christian,

I did a full re-install of my module on another computer to compare and 
there it worked great, I have the prl files and the pri files.
Once QtCreator is launched the corresponding module.qbs is correctly 
updated...

I don't know what happened at the first time, maybe a mismatch because 
of the evolution of our internal module...

Below the paste of the required files just in case of, but now it seems 
solved on my side.
Thanks for the help.

Stéphane
------


qt_lib_parameter.pri

QT.parameter.VERSION = 5.0.0
QT.parameter.MAJOR_VERSION = 5
QT.parameter.MINOR_VERSION = 0
QT.parameter.PATCH_VERSION = 0
QT.parameter.name = QtParameter
QT.parameter.libs = $$QT_MODULE_LIB_BASE
QT.parameter.includes = $$QT_MODULE_INCLUDE_BASE 
$$QT_MODULE_INCLUDE_BASE/QtParameter
QT.parameter.bins = $$QT_MODULE_BIN_BASE
QT.parameter.libexecs = $$QT_MODULE_LIBEXEC_BASE
QT.parameter.plugins = $$QT_MODULE_PLUGIN_BASE
QT.parameter.imports = $$QT_MODULE_IMPORT_BASE
QT.parameter.qml = $$QT_MODULE_QML_BASE
QT.parameter.depends = core widgets
QT.parameter.module_config =
QT.parameter.DEFINES = QT_PARAMETER_LIB
QT_MODULES += parameter


qt_lib_parameter_private.pri

QT.parameter_private.VERSION = 5.0.0
QT.parameter_private.MAJOR_VERSION = 5
QT.parameter_private.MINOR_VERSION = 0
QT.parameter_private.PATCH_VERSION = 0
QT.parameter_private.name = QtParameter
QT.parameter_private.libs = $$QT_MODULE_LIB_BASE
QT.parameter_private.includes = 
$$QT_MODULE_INCLUDE_BASE/QtParameter/5.0.0 
$$QT_MODULE_INCLUDE_BASE/QtParameter/5.0.0/QtParameter
QT.parameter_private.depends = parameter
QT.parameter_private.module_config = internal_module no_link





Le 03-11-14 15:08, Kandeler Christian a écrit :
>
> Can you please also paste the .pri file for your module in 
> mkspecs/modules?
>
>
>
> Thanks,
> Christian
>
>
> ------------------------------------------------------------------------
> *From:* Stéphane Fabry <sf at xris.eu>
> *Sent:* Monday, November 3, 2014 1:20 PM
> *To:* Kandeler Christian; qbs at qt-project.org
> *Subject:* Re: [QBS] libFilePath in custom module
> Hi,
>
> The prl file is present, here is the content:
> /QMAKE_PRL_BUILD_DIR = C:/xris/maestro_qbs/qtparameter/src/parameter//
> //QMAKE_PRO_INPUT = parameter.pro//
> //QMAKE_PRL_TARGET = Qt5Parameter//
> //QMAKE_PRL_CONFIG = lex yacc depend_includepath testcase_targets 
> import_plugins import_qpa_plugin incremental_off windows qt warn_on 
> release link_prl incremental flat precompile_header 
> autogen_precompile_source debug_and_release embed_manifest_dll 
> embed_manifest_exe copy_dir_files release shared rtti 
> no_plugin_manifest qpa win32 msvc pcre release compile_examples sse2 
> sse3 ssse3 sse4_1 sse4_2 avx avx2 largefile prefix_build 
> force_independent create_prl link_prl prepare_docs qt_docs_targets 
> no_private_qt_headers_warning QTDIR_build exceptions_off 
> testcase_exceptions release ReleaseBuild Release build_pass git_build 
> need_fwd_pri qt_install_module qt_install_headers qmake_cache 
> target_qt debug_and_release build_all create_cmake 
> skip_target_version_ext release ReleaseBuild Release build_pass 
> have_target dll exclusive_builds no_autoqmake thread uic opengl moc 
> resources//
> //QMAKE_PRL_VERSION = 5.0.0/
>
>
> The only difference with for example QtNetwork prl is the first line 
> with the /QMAKE_PRL_BUILD_DIR entry./
>
> Thanks,
>
>
> Stéphane
>
> PS: Sorry for the delay, I had a week off.
>
>
>
> Le 23-10-14 17:25, Christian Kandeler a écrit :
>> On 10/23/2014 05:07 PM, Stéphane Fabry wrote:
>>> I have a custom "Qt module" that is a module compiled and installed in
>>> qt directory just like any other qt module (eg serialport).
>>>
>>> When I try to use QBS and put a "Depends { name: "Qt.mymodule" }"
>>> it reach a problem where "libFilePath" is not defined.
>>   > I found out that in the "module.qbs" that is generated by QtCreator
>>   > (in user appData directory) the libFilePath is not filled for that
>>   > module. All other modules of Qt have the path correctly defined, but
>>   > for mine it is empty.
>>
>> That probably means that your module generates no prl file. qbs requires
>> one to be present to find out the file path of the library.
>>
>>
>> Christian
>>
>>> I can fill it by hand and it solves the problem but i would like it to
>>> be done automatically.
>>> I build and install the module by the classic 'qmake' 'make' 'make
>>> install' process.
>>>
>>> I found this change, but I'm not sure it is linked to the problem or
>>> not:
>>> https://qt.gitorious.org/qt-labs/qbs/commit/938d9159810b5525e09325ce61759b29fa3d51af
>>>
>>>
>>> If someone has an hint to the solution... Thanks :)
>>>
>>> Stéphane
>>>
>>>
>>> _______________________________________________
>>> QBS mailing list
>>> QBS at qt-project.org
>>> http://lists.qt-project.org/mailman/listinfo/qbs
>>>
>> _______________________________________________
>> QBS mailing list
>> QBS at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/qbs
>
> -- 
> *Stéphane Fabry*, Project & IT Manager
> +32 (0)4 367 07 92
> *X-RIS* | /X-Ray Imaging Solutions/
> www.xris.eu/contact.html
>
>
> _______________________________________________
> QBS mailing list
> QBS at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qbs

-- 
*Stéphane Fabry*, Project & IT Manager
+32 (0)4 367 07 92
*X-RIS* | /X-Ray Imaging Solutions/
www.xris.eu/contact.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20141103/d21ba0d6/attachment.html>


More information about the Qbs mailing list