It is currently Tue Mar 19, 2024 11:01 am


All times are UTC [ DST ]


Forum rules


When asking for help, make sure you are using the latest stable version of Daphne with the latest DaphneLoader. "For sale", auction, or ebay links do not belong here. Legal discussion is discouraged.



Post new topic Reply to topic  [ 17 posts ] 
Author Message
 Post subject: Compiling the whole shebang for Linux amd64
PostPosted: Mon May 04, 2015 6:08 am 
Registered User
Registered  User

Joined: Sat Feb 22, 2014 7:46 am
Posts: 9
I think I've managed to get Daphne itself compiled for Linux adm64 (Debian 7). I've corrected various problems in Makefiles and elsewhere (that provoked -Werror) and put the results up at Github (DavidGriffith/daphne -- add in the rest of Github URL. The forum thinks I'm spamming). I'm having problems getting vldp2.so compiled. From perusing the forum, I've figured out that I'm supposed to invoke configure with "--disable-accel-detect". Then when I type "make", I get compilation up to this point:

gcc -g -Wall -O3 -fomit-frame-pointer -o mpeg2dec mpeg2dec.o getopt.o gettimeofday.o ../libmpeg2/.libs/libmpeg2.a ../libvo/libvo.a -lSM -lICE -lX11 -lXext -L/usr/lib/x86_64-linux-gnu -lSDL
../libvo/libvo.a(video_out_null.o): In function `null_draw_frame':
/home/dave/proj/src/foo/src/vldp2/libvo/video_out_null.c:50: undefined reference to `s_frames_to_skip'
/home/dave/proj/src/foo/src/vldp2/libvo/video_out_null.c:50: undefined reference to `s_skip_all'

There are about 50 or so more lines of undefined reference complaints. Looking at vldp2/libvo/video_out_null.c, I see that s_frames_to_skip and friends are defined in vldp2/vldp/vldp_internal.h which is included in the former file. Why aren't the contents of that header file getting picked up?


Top
Offline Profile  
 
 Post subject: Re: Compiling the whole shebang for Linux amd64
PostPosted: Fri May 08, 2015 3:52 am 
Registered User
Registered  User

Joined: Sat Feb 22, 2014 7:46 am
Posts: 9
I figured it would be worth a shot to upgrade libmpeg2 from version 0.3.1 to 0.5.1. I managed to successfully compile libvldp2.so. Daphne itself reports that it can't load the library. I'm not sure if it can't load the library or some call to a library function is choking. As usual, the fruits of my labors are at Github.

When building libvldp2.so, you'll need to do "make -f Makefile.linux_amd64 clean" before "make -f Makefile.linux_amd64" or else it'll complain.


Top
Offline Profile  
 
 Post subject: Re: Compiling the whole shebang for Linux amd64
PostPosted: Sat Jun 06, 2015 9:42 am 
Registered User
Registered  User

Joined: Wed May 07, 2014 1:23 pm
Posts: 6
I am interested in this.
I tried it myself, but failed, also because of errors in the makefile.
It's getting increasingly more difficult to get Daphne to run on a 64 bit linux system.
So far i succeeded by installing 32 bit libraries.
I don't know much about coding so i can't be of much help.


Top
Offline Profile  
 
 Post subject: Re: Compiling the whole shebang for Linux amd64
PostPosted: Tue Oct 06, 2015 8:57 am 
Registered User
Registered  User

Joined: Sat Feb 22, 2014 7:46 am
Posts: 9
I've been fooling with Daphne some more and have found Matt's latest subversion repo version of Daphne. I ditched the old repo I had, rebuilt it with the SVN code, and tweaked it such that it really will build and run on 64-bit linux. Check it out and let me know what you think.


Top
Offline Profile  
 
 Post subject: Re: Compiling the whole shebang for Linux amd64
PostPosted: Sat Nov 14, 2015 10:13 am 
Registered User
Registered  User

Joined: Wed May 07, 2014 1:23 pm
Posts: 6
[quote="Frotz"]I've been fooling with Daphne some more and have found Matt's latest subversion repo version of Daphne. I ditched the old repo I had, rebuilt it with the SVN code, and tweaked it such that it really will build and run on 64-bit linux. Check it out and let me know what you think.[/quote]

Sorry for the late answer, haven't checked in for a while.
I would like to test your code if you point me to it.
Daphne is difficult to set up on 64 bit ubuntu systems, but i found out it works fine on 64 bit Linux Mint.
So, i reinstalled my cab with Linux Mint XFCE.


Top
Offline Profile  
 
 Post subject: Re: Compiling the whole shebang for Linux amd64
PostPosted: Sat Nov 14, 2015 10:52 am 
Registered User
Registered  User

Joined: Sat Feb 22, 2014 7:46 am
Posts: 9
[quote="Ford_Prefect"][quote="Frotz"]I've been fooling with Daphne some more and have found Matt's latest subversion repo version of Daphne. I ditched the old repo I had, rebuilt it with the SVN code, and tweaked it such that it really will build and run on 64-bit linux. Check it out and let me know what you think.[/quote]

Sorry for the late answer, haven't checked in for a while.
I would like to test your code if you point me to it.
Daphne is difficult to set up on 64 bit ubuntu systems, but i found out it works fine on 64 bit Linux Mint.
So, i reinstalled my cab with Linux Mint XFCE.[/quote]

I've upgraded my main machine to Debian 8.

Here's the repo: https://github.com/DavidGriffith/daphne


Top
Offline Profile  
 
 Post subject: Re: Compiling the whole shebang for Linux amd64
PostPosted: Thu Nov 19, 2015 3:14 pm 
Registered User
Registered  User

Joined: Wed May 07, 2014 1:23 pm
Posts: 6
Hello.

I tried to compile Daphne on a amd Phenom 6 core (1055t)
The first part went fine, until "make".
This is what i get:

Makefile:82: daphne.d: Bestand of map bestaat niet
set -e; g++ -MM -O3 -march=i686 -fomit-frame-pointer -fexpensive-optimizations -funroll-loops `sdl-config --cflags` -DUNIX -DLINUX -DNATIVE_CPU_X86 -DUSE_MMX -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DUSE_OPENGL -DBUILD_SINGE -Wall daphne.cpp \
| sed 's^\(daphne\)\.o[ :]*^\1.o daphne.d : ^g' > daphne.d; \
[ -s daphne.d ] || rm -f daphne.d
cc1plus: error: CPU you selected does not support x86-64 instruction set
cc1plus: error: CPU you selected does not support x86-64 instruction set
g++ -O3 -march=i686 -fomit-frame-pointer -fexpensive-optimizations -funroll-loops `sdl-config --cflags` -DUNIX -DLINUX -DNATIVE_CPU_X86 -DUSE_MMX -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DUSE_OPENGL -DBUILD_SINGE -Wall -c daphne.cpp -o daphne.o
daphne.cpp:1:0: error: CPU you selected does not support x86-64 instruction set
/*
^
daphne.cpp:1:0: error: CPU you selected does not support x86-64 instruction set
Makefile:85: recept voor doel 'daphne.o' is mislukt
make: *** [daphne.o] Fout 1

Sorry for the dutch language, the first line is: file or folder does not exist, and i am certain my cpu is X86-64, as is the o.s. (Xubuntu 15.10)
Hope you can make something of it.


Top
Offline Profile  
 
 Post subject: Re: Compiling the whole shebang for Linux amd64
PostPosted: Wed Dec 02, 2015 11:05 pm 
Registered User
Registered  User

Joined: Sat Feb 22, 2014 7:46 am
Posts: 9
Look at the first couple lines of the output:

Makefile:82: daphne.d: Bestand of map bestaat niet
set -e; g++ -MM -O3 -march=i686 -fomit-frame-pointer -fexpensive-optimizations -funroll-loops `sdl-config --cflags` -DUNIX

See that "-march=i686". That means that you want to compile to x86 32-bit mode whereas you're including 64-bit code. Are you sure you're using the correct Makefile?


Top
Offline Profile  
 
 Post subject: Re: Compiling the whole shebang for Linux amd64
PostPosted: Thu Dec 03, 2015 1:23 pm 
Registered User
Registered  User

Joined: Wed May 07, 2014 1:23 pm
Posts: 6
Hello.

I tried it again;
I think there is a little error in your readme file:
I changed this line: "ln -s Makefile.vars.linux_x86 Makefile.vars" to: "ln -s Makefile.vars.linux_x64 Makefile.vars".
I think that's what you meant, (i am a total noob in compiling stuf).
Now i get this error: "In file included from ldp-vldp.cpp:57:0:
ldp-vldp-gl.h:9:21: fatal error: GL/glew.h: Bestand of map bestaat niet
compilation terminated."
(Bestand of map bestaat niet means no such file or folder)
I wanted to attach the whole output of the "make" command, but it seems i am unable to attach anything


Top
Offline Profile  
 
 Post subject: Re: Compiling the whole shebang for Linux amd64
PostPosted: Thu Dec 03, 2015 10:08 pm 
Registered User
Registered  User

Joined: Sat Feb 22, 2014 7:46 am
Posts: 9
Yes, that change is what I meant. The latest complaint means that your computer is missing the GLEW library.


Top
Offline Profile  
 
 Post subject: Re: Compiling the whole shebang for Linux amd64
PostPosted: Sun Dec 06, 2015 3:07 pm 
Registered User
Registered  User

Joined: Wed May 07, 2014 1:23 pm
Posts: 6
It looks like i have managed to compile Daphne now.
I have set up Mahcade and got Space Ace running.
Daphneloader is not starting tough, daphneloader.bin is not present, do we need to compile that too?


Top
Offline Profile  
 
 Post subject: Re: Compiling the whole shebang for Linux amd64
PostPosted: Mon Dec 07, 2015 1:37 am 
Registered User
Registered  User

Joined: Sat Feb 22, 2014 7:46 am
Posts: 9
The source code to daphneloader.bin is not available. I've been trying off and on to come up with a modernized substitute.


Top
Offline Profile  
 
 Post subject: Re: Compiling the whole shebang for Linux amd64
PostPosted: Mon Dec 07, 2015 7:43 am 
Registered User
Registered  User

Joined: Wed May 07, 2014 1:23 pm
Posts: 6
Thanks so far.


Top
Offline Profile  
 
 Post subject: Re: Compiling the whole shebang for Linux amd64
PostPosted: Thu Oct 18, 2018 12:32 pm 
Registered User
Registered  User

Joined: Wed May 07, 2014 1:23 pm
Posts: 6
Hello David.
It's been a while, i hope you are still around.
I am reinstalling my arcade cab on a new ssd+hard drive. (Linux Mint 19 Xfce)
The old, working installation is still in there, but getting quite messy.
I have successfully compiled you version of Daphne, and for now have set it up for Space Ace and Dragons Lair.
Dragons lair only wants to start when using the "dl_f2_u1" to u4 rom, that way i am missing the drawbridge scene.
Is there a way to make Daphne use a different rom, like: DLE21_U1 to U3?
Greets, Ger.


Top
Offline Profile  
 
 Post subject: Re: Compiling the whole shebang for Linux amd64
PostPosted: Sun Apr 07, 2019 6:52 pm 
Registered User
Registered  User

Joined: Sun Apr 07, 2019 6:48 pm
Posts: 0
Hi David, thanks for the work you have put into this thing.
One thing however, thanks to your great github project I was able to compile the code and it works already
for dragons lair and other video only games.
But whenever I hit a game which has overlays like Astron Belt, I am getting a memory error. Probably caused by 32 bit data being pushed to an SDL api.
Any ideas?


Top
Offline Profile  
 
 Post subject: Re: Compiling the whole shebang for Linux amd64
PostPosted: Wed Feb 05, 2020 6:38 pm 
Registered User
Registered  User

Joined: Wed Feb 05, 2020 3:58 pm
Posts: 2
Hi guys,

There is a SDL2 version of Daphne with Singe support out there now.

Google for 'Hypseus Singe' - it has quite a few presentation enhancements.

Also ports for Mac and Windows.


Last edited by xxOToTOxx on Thu Jul 15, 2021 8:50 am, edited 1 time in total.

Top
Offline Profile  
 
 Post subject: Re: Compiling the whole shebang for Linux amd64
PostPosted: Thu Feb 06, 2020 7:28 am 
Registered User
Registered  User

Joined: Wed May 07, 2014 1:23 pm
Posts: 6
Thanks, i will try that.


Top
Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net