Another question about making a signal processing block

Hi,

I was trying to make a signal processing block. I basically did
nothing but copied the ``how-to-write-a-block’’ package and modified
the name of the block in files according to the Shen tutorial.With the
help from Philip, I got around several make problems I asked earlier.
The automake passes with two messages that do not seem to be bad:

[[email protected] trytry]# automake
doc/Makefile.am:77: %'-style pattern rules are a GNU make extension doc/Makefile.am:80:%’-style pattern rules are a GNU make extension

But make is giving me problems. It seemed to be complaining about not
being able to find “fvirtual”, therefore the no zzblk.cc is produced
and g++ cannot find the source file to compile. The detailed messages
are the follows. Any hint is greatly appreciated. Thanks!

Zhenghao

[[email protected] trytry]# make
make all-recursive
make[1]: Entering directory /root/USRP/USRP_try/zztryblock/trytry' Making all in config make[2]: Entering directory/root/USRP/USRP_try/zztryblock/trytry/config’
make[2]: Nothing to be done for all'. make[2]: Leaving directory/root/USRP/USRP_try/zztryblock/trytry/config’
Making all in src
make[2]: Entering directory /root/USRP/USRP_try/zztryblock/trytry/src' Making all in lib make[3]: Entering directory/root/USRP/USRP_try/zztryblock/trytry/src/lib’
fvirtual -python -modern
-I/root/gnuradio-3.1.2/gnuradio-core/src/lib/swig
-I/root/gnuradio-3.1.2/gnuradio-core/src/lib -module zzblk -o
zzblk.cc …/…/src/lib/zzblk.i
make[3]: fvirtual: Command not found
make[3]: [zzblk.cc] Error 127 (ignored)
fvirtual -python -modern
-I/root/gnuradio-3.1.2/gnuradio-core/src/lib/swig
-I/root/gnuradio-3.1.2/gnuradio-core/src/lib -module zzblk -o
zzblk.cc …/…/src/lib/zzblk.i
make[3]: fvirtual: Command not found
make[3]: [zzblk.py] Error 127 (ignored)
make all-am
make[4]: Entering directory
/root/USRP/USRP_try/zztryblock/trytry/src/lib' fvirtual -python -modern -I/root/gnuradio-3.1.2/gnuradio-core/src/lib/swig -I/root/gnuradio-3.1.2/gnuradio-core/src/lib -module zzblk -o zzblk.cc ../../src/lib/zzblk.i make[4]: fvirtual: Command not found make[4]: [zzblk.cc] Error 127 (ignored) /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -DOMNITHREAD_POSIX=1 -pthread -I/usr/local/include/gnuradio -g -O2 -MT zzblk.lo -MD -MP -MF .deps/zzblk.Tpo -c -o zzblk.lo zzblk.cc g++ -DHAVE_CONFIG_H -I. -I../.. -DOMNITHREAD_POSIX=1 -pthread -I/usr/local/include/gnuradio -g -O2 -MT zzblk.lo -MD -MP -MF .deps/zzblk.Tpo -c zzblk.cc -fPIC -DPIC -o .libs/zzblk.o g++: zzblk.cc: No such file or directory g++: no input files make[4]: *** [zzblk.lo] Error 1 make[4]: Leaving directory/root/USRP/USRP_try/zztryblock/trytry/src/lib’
make[3]: *** [all] Error 2
make[3]: Leaving directory
/root/USRP/USRP_try/zztryblock/trytry/src/lib' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory/root/USRP/USRP_try/zztryblock/trytry/src’
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/USRP/USRP_try/zztryblock/trytry’
make: *** [all] Error 2

On May 19, 2008, at 9:08 PM, Zhenghao Zhang wrote:

But make is giving me problems. It seemed to be complaining about not
being able to find “fvirtual”, therefore the no zzblk.cc is produced
and g++ cannot find the source file to compile. The detailed messages
are the follows. Any hint is greatly appreciated. Thanks!

The shell environment variable CC isn’t getting picked up properly by
configure, or it is not correctly defined in your shell environment.

Thanks for the help! I will check it.

automake has been complaining about not being able tofind PYTHON
variable:

src/lib/Makefile.am:55: Python sources seen but `PYTHON' is 

undefined

After adding `AM_PATH_PYTHON’ micro to Makefile.am, automake does not
complain any more. I actually don’t think I should be doing this
because it should be automatically done, I guess. The missing of the
CC variable may due to the same problem.

Thanks again for the help!

Zhenghao

On Mon, May 19, 2008 at 09:46:03PM -0400, Zhenghao Zhang wrote:

Thanks again for the help!

Zhenghao

What versions of automake and autoconf do you have?

$ autoconf --version
$ automake --version

Eric

On Mon, May 19, 2008 at 10:45:41PM -0400, Zhenghao Zhang wrote:

Thanks for helping me on this!

autoconf (GNU Autoconf) 2.61
automake (GNU automake) 1.10

OK, those look fine.

Try this:

rm -fr config.cache autom4te*.cache

aclocal -I config
autoconf
autoheader
libtoolize --automake
automake --add-missing -c -f -Wno-portability

./configure
make && make check

[I realized that we’re not distributing the “bootstrap” script with the tarballs. I’ll fix that in a minute.]

Eric

Eric,

Thanks so much! I will try them first time tomorrow morning.

Zhenghao

Thanks for helping me on this!

autoconf (GNU Autoconf) 2.61
automake (GNU automake) 1.10

Eric,

Thanks a lot for the help. I tried your commands and it is working
now. I can build a signal processing block and run qa tests. Thanks so
much.

It took me a while to because there were some bugs in my files.

Zhenghao

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs