2.2.0-rc4 does not display text in file created by 2.1.3

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

2.2.0-rc4 does not display text in file created by 2.1.3

tomdean
I have several .dxf files that work fine with librecad 2.1.3. When I open them with 2.2.0-rc4 built from git sources, the text does not display.

Any ideas?

Tom Dean
Reply | Threaded
Open this post in threaded view
|

Re: 2.2.0-rc4 does not display text in file created by 2.1.3

fa201
Are you able to share one of these files ?
Fabrice

French hobbyist interested in 2D design.
Reply | Threaded
Open this post in threaded view
|

Re: 2.2.0-rc4 does not display text in file created by 2.1.3

tomdean
Here is one of the files.EncoderMount.dxf
Reply | Threaded
Open this post in threaded view
|

Re: 2.2.0-rc4 does not display text in file created by 2.1.3

LordOfBikes
Administrator
presumably simply https://forum.librecad.org/only-empty-boxes-frames-are-shown-for-image-text-no-line-thickness-tp5706737.html
investing less than half an hour into Search function can save hours or days of waiting for a solution
Reply | Threaded
Open this post in threaded view
|

Re: 2.2.0-rc4 does not display text in file created by 2.1.3

tomdean
I saw the draft issue in my google searches.
Draft is not checked.
I do not see empty boxes for text.
I have set text size to large values and still no text.

Tom Dean
Reply | Threaded
Open this post in threaded view
|

Re: 2.2.0-rc4 does not display text in file created by 2.1.3

LordOfBikes
Administrator
Well, then supply more info about how you built, which OS, what shows Help->About window?
How do you start LibreCAD?
Possibly the fonts are not found.
investing less than half an hour into Search function can save hours or days of waiting for a solution
Reply | Threaded
Open this post in threaded view
|

Re: 2.2.0-rc4 does not display text in file created by 2.1.3

tomdean
> lsb_release -a
LSB Version:    core-11.1.0ubuntu2-noarch:security-11.1.0ubuntu2-noarch
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.4 LTS
Release:        20.04
Codename:       focal

> uname -a
Linux aorus 5.13.0-44-generic #49~20.04.1-Ubuntu SMP Wed May 18 18:44:28 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Build librecad:
    cd CAD
    git clone https://github.com/LibreCAD/LibreCAD.git
    sudo apt install qtbase5-dev libqt5svg5-dev qttools5-dev qtchooser qttools5-dev-tools libmuparser-dev librsvg2-bin libboost-dev libfreetype6-dev libicu-dev pkg-config
    cd LibreCAD/
    mkdir build
    cd build
    qmake -qt=5 -r ../
    make -j `nproc`

Help->About window:
Version: 2.2.0-rc4
Compiler: GNU GCC 9.4.0
Compiled on: Jun 11 2022
Qt Version: 5.12.8
Boost Version: 1.71.0
System: Ubuntu 20.04.4 LTS

From xterm where librecad was started:
> ./unix/librecad
RS_DEBUG::setLevel(3)
RS_DEBUG: Critical
RS_DEBUG: Errors
RS_DEBUG: Warnings
QLayout: Attempting to add QLayout "" to QG_LibraryWidget "Library", which already has a layout
QG_LayerWidget::update: nullptr lastLayer

I also believe this is some form of env or setting problem. But, I expect drawings to pass seamlessly from one version to the next.

Tom Dean
Reply | Threaded
Open this post in threaded view
|

Re: 2.2.0-rc4 does not display text in file created by 2.1.3

tomdean
Here is debug output
script debug.output
debug.output

Tom Dean
Reply | Threaded
Open this post in threaded view
|

Re: 2.2.0-rc4 does not display text in file created by 2.1.3

tomdean
I have the same problem on 3 machines, all Ubuntu.
It is either a missing font or a mucked-up font environment or something in the build.

In 2.2.0-rc4, the MText dialog, the Font drop down box is empty.
In 2.1.3, the MText dialog drop down box has many things.

Tom Dean
Reply | Threaded
Open this post in threaded view
|

Re: 2.2.0-rc4 does not display text in file created by 2.1.3

tomdean
I found the problem.

When I built librecad, I did it out of the source tree, in a build subdir.

Rebuilding in the source tree resolved the problem

cd CAD/LibreCAD
qmake -qt=5 -r
make -j `nproc`
./unix/librecad

I want to install librecad in /usr/local/bin. But, it needs resources, etc. Just copying librecad to /usr/local/bin does not work.

Tom Dean
Reply | Threaded
Open this post in threaded view
|

Re: 2.2.0-rc4 does not display text in file created by 2.1.3

LordOfBikes
Administrator
We have no installation routines for Linux. There are too many distributions using different locations for this stuff.
Placing resources to their preferred locations is what the distribution maintainer usually do.

The LibreCAD application on Linux search different places for the resources like fonts, libraries, plugins, translations.

What is your intention to build from source?
If you just want a newer version I recommend to use or AppImage distribution.
Some Red Hat based distributions started to switch over to 2.2.0 release candidates lately.
I don' t know when Debian and derivates will follow, but at least when we release 2.2.0 finally soon. Then you can use apt to install and automatic updates.

When your intention is to modify code it is best to use librecad from unix folder, as it contains everything it needs.

For the above said reasons, we also have no installation instructions for Linux.
If you anyway want to install your built version manually, you can have a look into CI/build-appimage.sh. Assume that appimage/ is the root folder, then you see folders created under /usr and which resources are copied to these locations.
investing less than half an hour into Search function can save hours or days of waiting for a solution