[Users] How to compile a plugin with these details?

Dedeco Balaco dedeco.balaco at yahoo.com
Thu Sep 23 20:14:42 CEST 2021



Em 23/09/2021 13:39, Paul escreveu:
> On Thu, 23 Sep 2021 13:32:07 -0300
> Dedeco Balaco via Users <users at lists.claws-mail.org> wrote: 
> 
>> How do i compile just the one plugin i want, and install it in the
>> correct relative folder where claws has been installed? All the rest is
>> not necessary to me. Can you give me some help with what i should change
>> or do, compared to the instructions given in the README file? (why these
>> are different from the instructions in the INSTALL file, which says to
>> run configure script?)
> 
> run configure with the correct prefix, e.g.:
> 
> ./configure --prefix=/usr
> 
> cd to the plugin source directory that you want, e.g.:
> 
> cd src/plugins/fancy
> 
> and run make and sudo make install there.
> 
> with regards
> 

Really easy! I did not imagine it could be that simple. But there is a
problem: other plugins (I installed one from the Debian repository) use
the folder, and the one i just compiled, with your steps, want to copy
it to a different folder.

>From repository:

/usr/lib/x86_64-linux-gnu/claws-mail/plugins/

Installing from downloaded source, steps above:

/usr/lib/x86_64-linux-gnu/lib/claws-mail/plugins

See the difference?

/usr/lib/x86_64-linux-gnu/claws-mail/plugins/
/usr/lib/x86_64-linux-gnu/lib/claws-mail/plugins

There is an extra "lib" folder in the second path. I used

$ ./configure --prefix=/usr

to obtain that result.

In another try, I did:

$ ./configure --prefix=/usr/lib/x86_64-linux-gnu/

$  cd src/plugins/fancy

$  make

$  LANG=C; make install
make[1]: Entering directory '/dev/shm/claws-mail-3.17.8/src/plugins/test'
make[1]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/usr/lib/x86_64-linux-gnu/lib/claws-mail/plugins'
/bin/mkdir: cannot create directory '/usr/lib/x86_64-linux-gnu/lib':
Permission denied
make[1]: *** [Makefile:528: install-pluginLTLIBRARIES] Error 1
make[1]: Leaving directory '/dev/shm/claws-mail-3.17.8/src/plugins/test'
make: *** [Makefile:710: install-am] Error 2
2021.09.23 15:09:54 [  2] user at debian:
/dev/shm/claws-mail-3.17.8/src/plugins/test

$

I do not understand why the result for plugins is the same, if i used to
different prefixes.



More information about the Users mailing list