Hello Alexandre, Well, I'm back with 5 basic (-questions-) for "dummies" embedded into your here below Building instructions...
Building ELSE for Pd Vanilla: ELSE relies on the build system called "pd-lib-builder" by Katja Vetter (check the project in: https://github.com/pure-data/pd-lib-builder). PdLibBuilder tries to find the Pd source directory at several common locations, but when this fails, you have to specify the path yourself using the pdincludepath variable. Example (assuming the unpacked Pd package is in ~/pd-0.54-0; for Windows/MinGW add |pdbinpath=~/pd-0.54-0/bin/|): make pdincludepath=~/pd-0.54-0/src/
=> So I installed pd-lib-builder-0.6.0-1 from Add/Remove Software (RPi OS 11 32-bit / RPi 400), done.
Go to the pd-else folder /(-Which folder? The decompressed downloaded source code file?-)/ and use "objectsdir" to set an /absolute/ path for your build, something like: make install objectsdir=~/else-build Then move it (-What?-) from there to your preferred install folder for Pd /(-What do you mean by 'your Preferred install folder for Pd'?-)/ and add it to the path /(-How and to which one?-)/.
Cross compiling is also possible with something like this: make CC=arm-linux-gnueabihf-gcc target.arch=arm7l install objectsdir=~/else-build
For technical reasons these objects reside in their own subdirectories of the ELSE source directory, so a normal build as described above will skip them. You can install these separately and you can also check their subfolders for their own READMEs and instructions.
To install them with the rest of ELSE you can build from the toplevel source directory /(-?-)/ using the special 'sfont', 'sfz' and 'plaits' targets: make sfont sfz plaits pdincludepath=~/pd-0.54-0/src/ make sfont-install sfz-install plaits-install objectsdir=~/else-build This also makes sure that [sfont~], [sfz~] and [plaits~] get added to the chosen else library directory instead of their own subdirectories.
Thanks. Best, Joseph Gastelais
Em seg., 31 de jul. de 2023 às 16:47, Linux Rouen Normandie < linux.rouen@free.fr> escreveu:
Hello Alexandre, Well, I'm back with 5 basic (-questions-) for "dummies" embedded into your here below Building instructions...
Maybe not the best place to discuss this, but then I could actually use some help form others, as, like I just said in the other subject/thread, my experience with linux and raspberry pi is limited.
I have a VM in a mac that runs ubuntu and I'm able to cross compile in it for raspberry pis thanks to a friend who set it up for me, but I was never able to use it to compile these new three objects that need more steps.
Anyway, thanks for your interest and help, let's dig in...
=> So I installed pd-lib-builder-0.6.0-1 from Add/Remove Software (RPi OS 11 32-bit / RPi 400), done.
I do provide pd-lib-builder in a subfolder of the ELSE source code, so you don't really need to bother installing it yourself.
- Installing with pdlibbuilder
Go to the pd-else folder *(-Which folder? The decompressed downloaded source code file?-)*
Yup. If you're cloning from github you should have this "pd-else" folder. If you download the source from the github site you get something like "pd-else-master" or "pd-else-1.0-rc9-pre-test" (preferred for what you want, which is building this release). Just just go to this directory on your terminal to run the make code.
and use "objectsdir" to set an *absolute* path for your build, something like: make install objectsdir=~/else-build Then move it (-What?-)
move the built and generated folder. In this case it would be a folder called "else" created inside a "else-build" subfolder in the source code of ELSE.
I actually do "objectsdir=../" and look for the 'else' folder in the same folder as the source code of ELSE...
So, when you're done generating your folder, move it to install it as any external library into your preferred externals folder.
from there to your preferred install folder for Pd *(-What do you mean by 'your Preferred install folder for Pd'?-)*
Wherever you like. I use the ~/Documents/Pd/externals folder.
and add it to the path *(-How and to which one?-)*.
Add the else folder (wherever it is) to the user added search paths, that you can set under preferences ==> path
- Installing sfont~, sfz~ and plaits~
(...) To install them with the rest of ELSE you can build from the toplevel source directory *(-?-)*
That is the same directory for the regular build, like "pd-else".
using the special 'sfont', 'sfz' and 'plaits' targets: make sfont sfz plaits pdincludepath=~/pd-0.54-0/src/ make sfont-install sfz-install plaits-install objectsdir=~/else-build
I don't really use 'pdincludepath'... pdlibbuilder finds it if you have it. But you gotta have pd-0.54-0 installed, preferably just this version.
Like I said in the other thread, you need to have 'cmake' installed, which may be something that comes out of the box in raspberry pi?
Anyway, that's all I know, that's what I need to do to build it in my mac, but I have no idea if it'll run smoothly in a raspberry pi and I'm afraid I won't know what to do if you hit a wall :)
Hope it works, let us know
thanks
Thanks for your clarifications. It's clearer and my understanding has increased a bit. Now I will make my home work, including the 3 [~] objects, hoping I will not face to an unbreakable wall. Let's see. I will keep you posted...
Le 01/08/2023 à 01:41, Alexandre Torres Porres a écrit :
Em seg., 31 de jul. de 2023 às 16:47, Linux Rouen Normandie linux.rouen@free.fr escreveu:
Hello Alexandre, Well, I'm back with 5 basic (-questions-) for "dummies" embedded into your here below Building instructions...
Maybe not the best place to discuss this, but then I could actually use some help form others, as, like I just said in the other subject/thread, my experience with linux and raspberry pi is limited.
I have a VM in a mac that runs ubuntu and I'm able to cross compile in it for raspberry pis thanks to a friend who set it up for me, but I was never able to use it to compile these new three objects that need more steps.
Anyway, thanks for your interest and help, let's dig in...
=> So I installed pd-lib-builder-0.6.0-1 from Add/Remove Software (RPi OS 11 32-bit / RPi 400), done.
I do provide pd-lib-builder in a subfolder of the ELSE source code, so you don't really need to bother installing it yourself.
1. Installing with pdlibbuilder Go to the pd-else folder /(-Which folder? The decompressed downloaded source code file?-)/
Yup. If you're cloning from github you should have this "pd-else" folder. If you download the source from the github site you get something like "pd-else-master" or "pd-else-1.0-rc9-pre-test" (preferred for what you want, which is building this release). Just just go to this directory on your terminal to run the make code.
and use "objectsdir" to set an /absolute/ path for your build, something like: make install objectsdir=~/else-build Then move it (-What?-)
move the built and generated folder. In this case it would be a folder called "else" created inside a "else-build" subfolder in the source code of ELSE.
I actually do "objectsdir=../" and look for the 'else' folder in the same folder as the source code of ELSE...
So, when you're done generating your folder, move it to install it as any external library into your preferred externals folder.
from there to your preferred install folder for Pd /(-What do you mean by 'your Preferred install folder for Pd'?-)/
Wherever you like. I use the ~/Documents/Pd/externals folder.
and add it to the path /(-How and to which one?-)/.
Add the else folder (wherever it is) to the user added search paths, that you can set under preferences ==> path
2. Installing sfont~, sfz~ and plaits~ (...) To install them with the rest of ELSE you can build from the toplevel source directory /(-?-)/
That is the same directory for the regular build, like "pd-else".
using the special 'sfont', 'sfz' and 'plaits' targets: make sfont sfz plaits pdincludepath=~/pd-0.54-0/src/ make sfont-install sfz-install plaits-install objectsdir=~/else-build
I don't really use 'pdincludepath'... pdlibbuilder finds it if you have it. But you gotta have pd-0.54-0 installed, preferably just this version.
Like I said in the other thread, you need to have 'cmake' installed, which may be something that comes out of the box in raspberry pi?
Anyway, that's all I know, that's what I need to do to build it in my mac, but I have no idea if it'll run smoothly in a raspberry pi and I'm afraid I won't know what to do if you hit a wall :)
Hope it works, let us know
thanks
cool, just try the current master, as I think I solved some issues for building these objects there and I'm still adding new features and will release the final update with them anyway...
Em ter., 1 de ago. de 2023 às 19:32, Linux ROUEN Normandie < linux.rouen@free.fr> escreveu:
Thanks for your clarifications. It's clearer and my understanding has increased a bit. Now I will make my home work, including the 3 [~] objects, hoping I will not face to an unbreakable wall. Let's see. I will keep you posted...
Best, Joseph
Le 01/08/2023 à 01:41, Alexandre Torres Porres a écrit :
Em seg., 31 de jul. de 2023 às 16:47, Linux Rouen Normandie < linux.rouen@free.fr> escreveu:
Hello Alexandre, Well, I'm back with 5 basic (-questions-) for "dummies" embedded into your here below Building instructions...
Maybe not the best place to discuss this, but then I could actually use some help form others, as, like I just said in the other subject/thread, my experience with linux and raspberry pi is limited.
I have a VM in a mac that runs ubuntu and I'm able to cross compile in it for raspberry pis thanks to a friend who set it up for me, but I was never able to use it to compile these new three objects that need more steps.
Anyway, thanks for your interest and help, let's dig in...
=> So I installed pd-lib-builder-0.6.0-1 from Add/Remove Software (RPi OS 11 32-bit / RPi 400), done.
I do provide pd-lib-builder in a subfolder of the ELSE source code, so you don't really need to bother installing it yourself.
- Installing with pdlibbuilder
Go to the pd-else folder *(-Which folder? The decompressed downloaded source code file?-)*
Yup. If you're cloning from github you should have this "pd-else" folder. If you download the source from the github site you get something like "pd-else-master" or "pd-else-1.0-rc9-pre-test" (preferred for what you want, which is building this release). Just just go to this directory on your terminal to run the make code.
and use "objectsdir" to set an *absolute* path for your build, something like: make install objectsdir=~/else-build Then move it (-What?-)
move the built and generated folder. In this case it would be a folder called "else" created inside a "else-build" subfolder in the source code of ELSE.
I actually do "objectsdir=../" and look for the 'else' folder in the same folder as the source code of ELSE...
So, when you're done generating your folder, move it to install it as any external library into your preferred externals folder.
from there to your preferred install folder for Pd *(-What do you mean by 'your Preferred install folder for Pd'?-)*
Wherever you like. I use the ~/Documents/Pd/externals folder.
and add it to the path *(-How and to which one?-)*.
Add the else folder (wherever it is) to the user added search paths, that you can set under preferences ==> path
- Installing sfont~, sfz~ and plaits~
(...) To install them with the rest of ELSE you can build from the toplevel source directory *(-?-)*
That is the same directory for the regular build, like "pd-else".
using the special 'sfont', 'sfz' and 'plaits' targets: make sfont sfz plaits pdincludepath=~/pd-0.54-0/src/ make sfont-install sfz-install plaits-install objectsdir=~/else-build
I don't really use 'pdincludepath'... pdlibbuilder finds it if you have it. But you gotta have pd-0.54-0 installed, preferably just this version.
Like I said in the other thread, you need to have 'cmake' installed, which may be something that comes out of the box in raspberry pi?
Anyway, that's all I know, that's what I need to do to build it in my mac, but I have no idea if it'll run smoothly in a raspberry pi and I'm afraid I won't know what to do if you hit a wall :)
Hope it works, let us know
thanks
Hello Alexandre,
No luck from the beginning with Errors starting from line 51 with: pi@RPi400:~/Downloads/pd-else-master $ make install objectsdir=~/else-build Using 'sudo' before the command is not better.
Note-1: Of course, the pd-else-master.zip, downloaded today from your Else Git has been decompressed. Note-2: Neither '/home/pi/else-build/else' nor '/home/pi/else-build' have been created. Note-3: You can see that here the architecture is for 'armv7' (on my RPi 400 / RPi OS11 32-bit).
See the terminal output in the here attached file. Any idea how to fix that?
Thanks. Best, Joseph = = = = = = = = = =
Le 02/08/2023 à 04:29, Alexandre Torres Porres a écrit :
cool, just try the current master, as I think I solved some issues for building these objects there and I'm still adding new features and will release the final update with them anyway...
Em ter., 1 de ago. de 2023 às 19:32, Linux ROUEN Normandie linux.rouen@free.fr escreveu:
Thanks for your clarifications. It's clearer and my understanding has increased a bit. Now I will make my home work, including the 3 [~] objects, hoping I will not face to an unbreakable wall. Let's see. I will keep you posted... -------------------- Best, Joseph -------------------- Le 01/08/2023 à 01:41, Alexandre Torres Porres a écrit :
Em seg., 31 de jul. de 2023 às 16:47, Linux Rouen Normandie <linux.rouen@free.fr> escreveu: Hello Alexandre, Well, I'm back with 5 basic (-questions-) for "dummies" embedded into your here below Building instructions... Maybe not the best place to discuss this, but then I could actually use some help form others, as, like I just said in the other subject/thread, my experience with linux and raspberry pi is limited. I have a VM in a mac that runs ubuntu and I'm able to cross compile in it for raspberry pis thanks to a friend who set it up for me, but I was never able to use it to compile these new three objects that need more steps. Anyway, thanks for your interest and help, let's dig in... => So I installed pd-lib-builder-0.6.0-1 from Add/Remove Software (RPi OS 11 32-bit / RPi 400), done. I do provide pd-lib-builder in a subfolder of the ELSE source code, so you don't really need to bother installing it yourself. 1. Installing with pdlibbuilder Go to the pd-else folder /(-Which folder? The decompressed downloaded source code file?-)/ Yup. If you're cloning from github you should have this "pd-else" folder. If you download the source from the github site you get something like "pd-else-master" or "pd-else-1.0-rc9-pre-test" (preferred for what you want, which is building this release). Just just go to this directory on your terminal to run the make code. and use "objectsdir" to set an /absolute/ path for your build, something like: make install objectsdir=~/else-build Then move it (-What?-) move the built and generated folder. In this case it would be a folder called "else" created inside a "else-build" subfolder in the source code of ELSE. I actually do "objectsdir=../" and look for the 'else' folder in the same folder as the source code of ELSE... So, when you're done generating your folder, move it to install it as any external library into your preferred externals folder. from there to your preferred install folder for Pd /(-What do you mean by 'your Preferred install folder for Pd'?-)/ Wherever you like. I use the ~/Documents/Pd/externals folder. and add it to the path /(-How and to which one?-)/. Add the else folder (wherever it is) to the user added search paths, that you can set under preferences ==> path 2. Installing sfont~, sfz~ and plaits~ (...) To install them with the rest of ELSE you can build from the toplevel source directory /(-?-)/ That is the same directory for the regular build, like "pd-else". using the special 'sfont', 'sfz' and 'plaits' targets: make sfont sfz plaits pdincludepath=~/pd-0.54-0/src/ make sfont-install sfz-install plaits-install objectsdir=~/else-build I don't really use 'pdincludepath'... pdlibbuilder finds it if you have it. But you gotta have pd-0.54-0 installed, preferably just this version. Like I said in the other thread, you need to have 'cmake' installed, which may be something that comes out of the box in raspberry pi? Anyway, that's all I know, that's what I need to do to build it in my mac, but I have no idea if it'll run smoothly in a raspberry pi and I'm afraid I won't know what to do if you hit a wall :) Hope it works, let us know thanks
(resending, as I accidentally only answered to joseph)
You must build against Pd-0.54 (as there's obviously no compile time check for the actual Pd version).
Pd-0.54 has been released after Debian/bookworm, so you cannot use the Pd bundled with your Raspbian/bookworm. Either compile Pd yourself, or use the one from Debian/backports: https://backports.debian.org When compiling of yourself, you must make sure that the build system can find the headers.
Personally I think this is a bug in ELSE, and would file a bug that it ought to be buildable against older versions of Pd (even if that means that some functionality is missing).
https://github.com/porres/pd-else
mfg.sfg.jfd IOhannes
Hello IOhannes, See here below my comments. I'm still in the learning phase for compiling Externals. Best, Joseph = = = = = = = = = =
Le 03/08/2023 à 21:45, IOhannes m zmölnig a écrit :
(resending, as I accidentally only answered to joseph)
You must build against Pd-0.54 (as there's obviously no compile time check for the actual Pd version).
/I have a tested and working Pd 0.54.0 on my RPi I have compiled few days ago from the source code (pd-0.54-0.src.tar.gz) gotten from Miller's site./
Pd-0.54 has been released after Debian/bookworm, so you cannot use the Pd bundled with your Raspbian/bookworm.
/Not really understanding 'bookworm'.// /
//Either compile Pd yourself, or use the one from Debian/backports: https://backports.debian.org
/Yes, I've done the compilation myself as written in previous emails and here above./
When compiling of yourself, you must make sure that the build system can find the headers.
/ As my compilation finished with no warning and after the binary installation Pd is working well, I think it found the headers (by the way, which ones)./
Personally I think this is a bug in ELSE, and would file a bug that it ought to be buildable against older versions of Pd (even if that means that some functionality is missing).
/Perhaps not as my compilation is working well, my issue is just with Else compilation on RPi or I've missed something./
https://github.com/porres/pd-else#building-else-for-pd-vanilla
mfg.sfg.jfd IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management ->https://lists.puredata.info/listinfo/pd-list
Am 4. August 2023 00:49:16 MESZ schrieb Linux Rouen Normandie linux.rouen@free.fr:
Pd-0.54 has been released after Debian/bookworm, so you cannot use the Pd bundled with your Raspbian/bookworm.
/Not really understanding 'bookworm'.//
It's the codename of the latest Debian release (aka "Debian 12").
Your favourite web search engine might have helped...
When compiling of yourself, you must make sure that the build system can find the headers.
/ As my compilation finished with no warning and after the binary installation Pd is working well, I think it found the headers (by the way, which ones)./
The error messages you see are about features that are *only* present in the headers of Pd-0.54 (or newer). So the compilation process of ELSE find the wrong headers. This could be because you haven't properly "install"ed Pd-0.54, or because you have both the headers for Pd-0.54 and some older (incompatible) version, and the older ones take precedence for whatever reason. It's it's the latter, you should uninstall the old headers (eg "apt remove puredata-dev", if you have also installed the puredata package from Raspbian and your Raspbian is new enough (I'm afk right now so please check yourself)). If it's the former, you should properly install Pd (using 'make install').
Personally I think this is a bug in ELSE, and would file a bug that it ought to be buildable against older versions of Pd (even if that means that some functionality is missing).
/Perhaps not as my compilation is working well, my issue is just with Else compilation on RPi or I've missed something
Your error is, that ELSE doesn't do any compile time check for the Britain of the Pd headers, and just assumes that everything is there. Which I think is a bug in ELSE in any case.
mfg.sfg.jfd IOhannes
Em qui., 3 de ago. de 2023 às 19:51, Linux Rouen Normandie < linux.rouen@free.fr>
- As my compilation finished with no warning and after the binary
installation Pd is working well, I think it found the headers (by the way, which ones).*
it did find headers, as you were able to build a couple of objects or so, right? It didnt complain it couldn't frin m_pd.h for instance.
but then, it found old headers, from versions earlier than 0.54 somehow... cause you can't build the objects with multichannel support...
I have no idea how to help you find the correct headers in a raspberry pi... you could force the pd path with something like pdincludepath=~/pd-0.54-0/src/ as described in the readme
cheers
Personally I think this is a bug in ELSE, and would file a bug that it ought to be buildable against older versions of Pd (even if that means that some functionality is missing).
*Perhaps not as my compilation is working well, my issue is just with
Else compilation on RPi or I've missed something.*
https://github.com/porres/pd-else#building-else-for-pd-vanilla
mfg.sfg.jfd IOhannes
_______________________________________________Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Em qui., 3 de ago. de 2023 às 16:46, IOhannes m zmölnig zmoelnig@iem.at escreveu:
Personally I think this is a bug in ELSE, and would file a bug that it ought to be buildable against older versions of Pd (even if that means that some functionality is missing).
I'm creating new objects for multichannel fun and adding multichannel awareness to old objects, right now there are over 50 signal objects that are multichannel aware (and counting).
Without 0.54 you'll just have many errors trying to deal with CLASSMULTICHANNEL
So yup, 0.54 is needed. Sorry I'm always on the bleeding edge
cheers
https://github.com/porres/pd-else
mfg.sfg.jfd IOhannes _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list