General Category > OpenLase Discussion

Level nearly completed ...

<< < (4/6) > >>

Macpod:
Glad you got it working. To compile jv4779's code you should do the following:

To build


--- Code: ---cd ~/Desktop
mkdir mame
cd mame
git clone https://github.com/jv4779/openlase-mame.git
cd openlase-mame/xmame-0.106

--- End code ---

If you have not installed the libopenlase.so library, you will need to specify where it is located:

--- Code: ---export LD_LIBRARY_PATH=/home/<openlase directory>/build/libol:$LD_LIBRARY_PATH

--- End code ---

In the Makefile within the of xmame-0.106 directory make the following changes:

--- Code: ---Change this line to point to where openlase source is:
OL_DIR = /home/nelsonjm/laser_projector/openlase_macpod/openlase

Change this line:
#CFLAGS = -O2 -mtune=i686 -fomit-frame-pointer -fstrength-reduce -ffast-math
To this:
CFLAGS += -O2 -mtune=i686 -fomit-frame-pointer -fstrength-reduce -ffast-math

Comment out this line (assuming you are running a 64-bit os):
MY_CPU = i386
And uncomment this line:
MY_CPU = em64t

If you want to use a joystick, uncomment this line:
JOY_STANDARD = 1


If you want sounds, uncomment htis line:
SOUND_ALSA = 1

--- End code ---

Build it:

--- Code: ---make

--- End code ---

To run:
If you have not installed the libopenlase.so library, you will need to specify where it is located:

--- Code: ---export LD_LIBRARY_PATH=/home/<openlase directory>/build/libol:$LD_LIBRARY_PATH

--- End code ---


--- Code: ---Copy or link xmamerc that is in ~/Desktop/mame/openlase-mame/ into $HOME/.xmame directory

Update rompath in $HOME/.xmame/xmamerc to point to where your roms are

Start up openlase (ie jackctl, etc)

cd ~/Desktop/mame/openlase-mame/xmame-0.106
padsp ./xmame.x11 asteroid

--- End code ---

Fabrice:
Dear MacPod,

Everything goes well until the 'make' command ... :'(

Terminal returns :

skappy@skappy-portable:~/Bureau/mame/openlase-mame/xmame-0.106$ export LD_LIBRARY_PATH=/home/skappy/openlase/libol:$LD_LIBRARY_PATH
skappy@skappy-portable:~/Bureau/mame/openlase-mame/xmame-0.106$ make
Compiling src/chd.c ...
src/chd.c:13:18: fatal error: zlib.h: Aucun fichier ou dossier de ce type
 #include <zlib.h>                  ^
compilation terminated.
make: *** [xmame.obj/chd.o] Erreur 1
skappy@skappy-portable:~/Bureau/mame/openlase-mame/xmame-0.106$

It seems that it does not find the zlib.h files ...
 :-[ still a little help MacPod ?  :-[

Thank you so much !

---- LAST MINUTE NEWS ---
Magic has operated ...
I have put the 2 missing files in the main directory and compilation starts ...  ;)
But .. that was too easy ...
Terminal finally returns

src/unix/video-drivers/xv.c:14:31: fatal error: X11/extensions/Xv.h: Aucun fichier ou dossier de ce type
 #include <X11/extensions/Xv.h>
                               ^
compilation terminated.
make: *** [xmame.obj/unix.x11/video-drivers/xv.o] Erreur 1

And this time, the Xv.h file is not in the neighborhood  :'( so I still need help MacPod  :-[ :-[

Thx

Macpod:
If you receive messages concerning missing header files, it indicates you do not have the appropriate developer packages installed on your computer which contain these headers.

When you encounter errors of this type, you will need to identify and install the package which provides these headers. This page describes how to do this:
https://kobablog.wordpress.com/2011/05/17/how-to-find-and-install-the-missing-file-in-ubuntu/

In your case you need to install the following packages (note that packages ending with -dev indicates they include headers generally):

--- Code: ---sudo apt-get install zlib1g-dev x11proto-video-dev

--- End code ---


You should remove the two headers you added to the project folder.

Fabrice:
MacPod,
I have erase the mame directory from the last installation and start the process from the beginning , installed a new stuff by myself  8) (it was sudo apt-get install libxv-dev)


But now terminal returns ....

(...)
Compiling src/chdcd.c ...
src/chdcd.c: In function ‘cdrom_parse_toc’:
src/chdcd.c:153:8: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
   fgets(linebuffer, 511, infile);
        ^
[OSDEPEND] Compiling src/unix/osd_tool.c ...
Linking chdman...
Compiling src/xml2info.c ...
src/xml2info.c: In function ‘process_error’:
src/xml2info.c:232:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘XML_Size’ [-Wformat=]
  fprintf(stderr, "%d:%s:%s\n", XML_GetCurrentLineNumber(state->parser), tag, msg);
  ^
Linking xml2info...
Compiling src/jedutil.c ...
Linking jedutil...
skappy@skappy-portable:~/Bureau/mame/openlase-mame/xmame-0.106$

Help once again is really welcome  :P

Thx MacPod


Macpod:
Some warnings are expected. As long as there were no errors you are ok. Looks like it finished compiling successfully

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version