PDA

View Full Version : How to compile a "cemu.exe"


seaboard18
04-21-2007, 06:21 PM
This guide that I will attempt to make is basically all anyone needs to compile a cemu.exe. DJGGP will allow you to create cemu executable that will run in Windows DOS and from a Pure DOS boot Floppy. Although there are other compilers that you could use to compile cemu, they are not necessary for the basic user.

seaboard18
04-21-2007, 08:31 PM
This is all you need to use to make and compile windows DOS cemu.exe's or you can run them in Pure DOS boot Floppy. Although there are other compilers that you could use to compile cemu, they are not necessary for the basic user. Use for windows XP or other windows systems. This will unzip to c:/djggp and is complete, which includes openssl.

http://i129.photobucket.com/albums/p231/seaboard18/djggp.jpg
Put your cemu source in the cemusrc dir. that is provided.



Copy this code to wordpad and save as djggp.bat. Put it on your disktop and click it to run djggp. It will open in the cemusrc dir..

http://i129.photobucket.com/albums/p231/seaboard18/dos1.jpg


@echo off
set PATH=c:\djgpp\bin;%PATH%
set DJGPP=c:\djgpp\djgpp.env
chdir c:\djgpp\cemusrc
command

Next, unzip the cemu source of your choice into the cemusrc dir and use these commands to make your cemu.exe. Do them one at a time.

make djggp=1 clean
make djggp=1
make djggp=1 compress

THE LINK TO THE ZIP IS -- htxp://rapidshare.com/files/27194600/1djggp.zip.html

If you need help from here just post your questions.

seaboard18
04-22-2007, 03:23 AM
Step1] At the command line... C:\CEMUSRCC:\DJGPP>make djggp=1 clean -- Then hit ENTER on your keyboard
This cleans all *.o files and cemu.exe files from the dir.

Step 2] At the command line... C:\DJGPP\CEMUSRC>make djggp=1 -- Then hit ENTER on your keyboard
This will start djggp compiler into action. You will see a great deal of activity for a few minutes. If your compile was successful, the last thing you will see at the bottom of the DOS window is this:


g++ -funroll-loops -frerun-loop-opt -fomit-frame-pointer -O3 -Wall -g -DFAST_CEM
U cemu.o 6805_cpu.o emu6805.o rom10.o comm.o debug.o cmd07.o data.o misc.o mapca
lls.o logfile.o keycmd.o morph_cpu.o -lcrypto -lgmpxx -lgmp -g -o cemu
cp cemu.exe cemu

C:\DJGPP\CEMUSRC>


If you see this, proceed to step 3, IF NOT, you will need to post the result of the compile for help. Things that you MAY see are Warnings - they are Normal. Errors are not normal and will result in a bad compile such as below:


morph2.cc:1164: error: 'c_printf' was not declared in this scope morph2.cc: In member function 'virtual bool cEmu::MathMapHandler()': morph2.cc:1403: error: 'c_printf' was not declared in this scope morph2.cc: In function 'int ProcessB1(int, unsigned char*, int, int)': morph2.cc:1478: error: 'c_printf' was not declared in this scope morph2.cc:1497: error: 'c_printf' was not declared in this scope
make.exe: *** [morph2.o] Error 1

C:\DJGPP\CEMUSRC>


Step 3]... If all went well and you don't get any errors then at ... C:\DJGPP\CEMUSRC>make djggp=1 compress -- Then hit ENTER on your keyboard.. This will compress the exe into a small version that will fit on a floppy disk.

Thats it.. Have Fun.

Ohms
04-22-2007, 06:14 AM
This is just what I was looking for. Thanks for posting it Seaboard, and taking the time to spell it all out like this. It should help a lot of folks.

OverEasy
05-01-2007, 07:12 AM
Seaboard18 Thanks for the How To bro I followed it and it worked like a charm keep up the good work and Thanks Again ! ! ! ! !

:D :D :D :D

fryboy
06-11-2007, 08:18 PM
Hi Seaboard18

I've been trying to compile cemu 1.92 but have several errors. Could you take a look at them please.

