Compiling MicroMacro
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.
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.
Compiling MicroMacro
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 ?
And second question -> what libriaries (not standard ones) i need to have to successful achieve compilation process ?
- Administrator
- Site Admin
- Posts: 5313
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Compiling MicroMacro
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:
To compile, you will need:
- Lua 5.1 (with LuaCoco is suggested - you can get the package for Lua + LuaCoco here)
Lua Expat (w/ Expat, if not included)
libnet (http://libnet.sourceforge.net/)
Re: Compiling MicroMacro
Hi Folks
Maybe someone could write a short HowTo compile MicroMacro.
Thanks in Advance
Maybe someone could write a short HowTo compile MicroMacro.
Thanks in Advance
- Administrator
- Site Admin
- Posts: 5313
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Compiling MicroMacro
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:
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
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
And maybe you could be so kind to provide the actual project-file
thx
- MiesterMan
- Posts: 543
- Joined: Tue Jul 06, 2010 9:15 pm
- Location: Between the Second and Third Circles of Hell
Re: Compiling MicroMacro
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):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.
- Lua 5.1 (with LuaCoco is suggested - you can get the package for Lua + LuaCoco here)
Lua Expat (w/ Expat, if not included)
libnet (http://libnet.sourceforge.net/)
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.
My RoM Bot toys:
- Object Viewer: http://www.solarstrike.net/phpBB3/viewt ... =27&t=2619
Teleporter Functions: http://www.solarstrike.net/phpBB3/viewt ... =27&t=2605
Waypoint Finder: http://www.solarstrike.net/phpBB3/viewt ... =27&t=2616
Mail Functions: http://www.solarstrike.net/phpBB3/viewt ... =27&t=2612
Equipment Swapper(TempFixed): http://www.solarstrike.net/phpBB3/viewt ... =27&t=2571
Re: Compiling MicroMacro
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
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
- Administrator
- Site Admin
- Posts: 5313
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Compiling MicroMacro
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
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
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
- Administrator
- Site Admin
- Posts: 5313
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Compiling MicroMacro
What is the exact error message? Copy and paste it from the log.
Re: Compiling MicroMacro
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
- Administrator
- Site Admin
- Posts: 5313
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Compiling MicroMacro
Probably says it all right there.c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: cannot find -lluaexpat
Also, you probably shouldn't try building it as 64-bit, as the libraries you are using are 32-bit.
Re: Compiling MicroMacro
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
I followed your "instructions" but you see what I get
- Administrator
- Site Admin
- Posts: 5313
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Compiling MicroMacro
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).
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 199 times
Who is online
Users browsing this forum: Ahrefs [Bot] and 0 guests