Comments (7)
@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.
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)
from reprocessing-example.
@raould can you paste the contents of node_modules/sdl2/sdl2.pc
?
from reprocessing-example.
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.
@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.
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.
@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)
- Running `npm run build` fails on OS X HOT 6
- Is Raspberry PI Supported? HOT 4
- indexhot.byte not working in Windows 10 HOT 4
- `npm run start:native` and `npm run start` fail with "That operation is not supported" HOT 16
- js files get placed in src/, not in lib/js/src HOT 2
- Inconsistent assumptions error in merlin
- Web and native examples fail with runtime exception Not_found accessing hashtable
- `npm run build` error on the Ubuntu 19.04 HOT 9
- Add github template functionnality to this repo HOT 2
- Fresh install issues Ubuntu 18.04 HOT 6
- Issues on Sway (Wayland) HOT 7
- Conflict with global bs-platform HOT 10
- Issue with setup (tgls_bindings.a not found)
- submitting fixes for 2048 and livestream-flappybird branch HOT 1
- Firefox 58.0.1 64 bit Ubuntu 16.04 64 bit HOT 18
- Example fails because of library naming issues HOT 1
- Mention that you are using python 2 in the readme HOT 1
- Does not build properly on OpenSUSE 42.2, npm version 5.6.0 HOT 3
- Unable to run `npm run build` on Ubuntu 17.10 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reprocessing-example.