Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


FAQ for compiling ce
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source
View previous topic :: View next topic  
Author Message
mgr.inz.Player
I post too much
Reputation: 217

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Wed Feb 13, 2013 10:06 am    Post subject: Reply with quote

unknown_k wrote:
Code:
75: machinetype:=IMAGE_FILE_MACHINE_I386;
79: machinetype:=IMAGE_FILE_MACHINE_AMD64;



Yes, there must be ";"
Code:
{$ifdef cpu32}
  instruction;
{$else}


But, no semicolon before "normal else"
Code:
if condition then
  instruction
else



Only line 75 was wrong.

_________________
Back to top
View user's profile Send private message MSN Messenger
unknown_k
Expert Cheater
Reputation: 5

Joined: 24 May 2011
Posts: 211

PostPosted: Wed Feb 13, 2013 10:06 pm    Post subject: Reply with quote

@mgr.inz.Player
ah, you are right. some-random-times i mix up pascal with c. Embarassed
Back to top
View user's profile Send private message
SER[G]ANT
Expert Cheater
Reputation: 10

Joined: 29 Dec 2005
Posts: 215
Location: Russia

PostPosted: Mon May 06, 2013 3:30 am    Post subject: Reply with quote

rev1795
MemoryBrowserFormUnit.pas(2813,3) Fatal: Syntax error, ";" expected but "IF" found

Code:

...
procedure TMemoryBrowser.Assemblycode1Click(Sender: TObject);
var
  fromaddress: ptruint;
  toaddress: ptruint;

  f: TfrmAssemblyScan;
begin
  f:=tfrmassemblyscan.create(self);

  f.edtFrom.text:=inttohex(disassemblerview.TopAddress,8);
  if processhandler.is64Bit then
    f.edtTo.text:='FFFFFFFFFFFFFFFF'
  else
    f.edtTo.text:='FFFFFFFF' // <---- MISSED ";" for x86


  if f.ShowModal=mrok then
  begin
 ...
Back to top
View user's profile Send private message
SER[G]ANT
Expert Cheater
Reputation: 10

Joined: 29 Dec 2005
Posts: 215
Location: Russia

PostPosted: Tue May 14, 2013 4:57 pm    Post subject: Reply with quote

dbk.sys doesn't compile
I use WinXP SP3 (x86) on VMware for this.

Code:
OACR monitor running already

C:\WinDDK\7600.16385.1>cd C:\CE\DBKKernel

C:\CE\DBKKernel>ce.bat
changing to dos-16 file structure
Скопировано файлов:         1.
BUILD: Compile and Link for x86
BUILD: Start time: Wed May 15 00:08:07 2013
BUILD: Examining c:\ce\dbkker~1 directory for files to compile.
    c:\ce\dbkker~1 Invalidating OACR warning log for 'root:x86fre'
BUILD: Compiling and Linking c:\ce\dbkker~1 directory
Configuring OACR for 'root:x86fre' - <OACR on>
_NT_TARGET_VERSION SET TO WINXP
Compiling - dbkdrvr.c
Compiling - dbkfunc.c
Compiling - iopldispatcher.c
1>errors in directory c:\ce\dbkker~1
1>c:\ce\dbkkernel\iopldispatcher.c(700) : error C2220: warning treated as error
- no 'object' file generated
Compiling - memscan.c
Compiling - threads.c
Compiling - processlist.c
Compiling - vmxhelper.c
Compiling - interrupthook.c
Compiling - debugger.c
1>c:\ce\dbkkernel\debugger.c(351) : error C2220: warning treated as error - no '
object' file generated
Compiling - vmxoffload.c
Compiling - deepkernel.c
Compiling - ultimap.c
1>c:\ce\dbkkernel\ultimap.c(178) : error C2220: warning treated as error - no 'o
bject' file generated
Compiling - generating code...
Linking Executable - objfre_wxp_x86\i386\dbk.sys
1>link : error LNK1181: cannot open input file 'c:\ce\dbkker~1\objfre_wxp_x86\i3
86\iopldispatcher.obj'
BUILD: Finish time: Wed May 15 00:08:10 2013
BUILD: Done

    14 files compiled - 9 Warnings - 3 Errors
    1 executable built - 1 Error

error. Check the compile log

C:\CE\DBKKER~1>



And one more question.
How to compile dbvm ? Rolling Eyes
Thanks!


Last edited by SER[G]ANT on Wed May 15, 2013 3:26 am; edited 1 time in total
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25252
Location: The netherlands

PostPosted: Tue May 14, 2013 6:23 pm    Post subject: Reply with quote

Build using the checked build env for now. It'll work

For dbvm you must compile in 64-bit linux with yasm and nasm installed ( I myself use linux mint with Cinnamon desktop)
Then to build it type "make clean install" to build the image
"make clean install disk" will write it to a floppy disk at /dev/fd0

The dbvm disk image that comes with ce may also work with vmware (or you may first have to raw write it to a vmware disk)

Tip:run linux in vmware and compile dbvm to a shared floppy. The one running dbvm just has to open it in as readonly
I myself use linux mint with Cinnamon desktop

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
SER[G]ANT
Expert Cheater
Reputation: 10

Joined: 29 Dec 2005
Posts: 215
Location: Russia

PostPosted: Wed May 15, 2013 5:03 pm    Post subject: Reply with quote

Thx!
dbk.sys is compiled with "x86 Checked Build Environment"

And dbwm.
I installed Linux Mint x64, yasm and nasm but floppy... I don't have it for a long time and emulated floppy in vmware doesn't work Crying or Very sad

So... I simply run "Makefile" in terminal and got the following files in the same directory

It's done?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25252
Location: The netherlands

PostPosted: Wed May 15, 2013 5:42 pm    Post subject: Reply with quote

That is the vmdisk that comes with ce yes. Just be sure that the debug defines are commented out in common.h in the vmm dir else it will be waiting for a keypress from the serial port, and pause at each vmexit

Also, you can make a virtual floppy image with vmware you can write to. That image file can be used with other vmware machines (to write to floppy use "sudo make clean install disk" )
Just make sure it is "connected"

And if you have mkisofs installed you can make an iso with "make clean install cdimage"

If you have a portable flash drive at /dev/sdb you can write to there as well (ONLY IF YOU HAVE IT AT /dev/sdb) with "sudo make clean install usb" (it will destroy all data on that disk and windows will think it's unformatted)

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
SER[G]ANT
Expert Cheater
Reputation: 10

Joined: 29 Dec 2005
Posts: 215
Location: Russia

PostPosted: Sun Sep 22, 2013 4:57 am    Post subject: Reply with quote

Hello. I have one more question.
How to compile ceserver?
As I understand I need linux, g++ and eclipse. I installed all of this and tried to compile ceserver using eclipse but failed.
Maybe need to install something else or?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25252
Location: The netherlands

PostPosted: Sun Sep 22, 2013 5:21 am    Post subject: Reply with quote

For what target are you building? And what errors do you get?

right now there are 3. Debug-Linux, Release-Linux and Release-Android

Release-Linux didn't work because I never compile that and didn't set the libs to include, but if you get the latest svn snapshot it will work

If you mean Release-Android then you must install the ndk toolkit and make a standalone build snapshot (on my build system it's in /android-build/ and the project makes use of that specific path)
Easiest way to make a standalone toolchain is using make-standalone-toolchain.sh that comes with the ndk build tools:

From the path with the ndk type:
Code:

./build/tools/make-standalone-toolchain.sh --platform=android-9 --system=linux-x86_64 --install-dir=/android-build/

(I'm assuning you're on 64-bit linux, else linux-x86)


If you mean compiling for normal linux, then just compiling debug-linux should be enough

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
SER[G]ANT
Expert Cheater
Reputation: 10

Joined: 29 Dec 2005
Posts: 215
Location: Russia

PostPosted: Tue Nov 19, 2013 4:05 am    Post subject: Reply with quote

rev2228 (32-bit)

Code:
Free Pascal Compiler version 2.6.1 [2013/02/24] for i386
Copyright (c) 1993-2012 by Florian Klaempfl and others
Filehandler.pas(61,16) Error: Unknown identifier "RAX"
Filehandler.pas(61,16) Error: Assembler syntax error
Filehandler.pas(62,18) Error: Unknown identifier "RAX"
Filehandler.pas(62,19) Error: Unknown identifier "RAX"
Filehandler.pas(62,19) Error: Assembler syntax error
Filehandler.pas(62,19) Error: Assembler syntax error
Filehandler.pas(66,15) Error: Unknown identifier "RAX"
Filehandler.pas(66,15) Error: Assembler syntax error
Filehandler.pas(128) Fatal: There were 8 errors compiling module, stopping


FIXED
Back to top
View user's profile Send private message
SER[G]ANT
Expert Cheater
Reputation: 10

Joined: 29 Dec 2005
Posts: 215
Location: Russia

PostPosted: Thu Feb 13, 2014 6:37 am    Post subject: Reply with quote

Quote:
rev2380
Missed "Sounds.RC"
and
Code:
DissectCodeunit.pas(65,6) Fatal: Can not find unit frmReferencedFunctionsUnit used by DissectCodeunit.

Fixed

But now:

Code:
cheatengine.lpr(205,1) Error: Error while compiling resources. Compile with -vd for more details. Check for duplicates.
cheatengine.lpr(205,1) Fatal: There were 1 errors compiling module, stopping


(I reinstalled Windows and now I have Lazarus-1.1-40379-fpc-2.6.1-20130224-win32.exe)
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 217

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Thu Feb 13, 2014 11:42 am    Post subject: Reply with quote

edit Sounds.RC file:

BUILDIN_ACTIVATE RCDATA ".\\sounds\\tick1.wav"
BUILDIN_DEACTIVATE RCDATA ".\\sounds\\tick2.wav"



(btw. I'm using Lazarus 1.0.14 FPC 2.6.2)

_________________
Back to top
View user's profile Send private message MSN Messenger
SER[G]ANT
Expert Cheater
Reputation: 10

Joined: 29 Dec 2005
Posts: 215
Location: Russia

PostPosted: Thu Feb 13, 2014 12:48 pm    Post subject: Reply with quote

mgr.inz.Player
Thx!
"Lazarus 1.0.14 FPC 2.6.2" + edited "sounds.rc" hepled me
Back to top
View user's profile Send private message
angxa
How do I cheat?
Reputation: 0

Joined: 21 Apr 2011
Posts: 5

PostPosted: Tue Mar 04, 2014 7:03 am    Post subject: Error After Compiling Reply with quote

Can someone help me with this error ?
i got all file after compiling but when i want test there error reading open button.

thanks for ur help Smile



error2.png
 Description:
 Filesize:  57.87 KB
 Viewed:  91724 Time(s)

error2.png



_________________
Everything has changed,,if u want to keep trying!!!
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25252
Location: The netherlands

PostPosted: Tue Mar 04, 2014 7:07 am    Post subject: Reply with quote

undo the last change you did till the point where it does work, and then fix that problem (tip: Never ever ever ever ever ever ever ever use automatic replace tools)
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source All times are GMT - 6 Hours
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
Page 8 of 9

 
Jump to:  
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites