Comments (6)
Could it be related to the order the files are linked?
Currently, the order is:
MAIN: main.o ofApp.o
OFXPD: ofxPd.o
LIBPD: ringbuffer.o z_queued.o z_hooks.o z_libpd.o
PD: bob~.o bonk~.o (...) d_array.o d_dac.o (...)
STATIC: libopenFrameworks.a libkiss.a (...)
DYN: -lcairo -lz (...)
But the weird thing is that both ofApp.o (or ofxPd.o) and PD objects (like d_array.o) trigger the linking error, while they are located both side of LIBPD inclusion... So I don't see what order could be better.
from ofxpd.
Note: I also had to remove ADDON_CFLAGS += -DHAVE_LIBDL
from addon_config.mk because compiler didn't find dlfcn.h, but that seems unrelated to the issue, and I don't need dynamic loading anyway.
But I'm still stuck on undefined reference to '__imp_*'
...
Ping @danomatika , any hint?
from ofxpd.
from ofxpd.
OK thanks. So maybe this can be controlled by some compiler flag?
I'm just starting to work on Windows again, which I haven't done since around 1998 :-)
from ofxpd.
OK! I have a working solution: for msys2
(and I guess for vs
too) we have to add:
ADDON_CFLAGS += -DPD_INTERNAL
which is used by m_pd.h for setting the EXTERN macro.
from ofxpd.
Closing as a solution was found. Also, this solution is now in the master
branch.
from ofxpd.
Related Issues (20)
- [question] there's any way to avoid libPd compile build for Windows / VS 2017? HOT 26
- Using ProjectGenerator to create an iOS ofxPd project? HOT 2
- iOS can not find my patch HOT 2
- Use keyboard input on iOS? HOT 1
- error compiling pdMultiExample with PDINSTANCE and PDTHREADS HOT 9
- pdMultiExample crashes with PDINSTANCE and PDTHREADS HOT 13
- ofxPd stops recieving messages (bangs) when ofxMidi is currently running on ios HOT 1
- background audio on android and back button issue HOT 10
- writesf~ file doesn't get created on iOS 15 HOT 7
- update libpd header link HOT 1
- pd.closePatch() not working with Emscripten HOT 7
- Is it possible to load local audio files (with the file browser) into ofxPd? HOT 1
- [metro] outputs a single bang and then stops HOT 8
- cannot convert argument 1 from 'void *' to 't_pd *' HOT 10
- audioReceived & audioRequested deprecated HOT 2
- Emscripten compatible version HOT 1
- Building in Visual Studio with custom externals HOT 2
- Cannot run ofxPd’s Example HOT 2
- Unable to detect endianness HOT 1
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 ofxpd.