You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Tuesday, November 29th 2011, 2:53pm

error on connecting to python library

i have a project that has code which will communicate with a python script and call python functions. In the proj file, i've added the includePath for the python header files, and added external python library to the project (python27.a). However the qt compiler gave me an error:

No rule to make target ' /home/pgeng/work/OpenModelica-rev.9876.CSA/OMEdit/OMEditGUI/../../../../../../usr/lib/python2.7/libpython2.a', needed by '../bin/OMEdit'. Stop

What does this mean? How can i fix it??

Junior

Professional

  • "Junior" is male

Posts: 1,622

Location: San Antonio, TX USA

Occupation: Senior Secure Systems Engineer

  • Send private message

2

Tuesday, November 29th 2011, 3:47pm

Do you have the archive in your SRC files within your .pro file? You might want to remove it as a source file if that is the case.

3

Tuesday, November 29th 2011, 3:57pm

whats the archive?... i have all the needed .cpp and .h files included in the pro file...if thats what you mean....

Junior

Professional

  • "Junior" is male

Posts: 1,622

Location: San Antonio, TX USA

Occupation: Senior Secure Systems Engineer

  • Send private message

4

Tuesday, November 29th 2011, 4:10pm

libpython2.a is a lib archive. Are you trying to create this or include it?

Junior

Professional

  • "Junior" is male

Posts: 1,622

Location: San Antonio, TX USA

Occupation: Senior Secure Systems Engineer

  • Send private message

5

Tuesday, November 29th 2011, 4:28pm

Never mind my previous post - it's not relevant based on your initial post. My oversight.

Do you have in your project file:
LIBS += -L/home/pgeng/work/OpenModelica-rev.9876.CSA/OMEdit/OMEditGUI/../../../../../../usr/lib -lpython2.a

6

Tuesday, November 29th 2011, 7:06pm

yup fixed it thanks

Used tags

embedded, library, python