ONLYOFFICE/build_tools

error on compiling

hahaxd35 opened this issue · 10 comments

Do you want to request a feature or report a bug?
Bug?

What is the current behavior?
./automate.py

make: *** [Makefile:75: module-qtbase-make_first] Error 2
Error (make): 2

"./automate.py server" does not wok either

what i'm missing?

This error cames after second "./automate.py"

cc1plus: error: one or more PCH files were found, but they were invalid
cc1plus: error: use -Winvalid-pch for more information
cc1plus: fatal error: .pch/Qt5OpenGL: No such file or directory
compilation terminated.
make[3]: *** [Makefile:4201: .obj/qgl.o] Error 1
make[3]: *** Waiting for unfinished jobs....
cc1plus: error: one or more PCH files were found, but they were invalid
cc1plus: error: use -Winvalid-pch for more information
cc1plus: fatal error: .pch/Qt5OpenGL: No such file or directory
compilation terminated.
make[3]: *** [Makefile:4295: .obj/qglcolormap.o] Error 1
cc1plus: error: one or more PCH files were found, but they were invalid
cc1plus: error: use -Winvalid-pch for more information
cc1plus: fatal error: .pch/Qt5OpenGL: No such file or directory
compilation terminated.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
Steps:
https://helpcenter.onlyoffice.com/de/installation/docs-community-compile.aspx

Operating System:
Debian 11

Juding by obj/qgl.o and obj/qglcolormap.o filenames those are errors from QT compilation

I think this may be because we use rather old build of QT to have compatibility with some old OS we need to have (buy our clients) so it may not be comilable on latest debian without trouble

We only check Ubuntu (and better to be somewhat like Ubuntu 16.04) as base system for build

P.S. Moving this repo to build_tools repo since it's a build problem

do you may know whats missing? or witch versions from libraries i need?

Sorry, I don't know, I think you can google out this error, since it's not an ONLYOFFICE problem but may be a problem with old QT version compilation on newer platform

Or you can try to update QT to latest version, replacing link I've mention in previous message, but you're on your own, I've never tried it

thanks, i have tried some QT Versions and compile worked. i will upload later automate.py

Know maybe this is a relatet error:

on make.py:
[...]
[fetch & build]: boost
./bootstrap.sh: 1: ./tools/build/src/engine/build.sh: not found
Building Boost.Build engine with toolset ...
Failed to build Boost.Build build engine
Consult 'bootstrap.log' for more details
Error (./bootstrap.sh): 1

tools/build is missing

As I mention earlier - you've usijng Debian on which we never tested compilation of our product

If you compile it on Ubuntu it will work on Debian and also if you use Docker to comile it

I'm sorry, but I don't have anought time to figure out those errors, but by look of them - something went wrong on clone or download stage

i thought this script was from ONLYOFFICE, but it is not, sorry

It's our script, but again - we never checked compilation on Debian, we compile all our products on Ubuntu and they work fine on all other systems

dont know how to do PR.
automate.py.zip
changed Versionnumbers and thow some options out that was not supported anymore

and did some changes, that "make" will not download all file again ( that will revers any changes in source code)

dont know how to do PR.

We still not ready to merge any PR with update of Qt because we may loose compatibility with some really old system which we need to support by our contracts

This issue was closed due to no response.