C:\djgpp\CEMU>make djggp=1 clean
erase *.o
File not found
erase cemu.exe
File not found
C:\djgpp\CEMU>make djggp=1
gpp -funroll-loops -frerun-loop-opt -fomit-frame-pointer -O3 -Wall -g -DFAST_CEM
U -c cemu.cc
gpp -funroll-loops -frerun-loop-opt -fomit-frame-pointer -O3 -Wall -g -DFAST_CEM
U -c 6805_cpu.cc
gpp -funroll-loops -frerun-loop-opt -fomit-frame-pointer -O3 -Wall -g -DFAST_CEM
U -c emu6805.cc
gpp -funroll-loops -frerun-loop-opt -fomit-frame-pointer -O3 -Wall -g -DFAST_CEM
U -c rom10.cc
gpp -funroll-loops -frerun-loop-opt -fomit-frame-pointer -O3 -Wall -g -DFAST_CEM
U -c comm.cc
comm.cc:176:23: pmcom/irq.h: No such file or directory (ENOENT)
comm.cc:177:23: pmcom/com.h: No such file or directory (ENOENT)
comm.cc: In member function `void commserial::setdatabaud()':
comm.cc:187: error: `COMSetTransmitParameters' undeclared (first use this functi
on)
comm.cc:187: error: (Each undeclared identifier is reported only once for each f
unction it appears in.)
comm.cc: In member function `void commserial::setatrbaud()':
comm.cc:192: error: `COMSetTransmitParameters' undeclared (first use this functi
on)
comm.cc: In member function `virtual int commserial::readbyte()':
comm.cc:198: error: `COMReadChar' undeclared (first use this function)
comm.cc: In constructor `commserial::commserial(const std::string&, int, int, in
t, int, int)':
comm.cc:216: error: `COMInit' undeclared (first use this function)
comm.cc: In destructor `virtual commserial::~commserial()':
comm.cc:220: error: `COMShutDown' undeclared (first use this function)
comm.cc: In member function `virtual int commserial::Open()':
comm.cc:226: error: `COMSetHardwareParameters' undeclared (first use this functi
on)
comm.cc:227: error: `COMPortOpen' undeclared (first use this function)
comm.cc: In member function `virtual void commserial::Close()':
comm.cc:234: error: `COMPortClose' undeclared (first use this function)
comm.cc: In member function `virtual void commserial::Write(uchar*, int)':
comm.cc:268: error: `COMWriteBuffer' undeclared (first use this function)
comm.cc: In member function `virtual void commserial::WriteATR(uchar*, int)':
comm.cc:275: error: `COMWriteBuffer' undeclared (first use this function)
make.exe: *** [comm.o] Error 1
C:\djgpp\CEMU>


thanks
fryboy

seaboard18
06-12-2007, 06:03 PM
Hi Seaboard18
I've been trying to compile cemu 1.92 but have several errors. Could you take a look at them please.
C:\djgpp\CEMU>make djggp=1 clean
erase *.o
File not found
erase cemu.exe
File not found
C:\djgpp\CEMU>make djggp=1
gpp -funroll-loops -frerun-loop-opt -fomit-frame-pointer -O3 -Wall -g -DFAST_CEM
U -c cemu.cc
gpp -funroll-loops -frerun-loop-opt -fomit-frame-pointer -O3 -Wall -g -DFAST_CEM
U -c 6805_cpu.cc
gpp -funroll-loops -frerun-loop-opt -fomit-frame-pointer -O3 -Wall -g -DFAST_CEM
U -c emu6805.cc
gpp -funroll-loops -frerun-loop-opt -fomit-frame-pointer -O3 -Wall -g -DFAST_CEM
U -c rom10.cc
gpp -funroll-loops -frerun-loop-opt -fomit-frame-pointer -O3 -Wall -g -DFAST_CEM
U -c comm.cc
comm.cc:176:23: pmcom/irq.h: No such file or directory (ENOENT)
comm.cc:177:23: pmcom/com.h: No such file or directory (ENOENT)
comm.cc: In member function `void commserial::setdatabaud()':
comm.cc:187: error: `COMSetTransmitParameters' undeclared (first use this functi
on)
comm.cc:187: error: (Each undeclared identifier is reported only once for each f
unction it appears in.)
comm.cc: In member function `void commserial::setatrbaud()':
comm.cc:192: error: `COMSetTransmitParameters' undeclared (first use this functi
on)
comm.cc: In member function `virtual int commserial::readbyte()':
comm.cc:198: error: `COMReadChar' undeclared (first use this function)
comm.cc: In constructor `commserial::commserial(const std::string&, int, int, in
t, int, int)':
comm.cc:216: error: `COMInit' undeclared (first use this function)
comm.cc: In destructor `virtual commserial::~commserial()':
comm.cc:220: error: `COMShutDown' undeclared (first use this function)
comm.cc: In member function `virtual int commserial::Open()':
comm.cc:226: error: `COMSetHardwareParameters' undeclared (first use this functi
on)
comm.cc:227: error: `COMPortOpen' undeclared (first use this function)
comm.cc: In member function `virtual void commserial::Close()':
comm.cc:234: error: `COMPortClose' undeclared (first use this function)
comm.cc: In member function `virtual void commserial::Write(uchar*, int)':
comm.cc:268: error: `COMWriteBuffer' undeclared (first use this function)
comm.cc: In member function `virtual void commserial::WriteATR(uchar*, int)':
comm.cc:275: error: `COMWriteBuffer' undeclared (first use this function)
make.exe: *** [comm.o] Error 1
C:\djgpp\CEMU>
thanks
fryboy
In your cemusrc dir --- where you have the source code... You need a dir called pmcom --- add that and it will compile. It should be in the djggp install that I posted.

