[SOLVED]Qt Creator issue: The .pro file could not be parsed !
-
[quote author="Volker" date="1335093648"]Sorry, I had overlooked that. In that case, have a look at the compiler output pane in Creator if there are some detailed error messages. If not, comment out everything in the .pro file. Then add one line/part after another, rerun qmake and chek if the error returns. You then know the offending part of the file.[/quote]
Building process done correctly although error message appears but because of this error auto-completion & run of core.pro don't work correctly.
This issue fixed when I commented win32 blocks in core.pro as following... what's wrong here?
@QT += core gui sql
DESTDIR = ../../bin
TEMPLATE = app
MOC_DIR += moc
OBJECTS_DIR += obj
RCC_DIR += rccSOURCES += main.cpp
mainwindow.cpp
aboutdialog.cpp
dialogpersons.cpp
wizardaddreflection.cpp
extractfeatures.cppHEADERS += mainwindow.h
aboutdialog.h
dialogpersons.h
wizardaddreflection.h
extractfeatures.h
../fft/fft.h
../fft/complex.h
../ysom/ysom.h
../csv/csv.h \FORMS += mainwindow.ui
aboutdialog.ui
dialogpersons.ui
wizardaddreflection.uiINCLUDEPATH += ../ysom
../csv
../fftTRANSLATIONS += ./l10n/ar.ts
./l10n/en.tsRESOURCES +=
res.qrcOTHER_FILES +=
l10n/en.ts
l10n/ar.ts
images/style.css \#win32 {
TARGET = IbnZuhr-win32
HEADERS += ../qwt/src/qwt_wheel.h \
../qwt/src/qwt_thermo.h \
../qwt/src/qwt_text_label.h \
../qwt/src/qwt_text_engine.h \
../qwt/src/qwt_text.h \
../qwt/src/qwt_system_clock.h \
../qwt/src/qwt_symbol.h \
../qwt/src/qwt_spline.h \
../qwt/src/qwt_slider.h \
../qwt/src/qwt_series_data.h \
../qwt/src/qwt_scale_widget.h \
../qwt/src/qwt_scale_map.h \
../qwt/src/qwt_scale_engine.h \
../qwt/src/qwt_scale_draw.h \
../qwt/src/qwt_scale_div.h \
../qwt/src/qwt_sampling_thread.h \
../qwt/src/qwt_round_scale_draw.h \
../qwt/src/qwt_raster_data.h \
../qwt/src/qwt_point_polar.h \
../qwt/src/qwt_point_3d.h \
../qwt/src/qwt_plot_zoomer.h \
../qwt/src/qwt_plot_svgitem.h \
../qwt/src/qwt_plot_spectrogram.h \
../qwt/src/qwt_plot_spectrocurve.h \
../qwt/src/qwt_plot_seriesitem.h \
../qwt/src/qwt_plot_scaleitem.h \
../qwt/src/qwt_plot_rescaler.h \
../qwt/src/qwt_plot_renderer.h \
../qwt/src/qwt_plot_rasteritem.h \
../qwt/src/qwt_plot_picker.h \
../qwt/src/qwt_plot_panner.h \
../qwt/src/qwt_plot_marker.h \
../qwt/src/qwt_plot_magnifier.h \
../qwt/src/qwt_plot_layout.h \
../qwt/src/qwt_plot_item.h \
../qwt/src/qwt_plot_intervalcurve.h \
../qwt/src/qwt_plot_histogram.h \
../qwt/src/qwt_plot_grid.h \
../qwt/src/qwt_plot_directpainter.h \
../qwt/src/qwt_plot_dict.h \
../qwt/src/qwt_plot_curve.h \
../qwt/src/qwt_plot_canvas.h \
../qwt/src/qwt_plot.h \
../qwt/src/qwt_picker_machine.h \
../qwt/src/qwt_picker.h \
../qwt/src/qwt_panner.h \
../qwt/src/qwt_painter.h \
../qwt/src/qwt_null_paintdevice.h \
../qwt/src/qwt_matrix_raster_data.h \
../qwt/src/qwt_math.h \
../qwt/src/qwt_magnifier.h \
../qwt/src/qwt_legend_itemmanager.h \
../qwt/src/qwt_legend_item.h \
../qwt/src/qwt_legend.h \
../qwt/src/qwt_knob.h \
../qwt/src/qwt_interval_symbol.h \
../qwt/src/qwt_interval.h \
../qwt/src/qwt_global.h \
../qwt/src/qwt_event_pattern.h \
../qwt/src/qwt_dyngrid_layout.h \
../qwt/src/qwt_double_range.h \
../qwt/src/qwt_dial_needle.h \
../qwt/src/qwt_dial.h \
../qwt/src/qwt_curve_fitter.h \
../qwt/src/qwt_counter.h \
../qwt/src/qwt_compat.h \
../qwt/src/qwt_compass_rose.h \
../qwt/src/qwt_compass.h \
../qwt/src/qwt_column_symbol.h \
../qwt/src/qwt_color_map.h \
../qwt/src/qwt_clipper.h \
../qwt/src/qwt_arrow_button.h \
../qwt/src/qwt_analog_clock.h \
../qwt/src/qwt_abstract_slider.h \
../qwt/src/qwt_abstract_scale_draw.h \
../qwt/src/qwt_abstract_scale.h \
../qwt/src/qwt.h \
LIBS += ../ysom/lib/libysom-win32.a \
../csv/lib/libcsv-win32.a \
../fft/lib/libfft-win32.a \
../qwt/lib/libqwt.a \
../qwt/lib/libqwtmathml.a
INCLUDEPATH += ../qwt/src \
#}
#unix {
TARGET = IbnZuhr-linuxDEPENDPATH += /usr/lib INCLUDEPATH += /usr/include/qwt \ LIBS += ../ysom/lib/libysom-linux.a \ ../csv/lib/libcsv-linux.a \ ../fft/lib/libfft-linux.a \ /usr/lib/libqwt.so
#}
@ -
I noticed something strange too in IbnZuhr.pro which is qwt project appears in projects tree although I put it in win32 block!!!
@win32 {
SUBDIRS += qwt
}@PS
I'm using Linux Mint x64 -
VoilĂ ! I found the issue it's in this part of core.pro
@LIBS += ../ysom/lib/libysom-win32.a
../csv/lib/libcsv-win32.a
../fft/lib/libfft-win32.a
../qwt/lib/libqwt.a
../qwt/lib/libqwtmathml.a @Now the problem solved partially, I still see qwt project appears in projects tree although I'm working under linux and qwt should appears under windows only.
What's wrong in IbnZuhr.pro file?
@TEMPLATE = subdirs
CONFIG += orderedunix {
SUBDIRS +=
csv
fft
ysom
core
}win32 {
SUBDIRS +=
csv
fft
ysom
qwt
core
}@ -
Seems to be a bug, at least in 2.4.1. I can reproduce the faulty behavior on my installation. I suggest opening an issue at the "public bugtracker":https://bugreports.qt-project.org
-
[quote author="Volker" date="1335173131"]Seems to be a bug, at least in 2.4.1. I can reproduce the faulty behavior on my installation. I suggest opening an issue at the "public bugtracker":https://bugreports.qt-project.org[/quote]
Could you please file this bug report instead of me because "stupid bugtracker not working":https://qt-project.org/forums/viewthread/15297/ !
-
I think the idea for not honoring scopes in Qt Creator is that you still should be able to see and edit files, even though they are not built on a platform...