2011-12-01 43 views
5

Tôi bắt đầu sử dụng Qt cách đây vài tuần và tôi thực sự thích nó. Tôi bây giờ cần phải bao gồm các đồ thị trong ứng dụng của tôi và, sau khi một số nghiên cứu, tôi thấy rằng Qwt là cách tốt nhất để làm như vậy (thay vì phải làm tất cả mọi thứ từ đầu của bản thân mình). Tôi đã ở đó trong một vài ngày, và tôi không thể tìm ra cách để cài đặt nó. Tôi đang sử dụng windows7 32 bit. Tôi làm theo các hướng dẫn trong file INSTALL:Lỗi cài đặt QWT

từ cmd ->

qmake qwt.pro 
nmake 

sau khi kết thúc nmake Tôi rời với các lỗi

C:\Users\Peyo\Downloads\qwt-6.0.1>qmake qwt.pro 

C:\Users\Peyo\Downloads\qwt-6.0.1>nmake 

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01 
Copyright (C) Microsoft Corporation. All rights reserved. 

     cd src\ && "C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\nmake.e 
xe" -f Makefile 

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01 
Copyright (C) Microsoft Corporation. All rights reserved. 

     "C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\nmake.exe" -f Make 
file.Debug all 

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01 
Copyright (C) Microsoft Corporation. All rights reserved. 

moc qwt_dyngrid_layout.h 
moc qwt_magnifier.h 
moc qwt_panner.h 
moc qwt_picker.h 
moc qwt_text_label.h 
moc qwt_legend.h 
moc qwt_legend_item.h 
moc qwt_plot.h 
moc qwt_plot_renderer.h 
moc qwt_plot_canvas.h 
moc qwt_plot_panner.h 
moc qwt_plot_picker.h 
moc qwt_plot_zoomer.h 
moc qwt_plot_magnifier.h 
moc qwt_sampling_thread.h 
moc qwt_scale_widget.h 
moc qwt_abstract_slider.h 
moc qwt_analog_clock.h 
moc qwt_compass.h 
moc qwt_counter.h 
moc qwt_dial.h 
moc qwt_knob.h 
moc qwt_slider.h 
moc qwt_thermo.h 
moc qwt_wheel.h 
compiling .\qwt_abstract_scale_draw.cpp .\qwt_interval_symbol.cpp .\qwt_clipper. 
cpp .\qwt_color_map.cpp .\qwt_column_symbol.cpp .\qwt_interval.cpp .\qwt_dyngrid 
_layout.cpp .\qwt_math.cpp .\qwt_magnifier.cpp .\qwt_panner.cpp .\qwt_null_paint 
device.cpp .\qwt_painter.cpp .\qwt_picker.cpp .\qwt_round_scale_draw.cpp .\qwt_s 
cale_div.cpp .\qwt_scale_draw.cpp .\qwt_scale_map.cpp .\qwt_spline.cpp .\qwt_tex 
t_engine.cpp .\qwt_text_label.cpp .\qwt_text.cpp .\qwt_event_pattern.cpp .\qwt_p 
icker_machine.cpp .\qwt_point_3d.cpp .\qwt_point_polar.cpp .\qwt_scale_engine.cp 
p .\qwt_symbol.cpp .\qwt_system_clock.cpp .\qwt_curve_fitter.cpp .\qwt_legend.cp 
p .\qwt_legend_item.cpp .\qwt_plot.cpp .\qwt_plot_renderer.cpp .\qwt_plot_xml.cp 
p .\qwt_plot_axis.cpp .\qwt_plot_curve.cpp .\qwt_plot_dict.cpp .\qwt_plot_direct 
painter.cpp .\qwt_plot_grid.cpp .\qwt_plot_histogram.cpp .\qwt_plot_item.cpp .\q 
wt_plot_intervalcurve.cpp .\qwt_plot_spectrogram.cpp .\qwt_plot_spectrocurve.cpp 
.\qwt_plot_scaleitem.cpp .\qwt_plot_seriesitem.cpp .\qwt_plot_marker.cpp .\qwt_ 
plot_layout.cpp .\qwt_plot_canvas.cpp .\qwt_plot_panner.cpp .\qwt_plot_rasterite 
m.cpp .\qwt_plot_picker.cpp .\qwt_plot_zoomer.cpp .\qwt_plot_magnifier.cpp .\qwt 
_plot_rescaler.cpp .\qwt_raster_data.cpp .\qwt_matrix_raster_data.cpp .\qwt_samp 
ling_thread.cpp .\qwt_series_data.cpp .\qwt_scale_widget.cpp .\qwt_plot_svgitem. 
cpp .\qwt_abstract_slider.cpp .\qwt_abstract_scale.cpp .\qwt_arrow_button.cpp .\ 
qwt_analog_clock.cpp .\qwt_compass.cpp .\qwt_compass_rose.cpp .\qwt_counter.cpp 
.\qwt_dial.cpp .\qwt_dial_needle.cpp .\qwt_double_range.cpp .\qwt_knob.cpp .\qwt 
_slider.cpp .\qwt_thermo.cpp .\qwt_wheel.cpp 
NMAKE : fatal error U1077: 'echo' : return code '0xc0000135' 
Stop. 
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 10.0\VC\bi 
n\nmake.exe"' : return code '0x2' 
Stop. 
NMAKE : fatal error U1077: 'cd' : return code '0x2' 
Stop. 

có ba lỗi:

NMAKE : fatal error U1077: 'echo' : return code '0xc0000135' 
    Stop. 
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 10.0\VC\bi 
    n\nmake.exe"' : return code '0x2' 
    Stop. 
    NMAKE : fatal error U1077: 'cd' : return code '0x2' 
    Stop. 

Và tôi không thể tìm ra cách để giải quyết chúng. Hãy giúp tôi! Nếu tôi thiếu bất kỳ chi tiết nào, hãy cho tôi biết và tôi sẽ thêm chúng. Cảm ơn!

+0

bạn có chạy các lệnh của mình từ dấu nhắc lệnh Visual Studio không? Từ dấu nhắc lệnh Qt? – azf

+0

từ cửa sổ lệnh propmt, nhưng đường dẫn của tôi được đặt với mọi thứ – PTBG

+0

Lỗi 0xc0000135 là STATUS_DLL_NOT_FOUND. Có lẽ bạn cần phải cài đặt một thời gian chạy khác? Hãy thử chạy nó với [ProcMon] (http://technet.microsoft.com/en-us/sysinternals/bb896645) để tìm ra những gì nó thiếu. – kichik

Trả lời

7

Cố gắng chạy này từ Visual Studio dấu nhắc lệnh, nó thiết lập vcvars đặc biệt những thứ bạn không có khi chạy trong cửa sổ command prompt

+0

Tôi đang gặp vấn đề tương tự .. hãy giúp – MMH

+0

Bạn đã cố gắng chạy quá trình cài đặt từ dấu nhắc lệnh của Visual Studio (không phải dấu nhắc lệnh Windows)? – azf

+0

Có, tôi đã làm .. và sửa chữa lỗi .. có một số lỗi trong phiên bản cũ..thanks. – MMH

5

Better sử dụng mingw32-làm thay vì nmake.

Nó sẽ hoạt động.

Tôi hy vọng vấn đề của bạn sẽ được giải quyết.