jaromil / hasciicam Goto Github PK
View Code? Open in Web Editor NEW(h)ascii for the masses! html refreshed ascii video cam
License: GNU General Public License v2.0
(h)ascii for the masses! html refreshed ascii video cam
License: GNU General Public License v2.0
Arch wiki hasciicam issue
ERROR
make[1]: Entering directory '/build/hasciicam/src/hasciicam_1.3/src'
CC hasciicam.o
hasciicam.c:183:3: error: initialization of ‘const char * const*’ from incompatible pointer type ‘char **’ [-Wincompatible-pointer-types]
183 | html_escapes
| ^~~~~~~~~~~~
hasciicam.c:183:3: note: (near initialization for ‘hascii_format.conversions’)
I am not an coder, but with some help i used this code for hasciicam.c /scr
remove .txt
to replace hasciicam.c
in /src
The changes in the hasciicam.c
Ensure html_escapes is defined correctly:
const char * const html_escapes[] = {
"string1",
"string2",
//... other strings
};
Include the necessary header for setgroups:
#include <unistd.h> // Add this line at the top
make && sudo make install
Use on your own risk.
Utilizing a 64 bit machine running Linux Mint 17.1 (64-bit), and a USB Logitech camera, I am unable to run the application without segfaulting. I have turned on core dumps and have one available from this particular issue, if you are in need of one. Please let me know if there is any more information that I can provide to you that can help with this issue; I would really like to see this working on Linux Mint with this hardware; I have a BBS that I'd very much like to add hasciicam functionality to.
More than happy to provide that core dump or anything else you can point me at. Feel free to contact me here; I try to check my notifications at least every other day.
Hi! :) The instructions only mention ./configure ; make ; make install
but the configure
and Makefile
files are missing. I understand I need autoconf
and ... automake
? What's the right way of using them? Thanks!
Hello.
FYI
I successfully built an RPM package of hasciicam.
I will try to propose to include it in Fedora.
X Error of failed request: BadName (named color or font does not exist)
Major opcode of failed request: 45 (X_OpenFont)
Serial number of failed request: 7
Current serial number in output stream: 8
This has nothing to do with the code.
Againg rpmlint
😅
hasciicam.x86_64: E: incorrect-fsf-address /usr/share/licenses/hasciicam/COPYING The Free Software Foundation address in this file seems to be outdated or misspelled. Ask upstream to update the address, or if this is a license file, possibly the entire file with a new copy available from the FSF.
Indeed, the GPL license from the GNU web site states:
Copyright (C) 1989, 1991 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
While in the mentioned COPYING file:
Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
I'm able to compile it, and it works without any issue, only if I use sudo.
Otherwise I get
hasciicam 1.3 - (h)ascii 4 the masses! - http://ascii.dyne.org
(c)2000-2014 by Jaromil @ RASTASOFT
Device detected is /dev/video0
Card name: Integrated_Webcam_HD: Integrate
Current input is Camera 1
Current capture is 640 x 480
format YUYV, 1280 bytes-per-line
Grey buffer is 38400 bytes
Ascii size is 160x60
using LIVE mode
X Error of failed request: BadName (named color or font does not exist)
Major opcode of failed request: 45 (X_OpenFont)
Serial number of failed request: 7
Current serial number in output stream: 8
Why?
Ever since I first heard of HasciiCam, I though it was a genius idea. It continues to blow my mind that none of the free code video chat or video conferencing tools have made use of it to provide a light alternative for people on older computers or slower net connections.
I'm just wondering if this code is being actively maintained. Does the repo here provide a complete, usable application, or just a set of libraries that need to be combined with other software to build one? If it is a usable application, do you know if it's possible to use it on Trisquel, and where I could find installation instructions for that? Thanks heaps.
I'm not a developer/programmer. But this is the power of free software, meh.
So, running rpmlint
versus the RPM package I created, it complaints about: POS36-C
hasciicam.x86_64: E: missing-call-to-setgroups-before-setuid /usr/bin/hasciicam This executable is calling setuid and setgid without setgroups or initgroups. There is a high probability this means it didn't relinquish all groups, and this would be a potential security issue to be fixed. Seek POS36-C on the web for details about the problem.
As said I'm not a C programmer or so, but using these lines:
637 setgroups(0, NULL);
638 setgid(gid);
649 setuid(uid);
instead of
637 setuid (uid);
638 setgid (gid);
hasciicam still works 😅 and rpmlint
is happy.
Hello Folks,
I had this issue :
Makefile.am: error: required file './README' not found
And solved it with this:
In configure.ac change line:
AM_INIT_AUTOMAKE([dist-bzip2 subdir-objects -Wno-portability])
to:
AM_INIT_AUTOMAKE([dist-bzip2 subdir-objects -Wno-portability foreign])
Cheers!...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.