hello,

Le 29/03/2015 13:44, Antoine Rousseau a écrit :
 > ofxPd.h: Aucun fichier ou dossier de ce type

seems that you didn't install the dependencies (see README.md) ;-)
ofxPd, ofxJSON, ofxUnicode and ofxZipPass.
oups, sorry, i missed this line in the readme. (it was hiding after the windows 
configuration!)

Anyaway you should have a bug compiling ofxPd, which you can resolve by 
downloading a previous version of ofxPd (github/ofxPd/branch/tags/0.8.4).
You will have another minor compilation issue with ofxUnicode, which i 
mentioned in HACKS.txt file. Refer to codelab Pof's thread in french langage 
(http://codelab.fr/5696) for a quick fix (updated checked.h file for utf8cpp).

About cast error in snprintf(selfname,16 , "pof%x", (unsigned int)this), it's a 64bit issue so I 
didn't fix it yet, but replacing "(unsigned int)this" by "(void*)this" should do it.

ok, thanks.
using OF 0.8.4, I also had a problem with ofxaccelerometer.h, like in this post:
http://codelab.fr/5696#p28698
but i manage to find it.

then, the standalone example works on my computer.

but buildexternal still failed.

/usr/bin/ld: obj/linux64/Release/src/ofApp.o: réadressage de R_X86_64_32 en 
vertu de « thread » ne peut être utilisé lors de la création d'un objet 
partagé; recompilez avec -fPIC
obj/linux64/Release/src/ofApp.o: error adding symbols: Mauvaise valeur

but fPIC flag is present:

g++ -o bin/pof.pd_linux obj/linux64/Release/src/ofApp.o  
../../../addons/obj/linux64/Release/ofxPof/src/pofScope.o 
../../../addons/obj/linux64/Release/ofxPof/src/pofTranslate.o 
../../../addons/obj/linux64/Release/ofxPof/src/pofResetMatrix.o 
../../../addons/obj/linux64/Release/ofxPof/src/pofAccel.o 
../../../addons/obj/linux64/Release/ofxPof/src/pofRect.o 
../../../addons/obj/linux64/Release/ofxPof/src/pofCirc.o 
../../../addons/obj/linux64/Release/ofxPof/src/pofHead.o 
../../../addons/obj/linux64/Release/ofxPof/src/pofFont.o 
../../../addons/obj/linux64/Release/ofxPof/src/pofTouchable.o 
../../../addons/obj/linux64/Release/ofxPof/src/pofGetMatrix.o 
../../../addons/obj/linux64/Release/ofxPof/src/pofFbo.o 
../../../addons/obj/linux64/Release/ofxPof/src/pofXML.o 
../../../addons/obj/linux64/Release/ofxPof/src/pofBang.o 
../../../addons/obj/linux64/Release/ofxPof/src/pofUtil.o 
../../../addons/obj/linux64/Release/ofxPof/src/pofTextbox.o 
../../../addons/obj/linux64/Release/ofxPof/src/pofText.o ../..
/../addons/obj/linux64/Release/ofxPof/src/pofImage.o 
../../../addons/obj/linux64/Release/ofxPof/src/pofBase.o 
../../../addons/obj/linux64/Release/ofxPof/src/pofFonts.o 
../../../addons/obj/linux64/Release/ofxPof/src/pofTexts.o 
../../../addons/obj/linux64/Release/ofxPof/src/pofTouch.o 
../../../addons/obj/linux64/Release/ofxPof/src/pofRotate.o 
../../../addons/obj/linux64/Release/ofxPof/src/pofScale.o 
../../../addons/obj/linux64/Release/ofxPof/src/pofColor.o 
../../../addons/obj/linux64/Release/ofxPof/src/pofJSON.o 
../../../addons/obj/linux64/Release/ofxPof/src/pofWin.o 
../../../addons/obj/linux64/Release/ofxPof/src/pofVisible.o 
../../../addons/obj/linux64/Release/ofxPof/libs/ofxFontStash/src/ofxFontStash.o 
../../../addons/obj/linux64/Release/ofxPof/libs/ofxFontStash/libs/fontstash/src/stb_truetype.o
 
../../../addons/obj/linux64/Release/ofxPof/libs/ofxFontStash/libs/fontstash/src/fontstash.o
 ../../../addons/obj/linux64/Release/ofxAccelerometer/src/ofxAccelerometer.o 
../../../addons/obj/linu
x64/Release/ofxJSON/src/ofxJSONElement.o 
../../../addons/obj/linux64/Release/ofxJSON/libs/jsoncpp/src/jsoncpp.o 
../../../addons/obj/linux64/Release/ofxUnicode/src/ofUTF8.o 
../../../addons/obj/linux64/Release/ofxUnicode/src/ofUnicode.o 
../../../addons/obj/linux64/Release/ofxUnicode/src/ofTextConverter.o 
../../../addons/obj/linux64/Release/ofxZipPass/src/ofxZipPass.o 
../../../addons/obj/linux64/Release/ofxZipPass/libs/zlib-1.2.5/compress.o 
../../../addons/obj/linux64/Release/ofxZipPass/libs/zlib-1.2.5/uncompr.o 
../../../addons/obj/linux64/Release/ofxZipPass/libs/zlib-1.2.5/gzread.o 
../../../addons/obj/linux64/Release/ofxZipPass/libs/zlib-1.2.5/deflate.o 
../../../addons/obj/linux64/Release/ofxZipPass/libs/zlib-1.2.5/adler32.o 
../../../addons/obj/linux64/Release/ofxZipPass/libs/zlib-1.2.5/inffast.o 
../../../addons/obj/linux64/Release/ofxZipPass/libs/zlib-1.2.5/crc32.o 
../../../addons/obj/linux64/Release/ofxZipPass/libs/zlib-1.2.5/gzlib.o 
../../../addons/obj/linux64/Release/ofxZipPass/libs
/zlib-1.2.5/inflate.o 
../../../addons/obj/linux64/Release/ofxZipPass/libs/zlib-1.2.5/infback.o 
../../../addons/obj/linux64/Release/ofxZipPass/libs/zlib-1.2.5/trees.o 
../../../addons/obj/linux64/Release/ofxZipPass/libs/zlib-1.2.5/zutil.o 
../../../addons/obj/linux64/Release/ofxZipPass/libs/zlib-1.2.5/gzwrite.o 
../../../addons/obj/linux64/Release/ofxZipPass/libs/zlib-1.2.5/minizip/unzip.o 
../../../addons/obj/linux64/Release/ofxZipPass/libs/zlib-1.2.5/minizip/mztools.o
 ../../../addons/obj/linux64/Release/ofxZipPass/libs/zlib-1.2.5/minizip/zip.o 
../../../addons/obj/linux64/Release/ofxZipPass/libs/zlib-1.2.5/minizip/ioapi.o 
../../../addons/obj/linux64/Release/ofxZipPass/libs/zlib-1.2.5/gzclose.o 
../../../addons/obj/linux64/Release/ofxZipPass/libs/zlib-1.2.5/inftrees.o 
../../../libs/openFrameworksCompiled/lib/linux64/libopenFrameworks.a       
-Wl,-rpath=./libs:./bin/libs -Wl,--as-needed -Wl,--gc-sections -fPIC 
-Wl,--export-dynamic -rdynamic -shared -Wl,-rpath=./libs 
-L../../../libs/fmodex/li
b/linux64/ -lfmodex ../../../libs/glfw/lib/linux64/libglfw3.a 
../../../libs/kiss/lib/linux64/libkiss.a 
../../../libs/rtAudio/lib/linux64/libRtAudio.a 
../../../libs/tess2/lib/linux64/libtess2.a 
../../../libs/poco/lib/linux64/libPocoNet.a 
../../../libs/poco/lib/linux64/libPocoXML.a 
../../../libs/poco/lib/linux64/libPocoUtil.a 
../../../libs/poco/lib/linux64/libPocoFoundation.a  
../../../libs/poco/lib/linux64/libPocoNetSSL.a 
../../../libs/poco/lib/linux64/libPocoNet.a 
../../../libs/poco/lib/linux64/libPocoCrypto.a 
../../../libs/poco/lib/linux64/libPocoUtil.a 
../../../libs/poco/lib/linux64/libPocoXML.a 
../../../libs/poco/lib/linux64/libPocoFoundation.a  -lz -lgstapp-1.0 
-lgstvideo-1.0 -lgstbase-1.0 -lgstreamer-1.0 -ludev -lfontconfig -lfreetype 
-lsndfile -lopenal -lssl -lcrypto -lpulse-simple -lpulse -lasound -lGLEW -lGLU 
-lGL -lgtk-3 -lgdk-3 -latk-1.0 -lgio-2.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 
-lcairo-gobject -lpango-1.0 -lcairo -lgobject-2.0 -lglib-2.0 -lmpg123   -lglut 
-lX11 -lXrandr -
lXxf86vm -lXi -lXcursor -ldl -lpthread -lfreeimage


merci
Cyrille


bise !
ant1


2015-03-29 13:14 GMT+02:00 Cyrille Henry <[email protected] 
<mailto:[email protected]>>:

    hello Antoine,

    i'm trying to test pof.
    i'm following the instructions, but i have some problems.

    for the standalone project :
    I cd in the exampleStandalone folder, not in the example folder as 
advertised in the documentation.

    make give this error :

    In file included from src/main.cpp:2:0:
    src/testApp.h:9:19: fatal error: ofxPd.h: Aucun fichier ou dossier de ce 
type
      #include "ofxPd.h"

    using the codeblock workspace, i had to simlink
    
/home/chnry/of/of_v0.8.4___linux64_release/libs/__openFrameworksCompiled/__project/linux64
    to
    
/home/chnry/of/of_v0.8.4___linux64_release/libs/__openFrameworksCompiled/__project/linux
    but in the end, i had the same error.



    building as pd externals, make gives :

    In file included from src/ofApp.cpp:7:0:
    ../../../addons/ofxPof/src/__pofBase.h: In constructor 
‘pofBase::pofBase(_class*)’:
    ../../../addons/ofxPof/src/__pofBase.h:30:50: error: cast from ‘pofBase*’ 
to ‘unsigned int’ loses precision [-fpermissive]
         snprintf(selfname,16 , "pof%x", (unsigned int)this);
                                                       ^
    make[1]: *** [obj/linux64/Release/src/__ofApp.o] Erreur 1
    make[1]: quittant le répertoire « 
/home/chnry/of/of_v0.8.4___linux64_release/addons/ofxPof/__buildExternal »
    make: *** [Release] Erreur 2

    i'm running ubuntu linux (14.04)


    cheers
    cyrille

    Le 26/03/2015 14:29, Antoine Rousseau a écrit :

        Hi all,

        my name is Antoine Rousseau (sourceforge/github/puredata/__codelab : 
ant1r).
        I'm using Pd since 2000, to build musical and visual machines (see 
http://metalu.net and al1ant1.free.fr <http://al1ant1.free.fr> 
<http://al1ant1.free.fr>).

        I wrote moonlib externals long time ago. (BTW maybe I will have some 
time one day to update these libs ; will it be possible I have an access to the 
sourceforge for this purpose ?)


        I'm happy to announce the publication of a new project : Pof = Pd + 
openFrameworks :
        https://github.com/Ant1r/__ofxPof <https://github.com/Ant1r/ofxPof>

        It consists of pd externals written in OF bringing mid-level openGL functions 
(and some additional utilities), so you can build an app entirely in pd patchs, and 
get it working for every OF-supported OSes (Linux/OSX/Win/Android/IOS) with the help 
of ofxPd (https://github.com/__danomatika/ofxPd 
<https://github.com/danomatika/ofxPd>).

        Of course Pof has similarities with Gem ; one of the main differences 
is that the rendering is done by a parallel thread, to avoid audio clicking ; 
this is done by copying the pd tree to a specific rendering tree. This has some 
implications on the pd tree : in Pof you cannot render the same object multiple 
times.

        Multitouch events are also managed by the rendering thread, using an 
optimized inverted tree, for an event at a given place to be captured by the 
last drawn object at this place. The touch management is (for now) only 
meaningful in a 2D design : depth (z) is not taken into account.

        Being written in C++/OF, tons of tedious work are made easy ; that's 
why some utilities I needed for the work I did were written into Pof : threaded 
file downloading, XML/JSON support, file utils.

        This project has only been tested on Linux (Ubuntu 12.04 32bit)  and 
Android for the moment.
        An Android patch player APK file and a built pof.pd_linux are available for 
download in the releases github tab (https://github.com/Ant1r/__ofxPof/release 
<https://github.com/Ant1r/ofxPof/release>). Contributions are welcome to have 
it running on more systems.

        I hope this will contribute to make the Pd ecosystem even stronger !

        Regards

        --
        Antoine Rousseau <[email protected] <mailto:[email protected]> 
<mailto:ant1rousseau1@gmail.__com <mailto:[email protected]>>>
        http://www.metalu.net/
        http://www.metaluachahuter.__com/compagnies/al1-ant1/ 
<http://www.metaluachahuter.com/compagnies/al1-ant1/>
        http://al1ant1.free.fr



        _________________________________________________
        Pd-dev mailing list
        [email protected] <mailto:[email protected]>
        http://lists.puredata.info/__listinfo/pd-dev 
<http://lists.puredata.info/listinfo/pd-dev>


    _________________________________________________
    Pd-dev mailing list
    [email protected] <mailto:[email protected]>
    http://lists.puredata.info/__listinfo/pd-dev 
<http://lists.puredata.info/listinfo/pd-dev>




--
Antoine Rousseau <[email protected] <mailto:[email protected]>>
http://www.metaluachahuter.com/compagnies/al1-ant1/
http://al1ant1.free.fr



_______________________________________________
Pd-dev mailing list
[email protected]
http://lists.puredata.info/listinfo/pd-dev


_______________________________________________
Pd-dev mailing list
[email protected]
http://lists.puredata.info/listinfo/pd-dev

Reply via email to