wh201906 / SerialTest

Data transceiver(monitor)/realtime plotter/shortcut/file transceiver over serial port/Bluetooth/network on Windows/Linux/Android/macOS | 跨平台串口/蓝牙/网络调试助手,带数据收发/实时绘图/快捷发送/文件收发面板,可在PC和Android设备上使用
GNU General Public License v3.0
1.11k stars 212 forks source link

源码重新编译出错 #62

Closed LandyZou closed 4 months ago

LandyZou commented 5 months ago

使用的是Qt5.15.2 MinGW 64-bit的环境,直接运行源码报错error: cannot find -lqcustomplotd2

wh201906 commented 5 months ago

你需要下载QCustomPlot的源码,并将qcustomplot.cpp放到src文件夹下,再编译 下载链接可参考README当中的Linux编译步骤

LandyZou commented 5 months ago

image 添加了qcustomplot.cpp之后,报错: error: multiple definition of `QCPVector2D::QCPVector2D()'.....

wh201906 commented 5 months ago

只需要把qcustomplot.cpp放到src/文件夹下,不要修改.pro文件

Lucas-CX commented 4 months ago

在windows上编译,添加了qcustomplot.cpp,报的和楼主一样的错,请问楼主解决了么? @LandyZou

LandyZou commented 4 months ago

@Lucas-CX 我之前下载源码没有添加qcustomplot.cpp,编译出错之后,自己鼓捣了一下,还是没有解决问题,最后在项目发布者的提示下,添加了qcustomplot.cpp,编译仍然出错,就在想是不是因为之前自己瞎鼓捣修改了一些配置,然后重新解压源码,这次直接将qcustomplot.cpp添加到src/文件夹下进行编译,最后编译成功了。我是使用Qt 5.15.2 MinGW进行编译的。

wh201906 commented 4 months ago

@LandyZou 既然已经编译成功了,那我就先关闭这个issue了 @Lucas-CX 如果你遇到multiple definition的错误,请参考此评论重新编译。后续有问题可以继续在这个issue下回复

Lucas-CX commented 4 months ago

@LandyZou @wh201906 已编译成功,十分感谢各位!!!