Search found 28 matches

by AmatCoder
Wed 01 Nov, 2017 3:18 pm
Forum: Development
Topic: [Linux] GUI discussion
Replies: 218
Views: 177573

Re: [Linux] GUI discussion

Edit : I've logged as root, configure script and make have run fine. Is there anything I can do with a normal user account on CentOS 6.x? On a debian-based Linux system installed in a virtual machine, there are no problems with normal user accounts. I guess that something is wrong in your system. C...
by AmatCoder
Wed 01 Nov, 2017 1:52 pm
Forum: Development
Topic: [Linux] GUI discussion
Replies: 218
Views: 177573

Re: [Linux] GUI discussion

Check the output of:

Code: Select all

$ pkg-config --variable pc_path pkg-config
Per example, here (on Arch Linux) gives:

Code: Select all

/usr/lib/pkgconfig:/usr/share/pkgconfig
One file called sdl2.pc must exist into one of those directories.
by AmatCoder
Tue 31 Oct, 2017 3:26 pm
Forum: Development
Topic: [Linux] GUI discussion
Replies: 218
Views: 177573

Re: [Linux] GUI discussion

It seems that you have installed SDL2 into /usr/local . Uninstall it and then re-install it with: $ ./configure --prefix=/usr Rationale: Configure script installs packages into /usr/local/ by default (i.e. if prefix is not set). As pkg-config * will search for .pc files in the directories /usr/lib/p...
by AmatCoder
Sun 29 Oct, 2017 9:49 pm
Forum: Development
Topic: [Linux] GUI discussion
Replies: 218
Views: 177573

Re: [Linux] GUI discussion

It looks like you have not installed the SDL2 libraries. Rationale: There is a bug into sdl2.m4 file since version 2.0.5. It causes that the configure script does not exit when it does not find the SDL2 libraries. The configure script fails when checking OpenAL because it tries to compile a test lin...
by AmatCoder
Thu 19 Oct, 2017 11:43 am
Forum: General
Topic: PCEM compilation on Ubuntu 17.10
Replies: 15
Views: 11972

Re: PCEM compilation on Ubuntu 17.10

Add into src/slirp/slirp.h file:

Code: Select all

#include <stdint.h>
by AmatCoder
Thu 19 Oct, 2017 9:17 am
Forum: General
Topic: PCEM compilation on Ubuntu 17.10
Replies: 15
Views: 11972

Re: PCEM compilation on Ubuntu 17.10

@legluondunet

I don't use Ubuntu, but you can try:

Code: Select all

$ sudo update-alternatives --config wx-config
to choose the correct wx-config (gtk2-unicode-release-3.0).
by AmatCoder
Thu 19 Oct, 2017 9:07 am
Forum: General
Topic: PCEM compilation on Ubuntu 17.10
Replies: 15
Views: 11972

Re: PCEM compilation on Ubuntu 17.10

@szadycbr

Just type in terminal:

Code: Select all

$ autoreconf -fi
and re-run ./configure && make.
by AmatCoder
Mon 05 Jun, 2017 10:07 pm
Forum: Development
Topic: [Linux] GUI discussion
Replies: 218
Views: 177573

Re: [Linux] GUI discussion

@bit, I tested it and it's working like a charm. Now PCem (at least the wx port) can be packaged by distros :D . Thanks!
by AmatCoder
Sat 03 Jun, 2017 4:09 pm
Forum: Development
Topic: [Linux] GUI discussion
Replies: 218
Views: 177573

Re: [Linux] GUI discussion

For my part, no. That's exactly what I had in mind.
Thanks for working on this.
by AmatCoder
Thu 01 Jun, 2017 4:07 pm
Forum: Development
Topic: [Linux] GUI discussion
Replies: 218
Views: 177573

Re: [Linux] GUI discussion

I'd be amazed if anyone ever wanted to put PCem in a distro. I'd have assumed that the legal issues associated with the required BIOS images would make it a complete non-starter. Why? Emulators like MAME, Mednafen etc. also require copyrighted bios images and those emulators are packaged on most di...
by AmatCoder
Wed 24 May, 2017 3:06 pm
Forum: Development
Topic: [Linux] GUI discussion
Replies: 218
Views: 177573

Re: [Linux] GUI discussion

@AmatCoder Thank you very much,i m learning thanks to You guys, and i m grateful for it, now it goes nearly to the end but , again i got errors: wx-sdl2-display.o: In function `render': wx-sdl2-display.c:(.text+0xe17): undefined reference to `SDL_WarpMouseGlobal' wx-sdl2-display.c:(.text+0xefc): un...
by AmatCoder
Wed 24 May, 2017 1:39 am
Forum: Development
Topic: [Linux] GUI discussion
Replies: 218
Views: 177573

Re: [Linux] GUI discussion

@szadycbr You can edit makefile and add option -std=gnu99 to CFLAGS. Example: If you want 64-bit version then edit Makefile.linux64-wx-sdl2 file and change line 5 from CFLAGS = -Doff64_t=__off64_t -O3 -fomit-frame-pointer -msse2 -m32 $(shell wx-config --cxxflags) $(shell sdl2-config --cflags) to CFL...
by AmatCoder
Mon 01 May, 2017 4:16 pm
Forum: Development
Topic: [Linux] GUI discussion
Replies: 218
Views: 177573

Re: [Linux] GUI discussion

Gonna explain this. :) The tl;dr is that theoretically, there's nothing stopping you; it just doesn't work that well, is platform specific, and doesn't integrate with your game engine very well. Theoretically, you *can display Win32 controls on top of a DirectX window. Practically, though, it's too...
by AmatCoder
Mon 01 May, 2017 3:25 pm
Forum: Development
Topic: [Linux] GUI discussion
Replies: 218
Views: 177573

Re: [Linux] GUI discussion

My main problem with using this GUI on Windows would be fact it uses SDL for input which on Windows refers back to DirectInput from what I know, which according to Microsoft themselves should not be used for keyboard because it breaks when the host OS is set to a keyboard layout that is not English...
by AmatCoder
Mon 01 May, 2017 3:23 am
Forum: Development
Topic: [Linux] GUI discussion
Replies: 218
Views: 177573

Re: [Linux] GUI discussion

[...]I must mention the resulting binary is huge (10mb) and the dlls it depends on are also huge, but that's probably to expected of the typical huge 'nix UI toolkits[...] When I cross-compiled this for Windows I was able to build an static executable (without dependencies) of only 3.3mb (UPX'ed, o...
by AmatCoder
Thu 13 Apr, 2017 10:48 pm
Forum: Development
Topic: [Linux] GUI discussion
Replies: 218
Views: 177573

Re: [Linux] GUI discussion

I tested this and my thoughts are: Impressive work! :o This is more than I had in mind...Aside from some minor issues the job is done! SDL2 is really great. Now we can resize/fullscreen on Linux...And I believe that now it is faster than Windows port (most probably thanks to OpenGL renderer). It com...
by AmatCoder
Wed 12 Apr, 2017 12:23 am
Forum: General
Topic: [Request] Ubuntu ppa / linux binaries
Replies: 12
Views: 12437

Re: [Request] Ubuntu ppa / linux binaries

PCem is not ready for packaging because it searches for bios and other files in its own path (Windows way).

I.e. if packaged, PCem executable would be in /usr/bin and this directory is not writable by other than root.
by AmatCoder
Mon 10 Apr, 2017 7:15 pm
Forum: Development
Topic: Patches for linux
Replies: 12
Views: 10445

Re: Patches for linux

This one fixes a segmentation fault produced when user select a machine with internal ide hdd into allegro gui.

Rationale: internal_name is a pointer and is uninitialized when copying with strcpy. I think it is better to use a literal.
by AmatCoder
Mon 10 Apr, 2017 6:55 pm
Forum: Development
Topic: Patches for linux
Replies: 12
Views: 10445

Re: Patches for linux

This patch add static specifier to inline functions in 808x.c file.
It fixes undefined references if compiled with --enable-debug option.
by AmatCoder
Mon 10 Apr, 2017 6:31 pm
Forum: Development
Topic: Patches for linux
Replies: 12
Views: 10445

Patches for linux

I will use this thread to upload patches (mainly for linux).

This first one updates makefiles to avoid undefined references.
by AmatCoder
Sun 09 Apr, 2017 9:15 pm
Forum: Development
Topic: [Linux] GUI discussion
Replies: 218
Views: 177573

Re: [Linux] GUI discussion

Well, I have exchanged some PM's with Tuxality and we have decided that I should start this project (Tuxality will join when he find some free time). But there are some technical decisions/options that need to be discussed and it is better to do it here. So I'll write here some guidelines I would li...
by AmatCoder
Tue 04 Apr, 2017 3:06 pm
Forum: General
Topic: CRT Controller Emulation
Replies: 10
Views: 9457

Re: CRT Controller Emulation

[...] Btw. the linux build doesn't recognize et4000.bin while windows build does :? [...] Looking at the code, i think that you need to renamed it because on Linux filenames are case sensitive (and PCem is searching for et4000.BIN file). On Windows it works because the case is ignored if file is op...
by AmatCoder
Mon 06 Mar, 2017 10:56 pm
Forum: Development
Topic: [Linux] GUI discussion
Replies: 218
Views: 177573

Re: [Linux] GUI discussion

Alright, there is no rush, we can wait until April.
When the moment comes, let me know if you need help with this project.

Thanks and regards.
by AmatCoder
Mon 06 Mar, 2017 12:15 am
Forum: Development
Topic: [Linux] GUI discussion
Replies: 218
Views: 177573

Re: [Linux] GUI discussion

SarahWalker wrote:Tuxality was looking at implementing a GTK+ GUI - viewtopic.php?f=2&t=573#p3941. Might be worth syncing up with him?
Ok, I will send a PM to him.
SarahWalker wrote:I'd certainly be interested in including a proper Linux GUI in mainline.
Great! :D
by AmatCoder
Mon 06 Mar, 2017 12:12 am
Forum: Development
Topic: [Linux] GUI discussion
Replies: 218
Views: 177573

Re: [Linux] GUI discussion

I have a soft spot for FLTK only because (on Windows) it doesn't need a hundred of prerequisite dlls installed, doesn't bloat up the binary hugely when statically compiled and it can resemble pretty close to native Windows gui. On the development and linux side i'm not so sure nor am i sure of its ...
by AmatCoder
Sat 04 Mar, 2017 11:13 pm
Forum: Development
Topic: [Linux] GUI discussion
Replies: 218
Views: 177573

[Linux] GUI discussion

Hi again.

I am interested in building a new GUI for linux (I prefer one GTK based but I am open to suggestions).

Would you be interested in integrating this into mainline? Or maybe would it be better to create my own fork?

Is anyone already working on something like this?
by AmatCoder
Thu 02 Mar, 2017 9:50 pm
Forum: Development
Topic: Linux autotools patch
Replies: 3
Views: 3590

Re: Linux autotools patch

Here another patch to fix segfault when there are no roms presents.
by AmatCoder
Thu 02 Mar, 2017 9:45 pm
Forum: Development
Topic: Linux autotools patch
Replies: 3
Views: 3590

Linux autotools patch

Hi to all! I wrote one patch to fix building with autotools on Linux. It is in a weird state right now and most probably it would require more improvements. These are the minimum changes to bring it to a state where it can be used to compile PCem. Changes are: allegro.m4 file is added and configure....