Compiling MicroMacro

Discuss, ask for help, share ideas, give suggestions, read tutorials, and tell us about bugs you have found with MicroMacro in here.

Do not post RoM-Bot stuff here. There is a subforum for that.
Forum rules
This is a sub-forum for things specific to MicroMacro.

This is not the place to ask questions about the RoM bot, which uses MicroMacro. There is a difference.
Post Reply
Message
Author
flashbak
Posts: 1
Joined: Thu Oct 22, 2009 2:27 pm

Compiling MicroMacro

#1 Post by flashbak » Thu Oct 22, 2009 2:34 pm

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 ;)?

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Compiling MicroMacro

#2 Post by Administrator » Thu Oct 22, 2009 3:02 pm

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.

C3PO
Posts: 109
Joined: Sun Jul 10, 2011 2:45 pm

Re: Compiling MicroMacro

#3 Post by C3PO » Thu Aug 04, 2011 3:13 pm

Hi Folks

Maybe someone could write a short HowTo compile MicroMacro.

Thanks in Advance

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Compiling MicroMacro

#4 Post by Administrator » Thu Aug 04, 2011 6:24 pm

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"

C3PO
Posts: 109
Joined: Sun Jul 10, 2011 2:45 pm

Re: Compiling MicroMacro

#5 Post by C3PO » Fri Aug 05, 2011 9:28 am

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

User avatar
MiesterMan
Posts: 543
Joined: Tue Jul 06, 2010 9:15 pm
Location: Between the Second and Third Circles of Hell

Re: Compiling MicroMacro

#6 Post by MiesterMan » Sun Aug 07, 2011 6:02 pm

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.

C3PO
Posts: 109
Joined: Sun Jul 10, 2011 2:45 pm

Re: Compiling MicroMacro

#7 Post by C3PO » Mon Aug 08, 2011 2:01 pm

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

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Compiling MicroMacro

#8 Post by Administrator » Tue Aug 09, 2011 12:21 am

More information is needed. A lot more information. It probably would help if you at least said what OS and compiler you were using.

C3PO
Posts: 109
Joined: Sun Jul 10, 2011 2:45 pm

Re: Compiling MicroMacro

#9 Post by C3PO » Tue Aug 09, 2011 12:08 pm

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

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Compiling MicroMacro

#10 Post by Administrator » Tue Aug 09, 2011 11:03 pm

What is the exact error message? Copy and paste it from the log.

C3PO
Posts: 109
Joined: Sun Jul 10, 2011 2:45 pm

Re: Compiling MicroMacro

#11 Post by C3PO » Wed Aug 10, 2011 12:12 pm

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
 

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Compiling MicroMacro

#12 Post by Administrator » Wed Aug 10, 2011 9:11 pm

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.

C3PO
Posts: 109
Joined: Sun Jul 10, 2011 2:45 pm

Re: Compiling MicroMacro

#13 Post by C3PO » Thu Aug 11, 2011 11:41 am

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

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Compiling MicroMacro

#14 Post by Administrator » Thu Aug 11, 2011 6:51 pm

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).
Attachments
libexpat.zip
(2.81 KiB) Downloaded 170 times

Post Reply

Who is online

Users browsing this forum: No registered users and 22 guests