Go to advanced search

by ksharindam
Sat Dec 14, 2019 5:48 pm
Forum: C/C++
Topic: Cross compiling from arm to amd64
Replies: 1
Views: 29

Re: Cross compiling from arm to amd64

This is what you are looking for...
https://raspberrypi.stackexchange.com/q ... berry-pi-2
by ksharindam
Fri Dec 13, 2019 12:21 pm
Forum: C/C++
Topic: platform independent c++ string length
Replies: 6
Views: 177

Re: platform independent c++ string length

It's not the question you asked, but: To write the identical PDF file on any platform (including a Pi) you should open a new file in binary mode and write the bytes required. Otherwise you will run into trouble when you write the "xref" section, or if you need any compressed or binary objects. Than...
by ksharindam
Fri Dec 13, 2019 11:50 am
Forum: C/C++
Topic: platform independent c++ string length
Replies: 6
Views: 177

Re: platform independent c++ string length

LdB wrote:
Fri Dec 13, 2019 8:53 am
tellp
http://www.cplusplus.com/reference/ostr ... eam/tellp/
In your case read the value stream.tellp();
Tried it, but it returns 9 in both windows and linux.
by ksharindam
Fri Dec 13, 2019 8:13 am
Forum: C/C++
Topic: platform independent c++ string length
Replies: 6
Views: 177

platform independent c++ string length

I am creating a cross platform program which has a pdf writer. I am writing string like this, std::string header; header = "%PDF-1.4\n"; int offset = header.size(); std::ofstream stream; stream.open(filename); stream << header; stream.close(); in both linux and windows, the returned offset is 9. In ...
by ksharindam
Sat Nov 30, 2019 4:21 pm
Forum: Raspbian
Topic: Where can I find lxplug-volume source code?
Replies: 6
Views: 157

Re: Where can I find lxplug-volume source code?

you can get source directly from the repository http://archive.raspberrypi.org/debian/p ... ug-volume/
by ksharindam
Fri Sep 20, 2019 2:52 pm
Forum: OpenGLES
Topic: RPi 4 OpenGL ES 3.0 ShaderToy to download (100+ examples)
Replies: 49
Views: 10010

Re: RPi 4 OpenGL ES 3.0 ShaderToy to download (100+ examples)

sudo apt-get install libsdl2-dev sudo apt-get install libsdl2-image-dev sudo apt-get install libsdl2-ttf-dev sudo apt-get install libsdl2-mixer-dev You should be able to dbl-click the ShaderToy executable after unzipping the folder to try it out. You have done really very good job. Here you are pro...
by ksharindam
Thu Sep 19, 2019 2:39 pm
Forum: Raspbian
Topic: Buster bug report thread
Replies: 278
Views: 47483

Re: Buster bug report thread

dunno if already reported.... LibreOffice does not work, application does not start even on updated/upgraded setup (as of this writing) 1. delete the directory /home/pi/.config/libreoffice, then try to launch libreoffice. 2. Or Launch libreoffice in terminal and view the output and check the error ...
by ksharindam
Tue Sep 10, 2019 3:52 am
Forum: Raspbian
Topic: Raspbian Buster Lite Question
Replies: 4
Views: 334

Re: Raspbian Buster Lite Question

I install XFCE by following these steps... Install xserver-xorg, x11-xserver-utils, lightdm Install udisks2, policykit-1-gnome or lxpolkit Install lxterminal, lxtask, mousepad, gpicview Install xfce4, xfce4-notifyd, xfce4-screenshooter, xfce4-clipman, xfce4-xkb-plugin Install pcmanfm, libfm-modules,...
by ksharindam
Tue Sep 10, 2019 3:49 am
Forum: Raspbian
Topic: Raspbian Buster Lite Question
Replies: 4
Views: 334

Re: Raspbian Buster Lite Question

Yes, you can install any desktop environments (LXDE, XFCE, MATE, Cinnamon).
There is a tutorial for it in this forum.
by ksharindam
Mon Sep 09, 2019 2:13 pm
Forum: C/C++
Topic: Sharing an image viewer with some useful features
Replies: 0
Views: 173

Sharing an image viewer with some useful features

When filling up online form, I often had to struggle with cropping and resizing photos. So I created an image viewer (QmageView) for myself. It has very responsive UI. Opens an image quickly. Qt4 is its only dependency. If you are interested, feel free to try it. Save Menu: Overwrite : replaces orig...
by ksharindam
Fri Aug 30, 2019 6:35 am
Forum: Raspbian
Topic: Raspbian Buster Desktop Fonts Hurt My Eyes
Replies: 10
Views: 1672

Re: Raspbian Buster Desktop Fonts Hurt My Eyes

I switched to Manjaro today. I have never used an arch based distro before and I have a hard time setting it up, but right now, Raspbian Buster desktop looks like s#!*! The difference between the two is like night and day! If you can set up a distro, then difference between two distros is only in p...
by ksharindam
Thu Aug 29, 2019 4:42 pm
Forum: OpenGLES
Topic: OpenGL ES using GBM/DRM without root
Replies: 4
Views: 2584

Re: OpenGL ES using GBM/DRM without root

Yes. You are right. I am using X.
Thanks.
by ksharindam
Thu Aug 29, 2019 4:28 pm
Forum: OpenGLES
Topic: Animated Machine Console
Replies: 3
Views: 2538

Re: Animated Machine Console

