我有一个包含多个目录但无法构建的项目。我需要的一个共享库存在于' build / debug / x64 / eapi / eapi'中。正确的路径似乎在链接器行上,但scons没有找到它。我的所有库都正确构建到一个变量目录,并安装到另一个公共目录。
eapi is here: #build/debug/x64/eapi/eapi
HELP:
Dir('.').path 'build/debug/x64/eapi/example/example_Queue'
Dir('.').abspath '/root/cpp/build/debug/x64/eapi/example/example_Queue'
Dir('#.').path '/root/cpp'
Dir('#').path '/root/cpp'
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build/debug/x64/eapi/example/example_Queue/main_durable_queuesub build/debug/x64/eapi/example/example_Queue/main_durable_queuesub.o -Lbuild/debug/x64/eapi/eapi -Leapi/eapi -leapi
/bin/ld: cannot find -leapi
collect2: error: ld returned 1 exit status
print(buildEnv['EAPI_LIBRARY_NAME'] + " is here: " + buildEnv['EAPI_LIBRARY_PATH'])
for p in ['main_durable_queuesub']:
example = local_env.Program(p, p + '.cpp', LIBS = buildEnv['EAPI_LIBRARY_NAME'], LIBPATH = [buildEnv['EAPI_LIBRARY_PATH']] )