Git Product home page Git Product logo

Comments (7)

Schmavery avatar Schmavery commented on July 25, 2024 1

@mciparelli unless sdl is mentioned explicitly in the error message, that unfortunately looks like another occurrence of bsansouci/bsb-native#35 (and likely isn't related to this issue).

from reprocessing-example.

Schmavery avatar Schmavery commented on July 25, 2024

Mhhhh, I believe this is as a result of our linux support for sdl2 being still a tad hacky.
We generate a bsconfig with the "correct" (hardcoded) linux linking flags here: https://github.com/bsansouci/SDL-mirror/blob/fast/postinstall.js#L135

But since on linux we run the configure script and build from scratch, these link flags might end up being wrong for some platforms (seems like yours is one of them). We need to instead pull the right static linking flags from the generated pc files (https://github.com/bsansouci/SDL-mirror/blob/SDL12/sdl.pc.in#L14)

@bsansouci

from reprocessing-example.

Schmavery avatar Schmavery commented on July 25, 2024

@raould can you paste the contents of node_modules/sdl2/sdl2.pc?

from reprocessing-example.

mciparelli avatar mciparelli commented on July 25, 2024

In my case I get a bunch of these

can not be used when making a shared object; recompile with -fPIC

Any idea how to workaround this?

from reprocessing-example.

bsansouci avatar bsansouci commented on July 25, 2024

@mciparelli Could you paste the contents of node_modules/sdl2/sdl2.pc so we can figure out if you have different generated linker flags on your machine?

from reprocessing-example.

mciparelli avatar mciparelli commented on July 25, 2024

yeah it looks like this

# sdl pkg-config source file

prefix=/home/tincho/local/reprocessing-example/node_modules/sdl2
exec_prefix=${prefix}
libdir=/home/tincho/local/reprocessing-example/node_modules/sdl2
includedir=${prefix}/include

Name: sdl2
Description: Simple DirectMedia Layer is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer.
Version: 2.0.5
Requires:
Conflicts:
Libs: -L${libdir} -Wl,-rpath,${libdir} -Wl,--enable-new-dtags -lSDL2 
Libs.private: -lSDL2   -Wl,--no-undefined -lm -ldl -lpthread -lrt
Cflags: -I${includedir}/SDL2   -D_REENTRANT

from reprocessing-example.

Schmavery avatar Schmavery commented on July 25, 2024

@raould the dependency on libpulse-dev should be removed for cases where your distro doesn't use pulseaudio.
Please reopen or otherwise let us know if you're still having issues, and if the error looks like this, please include the contents of node_modules/sdl2/sdl2.pc just so we can check what sdl2 wants us to link :)

from reprocessing-example.

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.