Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python not loading in Windows QGIS (build from source) #11274

Closed
qgib opened this issue Aug 7, 2008 · 5 comments
Closed

Python not loading in Windows QGIS (build from source) #11274

qgib opened this issue Aug 7, 2008 · 5 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Build/Install Related to compiling or installing QGIS

Comments

@qgib
Copy link
Contributor

qgib commented Aug 7, 2008

Author Name: Steven Mizuno (Steven Mizuno)
Original Redmine Issue: 1214

Redmine category:build/install
Assignee: nobody -


For Windows platform, when I build from source the file libqgispython.dll is not loaded by QGIS, therefore there is no Python support.

I have found in src/app/qgisapp.cpp in line 3820 (file is r9003)

QString pythonlibName("qgispython");

If I make the string "libqgispython" then the .dll is loaded and Python support is available.

With Linux the name doesn't seem to matter.

So, for Windows the name should be "libqgispython" or the file should be built as qgispython.dll

@qgib
Copy link
Contributor Author

qgib commented Aug 7, 2008

Author Name: Jürgen Fischer (@jef-n)


[[MinGW]] issue fixed in 4040ddd (SVN r9031)


  • resolution was changed from to fixed
  • status_id was changed from Open to Closed

@qgib
Copy link
Contributor Author

qgib commented Aug 9, 2008

Author Name: Steven Mizuno (Steven Mizuno)


I am reopening this ticket because 4040ddd (SVN r9031) builds the dll as liblibqgispython.dll, which won't be loaded unless it is renamed to qgispython.dll.

I neglected to mention that it was [[MinGW]] that I was building with, but you picked up on it. Thanks.

I believe the the file should be referenced from qgisapp.cpp by the name "libqgispython" rather than "qgispython". This is what I have been doing when I build for Windows and Mandriva Linux.

I don't have have any experience with MSVC building or Macs, so I'm not sure whether the name of the library and how it is referenced has any problems if the name is libqgispython in those situations.


  • resolution was changed from fixed to
  • status_id was changed from Closed to Feedback

@qgib
Copy link
Contributor Author

qgib commented Aug 10, 2008

Author Name: Jürgen Fischer (@jef-n)


Replying to [comment:2 smizuno]:

I am reopening this ticket because 4040ddd (SVN r9031) builds the dll as liblibqgispython.dll, which won't be loaded unless it is renamed to qgispython.dll.

ouch.

I neglected to mention that it was [[MinGW]] that I was building with, but you picked up on it. Thanks.

hopefully fixes the problem correctly...

@qgib
Copy link
Contributor Author

qgib commented Aug 10, 2008

Author Name: Steven Mizuno (Steven Mizuno)


Replying to [comment:3 jef]:

hopefully fixes the problem correctly...

Yes, the problem is fixed. Thank you.

I am closing the ticket.


  • resolution was changed from to fixed
  • status_id was changed from Feedback to Closed

@qgib
Copy link
Contributor Author

qgib commented Aug 21, 2009

Author Name: Anónimo (Anónimo)


Milestone Version 1.0.0 deleted

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Build/Install Related to compiling or installing QGIS labels May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Build/Install Related to compiling or installing QGIS
Projects
None yet
Development

No branches or pull requests

1 participant