Forum: 

I'm trying to get gnuradio/UHD up on a CentOS 7 machine. I've made a lot
of progress, but have a problem I can't understand.  

I'll provide details below, but the error message is obtained during the
attempted installation of wxpython. It is a compiler error. The first
error that appears is: 

---------------------------------------------------------------------------


/usr/local/gnuradio/src/wxpython/bk-deps g++ -c -o coredll_imagpng.o
-I./.pch/wxprec_coredll -D__WXGTK__ -DWXBUILDING -I./src/tiff
-I./src/jpeg -DWXUSINGDLL -DWXMAKINGDLL_CORE -DwxUSE_BASE=0 -fPIC -DPIC
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-I/usr/local/gnuradio/src/wxpython/lib/wx/include/gtk2-ansi-release-2.8
-I./include -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15
-I/usr/include/libdrm -I/usr/include/harfbuzz -DWX_PRECOMP -pthread
-Wall -Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing
./src/common/imagpng.cpp
./src/common/imagpng.cpp: In member function 'virtual bool
wxPNGHandler::LoadFile(wxImage*, wxInputStream&, bool, int)':
./src/common/imagpng.cpp:532:30: error: 'voidp' was not declared in this
scope
(voidp) NULL,
^ 

-------------------------------------------------------------------------------------------


Machine: HP Z Book G3 running CentOS 7, kernel
3.10.0-327.36.1.el7.x86_64 #1 SMP. 

PyBOMBS: Version 2.2.0 

Python: Version 3.5.2 

pip: pip 8.1.2 from /usr/local/lib/python3.5/site-packages (python 3.5) 

gcc: gcc version 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC) 

Here is the command line I used to try to install gnuradio and UHD: 

pybombs prefix init /usr/local/gnuradio -a gnuradio -R gnuradio-default 

I've attached the full text log of what appeared on the screen after I
issued that command. 

(I've got UHD running under Ubuntu 16.04 and Fedora Core 24, but since
CentOS is residing on a very fast SSD and I need fast I/O, I was hoping
to get UHD (at least) going on CentOS too.) 

Thanks for any advice anybody might have. 

Chad

-- 
Chad M. Spooner, PhD
NorthWest Research Associates
301 Webster Street
Monterey, CA 93940
[email protected]
cell: (831) 521 6743
office: (831) 582 4904
[root@sphene ~]# pybombs prefix init /usr/local/gnuradio -a gnuradio -R 
gnuradio-default
PyBOMBS - INFO - PyBOMBS Version 2.2.0
PyBOMBS.prefix - INFO - Creating directory `/usr/local/gnuradio'
Alias `gnuradio' already exists, overwrite Y/[N]? Y
PyBOMBS.ConfigManager - INFO - Creating new config file 
/usr/local/gnuradio/.pybombs/config.yml
PyBOMBS.prefix - INFO - Installing default packages for prefix...
PyBOMBS.prefix - INFO - 
  - gnuradio
Install tree:
|
\- gnuradio
   |
   +- pyqwt5
   |  |
   |  +- qwt5
   |  |  |
   |  |  \- automake
   |  |
   |  \- automake
   |
   +- apache-thrift
   |  |
   |  \- automake
   |
   +- uhd
   |
   +- python-zmq
   |
   +- wxpython
   |  |
   |  \- automake
   |
   +- zeromq
   |  |
   |  \- automake
   |
   +- pygtk
   |  |
   |  +- automake
   |  |
   |  \- pygobject
   |     |
   |     \- automake
   |
   \- liblog4cpp
      |
      \- automake
PyBOMBS.install_manager - INFO - Installing package: automake
02245 kB / 02245 kB (100%)
Configuring: (100%) 
[===================================================================]
Building:    (100%) 
[===================================================================]
Installing:  (100%) 
[===================================================================]
PyBOMBS.install_manager - INFO - Installation successful.
PyBOMBS.install_manager - INFO - Installing package: liblog4cpp
00549 kB / 00549 kB (100%)
Configuring: (100%) 
[===================================================================]
Building:    (100%) 
[===================================================================]
Installing:  (100%) 
[===================================================================]
PyBOMBS.install_manager - INFO - Installation successful.
PyBOMBS.install_manager - INFO - Installing package: pygobject
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.unixheads.org
 * extras: mirrors.sonic.net
 * updates: mirrors.evowise.com
Resolving Dependencies
--> Running transaction check
---> Package pygobject2-devel.x86_64 0:2.28.6-11.el7 will be installed
--> Processing Dependency: pygobject2-doc = 2.28.6-11.el7 for package: 
pygobject2-devel-2.28.6-11.el7.x86_64
--> Processing Dependency: pygobject2-codegen = 2.28.6-11.el7 for package: 
pygobject2-devel-2.28.6-11.el7.x86_64
--> Processing Dependency: pkgconfig(libffi) for package: 
pygobject2-devel-2.28.6-11.el7.x86_64
--> Running transaction check
---> Package libffi-devel.x86_64 0:3.0.13-16.el7 will be installed
---> Package pygobject2-codegen.x86_64 0:2.28.6-11.el7 will be installed
---> Package pygobject2-doc.x86_64 0:2.28.6-11.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================
 Package                     Arch            Version                  
Repository     Size
==========================================================================================
Installing:
 pygobject2-devel            x86_64          2.28.6-11.el7            base      
     67 k
Installing for dependencies:
 libffi-devel                x86_64          3.0.13-16.el7            base      
     23 k
 pygobject2-codegen          x86_64          2.28.6-11.el7            base      
    145 k
 pygobject2-doc              x86_64          2.28.6-11.el7            base      
    129 k

Transaction Summary
==========================================================================================
Install  1 Package (+3 Dependent packages)

Total download size: 364 k
Installed size: 2.4 M
Downloading packages:
(1/4): libffi-devel-3.0.13-16.el7.x86_64.rpm                       |  23 kB  
00:00:00     
(2/4): pygobject2-codegen-2.28.6-11.el7.x86_64.rpm                 | 145 kB  
00:00:00     
(3/4): pygobject2-devel-2.28.6-11.el7.x86_64.rpm                   |  67 kB  
00:00:00     
(4/4): pygobject2-doc-2.28.6-11.el7.x86_64.rpm                     | 129 kB  
00:00:00     
------------------------------------------------------------------------------------------
Total                                                     843 kB/s | 364 kB  
00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libffi-devel-3.0.13-16.el7.x86_64                                
      1/4 
  Installing : pygobject2-doc-2.28.6-11.el7.x86_64                              
      2/4 
  Installing : pygobject2-codegen-2.28.6-11.el7.x86_64                          
      3/4 
  Installing : pygobject2-devel-2.28.6-11.el7.x86_64                            
      4/4 
  Verifying  : pygobject2-codegen-2.28.6-11.el7.x86_64                          
      1/4 
  Verifying  : pygobject2-doc-2.28.6-11.el7.x86_64                              
      2/4 
  Verifying  : libffi-devel-3.0.13-16.el7.x86_64                                
      3/4 
  Verifying  : pygobject2-devel-2.28.6-11.el7.x86_64                            
      4/4 

Installed:
  pygobject2-devel.x86_64 0:2.28.6-11.el7                                       
          

Dependency Installed:
  libffi-devel.x86_64 0:3.0.13-16.el7       pygobject2-codegen.x86_64 
0:2.28.6-11.el7    
  pygobject2-doc.x86_64 0:2.28.6-11.el7    

Complete!
PyBOMBS.install_manager - INFO - Installation successful.
PyBOMBS.install_manager - INFO - Installing package: pygtk
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.chicago.waneq.com
 * extras: mirrors.sonic.net
 * updates: mirrors.evowise.com
Resolving Dependencies
--> Running transaction check
---> Package pygtk2-devel.x86_64 0:2.24.0-9.el7 will be installed
--> Processing Dependency: pygtk2-doc = 2.24.0-9.el7 for package: 
pygtk2-devel-2.24.0-9.el7.x86_64
--> Processing Dependency: pygtk2-codegen = 2.24.0-9.el7 for package: 
pygtk2-devel-2.24.0-9.el7.x86_64
--> Running transaction check
---> Package pygtk2-codegen.x86_64 0:2.24.0-9.el7 will be installed
---> Package pygtk2-doc.noarch 0:2.24.0-9.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================
 Package                  Arch             Version                   Repository 
     Size
==========================================================================================
Installing:
 pygtk2-devel             x86_64           2.24.0-9.el7              base       
    146 k
Installing for dependencies:
 pygtk2-codegen           x86_64           2.24.0-9.el7              base       
     17 k
 pygtk2-doc               noarch           2.24.0-9.el7              base       
    1.2 M

Transaction Summary
==========================================================================================
Install  1 Package (+2 Dependent packages)

Total download size: 1.3 M
Installed size: 12 M
Downloading packages:
(1/3): pygtk2-codegen-2.24.0-9.el7.x86_64.rpm                      |  17 kB  
00:00:00     
(2/3): pygtk2-devel-2.24.0-9.el7.x86_64.rpm                        | 146 kB  
00:00:00     
(3/3): pygtk2-doc-2.24.0-9.el7.noarch.rpm                          | 1.2 MB  
00:00:00     
------------------------------------------------------------------------------------------
Total                                                     2.3 MB/s | 1.3 MB  
00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : pygtk2-codegen-2.24.0-9.el7.x86_64                               
      1/3 
  Installing : pygtk2-doc-2.24.0-9.el7.noarch                                   
      2/3 
  Installing : pygtk2-devel-2.24.0-9.el7.x86_64                                 
      3/3 
  Verifying  : pygtk2-doc-2.24.0-9.el7.noarch                                   
      1/3 
  Verifying  : pygtk2-devel-2.24.0-9.el7.x86_64                                 
      2/3 
  Verifying  : pygtk2-codegen-2.24.0-9.el7.x86_64                               
      3/3 

Installed:
  pygtk2-devel.x86_64 0:2.24.0-9.el7                                            
          

Dependency Installed:
  pygtk2-codegen.x86_64 0:2.24.0-9.el7          pygtk2-doc.noarch 
0:2.24.0-9.el7         

Complete!
PyBOMBS.install_manager - INFO - Installation successful.
PyBOMBS.install_manager - INFO - Installing package: zeromq
02084 kB / 02084 kB (100%)
Configuring: (100%) 
[===================================================================]
Building:    (100%) 
[===================================================================]
Installing:  (100%) 
[===================================================================]
PyBOMBS.install_manager - INFO - Installation successful.
PyBOMBS.install_manager - INFO - Installing package: wxpython
30605 kB / 30605 kB (100%)
Configuring: (100%) 
[===================================================================]
Building:    (100%) 
[===================================================================]
/usr/local/gnuradio/src/wxpython/bk-deps g++ -c -o coredll_imagpng.o 
-I./.pch/wxprec_coredll -D__WXGTK__     -DWXBUILDING -I./src/tiff -I./src/jpeg  
    -DWXUSINGDLL -DWXMAKINGDLL_CORE -DwxUSE_BASE=0 -fPIC -DPIC 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES 
-I/usr/local/gnuradio/src/wxpython/lib/wx/include/gtk2-ansi-release-2.8 
-I./include -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include 
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include 
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 
-I/usr/include/libdrm -I/usr/include/harfbuzz -DWX_PRECOMP -pthread -Wall 
-Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing ./src/common/imagpng.cpp
./src/common/imagpng.cpp: In member function ‘virtual bool 
wxPNGHandler::LoadFile(wxImage*, wxInputStream&, bool, int)’:
./src/common/imagpng.cpp:532:30: error: ‘voidp’ was not declared in this 
scope
                             (voidp) NULL,
                              ^
./src/common/imagpng.cpp:589:40: error: invalid use of incomplete type 
‘png_info {aka struct png_info_def}’
         const size_t ncolors = info_ptr->num_palette;
                                        ^
In file included from ./src/common/imagpng.cpp:36:0:
/usr/include/libpng15/png.h:730:16: error: forward declaration of ‘png_info 
{aka struct png_info_def}’
 typedef struct png_info_def png_info;
                ^
./src/common/imagpng.cpp:596:28: error: invalid use of incomplete type 
‘png_info {aka struct png_info_def}’
             r[j] = info_ptr->palette[j].red;
                            ^
In file included from ./src/common/imagpng.cpp:36:0:
/usr/include/libpng15/png.h:730:16: error: forward declaration of ‘png_info 
{aka struct png_info_def}’
 typedef struct png_info_def png_info;
                ^
./src/common/imagpng.cpp:597:28: error: invalid use of incomplete type 
‘png_info {aka struct png_info_def}’
             g[j] = info_ptr->palette[j].green;
                            ^
In file included from ./src/common/imagpng.cpp:36:0:
/usr/include/libpng15/png.h:730:16: error: forward declaration of ‘png_info 
{aka struct png_info_def}’
 typedef struct png_info_def png_info;
                ^
./src/common/imagpng.cpp:598:28: error: invalid use of incomplete type 
‘png_info {aka struct png_info_def}’
             b[j] = info_ptr->palette[j].blue;
                            ^
In file included from ./src/common/imagpng.cpp:36:0:
/usr/include/libpng15/png.h:730:16: error: forward declaration of ‘png_info 
{aka struct png_info_def}’
 typedef struct png_info_def png_info;
                ^
make: *** [coredll_imagpng.o] Error 1
PyBOMBS.Packager.source - ERROR - Build failed. See output above for error 
messages.
PyBOMBS.Packager.source - ERROR - Problem occurred while building package 
wxpython:
Build failed.
PyBOMBS.install_manager - ERROR - Error installing package wxpython. Aborting.

_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to