problem about build-process-Collection of common programming errors
Spencer Hakim
iphone objective-c xcode build-process
I am using Xcode to write an iPhone project and I use an external library. I added the Xcode project file to the parent target and adjusted the header search path and set it as a direct dependency in the parent’s build target.Now the strange thing happens: I can open the library and compile it without problems. The library links to some frameworks e.g. AVFoundation.framework.I clean the target and start building the parent project. In my build results I see that it builds the library, but then the linking fails with these error messages:Undefined symbols:”_AVCaptureSessionPresetMedium”, referenced from:_AVCaptureSessionPresetMedium$non_lazy_ptr in libZXingWidget.a(ZXingWidgetController.o)(maybe you meant: _AVCaptureSessionPresetMedium$non_lazy_ptr)”_CVPixelBufferGetHeight”, referenced from:-[ZXingWidgetController captureOutput:didOutputSampleBuffer:fromConnection:] in libZXingWidget.a(ZXingWidgetController.o)”_CVPixelBufferLockBaseAddress”, referenced from:-[ZXingWidgetController captureOutput:didOutputSampleBuffer:fromConnection:] in libZXingWidget.a(ZXingWidgetController.o)”_AudioServicesPlaySystemSound”, referenced from:-[ZXingWidgetController presentResultForString:] in libZXingWidget.a(ZXingWidgetController.o)”_AudioServicesCreateSys
evan.stoddard
iphone ios automatic-ref-counting build-process
EDIT My problem was that I didn’t link a class to my project.I am working on an app that is basically a terminal app. When I try to build it I’m getting a build error.Ld /Users/evanstoddard/Library/Developer/Xcode/DerivedData/Highjack-anstcjvykrnniwbltvijvyvexirq/Build/Products/Debug-iphonesimulator/Highjack.app/Highjack normal i386cd /Users/evanstoddard/Desktop/Highjacksetenv IPHONEOS_DEPLOYMENT_TARGET 6.0setenv PATH “/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin”/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk -L/Users/evanstoddard/Library/Developer/Xcode/DerivedData/Highjack-anstcjvykrnniwbltvijvyvexirq
Marve
java security open-source ant build-process
I am working on a security project at my university for open source software. I am trying to build freemarker from source, but I am running into some problems. Everything that I can find online says that simple running ‘ant’ in the root directory should build the project. The only requirement is that you have ant v1.7.0 installed, which I do. When I go into the root directory and
MPelletier
c++ visual-studio build-process borland
Today’s issue is a bit odd, but please bear with me. Any advice / suggestions extremely appreciated!I’ve inherited an old codebase on a project with some components that date back to 2002. There is no documentation at all for this project, and the original machine which had the build set up on no longer exists (the hard drive failed and there is no backup available…). The system interacts with, and controls, a robot arm. I have a full installation and the executable installed on a test machine with the appropriate hardware. The source is on a Subversion repository, but the logging messages are minimal and give no practical advice. It has been worked upon as recently as January but the developers left before I started. It was partially re-written with a new C#-based GUI. The project consists of C++, C++/CLI, and C#. It uses Boost and VTK. My problem, in a nutshell, is this: there is a client-critical bug in the control part of the software and I cannot build the project. There are no debugging symbols available and attaching the running exe doesn’t work (probable reasons why below). Neither the pre-C# versions or the most up-to-date source build at all under any configuration I’ve tried.To complicate matters further, it has been suggested – though I’m not sure about this – that the project used to be built via Borland C++ Builder V6, and has been since migrated across to Visual Studio. It still contains Borland-specific components, although most of these seem be conditional.My manager swears that it will not build under VS, and must be compiled fully in Borland. The problem is that I can’t get it to build in either without dozens of errors. There are definitely Borland-specific components (BPL files) but I don’t know what they are or ho
gotgenes
configuration build-process autotools
A portion of our research group’s program has auxiliary functionality provided by ctemplate library. On our dated cluster, we can not build the software due to compilation , so I would like to separate this functionality and control whether it is included or not via a configure flag, such as –disable-ctemplate.The software, written in C++, uses the Autotools build system—neither of which I have much experience with. My understanding is that to accomplish this task, I n
Glenn McAllister
build build-process cmake
I’ve done a lot of projects and a lot of different build systems and CI tools. Most recently, I’ve been exposed to the occasionally challenging task of adding to an autotools based environment for a reasonably sized C++ application. While I love the ease of use for the end user, I’m not so fond of dealing with m4 and all of the auto* tools from the developer side.I’m working on a reasonab
Pascal
ios4 build-process xcode4 static-libraries
All was right in the world until I upgraded to Xcode 4 a few days ago. Since then I’ve had endless problems getting things to work as they should. And I have a crucial update I need to release. I’ve tried every permutation of settings I can think of, restarted, reinstalled Xcode, reverted to old versions of my files, everything.My project links to three static libraries, contai
Muadb
ubuntu opencv build make build-process
Im trying to setup Opencv with cuda=on on ubuntu 12.04. I did cmake Opencv with all settings which I want without any problem and my Cuda toolkit is working smooth. However, when I come make step of Opencv machines has given error. Wh
gWiz
c# c compiler build-process clr
I’ve spent my professional life as a C# developer. As a student I occasionally used C but did not deeply study it’s compilation model. Recently I jumped on the bandwagon and have begun studying Objective-C. My first steps have only made me aware of holes in my pre-existing knowled
JR Lawhorne
qt build-process 64bit
I need to build my QT console application as 64 bit. i.e. x86_64My config file looks like this:CONFIG += qt console debug x86_64 CONFIG -= app_bundleHEADERS = HelperClass.h SOURCES = HelperClass.cpp \main.cppThe compile goes
VonC
eclipse opengl build-process linker-error fltk
I am having trouble getting set up with FLTK in Eclipse. I am trying to create an OpenGL window with the following code (which I found here):#include #include #include // // Simple resizable 2D GL window // erco 10/08/05 // class MyGlWindow : public Fl_Gl_Window {// DRAW METHOD// OpenGL window: (w,h) is upper right, (-w,-h) is lower left, (0,0) is center//void draw() {// First time? init viewport, etc.if (!valid()) {valid(1);glLoadIdentity();glViewport(0,0,w(),h()
HaltingState
c++ opengl build-process ctypes
I am in linux. My Makefile file is thismain2: main.cpp g++ -c $(LIBS) $(CFLAGS) -fPIC main.cpp g++ -shared main.o -o main.so Where, SDL_CFLAGS := $(shell sdl-config –cflags) SDL_LDFLAGS := $(shell sdl-config –libs) CC = gcc COPTS = -g -Wall CFLAGS = $(SDL_CFLAGS) LIBS = -lstdc++ -lSDL $(SDL_LDFLAGS) -L/usr/X11R6/lib -lGL -lGLUwhich runsg++ -c -lstdc++ -lSDL -L/usr/lib -lSDL -L/usr/X11R6/lib -lGL -lGLU -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -fPIC main.cppg++ -shared main.o -o main.soNow, this works without error. main.o and main.so files are produced.However, when I try to link main.os with python ctypesfrom ctypes import * import os libtest = cdll.LoadLibrary(os.getcwd()+ ‘/main.so’) libtest.main_loop() libtest.main_loop()I get this error>>> libtest = cdll.LoadLibrary(os.getcwd() + ‘/main.so’) Traceback (most recent call last):File “”, line 1, in File “/usr/lib/python2.6/ctypes/__init__.py”, line 431, in LoadLibraryreturn self._dlltype(name)File “/usr/lib/python2.6/ctypes/__init__.py”, line 353, in __init__self._handle = _dlopen(self._name, mode) OSError: /home/atomos/DF/open_gl_client/ctypes_client/main.so: undefined symbol: glEndI am not sure if I am
user1068636
dsimcha
linux gcc linker build-process d
Assume a static library libfoo that depends on another static library libbar for some functionality. These and my application are written in D. If my application only uses libfoo directly, and only calls functions from libfo
Hassan Syed
c++ build-process static-libraries dynamic-linking abi
I’ve never thought about the issue below but since I am now having to deal with a bunch of dependencies in my code I thought I better get my facts straight. Lets restrict this to a modern Linux version say ubuntu amd64.Since
nixgadgets
c++ gcc build-process gnu ld
Im wondering if anyone would be able to help me as I have been scratching my head for two days on this.I have done the compilation and when trying to link a source code on linux getting undefined referenceCompiling using,g++ -g -I/u01/kasunt/workspace/corelibCORBA/include-I/u01/kasunt/workspace/corelibCORBA/installed_components/include-I/u01/kasunt/workspace/corelibCORBA/idl-I/u01/kasunt/workspace/corelibCORBA/src/Server-I/u01/kasunt/workspace/corelibCORBA/installed_components/idl-I/u01/kasunt/workspace/corelibCORBA/installed_components/src/Server-I/u01/kasunt/workspace/corelibCORBA/installed_components/imake-DNARROWPROTO -I . -I/u01/kasunt/workspace/corelibCORBA/installed_components/include-W -Wall -Wpointer-arith -pipe -D_POSIX_THREADS -D_POSIX_THREAD_SAFE_FUNCTIONS -g -O -I/u01/kasunt/workspace/corelibCORBA/include-g -O -I/u01/kasunt/workspace/corelibCORBA/include-fvisibility=hidden -fvisibility-inlines-hidden -DACE_GCC_HAS_TEMPLATE_INSTANTIATION_VISIBILITY_ATTRS=1-W -Wall -Wpointer-arith -ggdb -pipe -Wall -g -D_linux_ -D_x86_ -rdynamic -D_REENTRANT -DTAO_HAS_INTERCEPTORS=0 -DTAO_HAS_VALUETYPE=1 -D_REENTRANT -DACE_HAS_AIO_CALLS -D_GNU_SOURCE -I/usr/local/ACE+TAO+CIAO-5.7.9/ACE_wrappers-I/usr/local/ACE+TAO+CIAO-5.7.9/ACE_wrappers/TAO-I/usr/local/ACE+TAO+CIAO-5.7.9/ACE_wrappers/TAO/orbsvcs-DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -c -o TestSeqWrapper.o TestSeqWrapper.cppLinking using,g++ -o TestSeqWrapper TestSeqWrapper.o-g -L/u01/kasunt/workspace/corelibCORBA/lib-L/u01/kasunt/workspace/corelibCORBA/installed_componen
David Liddle
build-process wix build-automation preprocessor wix3
I’m starting to use WiX in order to do automated builds to create msi’s of my c# projects and am experiencing the error “Undefined preprocessor variable ‘$(var.MyProject.TargetDir)'”I am using the latest WiX v3.0.5419. Inside my wxs file I am trying to use pre-processor variables that are l
Aadhira
Jonas Nielsen
ruby-on-rails-3 heroku build-process
Mission: Make a build of ffmpegthumbnailer that can be vendored with a Rails app and deployed to Heroku’s Cedar stack.Process so far:[success] Build ffmpeg with Vulcan (using this guide) and upload to S3 [failed] Build ffmpegthumbnailer with ffmpeg as dependency.Using command:$ vulcan build -v -s ffmpegthumbnailer-2.0.8 -d http://s3.amazonaws.com/remoting-io-cdn/heroku-building-lib/ffmpegI get the following (see error at the bottom): Packaging local directory… done Uploading source package… done Building with: ./configure –prefix /app/vendor/ffmpegthumbnailer-2.0 && make install downloading http://s3.amazonaws.com/remoting-io-cdn/heroku-building-lib/ffmpeg checking for a BSD-compatible install… /usr/bin/install -c checking whether build environment is sane… yes checking for a thread-safe mkdir -p… /bin/mkdir -p checking for gawk… no checking for mawk… mawk checking whether make sets $(MAKE)… yes checking for g++… g++ checking whether the C++ compiler works… yes checking for C++ compiler default output file name… a.out checking for suffix of executables… checking whether we are cross compiling… no checking for suffix of object files… o checking whether we are using the GNU C++ compiler… yes checking whether g++ accepts -g… yes checking for style of include used by make… GNU checking dependency style of g++… gcc3 checking build system type… x86_64-unknown-linux-gnu checking host system type… x86_64-unknown-linux-gnu checking how to print strings… printf checking for gcc… gcc checking whether we are using the GNU C compiler… yes checking whether gcc accepts -g… yes checking for gcc option to accept IS
thequark
scala build-process sbt
I am using SBT (0.7.4) with Scala(2.7.7) to build my Scala project and sometimes I get following error when building the project.So far the only remedy seems to retry it or do a clean on the SBT shell which adds delay in build process. No definite pattern of occurrence of the error has emerged but it happens quite a lot when I am using triggered execution of test cases: ~testPlease note the code base has no error. If I do a clean and build again without any source code change build gives no error. Sometimes, build works without even cleaning code base. java.lang.AssertionError: assertion failed: List(class Old, class Old)at scala.Predef$.assert(Predef.scala:92)at scala.tools.nsc.symtab.Symbols$Symbol.suchThat(Symbols.scala:820)at scala.tools.nsc.symtab.Symbols$Symbol.linkedClassOfModule(Symbols.scala:962)at xsbt.Analyzer$Compat$.linkedClass(Analyzer.scala:225)at xsbt.Analyzer$AnalyzerPhase$$anonfun$run$1$$anonfun$apply$7.apply(Analyzer.scala:96)at xsbt.Analyzer$AnalyzerPhase
Jon Seigel
user2423804
android build-process
i’m trying to build Android ICS on i.MX6q board using 64-bit ubuntu 12.04 building android image is giving the following errors============================================ PLATFORM_VERSION_CODENAME=REL PLATFORM_VERSION=4.0.4 TARGET_PRODUCT=sabresd_6dq TARGET_BUILD_VARIANT=user TARGET_BUILD_TYPE=release TARGET_BUILD_APPS= TARGET_ARCH=arm TARGET_ARCH_VARIANT=armv7-a-neon HOST_A
m1k4
Originally posted 2013-11-09 21:43:50.