Giter VIP home page Giter VIP logo

libraries's People

Contributors

dmah42 avatar stephenstuart avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

libraries's Issues

Java SWIG

The libraries support SWIG for Python wrapper creation, and Java sort of works, but the resulting class files aren't built into a .jar file that can be loaded.

It seems to be a CMake vs SWIG thing as it can be done manually on command line.

This should be fixed when it becomes useful to someone.

RTT-based mlab-ns lookup

  • Get full (or partial geo-based) list of servers from mlab-ns
  • Run burst of ping to every server and get closest

NS lookup assumes response is <1024 bytes

Receive warns if response < expected, but if response > expected the response is just truncated. For the NS lookup, this causes an issue for calling code as it leads to an unparseable response and there's nothing they can do about it.

Ideally, the NS lookup would retrieve chunks of X bytes until the response completes.

Send data to m-lab servers

Once a tool has run, it will have data to send to M-Lab. This library can, and should, abstract the details of this away.

There is a standalone m-lab pipeline running on a utility slice - this library should contain the client-side implementation of that protocol.

Build errors on x86_64 Mac OS X 10.8

From @stephen-soltesz:

While attempting to build m-lab.libraries on a x86_64 Mac os x system, I encountered the following build errors. I've included tool versions that may be relevant.

$ cmake --version
cmake version 2.8.10

$ make --version
GNU Make 3.81
This program built for i386-apple-darwin11.3.0

$ uname -a
Darwin stephens-imac-5.lan 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64

$ cmake -D CMAKE_BUILD_TYPE=Release CMakeLists.txt && make
-- The C compiler identification is Clang 4.1.0
-- The CXX compiler identification is Clang 4.1.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PythonInterp: /opt/local/bin/python (found version "2.7.3")
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Found SWIG: /opt/local/bin/swig (found version "2.0.8")
-- Found PythonLibs: /usr/lib/libpython2.7.dylib (found version "2.7.2")
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/soltesz/Downloads/m-lab.libraries/trunk
Scanning dependencies of target mlab
[ 3%] Building CXX object CMakeFiles/mlab.dir/src/client_socket.cc.o
[ 6%] Building CXX object CMakeFiles/mlab.dir/src/host.cc.o
[ 10%] Building CXX object CMakeFiles/mlab.dir/src/http.cc.o
[ 13%] Building CXX object CMakeFiles/mlab.dir/src/log.cc.o
[ 16%] Building CXX object CMakeFiles/mlab.dir/src/mlab.cc.o
[ 20%] Building CXX object CMakeFiles/mlab.dir/src/ns.cc.o
[ 23%] Building CXX object CMakeFiles/mlab.dir/src/server_socket.cc.o
[ 26%] Building CXX object CMakeFiles/mlab.dir/src/socket.cc.o
Linking CXX static library lib/libmlab.a
[ 26%] Built target mlab
Scanning dependencies of target mlabc
[ 30%] Building CXX object CMakeFiles/mlabc.dir/src/mlab.cc.o
Linking CXX static library lib/libmlabc.a
[ 30%] Built target mlabc
Scanning dependencies of target gtest
[ 33%] Building CXX object third_party/gtest-1.6.0/CMakeFiles/gtest.dir/src/gtest-all.cc.o
Linking CXX static library ../../lib/libgtest.a
[ 33%] Built target gtest
Scanning dependencies of target gtest_main
[ 36%] Building CXX object third_party/gtest-1.6.0/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o
Linking CXX static library ../../lib/libgtest_main.a
[ 36%] Built target gtest_main
Scanning dependencies of target json-cpp
[ 40%] Building CXX object third_party/json-cpp/CMakeFiles/json-cpp.dir/src/lib_json/json_reader.cpp.o
[ 43%] Building CXX object third_party/json-cpp/CMakeFiles/json-cpp.dir/src/lib_json/json_value.cpp.o
[ 46%] Building CXX object third_party/json-cpp/CMakeFiles/json-cpp.dir/src/lib_json/json_writer.cpp.o
Linking CXX static library lib/libjson-cpp.a
[ 46%] Built target json-cpp
[ 50%] Swig source
Scanning dependencies of target _mlabpy
[ 50%] Swig source
[ 53%] Building CXX object swig/CMakeFiles/_mlabpy.dir/mlabPYTHON_wrap.cxx.o
/Users/soltesz/Downloads/m-lab.libraries/trunk/swig/mlabPYTHON_wrap.cxx:2386:23: error: explicitly assigning a variable of type
'int' to itself [-Werror,-Wself-assign]
res = SWIG_AddCast(res);
~~~ ^ ~~~
/Users/soltesz/Downloads/m-lab.libraries/trunk/swig/mlabPYTHON_wrap.cxx:2389:23: error: explicitly assigning a variable of type
'int' to itself [-Werror,-Wself-assign]
res = SWIG_AddCast(res);
~~~ ^ ~~~
/Users/soltesz/Downloads/m-lab.libraries/trunk/swig/mlabPYTHON_wrap.cxx:5383:3: error: expression result unused; should this
cast be to 'void'? [-Werror,-Wunused-value](void *)clientdata;
^ ~
3 errors generated.
make[2]: *** [swig/CMakeFiles/_mlabpy.dir/mlabPYTHON_wrap.cxx.o] Error 1
make[1]: *** [swig/CMakeFiles/_mlabpy.dir/all] Error 2
make: *** [all] Error 2

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.