Are you sharing your code?
by ksharindam
Thu Aug 29, 2019 4:15 pm
Forum: OpenGLES
Topic: Animated Machine Console
Replies: 3
Views: 2538

Re: Animated Machine Console

Give the link to your code
by ksharindam
Thu Aug 29, 2019 4:13 pm
Forum: OpenGLES
Topic: OpenGL ES using GBM/DRM without root
Replies: 4
Views: 2584

Re: OpenGL ES using GBM/DRM without root

Yes, I already checked that thread. But that also does not work. Running without root gives the following errors... failed to export dumb buffer: Permission denied Failed to create scanout resource failed to export dumb buffer: Permission denied Failed to create scanout resource Segmentation fault R...
by ksharindam
Thu Aug 29, 2019 3:24 pm
Forum: OpenGLES
Topic: OpenGL ES using GBM/DRM without root
Replies: 4
Views: 2584

OpenGL ES using GBM/DRM without root

rpi video output in mpv player uses mmal video output and OpenGL ES for osd. But the legacy opengl es code does not work in RPi 4 . SO I want to replace the dispmanX specific code. There is an example, kmscube which I can not use, because It requires root, and I dont want to give a media player root...
by ksharindam
Thu Aug 29, 2019 3:03 pm
Forum: Raspbian
Topic: Raspbian Buster Desktop Fonts Hurt My Eyes
Replies: 10
Views: 1672

Re: Raspbian Buster Desktop Fonts Hurt My Eyes

I am using latest Raspbian Buster Desktop for the first time on a new Pi4 connected on a 1280x800 lcd display through hdmi. Fonts on desktop, terminal and chromium browser are awful. They are not crisp. It's like the resolution is not set correctly even though it is. Images look sharp and clear, bu...
by ksharindam
Wed Aug 28, 2019 2:11 am
Forum: Raspbian
Topic: why xz format not used for distribution of raspbian images
Replies: 34
Views: 1496

Re: why xz format not used for distribution of raspbian images

Zip was chosen because it's natively supported by all major operating systems. That's a little less relevant now that zip64 support is required, but that's still much more common than xz support. Just a wish, If you provide both zip compressed image and xz compressed (with option -9e) image only fo...
by ksharindam
Tue Aug 27, 2019 6:03 am
Forum: Raspbian
Topic: why xz format not used for distribution of raspbian images
Replies: 34
Views: 1496

Re: why xz format not used for distribution of raspbian images

DougieLawson wrote:
Tue Aug 27, 2019 5:53 am
xz compressed that with -9 and the out of memory killer shot it dead.
How much RAM does your computer have? Is it a Raspberry Pi?
I have compressed the image using level 9 in a Pi4 2GB. Also compressed in a Pi2 two years ago.
never encountered out of memory error.
by ksharindam
Tue Aug 27, 2019 5:57 am
Forum: Raspbian
Topic: why xz format not used for distribution of raspbian images
Replies: 34
Views: 1496

Re: why xz format not used for distribution of raspbian images

jamesh wrote:
Mon Aug 26, 2019 7:29 pm
Just out of interest, anyone got numbers for the latest Raspbian as a zip and as xz?
Just compressed the Raspbian Desktop image.

Code: Select all

xz -9e 2019-07-10-raspbian-buster.img.tar
Size of...
Uncompressed image -> 3.5GB
zip compressed image -> 1.1 GB
tar.xz compressed image -> 732.2MB
by ksharindam
Tue Aug 27, 2019 4:14 am
Forum: Raspbian
Topic: why xz format not used for distribution of raspbian images
Replies: 34
Views: 1496

Re: why xz format not used for distribution of raspbian images

jamesh wrote:
Mon Aug 26, 2019 7:29 pm
Just out of interest, anyone got numbers for the latest Raspbian as a zip and as xz?
Currently I am compressing The buster image , I will post the numbers when it will complete.
by ksharindam
Mon Aug 26, 2019 5:39 am
Forum: Raspbian
Topic: why xz format not used for distribution of raspbian images
Replies: 34
Views: 1496

Re: why xz format not used for distribution of raspbian images

xz takes a little bit more work to decompress and a lot more CPU time to compress. time is not a factor, when it is compressed server side. A pi 2 takes around 5 hours to compress, and pi 4 will take around 1 hour to compress. In the server, x86 computern will be used to compress, which will take m...
by ksharindam
Mon Aug 26, 2019 5:31 am
Forum: Raspbian
Topic: why xz format not used for distribution of raspbian images
Replies: 34
Views: 1496

Re: why xz format not used for distribution of raspbian images

I don't think it should be a case of .zip or .xz, but better to provide both. There would only be a one-time overhead for building both, so it shouldn't be too onerous to do that. Then all users get to choose which they prefer, whichever suits them best. If there is only going to be one format then...
by ksharindam
Sun Aug 25, 2019 4:35 pm
Forum: Raspbian
Topic: why xz format not used for distribution of raspbian images
Replies: 34
Views: 1496

Re: why xz format not used for distribution of raspbian images

If someone knows how to write a disk image, he should know what xz is.
by ksharindam
Sun Aug 25, 2019 4:23 pm
Forum: Raspbian
Topic: why xz format not used for distribution of raspbian images
Replies: 34
Views: 1496

why xz format not used for distribution of raspbian images

we know that xz format is more efficient compression method. but the raspbian images are distributed in zip compressed image. If xz is used at extreme compression level (level 9), much disk space and bandwidth can be saved. That means Raspbian buster desktop image without recommend softwares, will t...

Go to advanced search