After resolving two dozens undefined references I finally have readanysf compiled. Curiously gmerlin_avdec needs a prepended link of each used library.
The link flags must be at the end, like in attached file.
I had to copy missing dll's into pd/bin along with other libs provided py pd-extended and gridflow,
libdca-0.dll libgavl-1.dll libiconv-2.dll libintl-8.dll libtheora-0.dll lib-tiff-3.dll
it seems it's still not the good way to compile because pd complains:
load_object: Symbol "readanysf_tilde_setup" not found
----- "august" august@alien.mur.at a écrit :
hmm. I wish I could help more. I have never built a windows external.
Is there an extra step that is needed for windows? Do you have to register the _tilde_setup function somewhere else?
Is there a way to tell windows where to find the .dll's for a given package?
Maybe the symbol EXTERN/exporting stuff isn't quite right? For an
example to learn from, I think the Makefile template is your best bet:
http://puredata.info/docs/developer/MakefileTemplate
.hc
On Apr 27, 2011, at 11:15 PM, Patrice Colet wrote:
Access to computers should be unlimited and total. - the hacker ethic
Isn't that template just for libraries?
what about single externals?
It builds each object as a single .pd_linux/.dll If there is just one
object in your library, there is basically no diference ;)
hc
On Apr 28, 2011, at 9:38 AM, august wrote:
If nature has made any one thing less susceptible than all others of
exclusive property, it is the action of the thinking power called an
idea, which an individual may exclusively possess as long as he keeps
it to himself; but the moment it is divulged, it forces itself into
the possession of everyone, and the receiver cannot dispossess himself
of it. - Thomas Jefferson
Will it also handle C++ externals?
I tried to implement it for readanysf, but had problems with
"sed"
sed: invalid option -- 'm'
sed is used for getting the version from the mylibrary-meta.pd file.
In this case, its optional.
.hc
On Apr 28, 2011, at 10:33 AM, august wrote:
As we enjoy great advantages from inventions of others, we should be
glad of an opportunity to serve others by any invention of ours; and
this we should do freely and generously. - Benjamin Franklin
Patrice,
Here is a new Makefile that I made looking at the template base.
I think this should take care of exporting the tilde_setup symbol.
again, doing it blindly...so there may be errors.
-august.