Skip to content

Error linking an application #30

Description

@akontsevich

I've successfully built QttpServer, however if I try to build my application I get linking errors:

/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: cannot find -lnode_native
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: cannot find -luv
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: cannot find -lhttp_parser
collect2: error: ld returned 1 exit status

My .pro file is:

QT -= gui

TARGET = my_server
CONFIG += c++11 console
CONFIG -= app_bundle
DEFINES += QT_DEPRECATED_WARNINGS
SOURCES += main.cpp

message('Including config files')
include($$PWD/config/config.pri)

message('Including QttpServer core files')
include($$PWD/qttpserver/core.pri)

What is the problem could be here? Wrong core.pri if application sources located outside qttpserver sources? Include some more?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions