Giter Club home page Giter Club logo

libnk2's Introduction

libnk2's People

Contributors

joachimmetz avatar

Stargazers

 avatar Arsen Darakdjian avatar  avatar Sam Alloing avatar

Watchers

Johan Berggren avatar Sam Alloing avatar James Cloos avatar  avatar Mark McKinnon avatar  avatar

libnk2's Issues

pynk2_test_file.py is missing in source package

Similar to this and this issue: The file tests/pynk2_test_file.py is present in the main Git repository, but missing in the released source packages. This causes the test to fail when run with make check. Manually adding the file from the master repository fixes the issue locally.

build error: unknown type name 'byte_stream_float64_t'

While trying to build libnk2 from the package libnk2-alpha-20170127.tar.gz, I encountered the following error during the make phase:

libnk2_record_entry.c: In function 'libnk2_record_entry_read_data':
libnk2_record_entry.c:253:9: warning: implicit declaration of function 'byte_stream_copy_to_uint16_little_endian' [-Wimplicit-function-declaration]
  253 |         byte_stream_copy_to_uint16_little_endian(
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libnk2_record_entry.c: In function 'libnk2_record_entry_get_data_as_32bit_integer':
libnk2_record_entry.c:909:9: warning: implicit declaration of function 'byte_stream_copy_to_uint32_little_endian' [-Wimplicit-function-declaration]
  909 |         byte_stream_copy_to_uint32_little_endian(
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libnk2_record_entry.c: In function 'libnk2_record_entry_get_data_as_64bit_integer':
libnk2_record_entry.c:985:9: warning: implicit declaration of function 'byte_stream_copy_to_uint64_little_endian' [-Wimplicit-function-declaration]
  985 |         byte_stream_copy_to_uint64_little_endian(
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libnk2_record_entry.c: In function 'libnk2_record_entry_get_data_as_floating_point':
libnk2_record_entry.c:1236:9: error: unknown type name 'byte_stream_float64_t'
 1236 |         byte_stream_float64_t value_double;
      |         ^~~~~~~~~~~~~~~~~~~~~
libnk2_record_entry.c:1237:9: error: unknown type name 'byte_stream_float32_t'
 1237 |         byte_stream_float32_t value_float;
      |         ^~~~~~~~~~~~~~~~~~~~~
libnk2_record_entry.c:1307:29: error: request for member 'integer' in something not a structure or union
 1307 |                  value_float.integer );
      |                             ^
libnk2_record_entry.c:1309:61: error: request for member 'floating_point' in something not a structure or union
 1309 |                 *value_floating_point = (double) value_float.floating_point;
      |                                                             ^
libnk2_record_entry.c:1315:30: error: request for member 'integer' in something not a structure or union
 1315 |                  value_double.integer );
      |                              ^
libnk2_record_entry.c:1317:53: error: request for member 'floating_point' in something not a structure or union
 1317 |                 *value_floating_point = value_double.floating_point;
      |                                                     ^
libnk2_record_entry.c:1237:31: warning: variable 'value_float' set but not used [-Wunused-but-set-variable]
 1237 |         byte_stream_float32_t value_float;
      |                               ^~~~~~~~~~~
libnk2_record_entry.c:1236:31: warning: variable 'value_double' set but not used [-Wunused-but-set-variable]
 1236 |         byte_stream_float64_t value_double;
      |                               ^~~~~~~~~~~~
make[1]: *** [Makefile:759: libnk2_record_entry.lo] Error 1

I am guessing (!) that an include of libnk2_definitions.h is missing in the file libnk2/libnk2_record_entry.c.

Fix failing test

When using libfmapi as a shared library:

../libnk2/.libs/libnk2.so: undefined reference to `libfmapi_value_type_get_description'
../libnk2/.libs/libnk2.so: undefined reference to `libfmapi_property_type_get_description'
../libnk2/.libs/libnk2.so: undefined reference to `libfmapi_property_type_get_identifier'
../libnk2/.libs/libnk2.so: undefined reference to `libfmapi_debug_print_value'
../libnk2/.libs/libnk2.so: undefined reference to `libfmapi_value_type_get_identifier'
collect2: error: ld returned 1 exit status
make[1]: *** [nk2export] Error 1
make: *** [all-recursive] Error 1
Running: 'make' failed

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.