Trying to improve x49gp
10-29-2014, 08:43 AM
Post: #6
 3298 Member Posts: 117 Joined: Oct 2014
RE: Trying to improve x49gp
So you are this datajerk? I guess I didn't read the readme thoroughly enough.

The Makefie fix for Ubuntu present in that Git repo does its job, but on my system I'm running into another error which is shown as this:
Code:
/usr/bin/ld: ui.o: undefined reference to symbol 'floor@@GLIBC_2.0' /usr/lib/libm.so.6: error adding symbols: DSO missing from command line
The fix was to link against libm, which led to a similar error about a function from libz. These are why I added -lm -lz to the LDFLAGS. For reference, the system is Manjaro (an Arch-based distro, rolling release, hence no version number other than "current"). I don't have a Mac to try the OSX compilation on, so there's little I can do about that.
Does the addition of -lm -lz break compilation on some system?

Also, I should mention that my tests with the grayscale patch were just "look whether it works at all". The stack showed up properly, meaning the monochrome mode works, and I opened a 4-bit grayscale GROB with OpenFire's viewer, which also looked like I expected. The palette register for 2-bit grayscale wasn't tested, but HPGCC3's grayscale mode switch routine refers to the word at an offset of 10 32-bit words as the palette register, which is the one called bluelut in x49gp's data structure. So in theory it should work once a silly mistake on my side is fixed: in s3c2410_lcd.c:117 I wrote
Code:
return 15 & (lcd->bluelut >> (2 * data));
which was supposed to shift the appropiate part of the palette register to the LSB end (data contains the 2-bit color). The 2 * data should be 4 * data because the colors in the palette register are 4 bits wide, of course.
Could someone confirm that grayscale works on other systems as well? I'm kinda new to X server graphics, so I could have done something non-portable. One of my attempts involved calling the wrong GDK function in the places where the foreground color is set, which made the virtual screen turn black.
The color selection is a bit lacking, too. I took the screen color of the calc pictures (171, 210, 180 in RGB) and scaled each component by the desired grayscale value.
 « Next Oldest | Next Newest »

 Messages In This Thread Trying to improve x49gp - 3298 - 10-28-2014, 10:08 PM RE: Trying to improve x49gp - Han - 10-28-2014, 10:53 PM RE: Trying to improve x49gp - Egan Ford - 10-29-2014, 02:54 AM RE: Trying to improve x49gp - Egan Ford - 10-29-2014, 02:57 AM RE: Trying to improve x49gp - Egan Ford - 10-29-2014, 03:10 AM RE: Trying to improve x49gp - 3298 - 10-29-2014 08:43 AM RE: Trying to improve x49gp - Egan Ford - 10-31-2014, 12:36 AM RE: Trying to improve x49gp - debrouxl - 10-29-2014, 09:18 AM RE: Trying to improve x49gp - Claudio L. - 10-29-2014, 11:58 AM RE: Trying to improve x49gp - Claudio L. - 10-29-2014, 12:04 PM RE: Trying to improve x49gp - Anderson Costa - 11-03-2014, 07:17 PM RE: Trying to improve x49gp - 3298 - 11-04-2014, 09:50 PM RE: Trying to improve x49gp - Egan Ford - 11-08-2014, 09:50 PM RE: Trying to improve x49gp - 3298 - 05-05-2018, 10:43 PM RE: Trying to improve x49gp - 3298 - 05-05-2018, 10:45 PM RE: Trying to improve x49gp - Claudio L. - 05-07-2018, 06:33 PM RE: Trying to improve x49gp - 3298 - 05-07-2018, 08:55 PM RE: Trying to improve x49gp - Claudio L. - 05-07-2018, 11:09 PM RE: Trying to improve x49gp - dmmaster - 05-07-2018, 07:17 PM RE: Trying to improve x49gp - 3298 - 05-07-2018, 08:12 PM RE: Trying to improve x49gp - dmmaster - 05-07-2018, 08:36 PM RE: Trying to improve x49gp - Claudio L. - 05-08-2018, 02:57 AM RE: Trying to improve x49gp - 3298 - 05-08-2018, 11:19 AM RE: Trying to improve x49gp - Claudio L. - 05-08-2018, 03:02 PM RE: Trying to improve x49gp - 3298 - 05-08-2018, 06:17 PM RE: Trying to improve x49gp - 3298 - 05-13-2018, 10:27 PM RE: Trying to improve x49gp - Claudio L. - 05-14-2018, 01:24 AM RE: Trying to improve x49gp - 3298 - 05-15-2018, 10:22 AM RE: Trying to improve x49gp - 3298 - 08-23-2018, 05:44 PM RE: Trying to improve x49gp - ijabbott - 08-23-2018, 07:15 PM RE: Trying to improve x49gp - Claudio L. - 08-24-2018, 02:36 AM RE: Trying to improve x49gp - 3298 - 08-26-2018, 02:22 PM RE: Trying to improve x49gp - pier4r - 08-26-2018, 06:31 PM RE: Trying to improve x49gp - Claudio L. - 08-27-2018, 01:39 PM RE: Trying to improve x49gp - 3298 - 08-27-2018, 08:20 PM RE: Trying to improve x49gp - Claudio L. - 08-27-2018, 09:07 PM RE: Trying to improve x49gp - 3298 - 08-27-2018, 10:39 PM RE: Trying to improve x49gp - Claudio L. - 08-28-2018, 02:51 AM RE: Trying to improve x49gp - 3298 - 08-28-2018, 08:04 AM RE: Trying to improve x49gp - Claudio L. - 08-29-2018, 02:17 AM RE: Trying to improve x49gp - 3298 - 08-29-2018, 11:12 AM RE: Trying to improve x49gp - Claudio L. - 08-29-2018, 10:02 PM RE: Trying to improve x49gp - 3298 - 08-29-2018, 10:21 PM RE: Trying to improve x49gp - brickviking - 08-29-2018, 10:46 PM RE: Trying to improve x49gp - 3298 - 08-29-2018, 11:53 PM RE: Trying to improve x49gp - Claudio L. - 08-30-2018, 09:35 PM RE: Trying to improve x49gp - Claudio L. - 08-29-2018, 10:09 PM RE: Trying to improve x49gp - brickviking - 08-31-2018, 12:10 AM RE: Trying to improve x49gp - Claudio L. - 08-31-2018, 12:47 AM RE: Trying to improve x49gp - 3298 - 08-31-2018, 08:15 AM RE: Trying to improve x49gp - Claudio L. - 08-31-2018, 06:11 PM RE: Trying to improve x49gp - pier4r - 08-31-2018, 07:43 PM RE: Trying to improve x49gp - brickviking - 08-31-2018, 10:52 PM RE: Trying to improve x49gp - Sylvain Cote - 08-31-2018, 11:12 PM RE: Trying to improve x49gp - Claudio L. - 08-31-2018, 11:45 PM RE: Trying to improve x49gp - Claudio L. - 10-04-2018, 09:21 PM RE: Trying to improve x49gp - brickviking - 10-05-2018, 08:55 AM RE: Trying to improve x49gp - 3298 - 10-05-2018, 11:26 AM RE: Trying to improve x49gp - 3298 - 10-09-2018, 03:13 PM RE: Trying to improve x49gp - Claudio L. - 10-10-2018, 02:25 PM RE: Trying to improve x49gp - 3298 - 10-10-2018, 09:50 PM RE: Trying to improve x49gp - Claudio L. - 10-11-2018, 02:43 AM RE: Trying to improve x49gp - Claudio L. - 10-05-2018, 06:33 PM RE: Trying to improve x49gp - brickviking - 10-05-2018, 09:43 PM RE: Trying to improve x49gp - brickviking - 10-10-2018, 09:21 PM

User(s) browsing this thread: 1 Guest(s)