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

qgis osgeo4w portable install #19706

Closed
qgib opened this issue Oct 17, 2014 · 4 comments
Closed

qgis osgeo4w portable install #19706

qgib opened this issue Oct 17, 2014 · 4 comments
Labels
Build/Install Related to compiling or installing QGIS Feature Request

Comments

@qgib
Copy link
Contributor

qgib commented Oct 17, 2014

Author Name: Andreas Mueller (Andreas Mueller)
Original Redmine Issue: 11430

Redmine category:build/install


Hello,
teaching GIS and Python at my local university, i wanted a software installation off osgeo4w (and other) on a usb storage.
I tried to change the postinstall procedure to a get a portable version (see below). At least i ended up with a python error when opening the python command line in QGIS. Those files caused the error because of hardcoded pathes:
osgeo4w\apps\Python27\Lib\site-packages\PyQt4\pyqtconfig.py.tmpl
osgeo4w\apps\Python27\Lib\site-packages\sipconfig.py.tmpl

I found a solution at http://www.mantidproject.org/Building_Windows_Dependencies, applied it and it works.
To have no trouble with future releases i want to suggest postinstall template- and batch files, that allow an almost portable Installation.

Here is, what i did basicly, to automate the procedure:
First i download apt. whith apt i downloaded all the packages i need. Extract was done with gnu tar. Writing batch files for this i got an install-routine but no postinstall. I figured out that /etc/postinstall is the central place for it.
Keeping textreplace i changed mapping from %osgeo4w_root% to %%osgeo4w_root%% for batch files, to take advantage from the windows environment. Also for many conf-Files it is possible to use a environment variable ${OSGEO4W_ROOT} (Apache, PHP), so i change those either. I didn't want apache to start as a service, so i used the windows-apache-mysql-php start script as a basis.

Because i was looking for a portable python for gis programming i created batch files for idle. Adding Postgresql, Postgis and pgrouting was no problem. I din't care about mapserver map- und html files, they don't work by now, may be pathes whithout drive letters work?

regards,
Andreas Mueller

@qgib
Copy link
Contributor Author

qgib commented Oct 19, 2014

Author Name: Giovanni Manghi (@gioman)


isn't this an already ready to use solution?

http://www.archaeogeek.com/blog/2014/09/25/new-portable-gis-releases/


  • resolution was changed from worksforme to
  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Oct 28, 2014

Author Name: Paolo Cavallini (@pcav)


  • subject was changed from qgis osgeo4w potable install to qgis osgeo4w portable install

@qgib
Copy link
Contributor Author

qgib commented Oct 29, 2014

Author Name: Andreas Mueller (Andreas Mueller)


@paolo Cavallini: ups, typo, thanx
@giovanni Manghi: Yes, i know it. But they have a lot off double installs, because they put Software Packages in parallel (side by side) and not integrated like it is done in osgeo4w. Python comes as Portable and with qgis, apache comes separately with ms4w - and they use PyQt4 with the same problem than me: Whenever there is a path in the configuration (pyqtconfig.py), they point to an absolute Path, like 'C:\\PROGRA1\\QGISDU1\\apps\\Python27\\Lib\\site-packages\\PyQt4'. I don't know why this works at last?

As I'am thinking ahead, i would like to build an integrated solution, even with postgresql/postgis, using the same libs, as it would do under unix.
But first I'am trying to understand windows-portable specific problems, like avoiding registry entries, flexible path handling and so on.

PyQt4 coming with PotablePython, is looking very different to the osgeo4w package though.

Anyone with errors, experiences?
Andreas

@qgib
Copy link
Contributor Author

qgib commented Oct 29, 2014

Author Name: Giovanni Manghi (@gioman)


better open a discussion in the developers mailing lists, where you will certainly find more support/ideas.


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

@qgib qgib added Feature Request Build/Install Related to compiling or installing QGIS labels May 25, 2019
@qgib qgib added this to the Future Release - Nice to have milestone May 25, 2019
@qgib qgib closed this as completed May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build/Install Related to compiling or installing QGIS Feature Request
Projects
None yet
Development

No branches or pull requests

1 participant