搜索-lgpstk时跳过不兼容

时间:2018-01-24 23:08:52

标签: c linux gcc makefile

我正在尝试"制作"命令在我的linux上创建一个exe文件,但我一直收到错误

  

/ usr / bin / ld:搜索-lgpstk时跳过不兼容的../../../shared/gpstk/src/libgpstk.a   / usr / bin / ld:找不到-lgpstk   collect2:错误:ld返回1退出状态   ../../../shared/makehome/common.makefile:79:目标配方' ../../../ shared / binflate / src / binflate'失败

我曾尝试通过在线搜索下载库,但我似乎无法解决此错误。有人可以帮帮我吗。

这是makefile代码:

TARGET        = linux

#----------------------------------------------------------------- Directories
# Where make will put outputs and intermediate files
SVNROOTDIR    = ../../..
OBJDIR        = $(SVNROOTDIR)/obj
BINDIR        = $(SVNROOTDIR)/shared/binflate/src
LIBDIR        = $(BINDIR)

#--------------------------------------------------------------------- Outputs
# What we are trying to build:
# Note: If you want this makefile to build an EXECUTABLE, leave LIBRARY 
#       undefined, and vice versa if you want to build a static LIBRARY
EXECUTABLE    = $(BINDIR)/binflate
LIBRARY       = 

#--------------------------------------------------------------------- Sources
SOURCES       = $(SVNROOTDIR)/shared/core/src/basetime.cpp \
        $(SVNROOTDIR)/shared/core/src/parameters.cpp \
        $(SVNROOTDIR)/shared/core/src/report.cpp \
        $(SVNROOTDIR)/shared/core/src/datalog.cpp \
        $(SVNROOTDIR)/shared/core/src/util.cpp \
        $(SVNROOTDIR)/shared/core/src/serialutil.cpp \
        $(SVNROOTDIR)/shared/core/src/signaltype.cpp \
        $(SVNROOTDIR)/shared/core/src/channeltype.cpp \
        $(SVNROOTDIR)/shared/core/src/gridframework.cpp \
        $(SVNROOTDIR)/shared/core/src/binhelper.cpp \
        $(SVNROOTDIR)/shared/core/src/observables.cpp \
        $(SVNROOTDIR)/shared/core/src/txid.cpp \
        $(SVNROOTDIR)/shared/core/src/ReportWrapper.cpp \
        $(SVNROOTDIR)/shared/binflate/src/binflate.cpp 

# include directories in gcc format
INCL          = -I../include \
        -I$(SVNROOTDIR)/shared/core/include  \
        -I$(SVNROOTDIR)/shared/gpstk/include 

# Libraries
LIBS          = -lm -lgpstk

# Library include directories in gcc format (-Lpath/to/dir1 -Lpath/to/dir2)
INCLLIB       = -L$(SVNROOTDIR)/shared/gpstk/src \
        -L/usr/local/lib

# Predefine macros
PREDEFINES    = 

#------------------------------------ Compilers, linkers, etc. and their flags
CC            = g++
CCFLAGS       = -g -Wall -Wno-unknown-pragmas \
        -Wno-uninitialized $(PREDEFINES)

CCINCL        = $(INCL) 

LIBEXE        = ar
LIBFLAGS      = rcs
LIBINCL       =

LNKEXE        = g++
LNKFLAGS      =
LNKINCL       = 

MD            = g++
MDFLAGS       = -MM
MDINCL        = $(INCL)


#---------------------------------------------------------- Included Makefiles
include $(SVNROOTDIR)/shared/makehome/common.makefile

0 个答案:

没有答案