Coder Social home page Coder Social logo

New release build about lilliput HOT 10 CLOSED

discord avatar discord commented on May 20, 2024
New release build

from lilliput.

Comments (10)

theRoughCode avatar theRoughCode commented on May 20, 2024 1

Oh, I found out the solution. Had to allow unused-packages golang/dep#1731. Thanks for all the help Brian, and would love to help contribute to this project or even intern at Discord to work on cool projects like this in the future!

from lilliput.

brian-armstrong-discord avatar brian-armstrong-discord commented on May 20, 2024

Hi,

Sorry about that. I just issued v1.2. Can you try again?

from lilliput.

theRoughCode avatar theRoughCode commented on May 20, 2024

Hey Brian, thanks for the quick reply. It works now, but there's another error when trying to build it in docker. I tried to run build-deps-osx.sh but it's giving me this error:

avcodec.cpp:7:32: fatal error: libavcodec/avcodec.h: No such file or directory
 #include <libavcodec/avcodec.h>
                                ^
compilation terminated.

Any thoughts?

from lilliput.

brian-armstrong-discord avatar brian-armstrong-discord commented on May 20, 2024

Just to be clear, you should only need to build deps if you're changing something about the C dependencies. Otherwise, the ones that are built in should just work (lilliput has been set up specifically to avoid needing to build any C/C++ save for the tiny bit of CGo wrapper).

Can you confirm the contents of lilliput/deps/osx/include inside the container? Just a basic ls will do.

from lilliput.

brian-armstrong-discord avatar brian-armstrong-discord commented on May 20, 2024

Also, I'm a little confused. That error looks related to building the wrapper itself, not deps.

from lilliput.

theRoughCode avatar theRoughCode commented on May 20, 2024

Output of ls:

bzlib.h		jpeglib.h	libavutil	opencv2		webp
gif_lib.h	libavcodec	libpng16	png.h		zconf.h
jconfig.h	libavdevice	libswresample	pngconf.h	zlib.h
jerror.h	libavfilter	libswscale	pnglibconf.h
jmorecfg.h	libavformat	opencv		turbojpeg.h

So, firstly, docker runs linux, so I should've run build-deps-linux.sh. Secondly, I believe the error is occurring due to SRCDIR being incorrect in docker? i.e. #cgo linux CFLAGS: -I${SRCDIR}/deps/linux/include in avcodec.go. But this is also confusing because CGo should be able to figure out the current path from ${SRCDIR}.

from lilliput.

brian-armstrong-discord avatar brian-armstrong-discord commented on May 20, 2024

Is it possible your path has spaces in it? SRCDIR is set by the Go compiler. But apparently it doesn't gracefully handle paths with various non-alphanumeric characters golang/go#11868

from lilliput.

theRoughCode avatar theRoughCode commented on May 20, 2024

Thanks for being so active in helping me try to solve this! Hmm... I didn't get the error that was showing in that issue. And I don't have any spaces in my path. 🤔

from lilliput.

theRoughCode avatar theRoughCode commented on May 20, 2024

Oh interesting, so dep ensure does not actually download the necessary files in deps/linux/include. Do you know why?

Output of ls:

png.h		pngconf.h	pnglibconf.h

from lilliput.

brian-armstrong-discord avatar brian-armstrong-discord commented on May 20, 2024

That looks really broken. I don't know what's going on with it, but I also don't know what dep ensure is. Might be worth clearing out the directory and retrying?

from lilliput.

Related Issues (20)

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.