Giter Club home page Giter Club logo

Comments (8)

resuna avatar resuna commented on July 17, 2024

You shouldn't put platform-specific paths in Makefile.in

from yajl-tcl.

tamusjroyce avatar tamusjroyce commented on July 17, 2024

Absolutely. That is why this is a bug / work-around. To actually fix the bug, that work will need done. I may try to come back and do this (fork + pull request). But I have a product I need to develop for a customer first. ๐Ÿ‘

from yajl-tcl.

resuna avatar resuna commented on July 17, 2024

Roger!

from yajl-tcl.

gahr avatar gahr commented on July 17, 2024

I donโ€™t see that pkg_check_modules line being commented in configure.in

from yajl-tcl.

tamusjroyce avatar tamusjroyce commented on July 17, 2024

That was part of the work-around I needed to do. Some reason "sudo apt-get install libyajl-dev" does not add itself to pkg-config. Maybe this part of the bug really belongs in that package? (edit: This is incorrect... It is added. But yajl-tcl build fails due to pkg-config / an issue with my specific environment)

But I did read that all static libraries need linked together for TCL 8.5+. Did not used to be that way. And I did not see libyajl.so being linked in the final dynamic library. (Just clarifying the part of the bug that belongs here - thanks for bringing this up @gahr!)


tl;dr Note: Using Bash on Windows -> Ubuntu with Netbeans + http://plugins.netbeans.org/plugin/39119/tcl-plugin + vxcsrv. But works same as Ubuntu w/ KDE. Wasn't able to get that far with Msys2 / MinGW. But the system I need to develop for is embedded Linux based using https://github.com/flightaware/yajl-tcl for a certain remote control TCL 2.0 software.

This library is really useful! Thank you to those who wrote it and those supporting it. Including @gahr and @resuna!

from yajl-tcl.

gahr avatar gahr commented on July 17, 2024

Iโ€™m not an ubuntu expert, but the pkgconf file is listed here: https://packages.ubuntu.com/bionic/amd64/libyajl-dev/filelist

from yajl-tcl.

mutability avatar mutability commented on July 17, 2024

I cannot reproduce this on a Ubuntu 16.04 machine. yajl-tcl builds fine out of the box:

$ autoconf
$ ./configure
$ make
$ dpkg -l 'libyajl*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  libyajl-dev:am 2.1.0-2      amd64        Yet Another JSON Library - develo
rc  libyajl1       1.0.12-2     amd64        Yet Another JSON Library
ii  libyajl2:amd64 2.1.0-2      amd64        Yet Another JSON Library

from yajl-tcl.

tamusjroyce avatar tamusjroyce commented on July 17, 2024

I should technically be on Ubuntu 16.04. But it is Bash on Windows. So anything could be causing the pkg-config issue. Good to know! This is specific to me. I will remove that part / step 1 from this bug.

@mutability - I see that you are correct. I should have looked...my apologies!
prefix=/usr
libdir=${prefix}/lib/x86_64-linux-gnu
includedir=${prefix}/include/yajl

Name: Yet Another JSON Library
Description: A Portable JSON parsing and serialization library in ANSI C
Version: 2.1.0
Cflags: -I${includedir}
Libs: -L${libdir} -lyajl

edit: Removed from above

  1. in configure.in:
#PKG_CHECK_MODULES([YAJL], [yajl >= 2.0], [],
#  AC_MSG_ERROR(Cannot find yajl]))

Update: Got a chance to try it again (with a different machine) in WSL / Ubuntu on Windows and it installed cleanly. Still has the issue when loading the module in TCL (can't find native C functions because of original library not being linked in final step). But it compiles just fine.

from yajl-tcl.

Related Issues (18)

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.