openframeworks / openframeworks/openFrameworks

debian testing linking of project generator commandline fails

Open
#6,205 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

I think it's not a projectgenerator issue

Linking bin/projectGenerator for linux64
g++ -o bin/projectGenerator  obj/linux64/Release/src/ofApp.o obj/linux64/Release/src/main.o /home/nanu/src/openFrameworks/addons/obj/linux64/Release/ofxPoco/src/ofxXmlPoco.o /home/nanu/src/openFrameworks/apps/projectGenerator/commandLine/obj/linux64/Release/addons/ofxProjectGenerator/src/projects/qtcreatorproject.o /home/nanu/src/openFrameworks/apps/projectGenerator/commandLine/obj/linux64/Release/addons/ofxProjectGenerator/src/projects/visualStudioProject.o /home/nanu/src/openFrameworks/apps/projectGenerator/commandLine/obj/linux64/Release/addons/ofxProjectGenerator/src/projects/CBLinuxProject.o /home/nanu/src/openFrameworks/apps/projectGenerator/commandLine/obj/linux64/Release/addons/ofxProjectGenerator/src/projects/baseProject.o /home/nanu/src/openFrameworks/apps/projectGenerator/commandLine/obj/linux64/Release/addons/ofxProjectGenerator/src/projects/androidStudioProject.o /home/nanu/src/openFrameworks/apps/projectGenerator/commandLine/obj/linux64/Release/addons/ofxProjectGenerator/src/projects/xcodeProject.o /home/nanu/src/openFrameworks/apps/projectGenerator/commandLine/obj/linux64/Release/addons/ofxProjectGenerator/src/projects/CBWinProject.o /home/nanu/src/openFrameworks/apps/projectGenerator/commandLine/obj/linux64/Release/addons/ofxProjectGenerator/src/addons/ofAddon.o /home/nanu/src/openFrameworks/apps/projectGenerator/commandLine/obj/linux64/Release/addons/ofxProjectGenerator/src/utils/LibraryBinary.o /home/nanu/src/openFrameworks/apps/projectGenerator/commandLine/obj/linux64/Release/addons/ofxProjectGenerator/src/utils/Utils.o  /home/nanu/src/openFrameworks/libs/openFrameworksCompiled/lib/linux64/libopenFrameworks.a  /home/nanu/src/openFrameworks/addons/ofxPoco/libs/poco/lib/linux64/libPocoNetSSL.a /home/nanu/src/openFrameworks/addons/ofxPoco/libs/poco/lib/linux64/libPocoNet.a /home/nanu/src/openFrameworks/addons/ofxPoco/libs/poco/lib/linux64/libPocoCrypto.a /home/nanu/src/openFrameworks/addons/ofxPoco/libs/poco/lib/linux64/libPocoUtil.a /home/nanu/src/openFrameworks/addons/ofxPoco/libs/poco/lib/linux64/libPocoJSON.a /home/nanu/src/openFrameworks/addons/ofxPoco/libs/poco/lib/linux64/libPocoXML.a /home/nanu/src/openFrameworks/addons/ofxPoco/libs/poco/lib/linux64/libPocoFoundation.a /home/nanu/src/openFrameworks/addons/ofxPoco/libs/poco/lib/linux64/libPocoEncodings.a /home/nanu/src/openFrameworks/addons/ofxPoco/libs/poco/lib/linux64/libPocoRedis.a /home/nanu/src/openFrameworks/addons/ofxPoco/libs/poco/lib/linux64/libPocoZip.a  -Wl,-rpath=./libs:./bin/libs -Wl,--as-needed -Wl,--gc-sections -fuse-ld=gold -L/home/nanu/src/openFrameworks/libs/fmodex/lib/linux64/ -lfmodex -lcrypto -lssl /home/nanu/src/openFrameworks/libs/kiss/lib/linux64/libkiss.a /home/nanu/src/openFrameworks/libs/tess2/lib/linux64/libtess2.a   -lz -lgstapp-1.0 -lgstvideo-1.0 -lgstbase-1.0 -lgstreamer-1.0 -ludev -lfontconfig -lfreetype -lsndfile -lopenal -lcurl -lglfw -lrtaudio -lpulse-simple -lpulse -lasound -lGLEW -lGLU -lGL -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lglut -lX11 -lXrandr -lXxf86vm -lXi -lXcursor -ldl -lpthread -lfreeimage -lboost_filesystem -lboost_system -lpugixml -luriparser -lXinerama
/home/nanu/src/openFrameworks/libs/openFrameworksCompiled/lib/linux64/libopenFrameworks.a(ofAppGLFWWindow.o):ofAppGLFWWindow.cpp:function ofAppGLFWWindow::setup(ofGLFWWindowSettings const&): error: undefined reference to 'ofGLRenderer::ofGLRenderer(ofAppBaseWindow const*)'
/home/nanu/src/openFrameworks/libs/openFrameworksCompiled/lib/linux64/libopenFrameworks.a(ofAppGLFWWindow.o):ofAppGLFWWindow.cpp:function ofAppGLFWWindow::setup(ofGLFWWindowSettings const&): error: undefined reference to 'ofGLRenderer::setup()'
/home/nanu/src/openFrameworks/libs/openFrameworksCompiled/lib/linux64/libopenFrameworks.a(ofGLUtils.o):ofGLUtils.cpp:function ofGetGLRenderer(): error: undefined reference to 'ofGLRenderer::TYPE[abi:cxx11]'
/home/nanu/src/openFrameworks/libs/openFrameworksCompiled/lib/linux64/libopenFrameworks.a(ofGLUtils.o):ofGLUtils.cpp:function ofGetGLRenderer(): error: undefined reference to 'ofGLRenderer::TYPE[abi:cxx11]'
collect2: error: ld returned 1 exit status
make[1]: *** [/home/nanu/src/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:405: bin/projectGenerator] Fehler 1
make[1]: Verzeichnis „/home/nanu/src/openFrameworks/apps/projectGenerator/commandLine“ wird verlassen
make: *** [/home/nanu/src/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:129: Release] Fehler 2
 gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 8.2.0-12' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 8.2.0 (Debian 8.2.0-12) 

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the link failure in apps/projectGenerator/commandLine on Debian testing with the reported GCC 8 toolchain. Read the linker command and libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk around the reported targets, then trace the missing ofGLRenderer symbols. Done means the projectGenerator commandline links successfully on the affected Linux setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, linux
Domain
build-system, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.