Remove the .txt then open it in winzip and add the dir to your cemusrc dir.

Crazy1_79
06-12-2007, 07:28 PM
you will have to drop the txt extension to unzip it. I asked mili about getting us zip attachments back i the forum, he was unaware we didn't have them

fryboy
06-13-2007, 12:37 AM
Thanks guys. I did some reading and figured it out. It worked

thanks
again

fryboy

GMZombie
08-05-2007, 02:33 PM
hey guys im getting the same problem only i have the pmcon in my folder with all the right files..i even downloaded the zip file and copied it all over. same error

norton
08-05-2007, 04:04 PM
Not sure if this will help or not, but try:
make clean
make

the make clean will remove any old object files and then the make will create everything from scratch.

GMZombie
08-06-2007, 02:08 AM
that did not work it still does the same thing

Crazy1_79
08-06-2007, 02:52 AM
with newer cemu's pmcomm is not in save folder as source files, there is a newly compiled djgpp at fileshop with all new changes necessary. that is what i did.

cholla chomper
08-06-2007, 08:06 AM
Having a problem Im using djggp ver 2.03
the error im getting is no targets specified and no makefile found. stop.

I have the sorce code copyed in the src folder I have tryed on two computers one with xp and one with win 98 with the same results what am I missing

Crazy1_79
08-06-2007, 05:09 PM
well is djgpp in that directory? when the window opens up it has to be set to the directory containing yor source files.

seaboard18
08-06-2007, 07:06 PM
DJGPP for CEMU Installer - June 10, 2007
This is a new version of the DJGPP Installer.

- Updated DJGPP components. DJGPP 2.03
- pmcom and openssl 0.9.8 included.
- pmcom in include directory for newer versions of cemu.
- pmcom in cemu_src folder for cemu 1.92 and below.
- can reinstall pmcom without reinstalling DJGPP.
- cemu source files now go in DJGPP_2\cemu_src directory.
- Works in Windows 95 - XP.
- Variables and PATH are set for DJGPP session only.
- Windows environment is not modified.
- Getting Started guide included.

Download here. htxp://www.mediafire.com/?fuhznnmvawe

Share this with anyone who needs it. If you upload it to another host let me know and I'll add the link to this post.

Angus_NB

cholla chomper
08-19-2007, 11:27 PM
still cant get it to work not sure what im doing wrong
heres what I get and the dir from djggp from the src folder





