Re: Added some information about Qt Creator IDE integration to the wiki

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 26/02/2021 11.32, Michael Weghorn wrote:

Please note that I have cloned LibreOffice core in the ~/Projects/libreoffice
folder, and then built it.

sudo apt-get build-dep libreoffice
cd ~/Projects/libreoffice
git clone git://anongit.freedesktop.org/libreoffice/core
cd core
./autogen.sh
make

I'll try that here to see how it behaves for me when I take those steps, then run 'make qtcreator-ide-integration'.

Can you possibly send me your 'workdir/GbuildToJson/' so I can see whether there's anything obviously weird in there?

I can't reproduce by using exactly those steps, i.e.

   mkdir -p ~/Projects/libreoffice
   cd ~/Projects/libreoffice/
   git clone git://anongit.freedesktop.org/libreoffice/core
   cd core/
   ./autogen.sh
   make
   make qtcreator-ide-integration
grep -E --color 'source/window/menu( |$)' workdir/GbuildToJson/Library/libvcllo.so

worked fine for me, but I can reproduce with the '--with-distro=LibreOfficeLinux' param you mentioned in your other email, i.e. running this afterwards:

   git clean -dxf
   ./autogen.sh --with-distro=LibreOfficeLinux
   make
   make qtcreator-ide-integration

I get the

$ make qtcreator-ide-integration
make -j 64 -rs -f /home/michael.weghorn/Projects/libreoffice/core/Makefile.gbuild gbuildtojson
cd /home/michael.weghorn/Projects/libreoffice/core &&  /home/michael.weghorn/Projects/libreoffice/core/bin/gbuild-to-ide --ide qtcreator --make make
ERROR : creating pro file=/home/michael.weghorn/Projects/libreoffice/core/core/core.pro
[Errno 2] No such file or directory: '/home/michael.weghorn/Projects/libreoffice/core/core/core.pro'
Traceback (most recent call last):
  File "/home/michael.weghorn/Projects/libreoffice/core/bin/gbuild-to-ide", line 1773, in emit
    with open(qt_pro_file, mode) as fpro:
FileNotFoundError: [Errno 2] No such file or directory: '/home/michael.weghorn/Projects/libreoffice/core/core/core.pro'




ERROR : creating pro.shared file=/home/michael.weghorn/Projects/libreoffice/core/core/core.pro.shared
[Errno 2] No such file or directory: '/home/michael.weghorn/Projects/libreoffice/core/core/core.pro.shared'
Traceback (most recent call last):
  File "/home/michael.weghorn/Projects/libreoffice/core/bin/gbuild-to-ide", line 1787, in emit
    with open(qt_pro_shared_file, mode) as fproshared:
FileNotFoundError: [Errno 2] No such file or directory: '/home/michael.weghorn/Projects/libreoffice/core/core/core.pro.shared'




Successfully created the project files.

as well and


$ grep -E --color 'source/window/menu( |$)' workdir/GbuildToJson/Library/libvcllo.so grep: workdir/GbuildToJson/Library/libvcllo.so: No such file or directory

and

    grep -r source/window/menu workdir/GbuildToJson/

does not show any hit at all, so it seems that gbuild does not generate the relevant information when the '--with-distro=LibreOfficeLinux' param is used (and all the qtcreator-related issues are probably just a consequence of this).

You could check the single params set in 'distro-configs/LibreOfficeLinux.conf' to see which one is the "problematic" one. At a quick glance, '--enable-mergelibs' looks like it might be related.

In a previous email, you had mentioned:

I had issues with other IDE integration outputs which need separate discussions.

I'm wondering whether those might all have the same root cause.

In any case, can you try again using e.g. the build params I had mentioned earlier or those recommended in the wiki for development to see whether that works for you as well?
It's probably best to run 'git clean -dxf' first for a fresh start.
_______________________________________________
LibreOffice mailing list
LibreOffice@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/libreoffice



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux