GithubHelp home page GithubHelp logo

algunenano / stasm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from apprisi/stasm-1

0.0 2.0 0.0 10.54 MB

STASM 4.1.0 with build scripts

License: BSD 3-Clause "New" or "Revised" License

CMake 0.74% C 4.46% C++ 87.53% R 1.13% Makefile 4.81% Batchfile 0.93% Shell 0.07% Objective-C 0.34%

stasm's Introduction

STASM 4 build scripts

This is a set of scripts, mainly cmake ones, that can be used to compile the STASM library (version 4 and later).

  • CMakeLists.txt: cmake build script to compile the STASM library and its examples
  • STASMConfig.cmake.in: template to generate a STASMConfig.cmake which could be useful to use STASM as a library from another project
  • *.cpp.diff: patches to correct some compilation errors in unix.

Changelog

2013.05.09:

  • created CMakeLists.txt and tested on linux and mac

2014.01.14:

  • added comments of windows compilation
  • added support for STASM 4.1.0

2014.08.03:

  • tested and added changes proposed by Yuji Ojamada:
    • added tasm support
    • added testing
    • added patches to correct compilation errors:
      • compile with newer unix compilers (gcc and clang) in appmisc.cpp
      • added #if directives for MS and Linux (shapefile.cpp)
    • removed some particular examples added by Juan Cardelino
  • tested in newer platforms
  • improved documentation

Instructions

Unix

  • Download STASM source code from: http://www.milbo.users.sonic.net/stasm/
  • uncompress it, for example to stasm4.1.0. I will refer to this directory as STASM_DIR
  • unpack the provided files to STASM_DIR
  • patch the source files:
    • cd STASM_DIR/apps
    • patch -p0 < appmisc.cpp.20140201.diff
    • cd STASM_DIR/apps/shapefile
    • patch -p0 < shapefile.cpp.20140201.diff
  • run cmake and generate a makefile: it is recommended to use a different build directory, in my case I will build into STASM_DIR/@build
  • enter STASM_DIR/@build and compile with make or your favorite IDE (tested with make and netbeans)
  • you will end up with the minimal and minimal2 examples compiled and a static library libstasm.a

Tested in the following platforms (64bits if not specified):

  • Linux:
    • Ubuntu 13.04, STASM 4.0.0, cmake 2.8.10.1, gcc 4.7.3, make 3.81, netbeans 7.3.1
    • Ubuntu 13.10, STASM 4.1.0, cmake 2.8.11.2, gcc 4.8.1, make 3.81, OpenCV 2.4.5
  • Mac
    • OSX 10.8, STASM 4.0.0, cmake 2.8.9, gcc-clang 4.2, make XX, netbeans 7.2
    • OSX 10.9, STASM 4.0.0, cmake 2.8.12, clang 5.0, make 3.81, OpenCV 2.4.7
    • OSX 10.9, STASM 4.1.0, cmake 2.8.12, clang 5.0, make 3.81, OpenCV 2.4.7
    • OSX 10.9.4, STASM 4.1.0, cmake 2.8.12, clang 5.1, make 3.81, OpenCV 2.4.9
  • Windows:
    • Windows 8 64bit, STASM 4.1.0, cmake 2.8.11, Visual Studio 10, OpenCV 2.4.2. Built on 32bits

Using STASM as an external library

Once STASM is compiled, you will end up with a dynamic or static library. You can use the sample project provided in the external directory as an example of how to integrate STASM into another application

In the external directory you will find and example about

ToDo

  • In order to generate a proper windows dll (with exports) it is required to add some #defines. But it could work as is.
  • Extend windows testing (64 bits, VS11)

Acknowledgements

  • Stephen Milborrow: for kindly sharing his research and tools and for taking the time to answer everybody.
  • Juan Cardelino: maintainance and initial version
  • Yuji Ojamada: corrections and improvements

stasm's People

Contributors

algunenano avatar melevir avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.