SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-08-04 10:57:03

nitrofurano
Member
Registered: 2010-12-01
Posts: 46

compiling stuff: where to get better help about configure, make, etc?

hi!

i'm asking here because i really don't know where to ask efficiently questions like this. (i there is no specific area for this kind of questions, or which forum out there is better for this)

i'm trying to compile this emulator - http://dcvg5k.free.fr/v2/dcvg5kv2en.html - on Crunchbang - downloaded these sources, installed the libsdl*-dev packages from the repository, and extracted both Z80-081707.zip and EMUTools-113001.tar.Z ( from http://fms.komkon.org/EMUL8/ ) into Z80 folder there.

so, i tried: ( http://dcvg5k.free.fr/v2/dcvg5kv2en.html  said only 'make' is needed - the errord are at the last 7 lines )

guest@crunchbang:~/downloads/_emulator_vg5000_/2atentativa/dcvg5kv2.0$ make
cc -c source/dcvg5kmain.c -o object/dcvg5kmain.o -O2
cc -c Z80/Z80.c -o object/Z80.o -O2
cc -c Z80/dasmz80.c -o object/dasmz80.o -O2
cc -c source/dcef9345.c -o object/dcef9345.o -O2
cc -c source/dcvg5kdesass.c -o object/dcvg5kdesass.o -O2
cc -c source/dcvg5kboutons.c -o object/dcvg5kboutons.o -O2
cc -c source/dcvg5kdialog.c -o object/dcvg5kdialog.o -O2
cc -c source/dcvg5kdevices.c -o object/dcvg5kdevices.o -O2
cc -c source/dcvg5kemulation.c -o object/dcvg5kemulation.o -O2
cc -c source/dcvg5kkeyb.c -o object/dcvg5kkeyb.o -O2
cc -c source/dcvg5koptions.c -o object/dcvg5koptions.o -O2
cc -c source/dcvg5kvideo.c -o object/dcvg5kvideo.o -O2
cc -o dcvg5k -lSDL -lSDL_ttf object/dcvg5kmain.o object/Z80.o
object/dasmz80.o object/dcef9345.o object/dcvg5kdesass.o
object/dcvg5kboutons.o object/dcvg5kdialog.o object/dcvg5kdevices.o
object/dcvg5kemulation.o object/dcvg5kkeyb.o object/dcvg5koptions.o
object/dcvg5kvideo.o
object/dasmz80.o: In function `main':
dasmz80.c:(.text.startup+0x0): multiple definition of `main'
object/dcvg5kmain.o:dcvg5kmain.c:(.text.startup+0x0): first defined here
object/dcvg5kdesass.o: In function `Displaydesass':
dcvg5kdesass.c:(.text+0x2ae): undefined reference to `DAsm'
collect2: ld returned 1 exit status
make: *** [dcvg5k] Error 1
guest@crunchbang:~/downloads/_emulator_vg5000_/2atentativa/dcvg5kv2.0$

any clues?
thanks! smile
p.

Offline

Help fund CrunchBang, donate to the project!

#2 2012-08-04 11:06:06

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 3,008

Re: compiling stuff: where to get better help about configure, make, etc?

Have you looked at Quick Ref?


Artwork at deviantArt;  Iceweasel Personas;  SLiM #! Themes;  Openbox themes

Offline

#3 2012-08-04 16:27:06

pidsley
Window Mangler
Registered: 2012-05-23
Posts: 1,752

Re: compiling stuff: where to get better help about configure, make, etc?

nitrofurano wrote:

any clues?
thanks! smile
p.

Maybe you missed the "All Platforms" heading. Did you do all these steps (especially the SDL and SDL_ttf and the Z80.h steps)?

  • Create a new folder and name it dcvg5k (or any other name you like).

  • Download dcvg5kv2.0.zip or dcvg5kv2.0.tar.gz to this folder.

  • Unpack the archive, keeping the directory structure.

  • Install SDL and SDL_ttf libraries. Development version is required to compile. Otherwise you just need runtime library.

  • Z80 emulator and dasmz80 disassembler licences don't allow source distribution. In order to compile, they have to be downloaded from Computer     Emulation Resources to dcvg5k/Z80 subfolder. In Z80.h file, uncomment #define LSB_FIRST or #define MSB_FIRST instruction according to the microprocessor endianness. In dasmz80.c comment out the whole main() function.

  • Compile DCVG5K, depending on your operating system (not required with Windows).
    /software subfolder contains VG5000 tape images (.k7 extension). You can add your own files (look also at dcvg5k collection).

It doesn't look like it, because in your build ouput there is this:

object/dasmz80.o: In function `main':

and dasmz80.o shouldn't have a `main' function if you commented it out in dasmz80.c according to the instructions.

If you are sure you did everything right, at the top of the page is the dev's email address:

DCVG5K v2 is a VG5000 emulator created by Daniel Coulom (mail to danielcoulom at gmail dot com).

And at the bottom of the page there are links:

VG5000 fan's page

My VG5000 by Carl

Unfortunately the fan page is in French hmm

Last edited by pidsley (2012-08-04 16:39:16)

Offline

#4 2012-08-05 13:01:22

nitrofurano
Member
Registered: 2010-12-01
Posts: 46

Re: compiling stuff: where to get better help about configure, make, etc?

pidsley wrote:
nitrofurano wrote:

any clues?
thanks! smile
p.

Maybe you missed the "All Platforms" heading. Did you do all these steps (especially the SDL and SDL_ttf and the Z80.h steps)?

  • Create a new folder and name it dcvg5k (or any other name you like).

  • Download dcvg5kv2.0.zip or dcvg5kv2.0.tar.gz to this folder.

  • Unpack the archive, keeping the directory structure.

  • Install SDL and SDL_ttf libraries. Development version is required to compile. Otherwise you just need runtime library.

  • Z80 emulator and dasmz80 disassembler licences don't allow source distribution. In order to compile, they have to be downloaded from Computer     Emulation Resources to dcvg5k/Z80 subfolder. In Z80.h file, uncomment #define LSB_FIRST or #define MSB_FIRST instruction according to the microprocessor endianness. In dasmz80.c comment out the whole main() function.

  • Compile DCVG5K, depending on your operating system (not required with Windows).
    /software subfolder contains VG5000 tape images (.k7 extension). You can add your own files (look also at dcvg5k collection).

It doesn't look like it, because in your build ouput there is this:

object/dasmz80.o: In function `main':

and dasmz80.o shouldn't have a `main' function if you commented it out in dasmz80.c according to the instructions.

i commented it, now i get this:

guest@crunchbang:~/downloads/_emulator_vg5000_/2atentativa/dcvg5kv2.0$ make
cc -o dcvg5k -lSDL -lSDL_ttf object/dcvg5kmain.o object/Z80.o object/dasmz80.o object/dcef9345.o object/dcvg5kdesass.o object/dcvg5kboutons.o object/dcvg5kdialog.o object/dcvg5kdevices.o object/dcvg5kemulation.o object/dcvg5kkeyb.o object/dcvg5koptions.o object/dcvg5kvideo.o
object/dcvg5kdesass.o: In function `Displaydesass':
dcvg5kdesass.c:(.text+0x2ae): undefined reference to `DAsm'
collect2: ld returned 1 exit status
make: *** [dcvg5k] Error 1
guest@crunchbang:~/downloads/_emulator_vg5000_/2atentativa/dcvg5kv2.0$ 

and at dcvg5kdesass.c i found:

 extern int DAsm(char *string, char *A);

and

  n = DAsm(instruction, (x < 0x4000) ? rom + x : ram + x - 0x4000);

If you are sure you did everything right, at the top of the page is the dev's email address:

DCVG5K v2 is a VG5000 emulator created by Daniel Coulom (mail to danielcoulom at gmail dot com).

i asked here after asking him - he said that he is not that comfortable on Linux as he is with w32, but he is aware of people could successfully compiled it - based on this, i think anyone here (or anywhere else more specifically) minimally comfortable with configure/make can kindly help on this? smile

would be great if there is some place where people are only compiling emulators on GNU/Linux - there are hugely a lot of emulators still not ported, and these people may have some special experience on it - but i really don't know how to find them directly...

And at the bottom of the page there are links:

VG5000 fan's page

My VG5000 by Carl

Unfortunately the fan page is in French hmm

thanks! smile

Offline

#5 2012-08-05 13:06:52

pidsley
Window Mangler
Registered: 2012-05-23
Posts: 1,752

Re: compiling stuff: where to get better help about configure, make, etc?

Do you specifically need the VG5000 emulator, or just a Z80 emulator?

There is this: http://forums.debian.net/viewtopic.php?f=16&t=66644

Offline

#6 2013-01-04 22:54:05

joaopa
New Member
Registered: 2013-01-04
Posts: 1

Re: compiling stuff: where to get better help about configure, make, etc?

I manage to compile it. Some things to modify in the source files:
At first, create a repertory object
In the makefile, write this line gcc -o dcvg5k $(objects) -lSDL -lSDL_ttf instead of ....

And to finish in the file dasmz80.c remove static before int Dasm(char *S,byte *A);

That's done....

For your information I try to compile it for Wii now big_smile

Offline

#7 2013-01-07 03:54:52

shengchieh
#! Die Hard
Registered: 2009-01-07
Posts: 616

Re: compiling stuff: where to get better help about configure, make, etc?

http://www.maximumpc.com/article/howtos … urce_linux (Compile Programs From Source in Linux)
http://www.tuxfiles.org/linuxhelp/softinstall.html (Installing software from source in Linux)
http://www.linux.lk/software/compiling.php (Compiling Software Packages; 2003)
http://howto.wired.com/wiredhowtos/inde … egory=Work (Compile Software from Source Code)
http://liquidweather.net/howto/index.php?id=82 (compiling software)

Sheng-Chieh

Offline

#8 2013-01-25 21:36:57

KrunchTime
#! Die Hard
From: Not Where I Belong
Registered: 2012-03-02
Posts: 1,883

Re: compiling stuff: where to get better help about configure, make, etc?

shengchieh wrote:

http://www.maximumpc.com/article/howtos … urce_linux (Compile Programs From Source in Linux)
http://www.tuxfiles.org/linuxhelp/softinstall.html (Installing software from source in Linux)
http://www.linux.lk/software/compiling.php (Compiling Software Packages; 2003)
http://howto.wired.com/wiredhowtos/inde … egory=Work (Compile Software from Source Code)
http://liquidweather.net/howto/index.php?id=82 (compiling software)

Sheng-Chieh

Thanks for all the links, shengchieh.  The Feb 2013 issue of Linux Format has a very short tutorial as well.  To all CrunchBang members, PM me if you're interested and I'll send you a PDF version of the tutorial.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo