executing script at terminal command prompt
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
Unfortunately not. That would require a separate binary, linked against a specially built Qt version and various source code adjustments to exclude certain classes of the API which require that library.alf2006x wrote:I found that this is some graphics library. Is it any way to exclude this file from request in "-no-gui" mode of qcad ?
Is there any reason why you cannot simply install that package?
I also get the messages from QPainter here. I haven't quite figured out yet where they come from and despite the warnings everything seems to work as expected.
I will look into this later:
http://www.ribbonsoft.com/bugtracker/in ... ask_id=347
I will look into this later:
http://www.ribbonsoft.com/bugtracker/in ... ask_id=347
I did two launch of the same script except path to output pdf file.
First launch was on: Linux ubuntu 2.6.38-11-generic #50-Ubuntu SMP Mon Sep 12 21:18:14 UTC 2011 i686 i686 i386 GNU/Linux
Results shown on left white screen.
Second launch was on: Linux ubuntu 2.6.32-28-generic #55-Ubuntu SMP Mon Jan 10 23:42:43 UTC 2011 x86_64 GNU/Linux
(it is ubuntu server)
Results shown on right black screen.
Firts one makes PDF file, but Second not makes PDF.
What can be wrong with it?
And on ubuntu server (black screen) in first string I can see message
"Fontconfig error: Cannot load default config file"
Here is comparing:
First launch was on: Linux ubuntu 2.6.38-11-generic #50-Ubuntu SMP Mon Sep 12 21:18:14 UTC 2011 i686 i686 i386 GNU/Linux
Results shown on left white screen.
Second launch was on: Linux ubuntu 2.6.32-28-generic #55-Ubuntu SMP Mon Jan 10 23:42:43 UTC 2011 x86_64 GNU/Linux
(it is ubuntu server)
Results shown on right black screen.
Firts one makes PDF file, but Second not makes PDF.
What can be wrong with it?
And on ubuntu server (black screen) in first string I can see message
"Fontconfig error: Cannot load default config file"
Here is comparing:
And if I run the script on ubunty server without "-no-gui" it prints me two messages:
Fontconfig error: Cannot load default config file
qcad-trial-bin: Cannot connect to X server
Last one of course shows because on server do not installed any X server, and I dont want to install it to simulate same condition like my hosting provider.
Fontconfig error: Cannot load default config file
qcad-trial-bin: Cannot connect to X server
Last one of course shows because on server do not installed any X server, and I dont want to install it to simulate same condition like my hosting provider.
- hungerburg
- Premier Member
- Posts: 160
- Joined: Fri May 28, 2010 7:35 pm
Alf, "no-gui" or "headless" may very well include an x-server installed. it just does not require the x-server to be running. To simulate the headless server environment on your developing machine, unsetting DISPLAY really is the only thing you have to do.
The first result of a google search for "Fontconfig error: Cannot load default config file" goes to http://www.stata.com/support/faqs/unix/fontconfig.html - maybe this helps you. Be prepared to only meet the next hurdle after jumping this one.
The easiest of course was, to install some xserver from the package manager, aptitude eg, and let it sort out this "dependency hell". I guess, it will not try to start it automagically.
BTW: even on my system, which is 64bit ubuntu 10 as well, and has a full X, phonon is marked as missing in ldd output. Yet, everything is fine...
The first result of a google search for "Fontconfig error: Cannot load default config file" goes to http://www.stata.com/support/faqs/unix/fontconfig.html - maybe this helps you. Be prepared to only meet the next hurdle after jumping this one.
The easiest of course was, to install some xserver from the package manager, aptitude eg, and let it sort out this "dependency hell". I guess, it will not try to start it automagically.
BTW: even on my system, which is 64bit ubuntu 10 as well, and has a full X, phonon is marked as missing in ldd output. Yet, everything is fine...
The crucial part here is:
This means that "Print.js" was not included, and indeed in QCAD RC1, Print.js moved to scripts/File/Print/Print.js. Please adjust the include accordingly. The API doc / tutorials will be updated.
Code: Select all
Can't find variable: Print.
Hello.
I have all turned out. Fontconfig warnings I removed within install fontconfig package and some dependent packages. There is:
- fontconfig-config
- libfontconfig
- libgl1-mesa-swx
- libosmesa
- ttf-dejavu-core
After all was installed i print in command prompt:
$ fc-cache
and warnings disappeared.
Andrew, it is wery confortable to use qcad3-rc1 wich printing script errors in commfnd prompt.
And my another question is: can qcad3-rc1 run several scripts at the same time on the same server?
And one question not about qcad. How can I make my binary file in Linux? I do not want to show my source code to anyone.
That is why I want to compile the binary.
I have all turned out. Fontconfig warnings I removed within install fontconfig package and some dependent packages. There is:
- fontconfig-config
- libfontconfig
- libgl1-mesa-swx
- libosmesa
- ttf-dejavu-core
After all was installed i print in command prompt:
$ fc-cache
and warnings disappeared.
Andrew, it is wery confortable to use qcad3-rc1 wich printing script errors in commfnd prompt.
And my another question is: can qcad3-rc1 run several scripts at the same time on the same server?
And one question not about qcad. How can I make my binary file in Linux? I do not want to show my source code to anyone.
That is why I want to compile the binary.