Page 5 of 13 FirstFirst ... 34567 ... LastLast
Results 41 to 50 of 130

Thread: HOWTO: Compile VICE in Ubuntu

  1. #41

    Re: HOWTO: Compile VICE in Dapper and Edgy

    Sorry I haven't been able to look at this lately; I'm going to try it in the next few hours and see if I get the same errors.
    Ubuntu user #7247 :: Linux user #409907
    inconsolation.wordpress.com

  2. #42

    Re: HOWTO: Compile VICE in Dapper and Edgy

    Quote Originally Posted by Sir Nose View Post
    Also, it might be useful to include some optimizations as VICE is one of the more cpu-intensive programs.

    CFLAGS="-march=i686 -O5 -DNO_REGPARM" ./configure
    Good idea. If you're using another architecture than an i686, you might want to look up the CFLAGS that are appropriate for your CPU.

    http://gentoo-wiki.com/Safe_Cflags

    If you're not sure what CPU you use, you could try

    Code:
    cat /proc/cpuinfo
    I believe the "model name" category will give you the processor you're using, and you can use CFLAGS that are specific to your chip.
    Ubuntu user #7247 :: Linux user #409907
    inconsolation.wordpress.com

  3. #43

    Re: HOWTO: Compile VICE in Dapper and Edgy

    I'm getting the same errors in Feisty with version 1.21, and in Feisty with a deb built under Edgy.

    As best I can tell, libx11 is what causes the VICE package to break.

    http://www.nabble.com/Bug-418295%3A-...-p9896114.html

    It looks like a patch is suggested there, but I won't get a chance to try it for a week or so. If anyone can try it and tell us if it works, it would be greatly appreciated.
    Ubuntu user #7247 :: Linux user #409907
    inconsolation.wordpress.com

  4. #44
    Join Date
    Mar 2006
    Location
    Eefde, The Netherlands
    Beans
    432
    Distro
    Ubuntu 10.04 Lucid Lynx

    Thumbs up Re: HOWTO: Compile VICE in Dapper and Edgy

    Tried the patch, well, that is, I altered the offending lines in the source of VICE 1.21 and x64 is running a Horizon demo right now

    What you need to change is this:

    In line 123/124 of src/arch/unix/x11/xaw/uicolor.c:
    Code:
        im = XCreateImage(display, visual, x11ui_get_display_depth(),
                          ZPixmap, 0, (char *)data, 1, 1, 8, 1);
    change this to:
    Code:
        im = XCreateImage(display, visual, x11ui_get_display_depth(),
                          ZPixmap, 0, (char *)data, 1, 1, 8, 0);
    These same goes for line 167-169 in src/arch/unix/x11/gnome/uicolor.c, when compiling with --enable-gnomeui:
    Code:
        im = XCreateImage(display, GDK_VISUAL_XVISUAL(visual),
                          x11ui_get_display_depth(),
                          ZPixmap, 0, (char *)data, 1, 1, 8, 1);
    change to:
    Code:
        im = XCreateImage(display, GDK_VISUAL_XVISUAL(visual),
                          x11ui_get_display_depth(),
                          ZPixmap, 0, (char *)data, 1, 1, 8, 0);

    I had already noticed that these lines where causing the error, but didn't know how to deal with it, since I've never used X11 libraries in my code.

    Now I can finally watch the Breakpoint 2007 entries, hooray!!
    (I considered switching back to Gentoo because of this... I'm a C64-addict, I know )

  5. #45
    Join Date
    Jan 2006
    Location
    Gyergyo/Transylvania
    Beans
    30
    Distro
    The Feisty Fawn Testing

    Re: HOWTO: Compile VICE in Dapper and Edgy

    Quote Originally Posted by Compyx View Post
    Now I can finally watch the Breakpoint 2007 entries, hooray!!
    (I considered switching back to Gentoo because of this... I'm a C64-addict, I know )
    I'd rather think about getting a real thing. I had some sleepless nights when I was younger playing Int. Karate+. Thanks for the patch, I'll try it right away.
    Linux... The choice of a GNU generation.

  6. #46
    Join Date
    Mar 2006
    Location
    Eefde, The Netherlands
    Beans
    432
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: Compile VICE in Dapper and Edgy

    Quote Originally Posted by eddie303 View Post
    I'd rather think about getting a real thing. I had some sleepless nights when I was younger playing Int. Karate+. Thanks for the patch, I'll try it right away.
    Well, I have 3 C64's, but my floppies and drives are a bit of a mess. And I prefer cross-development over working on the real deal, today's assemblers and editors (vim!) are much better than the old Turbo Assembler

  7. #47
    Join Date
    Jul 2006
    Beans
    19

    Re: HOWTO: Compile VICE in Dapper and Edgy

    Compyx, first of all, thanks for the patch. It works for me... once.

    The first time after using it and running X64, things worked fine. However now on subsequent starts, I do not get a C64 screen at all; just the menu bar and the bottom line (with the fps info and such) right below it. Not even apt-get remove --purge and a reinstall (from the home-made package ) helps.

    The no-screen-at-all thing on subsequent starts also happened before I used Compyx's patch, BTW.

    ...help please?

  8. #48
    Join Date
    Mar 2006
    Location
    Eefde, The Netherlands
    Beans
    432
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: Compile VICE in Dapper and Edgy

    First of all, it's not my patch, the patch was mentioned by K. Mandla., I just showed how to apply the patch with a text-editor or something similar.

    Anyway, this no-screen thing happened to me a lot too, I found that compiz was the cause of this, so if you're running compiz, try disabling compiz and then running x64, maybe that'll help. I'll have to investigate further, and then maybe report a bug.

  9. #49

    Re: HOWTO: Compile VICE in Dapper and Edgy

    Thanks, people. I tacked on a little warning to the OP, and linked to Compyx's instructions. Cheers.
    Ubuntu user #7247 :: Linux user #409907
    inconsolation.wordpress.com

  10. #50

    Re: HOWTO: Compile VICE in Dapper, Edgy and Feisty

    I also got the black screen problem after an X11 update. I had installed VICE 1.19 from the repositories and manually downloaded and copied the ROM files to the correct place. Hmmm, it looks a bit complicated to compile yourself. Can't somebody do a compilation and put the .deb file somewhere instead so we can download and install or doesn't it work to do it that easy?

Page 5 of 13 FirstFirst ... 34567 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •