Page 1 of 1

Compiling MicroMacro

Posted: Thu Oct 22, 2009 2:34 pm
by flashbak
Hi, maybe this is dumb question but what compiler is the best for commpiling MM ? without making too much changes to source code (i ve tried, i ve searched but couldnt find :( ).
And second question -> what libriaries (not standard ones) i need to have to successful achieve compilation process ;)?

Re: Compiling MicroMacro

Posted: Thu Oct 22, 2009 3:02 pm
by Administrator
I suggest MinGW(GCC) for compiling. A Code::Blocks project file (micromacro.cbp) is included with each release for ease of use. Code::Blocks is available on nearly all platforms (although MicroMacro itself is only supported on Windows), so that shouldn't be a problem.

To compile, you will need: Everything else should be included with your compiler.

Re: Compiling MicroMacro

Posted: Thu Aug 04, 2011 3:13 pm
by C3PO
Hi Folks

Maybe someone could write a short HowTo compile MicroMacro.

Thanks in Advance

Re: Compiling MicroMacro

Posted: Thu Aug 04, 2011 6:24 pm
by Administrator
Compiling it is for users that have at least some experience with programming and understand what it is and how to do it. If you've never done it, then chances are it just isn't worth the hassle and you should just download the binaries (as you'll get exactly the same thing, but without all the extra work).

So, install a compiler and, optionally, an IDE (I use Code::Blocks IDE with MinGW GCC as a compiler).
Install the required libraries (see my last post, plus you'll also need OpenAL now).
Open the project I have provided (if using Code::Blocks) or create your own.
Build it.

Link order, if you need it, is as follows:

Code: Select all

"lua51"
luaexpat"
expat"
gdi32"
psapi"
net"
ws2_32"
Netapi32"
alut"
OpenAL32"

Re: Compiling MicroMacro

Posted: Fri Aug 05, 2011 9:28 am
by C3PO
Maybe you could make a short description how to set up Code::Block because im not familiar with this program (where/how to install the libraries ...)

And maybe you could be so kind to provide the actual project-file

thx

Re: Compiling MicroMacro

Posted: Sun Aug 07, 2011 6:02 pm
by MiesterMan
Administrator wrote:I suggest MinGW(GCC) for compiling. A Code::Blocks project file (micromacro.cbp) is included with each release for ease of use. Code::Blocks is available on nearly all platforms (although MicroMacro itself is only supported on Windows), so that shouldn't be a problem.

To compile, you will need: Everything else should be included with your compiler.
When you goto that Code::Blocks link it says it doesn't support windows vista but it's an older version. Here is the link to the january build (10.05):
Code::Blocks

Edit: Oh yea, and so far it works fine on windows 7 64 bit. But I'm used to the visual studio color scheme and am having trouble finding where I can change it.

Re: Compiling MicroMacro

Posted: Mon Aug 08, 2011 2:01 pm
by C3PO
Hello again,

I would ask those who know to compile the bot to help me. I downloaded all the libraries but everytime there is something missing (eg. luaexpa -> expa -> "#error memmove does not exist on this platform, nor is a substitute available" or the libraries are not complete etc...)

It's not that I ask you for a step by step manual but the correct locations of all parts that I need to compile the bot. And if necessary what needs to be setup.

Those links (for the libraries) would also be very helpful if you could find them in the download section of the board.

thanks in advance

Re: Compiling MicroMacro

Posted: Tue Aug 09, 2011 12:21 am
by Administrator
More information is needed. A lot more information. It probably would help if you at least said what OS and compiler you were using.

Re: Compiling MicroMacro

Posted: Tue Aug 09, 2011 12:08 pm
by C3PO
I'm using the MiniGW(GCC) compiler - like you suggested it - under Windows7 Enterprise Sp1 64bit en

What else do you need to know ...

maybe:
* Code::Blocks 10.05
* expat-2.0.1
* freealut-1.1.0-src
* libnet 0.10.11
* lua-5.1.4-coco
* luaexpat-1.1
* openal-soft-1.13
* last micromacro SVN revision

Re: Compiling MicroMacro

Posted: Tue Aug 09, 2011 11:03 pm
by Administrator
What is the exact error message? Copy and paste it from the log.

Re: Compiling MicroMacro

Posted: Wed Aug 10, 2011 12:12 pm
by C3PO
I got the following

Code: Select all

-------------- Clean: Release (x64) in micromacro ---------------

Cleaned "micromacro - Release (x64)"

-------------- Build: Release (x64) in micromacro ---------------

Compiling: src\aes.cpp
Compiling: src\audiodevice.cpp
Compiling: src\audioresource.cpp
Compiling: src\filesystem.cpp
Compiling: src\filesystemdevice.cpp
Compiling: src\ipcdevice.cpp
Compiling: src\keyboarddevice.cpp
Compiling: src\logger.cpp
Compiling: src\luaengine.cpp
Compiling: src\luaglue.cpp
Compiling: src\macro.cpp
Compiling: src\main.cpp
Compiling: src\memorydevice.cpp
Compiling: src\message.cpp
Compiling: src\misc.cpp
Compiling: src\mousedevice.cpp
Compiling: src\networkdevice.cpp
Compiling: src\processdevice.cpp
Compiling: src\res.rc
Compiling: src\rijndael.cpp
Compiling: src\timer.cpp
Compiling: src\timerdevice.cpp
Compiling: src\types.cpp
Linking console executable: micromacro_x64.exe
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: cannot find -lluaexpat
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 30 seconds)
1 errors, 0 warnings
 

Re: Compiling MicroMacro

Posted: Wed Aug 10, 2011 9:11 pm
by Administrator
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: cannot find -lluaexpat
Probably says it all right there.

Also, you probably shouldn't try building it as 64-bit, as the libraries you are using are 32-bit.

Re: Compiling MicroMacro

Posted: Thu Aug 11, 2011 11:41 am
by C3PO
come on! of course I can read! but why is it missing and were can I find it?

I followed your "instructions" but you see what I get

Re: Compiling MicroMacro

Posted: Thu Aug 11, 2011 6:51 pm
by Administrator
Probably missing libexpat.a (or similar named file) in the 'lib' folder of your compiler directory.

Either that, or maybe you have the link order wrong. Are you including luaexpat or expat first (luaexpat should be first, strangely enough).