LimeReport icon indicating copy to clipboard operation
LimeReport copied to clipboard

an error when building the pro

Open toBeStronger-ys opened this issue 5 years ago • 28 comments

Hi! An error occured when i build the pro limereport,just like the picture below shows.I have tried several times,but never succeed...It confused me a lot,please give me some solutions when you are free.Thanks a lot! SFK_6Q`}3}YCDTL7OP4{TP

toBeStronger-ys avatar Feb 24 '20 09:02 toBeStronger-ys

Hi! Do you have an "include" subfolder in your limereport project folder?

fralx avatar Feb 25 '20 10:02 fralx

Yes,And the picture below is the files in the "include" folder. MK% O}XU}XD9ITSJW(TTE5J

toBeStronger-ys avatar Feb 25 '20 11:02 toBeStronger-ys

Your first screenshot was created in a time when you build the project from this folder?

fralx avatar Feb 25 '20 12:02 fralx

Yes

toBeStronger-ys avatar Feb 25 '20 12:02 toBeStronger-ys

Look, at first screenshot, the build system tries to create a file in the D:\LimeReport-master\ on the second you show me C:\Users\11039....

fralx avatar Feb 25 '20 12:02 fralx

Sorry,it is my error.The thing goes like this.First time ,i build the pro at D:/,but i failded and got the error showed in the first screenshot.Then,i copy the whole folder to the desktop,and tried again,but still got the same error.

toBeStronger-ys avatar Feb 25 '20 12:02 toBeStronger-ys

Sorry, something wrong was with Github Lets put the project folder on the disk D: And try again :).

fralx avatar Feb 25 '20 19:02 fralx

emmmm...I have tried several times,but still got the same error.Whatever,thanks for your timely reply.

toBeStronger-ys avatar Feb 26 '20 05:02 toBeStronger-ys

Hi! As I can see you use Windows and I am confused that "cp" is used. If you add QMAKE_COPY = copy /y to project_folder/limereport/limereport.pro will you get some other result?

fralx avatar Feb 26 '20 06:02 fralx

Nope....

toBeStronger-ys avatar Feb 26 '20 08:02 toBeStronger-ys

Could you show me the error message?

fralx avatar Feb 26 '20 08:02 fralx

I add the sentence here. image and get the same error.Whether it is because i add the sentence at wrong place? image

toBeStronger-ys avatar Feb 26 '20 08:02 toBeStronger-ys

You have to modify limereport.pro in the subfolder limereport. limereport.zip

fralx avatar Feb 26 '20 10:02 fralx

Yes,i did.Just like the screenshot shows D:\LimeReport-master\limerreport\limereport.pro

toBeStronger-ys avatar Feb 26 '20 10:02 toBeStronger-ys

Sorry :) Put QMAKE_COPY = copy /y at the begin of pro file

fralx avatar Feb 26 '20 11:02 fralx

I put the sentence here B$T)I7A4ZMNUFBS7@J2 ZO](https://user-images.githubusercontent.com/58078772/75342116-bd43cb00-58d0-11ea-819c-0a93bb7f2e17.png) and get the error  ![PCPBF4U0~6HRCT_BZUVBJ4

toBeStronger-ys avatar Feb 26 '20 11:02 toBeStronger-ys

Hi fralx Many be there is any bug in pro. I get some build error also , when i use a static QT5.12.6 to build all limereport project . The only the lib is correctly . Other (demo_r1 demo_r2 console designer )can't be created . 21 1

liufeijin avatar Feb 26 '20 11:02 liufeijin

@liufeijin It is not the same error :) @toBeStronger-ys This error looks like the build system uses Linux command-line tools to manipulate files. I think it may be because the MinGW compiler environment is accessible by PATH I need some time to check this theory

fralx avatar Feb 26 '20 13:02 fralx

@toBeStronger-ys do you use MinGW from Qt installation or you installed it separately?

fralx avatar Feb 26 '20 14:02 fralx

I remember it is from qt installation

toBeStronger-ys avatar Feb 26 '20 14:02 toBeStronger-ys

Maybe GitBush has been installed?

fralx avatar Feb 26 '20 14:02 fralx

Yes! I installed the gitbash

toBeStronger-ys avatar Feb 26 '20 14:02 toBeStronger-ys

Is the GitBush environment accessible by the system environment variable PATH?

fralx avatar Feb 26 '20 15:02 fralx

Could you run GitBush and try to run the command that you can see in Qt creator something like "cp D:\LimeReport-mastre\ ... ..."

fralx avatar Feb 26 '20 15:02 fralx

sorry, what I installed is gitbash,i don't know whether it is the GitBush you want. What's more, i also have no idea about what is the correct command, so i run the following commands, and the last command works. 2~K4B77DQD7Z~}OJ 1N25$0

toBeStronger-ys avatar Feb 26 '20 15:02 toBeStronger-ys

If you run the last command in cmd window will it work? I mean windows command line tools not GitBush

fralx avatar Feb 26 '20 16:02 fralx

Sorry to reply you so late.It was nearly 12:00 a.m at that time yesterday in China,so i went to bed. As soon as i get up,i try it it at once,and get the same error message showned in the QT Creator. BY3~F~V ZJQS$K80~RDFG3Q

toBeStronger-ys avatar Feb 27 '20 02:02 toBeStronger-ys

I think the simplest way to build limereport dll in your case is - just comment 36-43 lines

    $$PWD/lrglobal.h \
    $$PWD/lrdatasourceintf.h \
    $$PWD/lrdatasourcemanagerintf.h \
    $$PWD/lrreportengine.h \
    $$PWD/lrscriptenginemanagerintf.h \
    $$PWD/lrcallbackdatasourceintf.h \
    $$PWD/lrpreviewreportwidget.h \
    $$PWD/lrreportdesignwindowintrerface.h

in limereport.pro and try to build again. Then you can look at the PATH variable and find the path that makes an accessible Linux environment on your system.

fralx avatar Feb 27 '20 08:02 fralx