c++ - Eclipse CDT Post-Build commands error -


i have c++ project , i´m using eclipse cdt 3.8.1 ide tool, workspace of 5 different projects...

one of projects shared library, , @ end of compilation want copy code test/bin directory testing.

i´ve gone project properties -> c/c++ build -> settings -> build steps , @ "post-build steps", "command", i´ve added:

cp *.so ../../../bin 

(obs: ../../../bin correct path debug folder - i´ve checked already).

what happens following error on post build:

cp *.so ../../../bin  cp: cannot stat ‘*.so’: no such file or directory 

i said: ok, may permission problem, changed post commands to:

whoami;ls -al; ls *.so; 

and got on eclipse console:

    whoami      aeidev     ls -al      total 264     drwxrwxr-x 3 aeidev aeidev   4096 apr 25 15:55 .     drwxrwxr-x 5 aeidev aeidev   4096 apr 22 16:27 ..     -rwxrwxr-x 1 aeidev aeidev 242556 apr 25 15:55 libaeirtuaccess.so     -rw-rw-r-- 1 aeidev aeidev   1763 apr 23 20:47 makefile     -rw-rw-r-- 1 aeidev aeidev    245 apr 23 20:46 objects.mk     -rw-rw-r-- 1 aeidev aeidev    526 apr 23 20:47 sources.mk     drwxrwxr-x 2 aeidev aeidev   4096 apr 25 15:41 src      ls *.so   15:55:11 build finished (took 1s.80ms) 

and them changed again ls *.so , got:

ls -al *.so  ls: cannot access *.so: no such file or directory  15:57:50 build finished (took 715ms) 

it´s strange behaviour. in same workspace have different shared library , original cp *.so works fine...

any ideas of what´s going on here ? known eclipse bug ?

thanks helping...

i believe commands not executed in shell default, wildcards not evaluated. try executing /bin/sh -c 'cp *.so ../../../bin/'. should use eclipse's built-in variables copy desired path.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -