pvbrowser / pvb

HMI and SCADA
http://pvbrowser.org
Other
268 stars 152 forks source link

problem compiling pvbrowser with the python binding #4

Open gentooza opened 9 years ago

gentooza commented 9 years ago

Hello pvbrowser community

Pvbrowser compile and works perfectly under my system, but I have not succes making rllib standalone working with python.

I've tried the build_python_interface script with this errors:

g++ -c -m64 -pipe -O2 -D_REENTRANT -Wall -W -fPIC -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtSql -I/usr/include/qt4 -I/usr/include/python2.7 g++: fatal error: no input files compilation terminated. make: * [qtdatabase.o] Error 4 g++ -c -m64 -pipe -O2 -D_REENTRANT -Wall -W -fPIC -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtSql -I/usr/include/qt4 -I/usr/include/python2.7 g++: fatal error: no input files compilation terminated. make: * [language_binding_rllib_wrap_python.o] Error 4 cp: no se puede efectuar stat' sobre «lib_pv.so»: No existe el archivo o el directorio cp: no se puede efectuarstat' sobre «lib_rllib.so»: No existe el archivo o el directorio g++ -c -m64 -pipe -O2 -D_REENTRANT -Wall -W -fPIC -DUSE_INETD -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtSql -I/usr/include/qt4 -I/usr/include/python2.7 g++: fatal error: no input files compilation terminated. make: * [qtdatabase.o] Error 4 g++ -c -m64 -pipe -O2 -D_REENTRANT -Wall -W -fPIC -DUSE_INETD -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtSql -I/usr/include/qt4 -I/usr/include/python2.7 g++: fatal error: no input files compilation terminated. make: * [language_binding_rllib_wrap_python.o] Error 4 cp: no se puede efectuar stat' sobre «lib_pv.so»: No existe el archivo o el directorio cp: no se puede efectuarstat' sobre «lib_rllib.so»: No existe el archivo o el directorio

compiling pvbrowser gives me the same errors. my system specifications are a bare Ubuntu 14.04 64 bits

If I try this piece of code:

import sys, os pvslib_path = '/opt/pvb/language_bindings/python/mt' sys.path.insert(0, pvslib_path) import rllib

I get this error:

File "./main.py", line 48, in import MtoDBc_data File "/home/prointegra/Documentos/desarrollo/respositorios_gitdev/MtoDB/MtoDBc_data.py", line 11, in import rllib File "/opt/pvb/language_bindings/python/mt/rllib.py", line 26, in _rllib = swig_import_helper() File "/opt/pvb/language_bindings/python/mt/rllib.py", line 22, in swig_import_helper _mod = imp.load_module('_rllib', fp, pathname, description) ImportError: dynamic module does not define init function (init_rllib)

thanks!

gentooza commented 9 years ago

"No existe el archivo o el directorio" means "the file or folder doesn't exist"

pvbrowser commented 9 years ago

Hello http://swig.org is used for building the language binding from rlllib to python. Please install swig and run build_python_interface.sh with the "swig" commandline parameter.

./build_python_interface.sh swig

(review build.sh and build_python_interface.sh)

PS: We are not very happy with Python a programming language for a pvserver because Python has a global thread lock. https://wiki.python.org/moin/GlobalInterpreterLock

Am 10.02.2015 um 09:34 schrieb gentooza:

Hello pvbrowser community

Pvbrowser compile and works perfectly under my system, but I have not succes making rllib standalone working with python.

I've tried the build_python_interface script with this errors:

-DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtSql -I/usr/include/qt4 -I/usr/include/python2.7 g++: fatal error: no input files compilation terminated. make: * [qtdatabase.o] Error 4 g++ -c -m64 -pipe -O2 -D_REENTRANT -Wall -W -fPIC -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtSql -I/usr/include/qt4 -I/usr/include/python2.7 g++: fatal error: no input files compilation terminated. make: * [language_binding_rllib_wrap_python.o] Error 4 cp: no se puede efectuar stat' sobre «lib_pv.so»: No existe el archivo o el directorio cp: no se puede efectuar stat' sobre «lib_rllib.so»: No existe el archivo o el directorio g++ -c -m64 -pipe -O2 -D_REENTRANT -Wall -W -fPIC -DUSE_INETD -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtSql -I/usr/include/qt4 -I/usr/include/python2.7 g++: fatal error: no input files compilation terminated. make: * [qtdatabase.o] Error 4 g++ -c -m64 -pipe -O2 -D_REENTRANT -Wall -W -fPIC -DUSE_INETD -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtSql -I/usr/include/qt4 -I/usr/include/python2.7 g++: fatal error: no input files compilation terminated. make: * [language_binding_rllib_wrap_python.o] Error 4 cp: no se puede efectuar stat' sobre «lib_pv.so»: No existe el archivo o el directorio cp: no se puede efectuar stat' sobre «lib_rllib.so»: No existe el archivo o el directorio

compiling pvbrowser gives me the same errors. my system specifications are a bare Ubuntu 14.04 64 bits

If I try this piece of code:

import sys, os pvslib_path = '/opt/pvb/language_bindings/python/mt' sys.path.insert(0, pvslib_path) import rllib

thanks!

— Reply to this email directly or view it on GitHub https://github.com/pvbrowser/pvb/issues/4.

gentooza commented 9 years ago

Hello

I forgot to mention I had already installed swig Ok, is insteresting to know this about the pvserver. But I would be ienterested simply to read data from a daemon. (i don't know if the GIL will be a problem in this case) :-/

IN theory I follow the isntructions from the readme file. I don't know what could be wrong

pvbrowser commented 9 years ago

As far as i have seen you did NOT run swig. For this you will need the following commandline:

cd pvb/language_bindings ./build_python_interface.sh swig

Alternatively you could run build.sh which builds the Lua binding also: pvb/language_bindings> cat build.sh

!/bin/bash

./build_python_interface.sh swig ./build_lua_interface.sh swig

Please send the output when you have still problems.

Am 10.02.2015 um 10:24 schrieb gentooza:

Hello

I forgot to mention I had already installed swig Ok, is insteresting to know this about the pvserver. But I would be ienterested simply to read data from a daemon. (i don't know if the GIL will be a problem in this case) :-/

IN theory I follow the isntructions from the readme file. I don't know what could be wrong

— Reply to this email directly or view it on GitHub https://github.com/pvbrowser/pvb/issues/4#issuecomment-73668369.

gentooza commented 9 years ago

I had executed ./build_python_interface.sh swig

If I have installed wrong swig, or is unconfigured I don't know. All these is new for me the comple snippet is: (pd: how can I make a code snippet in markdown?? I've tried several methods with no succes :-S)

prointegra@prointegra-System-Product-Name:~/pvbrowser/pvb/language_bindings$ ./build_python_interface.sh swig ### Probe necessary components for python language binding ### find: «/usr/lib64»: No existe el archivo o el directorio python_include=/usr/include/python2.7 /usr/include/x86_64-linux-gnu/python2.7 python_lib=/usr/lib/python2.7/config-x86_64-linux-gnu/libpython2.7.so /usr/lib/x86_64-linux-gnu/libpython2.7.so running swig for pv id ... ../pvserver/processviewserver.h:269: Warning 305: Bad constant value (ignored). ../pvserver/processviewserver.h:270: Warning 305: Bad constant value (ignored). ../pvserver/processviewserver.h:271: Warning 305: Bad constant value (ignored). ../pvserver/processviewserver.h:272: Warning 305: Bad constant value (ignored). ../pvserver/processviewserver.h:273: Warning 305: Bad constant value (ignored). ../pvserver/processviewserver.h:274: Warning 305: Bad constant value (ignored). ../pvserver/processviewserver.h:275: Warning 305: Bad constant value (ignored). ../pvserver/processviewserver.h:276: Warning 305: Bad constant value (ignored). ../pvserver/processviewserver.h:277: Warning 305: Bad constant value (ignored). ../pvserver/processviewserver.h:278: Warning 305: Bad constant value (ignored). ../pvserver/processviewserver.h:279: Warning 305: Bad constant value (ignored). ../pvserver/processviewserver.h:280: Warning 305: Bad constant value (ignored). ../pvserver/processviewserver.h:281: Warning 305: Bad constant value (ignored). ../pvserver/processviewserver.h:282: Warning 305: Bad constant value (ignored). ../pvserver/processviewserver.h:283: Warning 305: Bad constant value (ignored). ../pvserver/processviewserver.h:284: Warning 305: Bad constant value (ignored). ../pvserver/processviewserver.h:285: Warning 305: Bad constant value (ignored). ../pvserver/processviewserver.h:513: Warning 451: Setting a const char * variable may leak memory. running swig for pv mt ... ../pvserver/processviewserver.h:269: Warning 305: Bad constant value (ignored). ../pvserver/processviewserver.h:270: Warning 305: Bad constant value (ignored). ../pvserver/processviewserver.h:271: Warning 305: Bad constant value (ignored). ../pvserver/processviewserver.h:272: Warning 305: Bad constant value (ignored). ../pvserver/processviewserver.h:273: Warning 305: Bad constant value (ignored). ../pvserver/processviewserver.h:274: Warning 305: Bad constant value (ignored). ../pvserver/processviewserver.h:275: Warning 305: Bad constant value (ignored). ../pvserver/processviewserver.h:276: Warning 305: Bad constant value (ignored). ../pvserver/processviewserver.h:277: Warning 305: Bad constant value (ignored). ../pvserver/processviewserver.h:278: Warning 305: Bad constant value (ignored). ../pvserver/processviewserver.h:279: Warning 305: Bad constant value (ignored). ../pvserver/processviewserver.h:280: Warning 305: Bad constant value (ignored). ../pvserver/processviewserver.h:281: Warning 305: Bad constant value (ignored). ../pvserver/processviewserver.h:282: Warning 305: Bad constant value (ignored). ../pvserver/processviewserver.h:283: Warning 305: Bad constant value (ignored). ../pvserver/processviewserver.h:284: Warning 305: Bad constant value (ignored). ../pvserver/processviewserver.h:285: Warning 305: Bad constant value (ignored). ../pvserver/processviewserver.h:513: Warning 451: Setting a const char * variable may leak memory. running swig for rllib ... ../rllib/lib/rldataacquisition.h:43: Warning 325: Nested struct not currently supported (SHM_HEADER ignored) ../rllib/lib/rldataacquisitionprovider.h:42: Warning 325: Nested struct not currently supported (SHM_HEADER ignored) ../rllib/lib/rlopcxmlda.h:47: Warning 325: Nested struct not currently supported (SHM_HEADER ignored) ../rllib/lib/rlppiclient.h:28: Warning 319: No access specifier given for base class 'rlSharedMemory' (ignored). ../rllib/lib/rlsiemenstcpclient.h:33: Warning 319: No access specifier given for base class 'rlSharedMemory' (ignored). ../rllib/lib/rlstring.h:42: Warning 362: operator= ignored ../rllib/lib/rlstring.h:43: Warning 362: operator= ignored ../rllib/lib/rlsvganimator.h:34: Warning 325: Nested struct not currently supported (rlPositionInit ignored) ../rllib/lib/rlstring.h:35: Warning 509: Overloaded method rlString::rlString(rlString *) effectively ignored, ../rllib/lib/rlstring.h:34: Warning 509: as it is shadowed by rlString::rlString(rlString &). g++ -c -m64 -pipe -O2 -D_REENTRANT -Wall -W -fPIC -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtSql -I/usr/include/qt4 -I/usr/include/python2.7 g++: fatal error: no input files compilation terminated. make: *** [qtdatabase.o] Error 4 g++ -c -m64 -pipe -O2 -D_REENTRANT -Wall -W -fPIC -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtSql -I/usr/include/qt4 -I/usr/include/python2.7 g++: fatal error: no input files compilation terminated. make: *** [language_binding_rllib_wrap_python.o] Error 4 cp: no se puede efectuar `stat' sobre «lib_pv.so»: No existe el archivo o el directorio cp: no se puede efectuar `stat' sobre «lib_rllib.so»: No existe el archivo o el directorio g++ -c -m64 -pipe -O2 -D_REENTRANT -Wall -W -fPIC -DUSE_INETD -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtSql -I/usr/include/qt4 -I/usr/include/python2.7 g++: fatal error: no input files compilation terminated. make: *** [qtdatabase.o] Error 4 g++ -c -m64 -pipe -O2 -D_REENTRANT -Wall -W -fPIC -DUSE_INETD -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtSql -I/usr/include/qt4 -I/usr/include/python2.7 g++: fatal error: no input files compilation terminated. make: *** [language_binding_rllib_wrap_python.o] Error 4 cp: no se puede efectuar `stat' sobre «lib_pv.so»: No existe el archivo o el directorio cp: no se puede efectuar `stat' sobre «lib_rllib.so»: No existe el archivo o el directorio
pvbrowser commented 9 years ago

You got the following message:

g++: fatal error: no input files compilation terminated. make: *\ [qtdatabase.o] Error 4 g++ -c -m64 -pipe -O2 -D_REENTRANT -Wall -W -fPIC -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtSql -I/usr/include/qt4 -I/usr/include/python2.7 g++:

That is qtdatabase.o is not found. This code is for binding the qt database library to python. I suppose you will not need this.

Thus you should comment out qtdatabase from the build process.

Search for qtdatabase: grep -R qtdatabase python/ python/id/id.pro:HEADERS += ../../sql/qtdatabase.h python/id/id.pro:SOURCES += ../../sql/qtdatabase.cpp \ Übereinstimmungen in Binärdatei python/id/_pv.so. Übereinstimmungen in Binärdatei python/id/qtdatabase.o. Übereinstimmungen in Binärdatei python/id/lib_pv.so.1.0.0. Übereinstimmungen in Binärdatei python/id/lib_pv.so. Übereinstimmungen in Binärdatei python/id/lib_pv.so.1. Übereinstimmungen in Binärdatei python/id/lib_pv.so.1.0. Übereinstimmungen in Binärdatei python/mt/_pv.so. python/mt/mt.pro:HEADERS += ../../sql/qtdatabase.h python/mt/mt.pro:SOURCES += ../../sql/qtdatabase.cpp \ Übereinstimmungen in Binärdatei python/mt/qtdatabase.o. Übereinstimmungen in Binärdatei python/mt/lib_pv.so.1.0.0. Übereinstimmungen in Binärdatei python/mt/lib_pv.so. Übereinstimmungen in Binärdatei python/mt/lib_pv.so.1. Übereinstimmungen in Binärdatei python/mt/lib_pv.so.1.0.

and remove qtdatabase from the project files python/id/id.pro python/mt/mt.pro

Am 10.02.2015 um 10:52 schrieb gentooza:

I had executed ./build_python_interface.sh swig

If I have installed wrong swig, or is unconfigured I don't know. All these is new for me the comple snippet is: (pd: how can I make a code snippet in markdown?? I've tried several methods with no succes :-S)

prointegra@prointegra-System-Product-Name:~/pvbrowser/pvb/language_bindings$
./build_python_interface.sh swig ### Probe necessary components
for python language binding ### find: «/usr/lib64»: No existe el
archivo o el directorio python_include=/usr/include/python2.7
/usr/include/x86_64-linux-gnu/python2.7
python_lib=/usr/lib/python2.7/config-x86_64-linux-gnu/libpython2.7.so
/usr/lib/x86_64-linux-gnu/libpython2.7.so running swig for pv id
... ../pvserver/processviewserver.h:269: Warning 305: Bad constant
value (ignored). ../pvserver/processviewserver.h:270: Warning 305:
Bad constant value (ignored). ../pvserver/processviewserver.h:271:
Warning 305: Bad constant value (ignored).
../pvserver/processviewserver.h:272: Warning 305: Bad constant
value (ignored). ../pvserver/processviewserver.h:273: Warning 305:
Bad constant value (ignored). ../pvserver/processviewserver.h:274:
Warning 305: Bad constant value (ignored).
../pvserver/processviewserver.h:275: Warning 305: Bad constant
value (ignored). ../pvserver/processviewserver.h:276: Warning 305:
Bad constant value (ignored). ../pvserver/processviewserver.h:277:
Warning 305: Bad constant value (ignored).
../pvserver/processviewserver.h:278: Warning 305: Bad constant
value (ignored). ../pvserver/processviewserver.h:279: Warning 305:
Bad constant value (ignored). ../pvserver/processviewserver.h:280:
Warning 305: Bad constant value (ignored).
../pvserver/processviewserver.h:281: Warning 305: Bad constant
value (ignored). ../pvserver/processviewserver.h:282: Warning 305:
Bad constant value (ignored). ../pvserver/processviewserver.h:283:
Warning 305: Bad constant value (ignored).
../pvserver/processviewserver.h:284: Warning 305: Bad constant
value (ignored). ../pvserver/processviewserver.h:285: Warning 305:
Bad constant value (ignored). ../pvserver/processviewserver.h:513:
Warning 451: Setting a const char * variable may leak memory.
running swig for pv mt ... ../pvserver/processviewserver.h:269:
Warning 305: Bad constant value (ignored).
../pvserver/processviewserver.h:270: Warning 305: Bad constant
value (ignored). ../pvserver/processviewserver.h:271: Warning 305:
Bad constant value (ignored). ../pvserver/processviewserver.h:272:
Warning 305: Bad constant value (ignored).
../pvserver/processviewserver.h:273: Warning 305: Bad constant
value (ignored). ../pvserver/processviewserver.h:274: Warning 305:
Bad constant value (ignored). ../pvserver/processviewserver.h:275:
Warning 305: Bad constant value (ignored).
../pvserver/processviewserver.h:276: Warning 305: Bad constant
value (ignored). ../pvserver/processviewserver.h:277: Warning 305:
Bad constant value (ignored). ../pvserver/processviewserver.h:278:
Warning 305: Bad constant value (ignored).
../pvserver/processviewserver.h:279: Warning 305: Bad constant
value (ignored). ../pvserver/processviewserver.h:280: Warning 305:
Bad constant value (ignored). ../pvserver/processviewserver.h:281:
Warning 305: Bad constant value (ignored).
../pvserver/processviewserver.h:282: Warning 305: Bad constant
value (ignored). ../pvserver/processviewserver.h:283: Warning 305:
Bad constant value (ignored). ../pvserver/processviewserver.h:284:
Warning 305: Bad constant value (ignored).
../pvserver/processviewserver.h:285: Warning 305: Bad constant
value (ignored). ../pvserver/processviewserver.h:513: Warning 451:
Setting a const char * variable may leak memory. running swig for
rllib ... ../rllib/lib/rldataacquisition.h:43: Warning 325: Nested
struct not currently supported (SHM_HEADER ignored)
../rllib/lib/rldataacquisitionprovider.h:42: Warning 325: Nested
struct not currently supported (SHM_HEADER ignored)
../rllib/lib/rlopcxmlda.h:47: Warning 325: Nested struct not
currently supported (SHM_HEADER ignored)
../rllib/lib/rlppiclient.h:28: Warning 319: No access specifier
given for base class 'rlSharedMemory' (ignored).
../rllib/lib/rlsiemenstcpclient.h:33: Warning 319: No access
specifier given for base class 'rlSharedMemory' (ignored).
../rllib/lib/rlstring.h:42: Warning 362: operator= ignored
../rllib/lib/rlstring.h:43: Warning 362: operator= ignored
../rllib/lib/rlsvganimator.h:34: Warning 325: Nested struct not
currently supported (rlPositionInit ignored)
../rllib/lib/rlstring.h:35: Warning 509: Overloaded method
rlString::rlString(rlString *) effectively ignored,
../rllib/lib/rlstring.h:34: Warning 509: as it is shadowed by
rlString::rlString(rlString &). g++ -c -m64 -pipe -O2 -D_REENTRANT
-Wall -W -fPIC -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB
-DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64
-I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui
-I/usr/include/qt4/QtSql -I/usr/include/qt4
-I/usr/include/python2.7 g++: fatal error: no input files
compilation terminated. make: *** [qtdatabase.o] Error 4 g++ -c
-m64 -pipe -O2 -D_REENTRANT -Wall -W -fPIC -DQT_NO_DEBUG
-DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++-64 -I.
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui
-I/usr/include/qt4/QtSql -I/usr/include/qt4
-I/usr/include/python2.7 g++: fatal error: no input files
compilation terminated. make: ***
[language_binding_rllib_wrap_python.o] Error 4 cp: no se puede
efectuar `stat' sobre «lib_pv.so»: No existe el archivo o el
directorio cp: no se puede efectuar `stat' sobre «lib_rllib.so»:
No existe el archivo o el directorio g++ -c -m64 -pipe -O2
-D_REENTRANT -Wall -W -fPIC -DUSE_INETD -DQT_NO_DEBUG -DQT_SQL_LIB
-DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++-64 -I.
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui
-I/usr/include/qt4/QtSql -I/usr/include/qt4
-I/usr/include/python2.7 g++: fatal error: no input files
compilation terminated. make: *** [qtdatabase.o] Error 4 g++ -c
-m64 -pipe -O2 -D_REENTRANT -Wall -W -fPIC -DUSE_INETD
-DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++-64 -I.
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui
-I/usr/include/qt4/QtSql -I/usr/include/qt4
-I/usr/include/python2.7 g++: fatal error: no input files
compilation terminated. make: ***
[language_binding_rllib_wrap_python.o] Error 4 cp: no se puede
efectuar `stat' sobre «lib_pv.so»: No existe el archivo o el
directorio cp: no se puede efectuar `stat' sobre «lib_rllib.so»:
No existe el archivo o el directorio 

— Reply to this email directly or view it on GitHub https://github.com/pvbrowser/pvb/issues/4#issuecomment-73672154.

gentooza commented 9 years ago

Hi again.

I removed, as you said, qtdatabase.h and qtdatabase.cpp and the problem with qtdatabase.o compiling is gone. But I already have the same problem with: language_binding_rllib_wrap_python.o

I think i'm gonna stick using C or C++ for now, as I see also , as you have commented, some problems within python implementation. Although if you already want to debug it I can make further changes.

Thanks a lot!

daveti commented 9 years ago

Hi,

I have got a similar case here. My question is how I could actually build this qtdatabase.cpp for the python binding. I executed build.sh on my Ubuntu 14.04 and ran into this issue. Is that normal to have a broken build by default?

Thanks, Dave

gentooza commented 9 years ago

Hello!

Me finally , developed my app using old C++ and not the shiny,quick,marvelous... python :-) what pvbrowser said about python and gil is true and interesting to read, python works different with threads when take them from C (cpython), etc.

https://wiki.python.org/moin/GlobalInterpreterLock

but if you have success I'll try again, and help, of course.

Good luck