Code Monkey home page Code Monkey logo

libnfd's People

Contributors

izgzhen avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

libnfd's Issues

Fail to build on Linux

note: /usr/bin/ld: /home/user/nfd/target/debug/libnfd.rlib(nfd_gtk.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/home/user/nfd/target/debug/libnfd.rlib: error adding symbols: Bad value

I am not very clear about the problem now ... need to investigate later.

Refused to build sometimes

Output: error: could not find native static librarynfd, perhaps an -L flag is missing?

Temporary solution: cargo clean and rebuild.

Reproduce: looks like if previous building failed (due to lack of deps etc.), it will fail like this when we fixed the problem (dep) and continue.

Fail to build on OS X

note: Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_NSURL", referenced from:
      objc-class-ref in libnfd.rlib(nfd_cocoa.o)
  "_OBJC_CLASS_$_NSArray", referenced from:
      objc-class-ref in libnfd.rlib(nfd_cocoa.o)
  "_OBJC_CLASS_$_NSString", referenced from:
      objc-class-ref in libnfd.rlib(nfd_cocoa.o)
  "_OBJC_CLASS_$_NSSavePanel", referenced from:
      objc-class-ref in libnfd.rlib(nfd_cocoa.o)
  "_OBJC_CLASS_$_NSOpenPanel", referenced from:
      objc-class-ref in libnfd.rlib(nfd_cocoa.o)
  "_OBJC_CLASS_$_NSAutoreleasePool", referenced from:
      objc-class-ref in libnfd.rlib(nfd_cocoa.o)
  "_OBJC_CLASS_$_NSMutableArray", referenced from:
      objc-class-ref in libnfd.rlib(nfd_cocoa.o)
  "_objc_msgSend", referenced from:
      _NFD_OpenDialog in libnfd.rlib(nfd_cocoa.o)
      _AddFilterListToDialog in libnfd.rlib(nfd_cocoa.o)
ld: symbol(s) not found for architecture x86_64

The binding to AppKit in nativefiledialog (nfd_cocoa.m) is written in Obj-C, which includes AppKit/AppKit.h. The relevant SCons scripts reads like:

# Cocoa OS X builds - clang
if target_os == 'darwin':
    nfd_files.append('nfd_cocoa.m')
    nfd_env.CC='clang -fcolor-diagnostics'

Possible solution: https://github.com/servo/cocoa-rs.

GTK porting has errors (although working)

** (main:5089): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by \
any .service files
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
main: nfd_common.c:55: NFDi_Free: Assertion `ptr' 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.