Pencil: [regression in 0.6.5] No rule to make target 'data/???.pclx', needed by 'qrc_tests.cpp'. Stop.

Created on 3 Aug 2020  路  12Comments  路  Source: pencil2d/pencil

Please fix this error.

Please also make tests conditional on a compile-time option so that package builders wouldn't need to build tests.

Compilation Other OS

All 12 comments

Hey @yurivict,
Doesn't FreeBSD support Unicode filename?

For the time being you can skip tests by commenting out line 10, 18, 22 of pencil2d.pro

SUBDIRS = \ # sub-project names
    core_lib \
    app
#   tests

# build the project sequentially as listed in SUBDIRS !
CONFIG += ordered

# where to find the sub projects - give the folders
core_lib.subdir = core_lib
app.subdir      = app
#tests.subdir    = tests

# what subproject depends on others
app.depends      = core_lib
#tests.depends    = core_lib

Unicode file names are supported.

In order to update the port I commented out the lines you pointed out. However, this should be done by a variable.

Yes, I can add the variable if needed.

Just wonder why the error happened as it passes our mac/linux CI services.
The file is intentionally added to test Unicode filenames.

UTF8 filenames are definitely supported.

Must be something in the toolchain that can't handle unicode filename correctly.
Anyway I will made that flag later on.

@yurivict can you please check this PR, see if it's working on FreeBSD?

It builds fine with these patches.

Fixed in #1411

@Jose-Moreno is experiencing this same issue on Windows with the MinGW compiler. This issue isn't really fixed, only worked-around. I think we should look into the root cause of this and try to find a solution.

I re-tested with qt-5.15.0 and this doesn't happen any more. Might have been a problem with the previous version of Qt.

For the record: qmake needs a UTF8 locale to work properly on the pencil2d project due to UTF8 characters present in resource file names.

Setting USE_LOCALE=en_US.UTF-8 in a FreeBSD port does this. Other systems should have similar settings available.

I removed the CJK filenames from the tests.qrc in commit 2ce3676. I found a way to run the CJK character filename tests without having unicode in the Qt resource system. Let me know if anyone still gets any build errors.

Was this page helpful?
0 / 5 - 0 ratings