We have moved to a new Sailfish OS Forum. Please start new discussions there.
1 | initial version | posted 2018-04-02 20:03:33 +0200 |
I am not getting anywhere trying to link my code, that uses libcurlpp in Qt Creator. The individual object files are being created, but the linking fails, because of undefined references to libcurlpp:
https://gist.github.com/m3x1m0m/9a55d32f5fd77b496032de3760f45d27#file-compile_output-txt-L80
I compiled libcurlpp in the build engine and copied the installation into a subdirectory of the project. I think the project file simply does not configure the linking process correctly. This is the project file (with the rest of the project):
https://github.com/m3x1m0m/testapp/blob/master/cppqml.pro
Relevant part:
# Path to installation of CURLPP
CONFIG(debug,debug|release){ CURLPP_PATH = lib/curlpp-inst-arm }
CONFIG(release,debug|release){ CURLPP_PATH = lib/curlpp-inst-i486 }
QMAKE_LFLAGS += -Wl,-lc -Wl,-lz
# Add libcurl
CONFIG += link_pkgconfig
PKGCONFIG += libcurl
# Add curlpp include files
INCLUDEPATH += $$CURLPP_PATH/include
# Point to library files
LIBS += -L$$PWD/$$CURLPP_PATH/lib/libcurlpp.so
# Static library path
lib.files += $$PWD/$$CURLPP_PATH/lib/libcurlpp.a
# I don't know what this does
lib.path = /usr/share/harbour-test/lib
INSTALLS += lib
What is it I am missing out? I am thankful for every hint.
2 | No.2 Revision |
I am not getting anywhere trying to link my code, that uses libcurlpp in Qt Creator. The individual object files are being created, but the linking fails, because of undefined references to libcurlpp:
https://gist.github.com/m3x1m0m/9a55d32f5fd77b496032de3760f45d27#file-compile_output-txt-L80
I compiled libcurlpp in the build engine and copied the installation into a subdirectory of the project. I think the project file simply does not configure the linking process correctly. This is the project file (with the rest of the project):
https://github.com/m3x1m0m/testapp/blob/master/cppqml.pro
Relevant part:
# Path to installation of CURLPP
CONFIG(debug,debug|release){ CURLPP_PATH = lib/curlpp-inst-arm }
CONFIG(release,debug|release){ CURLPP_PATH = lib/curlpp-inst-i486 }
QMAKE_LFLAGS += -Wl,-lc -Wl,-lz
# Add libcurl
CONFIG += link_pkgconfig
PKGCONFIG += libcurl
# Add curlpp include files
INCLUDEPATH += $$CURLPP_PATH/include
# Point to library files
LIBS += -L$$PWD/$$CURLPP_PATH/lib/libcurlpp.so
# Static library path
lib.files += $$PWD/$$CURLPP_PATH/lib/libcurlpp.a
# I don't know what this does
lib.path = /usr/share/harbour-test/lib
INSTALLS += lib
What is it I am missing out? out on? I am thankful for every hint.
3 | No.3 Revision |
I am not getting anywhere trying to link my code, that uses libcurlpp in Qt Creator. The individual object files are being created, but the linking fails, because of undefined references to libcurlpp:
https://gist.github.com/m3x1m0m/9a55d32f5fd77b496032de3760f45d27#file-compile_output-txt-L80
I compiled libcurlpp in the build engine and copied the installation into a subdirectory of the project. I think the project file simply does not configure the linking process correctly. This is the project file (with the rest of the project):
https://github.com/m3x1m0m/testapp/blob/master/cppqml.pro
Relevant part:
# Path to installation of CURLPP
CONFIG(debug,debug|release){ CURLPP_PATH = lib/curlpp-inst-arm }
CONFIG(release,debug|release){ CURLPP_PATH = lib/curlpp-inst-i486 }
QMAKE_LFLAGS += -Wl,-lc -Wl,-lz
# Add libcurl
CONFIG += link_pkgconfig
PKGCONFIG += libcurl
# Add curlpp include files
INCLUDEPATH += $$CURLPP_PATH/include
# Point to library files
LIBS += -L$$PWD/$$CURLPP_PATH/lib/libcurlpp.so
# Static library path
lib.files += $$PWD/$$CURLPP_PATH/lib/libcurlpp.a
# I don't know what this does
lib.path = /usr/share/harbour-test/lib
INSTALLS += lib
What is it I am missing out on? I am thankful for every hint.
4 | No.4 Revision |
I am not getting anywhere trying to link my code, that uses libcurlpp in Qt Creator. The individual object files are being created, but the linking fails, because of undefined references to libcurlpp:
https://gist.github.com/m3x1m0m/9a55d32f5fd77b496032de3760f45d27#file-compile_output-txt-L80
I compiled libcurlpp in the build engine and copied the installation into a subdirectory of the project. I think the project file simply does not configure the linking process correctly. This is the project file (with the rest of the project):
https://github.com/m3x1m0m/testapp/blob/master/cppqml.pro
Relevant part:
# Path to installation of CURLPP
CONFIG(debug,debug|release){ CURLPP_PATH = lib/curlpp-inst-arm }
CONFIG(release,debug|release){ CURLPP_PATH = lib/curlpp-inst-i486 }
QMAKE_LFLAGS += -Wl,-lc -Wl,-lz
# Add libcurl
PKGCONFIG += libcurl
# Add curlpp include files
INCLUDEPATH += $$CURLPP_PATH/include
# Point to library files
LIBS += -L$$PWD/$$CURLPP_PATH/lib/libcurlpp.so
# Static library path
lib.files += $$PWD/$$CURLPP_PATH/lib/libcurlpp.a
# I don't know what this does
lib.path = /usr/share/harbour-test/lib
INSTALLS += lib
What is it I am missing out on? I am thankful for every hint.
EDIT:
Following three steps how I got libcurl in combination with libcurlpp running. In addition, this article was extremely helpful.
This script excerpt is a working draft (not claiming being perfect yet).
# Path to installation of CURLPP
CONFIG(debug,debug|release){ CURLPP_PATH = lib/curlpp-inst-arm }
CONFIG(release,debug|release){ CURLPP_PATH = lib/curlpp-inst-i486 }
# Add curlpp include files
INCLUDEPATH += $$CURLPP_PATH/include
# Tell linker to link libcurl first, then libcurlpp
LIBS += -lcurl\
-L$$PWD/$$CURLPP_PATH/lib\
-lcurlpp
# Install file on system
lib.files += $$CURLPP_PATH/lib/libcurlpp.so\
$$CURLPP_PATH/lib/libcurlpp.so.1\
$$CURLPP_PATH/lib/libcurlpp.so.1.0.0
lib.path = /usr/share/$$TARGET/lib
INSTALLS += lib
5 | No.5 Revision |
I am not getting anywhere trying to link my code, that uses libcurlpp in Qt Creator. The individual object files are being created, but the linking fails, because of undefined references to libcurlpp:
https://gist.github.com/m3x1m0m/9a55d32f5fd77b496032de3760f45d27#file-compile_output-txt-L80
I compiled libcurlpp in the build engine and copied the installation into a subdirectory of the project. I think the project file simply does not configure the linking process correctly. This is the project file (with the rest of the project):
https://github.com/m3x1m0m/testapp/blob/master/cppqml.pro
Relevant part:
# Path to installation of CURLPP
CONFIG(debug,debug|release){ CURLPP_PATH = lib/curlpp-inst-arm }
CONFIG(release,debug|release){ CURLPP_PATH = lib/curlpp-inst-i486 }
QMAKE_LFLAGS += -Wl,-lc -Wl,-lz
# Add libcurl
PKGCONFIG += libcurl
# Add curlpp include files
INCLUDEPATH += $$CURLPP_PATH/include
# Point to library files
LIBS += -L$$PWD/$$CURLPP_PATH/lib/libcurlpp.so
# Static library path
lib.files += $$PWD/$$CURLPP_PATH/lib/libcurlpp.a
# I don't know what this does
lib.path = /usr/share/harbour-test/lib
INSTALLS += lib
What is it I am missing out on? I am thankful for every hint.
EDIT:
Following three trivial steps how I got libcurl in combination with libcurlpp running. In addition, this article was extremely helpful.
This script excerpt is a working draft (not claiming being perfect yet).
# Path to installation of CURLPP
CONFIG(debug,debug|release){ CURLPP_PATH = lib/curlpp-inst-arm }
CONFIG(release,debug|release){ CURLPP_PATH = lib/curlpp-inst-i486 }
# Add curlpp include files
INCLUDEPATH += $$CURLPP_PATH/include
# Tell linker to link libcurl first, then libcurlpp
LIBS += -lcurl\
-L$$PWD/$$CURLPP_PATH/lib\
-lcurlpp
# Install file on system
lib.files += $$CURLPP_PATH/lib/libcurlpp.so\
$$CURLPP_PATH/lib/libcurlpp.so.1\
$$CURLPP_PATH/lib/libcurlpp.so.1.0.0
lib.path = /usr/share/$$TARGET/lib
INSTALLS += lib
6 | No.6 Revision |
I am not getting anywhere trying to link my code, that uses libcurlpp in Qt Creator. The individual object files are being created, but the linking fails, because of undefined references to libcurlpp:
https://gist.github.com/m3x1m0m/9a55d32f5fd77b496032de3760f45d27#file-compile_output-txt-L80
I compiled libcurlpp in the build engine and copied the installation into a subdirectory of the project. I think the project file simply does not configure the linking process correctly. This is the project file (with the rest of the project):
https://github.com/m3x1m0m/testapp/blob/master/cppqml.pro
Relevant part:
# Path to installation of CURLPP
CONFIG(debug,debug|release){ CURLPP_PATH = lib/curlpp-inst-arm }
CONFIG(release,debug|release){ CURLPP_PATH = lib/curlpp-inst-i486 }
QMAKE_LFLAGS += -Wl,-lc -Wl,-lz
# Add libcurl
PKGCONFIG += libcurl
# Add curlpp include files
INCLUDEPATH += $$CURLPP_PATH/include
# Point to library files
LIBS += -L$$PWD/$$CURLPP_PATH/lib/libcurlpp.so
# Static library path
lib.files += $$PWD/$$CURLPP_PATH/lib/libcurlpp.a
# I don't know what this does
lib.path = /usr/share/harbour-test/lib
INSTALLS += lib
What is it I am missing out on? I am thankful for every hint.
EDIT:
Following three trivial steps how I got libcurl in combination with libcurlpp running. In addition, this article was extremely helpful.
This script excerpt is a working draft (not claiming being perfect yet).
# Path to installation of CURLPP
CONFIG(debug,debug|release){ CURLPP_PATH = lib/curlpp-inst-arm }
CONFIG(release,debug|release){ CURLPP_PATH = lib/curlpp-inst-i486 }
# Add curlpp include files
INCLUDEPATH += $$CURLPP_PATH/include
# Tell linker to link libcurl first, then libcurlpp
LIBS += -lcurl\
-L$$PWD/$$CURLPP_PATH/lib\
-lcurlpp
# Install file on system
lib.files += $$CURLPP_PATH/lib/libcurlpp.so\
$$CURLPP_PATH/lib/libcurlpp.so.1\
$$CURLPP_PATH/lib/libcurlpp.so.1.0.0
lib.path = /usr/share/$$TARGET/lib
INSTALLS += lib
7 | No.7 Revision |
I am not getting anywhere trying to link my code, that uses libcurlpp in Qt Creator. The individual object files are being created, but the linking fails, because of undefined references to libcurlpp:
https://gist.github.com/m3x1m0m/9a55d32f5fd77b496032de3760f45d27#file-compile_output-txt-L80
I compiled libcurlpp in the build engine and copied the installation into a subdirectory of the project. I think the project file simply does not configure the linking process correctly. This is the project file (with the rest of the project):
https://github.com/m3x1m0m/testapp/blob/master/cppqml.pro
Relevant part:
# Path to installation of CURLPP
CONFIG(debug,debug|release){ CURLPP_PATH = lib/curlpp-inst-arm }
CONFIG(release,debug|release){ CURLPP_PATH = lib/curlpp-inst-i486 }
QMAKE_LFLAGS += -Wl,-lc -Wl,-lz
# Add libcurl
PKGCONFIG += libcurl
# Add curlpp include files
INCLUDEPATH += $$CURLPP_PATH/include
# Point to library files
LIBS += -L$$PWD/$$CURLPP_PATH/lib/libcurlpp.so
# Static library path
lib.files += $$PWD/$$CURLPP_PATH/lib/libcurlpp.a
# I don't know what this does
lib.path = /usr/share/harbour-test/lib
INSTALLS += lib
What is it I am missing out on? I am thankful for every hint.
EDIT:
Following three trivial steps how I got libcurl in combination with libcurlpp running. In addition, this article was extremely helpful.
This script excerpt is a working draft (not claiming being perfect yet).
# Path to installation of CURLPP
CONFIG(debug,debug|release){ CURLPP_PATH = lib/curlpp-inst-arm }
CONFIG(release,debug|release){ CURLPP_PATH = lib/curlpp-inst-i486 }
# Add curlpp include files
INCLUDEPATH += $$CURLPP_PATH/include
# Tell linker to link libcurl first, then libcurlpp
LIBS += -lcurl\
-L$$PWD/$$CURLPP_PATH/lib\
-lcurlpp
# Install file on system
lib.files += $$CURLPP_PATH/lib/libcurlpp.so\
$$CURLPP_PATH/lib/libcurlpp.so.1\
$$CURLPP_PATH/lib/libcurlpp.so.1.0.0
lib.path = /usr/share/$$TARGET/lib
INSTALLS += lib