DJGPP 2.03 for CEMU
Released June 10, 2007
Setting the DJGPP environment variable.
Setting your path to DJGPP\Bin.
Steps to compile cemu:
1 - Copy the cemu source files to the DJGPP\cemu_src folder
2 - Type: make clean and press Enter.
----------
3 - Type: make and press Enter. This step may take several minutes.
----
4 - Type make compress and press Enter.
-------------
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\DJGPP_2\cemu_src>make
make.exe: *** No targets specified and no makefile found. Stop.
C:\DJGPP_2\cemu_src>dir
Volume in drive C has no label.
Volume Serial Number is 7C7B-6BE1
Directory of C:\DJGPP_2\cemu_src
08/19/2007 03:10 PM <DIR> .
08/19/2007 03:10 PM <DIR> ..
08/19/2007 03:07 PM 198,373 cemu1.92.2_pub.tar.gz
08/19/2007 03:09 PM <DIR> cemu1.96.2
08/19/2007 03:17 PM 0 make
08/12/2007 03:30 AM 0 reload.key
3 File(s) 198,373 bytes
3 Dir(s) 46,498,537,472 bytes free
C:\DJGPP_2\cemu_src>

Crazy1_79
08-19-2007, 11:45 PM
try this in that same prompt
make djgpp=1

cholla chomper
08-20-2007, 12:35 AM
same responce using make djgpp=1

duh1
08-20-2007, 05:32 AM
seabord. ruciz uploaded to sendspace.com/file/ylb21a Excellent exe contains everything you need. easey install. Regards Duh1

cholla chomper
08-22-2007, 09:23 PM
Finially got it compiled without errors and works great

Crazy1_79
08-22-2007, 09:43 PM
good deal cholla now go watch some tv.

sunfish
08-26-2007, 03:36 AM
I'm running this thing on Vista and get this error when I did the make djggp=1

gpp -funroll-loops -frerun-loop-opt -fomit-frame-pointer -O3 -Wall -g -DFAST_CEM
U -c cemu.cc
cc1plus.exe: out of memory allocating 65536 bytes after a total of 24876644 byte
s
make.exe: *** [cemu.o] Error 1

bud02
08-26-2007, 07:29 AM
Looks like you might not have the right filed for DJGPP. do you have version DJGPP_203.exe

I used this (DJGPP_203.exe) and files from the file shop (cemu1.92.2_pub) then used (AIO) to squirt my 102 cam .bn to patch Dish.bin with (private info). seaboard has the link posted for DJGPP t and a great how to, nothing about vista support.Worked great. hope this helps someone

sunfish
08-26-2007, 08:29 AM
I'm using the the link in this thread, which is DJGPP 2.03. I think the problem has to do with Vista. This is also the first time that I can't get old stuff to work with Vista by running them in XP compatibility mode.

sunfish
08-26-2007, 10:58 AM
Just rebooted my PC with WinPE and was able to compile. It warned about clock skew. In any case, it works.

Now, how do you get a 102 cam? Can you use a regular ISO programmer or old HU loader to read an untampered 102 card? If not, where can I beg for one?

bud02
08-26-2007, 09:31 PM
If you dont have a cam that was subbed to the reciever your going to have to Jtag IRD. to match a cam that was. That is for people that want to run private box and cam #s. In any case your going to have to have a cam image. only way to git it is to glitch it open. Most or all cam images on sites are public. CEMU is running on public INFO that is what you probly want to do. Someone speak up if problem with public.
your are going to have to JTAG reciever with public box keys ect. then you can just use public dish,bin. you need to do an inventory of what you have and determine what your best salution is.

Ravencer
09-14-2007, 05:26 AM
OK I'm a little confused for the first time in awhile. I've been using a public setup of cemu until 1.96.2 on the 1.94 boot disk

Is there a soultion for B3V and the public setup? I'm left with the impression no? :confused:

tom4000
10-24-2007, 06:50 PM
im getting <byteswap.h> missing it didnt come with the zip !!!

tom4000
11-07-2007, 05:18 AM
i just wanna inform everyone that i finally got this thing to compile fine.

and now having a fully functional working source code and being an old school programmer, i'm officially in business :D