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-master: undeclared identifier 'lastUsedFilter' #20299

Closed
qgib opened this issue Jan 31, 2015 · 2 comments
Closed

QGIS-master: undeclared identifier 'lastUsedFilter' #20299

qgib opened this issue Jan 31, 2015 · 2 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
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Jan 31, 2015

Author Name: Rainer Hurling (@rhurlin)
Original Redmine Issue: 12105
Affected QGIS version: master
Redmine category:build/install


From 1e936df on Jan 26, 2015 and newer, I can't build QGIS master on FreeBSD:

[..snip..]
[ 30%] Building CXX object src/gui/CMakeFiles/qgis_gui.dir/layertree/qgslayertreeviewdefaultactions.cpp.o
[ 30%] Building CXX object src/gui/CMakeFiles/qgis_gui.dir/qgisgui.cpp.o
/usr/ports/graphics/qgis-devel/work/qgis-QGIS-fe27b63/src/gui/qgisgui.cpp:148:11: error: use of undeclared identifier 'lastUsedFilter'; did you mean 'lastUsedDir'?
    if ( !lastUsedFilter.isEmpty() )     // set the filter to the last one used
          ^~~~~~~~~~~~~~
          lastUsedDir
/usr/ports/graphics/qgis-devel/work/qgis-QGIS-fe27b63/src/gui/qgisgui.cpp:108:13: note: 'lastUsedDir' declared here
    QString lastUsedDir = settings.value( "/UI/lastSaveAsImageDir", "." ).toString();
            ^
/usr/ports/graphics/qgis-devel/work/qgis-QGIS-fe27b63/src/gui/qgisgui.cpp:150:37: error: use of undeclared identifier 'lastUsedFilter'; did you mean 'lastUsedDir'?
      fileDialog->selectNameFilter( lastUsedFilter );
                                    ^~~~~~~~~~~~~~
                                    lastUsedDir
/usr/ports/graphics/qgis-devel/work/qgis-QGIS-fe27b63/src/gui/qgisgui.cpp:108:13: note: 'lastUsedDir' declared here
    QString lastUsedDir = settings.value( "/UI/lastSaveAsImageDir", "." ).toString();
            ^
2 errors generated.
src/gui/CMakeFiles/qgis_gui.dir/build.make:3549: die Regel für Ziel „src/gui/CMakeFiles/qgis_gui.dir/qgisgui.cpp.o“ scheiterte
gmake[4]: *** [src/gui/CMakeFiles/qgis_gui.dir/qgisgui.cpp.o] Fehler 1
gmake[4]: Verzeichnis „/usr/ports/graphics/qgis-devel/work/qgis-QGIS-fe27b63“ wird verlassen
CMakeFiles/Makefile2:1319: die Regel für Ziel „src/gui/CMakeFiles/qgis_gui.dir/all“ scheiterte
gmake[3]: *** [src/gui/CMakeFiles/qgis_gui.dir/all] Fehler 2
gmake[3]: Verzeichnis „/usr/ports/graphics/qgis-devel/work/qgis-QGIS-fe27b63“ wird verlassen
Makefile:147: die Regel für Ziel „all“ scheiterte
gmake[2]: *** [all] Fehler 2
gmake[2]: Verzeichnis „/usr/ports/graphics/qgis-devel/work/qgis-QGIS-fe27b63“ wird verlassen
*** Error code 1

A complete log is attached.

  • This happens on a box running FreeBSD 11-CURRENT (HEAD) amd64 (r277948)
  • The build uses the system compiler FreeBSD clang version 3.5.1 (tags/RELEASE_351/final 225668) 20150115
  • However, same result with gcc48 (FreeBSD Ports Collection) 4.8.5 20150122 (prerelease)

As far as I understand, commit 1e936df seems to be not complete?


@qgib
Copy link
Contributor Author

qgib commented Feb 17, 2015

Author Name: Rainer Hurling (@rhurlin)


As described above, I have problems in building qgis master on FreeBSD since git hash 1e936df. Reintroducing a one liner (attached patch) from before 1e936df seems to solve the build problem for FreeBSD.

Since other Unix alike systems do not report about such problems, there must be another reason for this failure on FreeBSD. Unfortunately, I have not enough skills to isolate the real cause.


  • 8432 was configured as patch-src__gui__qgisgui.cpp

@qgib
Copy link
Contributor Author

qgib commented Feb 17, 2015

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


Fixed in changeset "1c3472ab2b3e1e116c4ee0fbfebaf1165b4dcfbf".


  • status_id was changed from Open to Closed

@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 25, 2019
@qgib qgib added this to the Version 2.8 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
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