Sample Vidgui App build failure on Mac OS X

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



FYI I'm seeing the same problem on Mac OS X Lion:

g++ -headerpad_max_install_names -arch x86_64 -Xarch_x86_64
-mmacosx-version-min=10.5 -o vidgui.app/Contents/MacOS/vidgui vidgui.o
vidwin.o moc_vidgui.o moc_vidwin.o   -F/Library/Frameworks
-L/Library/Frameworks
-L/Users/kris/projects/video/pjsip-trunk/pjlib/lib
-L/Users/kris/projects/video/pjsip-trunk/pjlib-util/lib
-L/Users/kris/projects/video/pjsip-trunk/pjnath/lib
-L/Users/kris/projects/video/pjsip-trunk/pjmedia/lib
-L/Users/kris/projects/video/pjsip-trunk/pjsip/lib
-L/Users/kris/projects/video/pjsip-trunk/third_party/lib
-L/usr/local/lib -lpjsua-i386-apple-darwin11.2.0
-lpjsip-ua-i386-apple-darwin11.2.0
-lpjsip-simple-i386-apple-darwin11.2.0 -lpjsip-i386-apple-darwin11.2.0
-lpjmedia-codec-i386-apple-darwin11.2.0
-lpjmedia-videodev-i386-apple-darwin11.2.0
-lpjmedia-i386-apple-darwin11.2.0
-lpjmedia-audiodev-i386-apple-darwin11.2.0
-lpjnath-i386-apple-darwin11.2.0 -lpjlib-util-i386-apple-darwin11.2.0
-lresample-i386-apple-darwin11.2.0 -lmilenage-i386-apple-darwin11.2.0
-lsrtp-i386-apple-darwin11.2.0 -lgsmcodec-i386-apple-darwin11.2.0
-lspeex-i386-apple-darwin11.2.0 -lilbccodec-i386-apple-darwin11.2.0
-lg7221codec-i386-apple-darwin11.2.0
-lportaudio-i386-apple-darwin11.2.0 -lpj-i386-apple-darwin11.2.0 -lbz2
-lx264 -lz -lm -lpthread -framework CoreAudio -framework CoreServices
-framework AudioUnit -framework AudioToolbox -framework QTKit
-framework Foundation -framework AppKit -framework QuartzCore
-framework OpenGL -lSDL -lavdevice -lavformat -lavcodec -lswscale
-lavutil -lavcore -lcrypto -lssl -framework QtGui -framework QtCore
Undefined symbols for architecture x86_64:
  "_pjsua_vid_win_get_info", referenced from:
      MainWin::initVideoWindow()      in vidgui.o
      MainWin::preview()     in vidgui.o
  "_pjsua_vid_preview_stop", referenced from:
      MainWin::preview()     in vidgui.o
  "_pjsua_vid_preview_param_default", referenced from:
      MainWin::preview()     in vidgui.o
  "_pjsua_vid_preview_start", referenced from:
      MainWin::preview()     in vidgui.o
  "_pjsua_vid_preview_get_win", referenced from:
      MainWin::preview()     in vidgui.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [vidgui.app/Contents/MacOS/vidgui] Error 1

On Tue, Dec 20, 2011 at 1:45 PM, ray <ray_rama2002 at yahoo.com> wrote:
> Trying to build sample vidgui App using pjproject-2.0-alpha2 release
> on Mac OS X Server 10.6.8
>
> All dependencies have been installed -
> SDL-1.3.0-6091 (built and installed from source) ffmpeg git trunk (built and installed from source) x264 git trunk (built and installed from source) yasm 1.2.0 (built and installed from source)
> From configure log for pjsip :
> ...
> checking SDL availability..... 1.3.0
> checking for avdevice_version in -lavdevice... yes
> checking for av_register_all in -lavformat... no
> checking for avcodec_init in -lavcodec... no
> checking for sws_scale in -lswscale... yes
> checking for av_malloc in -lavutil... yes
> checking for avcore_version in -lavcore... no
> checking for v4l2_open in -lv4l2... no
> ...
>
> Am not sure if that is OK...
>
> Also installed -
> Qt SDK version 1.1.4?and?Qt libraries 4.8.0 for Mac
>
>
>>qmake -v
> QMake version 2.01a
> Using Qt version 4.8.0 in /Library/Frameworks
>
>
> Using Qmake to build vidgui sample app fails (like below):
>
> g++ -c -pipe -DPJ_AUTOCONF=1 -arch x86_64 -DPJMEDIA_VIDEO_DEV_HAS_SDL=1 -I/usr/local/include/SDL -D_THREAD_SAFE -DPJMEDIA_HAS_LIBAVDEVICE=1 -DPJMEDIA_HAS_LIBSWSCALE=1 -DPJMEDIA_HAS_LIBAVUTIL=1 -DPJMEDIA_VIDEO_DEV_HAS_QT=1 -I/Users/aram/Projects/LexVid/pjproject-2.0-alpha2/pjlib/include -I/Users/aram/Projects/LexVid/pjproject-2.0-alpha2/pjlib-util/include -I/Users/aram/Projects/LexVid/pjproject-2.0-alpha2/pjnath/include -I/Users/aram/Projects/LexVid/pjproject-2.0-alpha2/pjmedia/include -I/Users/aram/Projects/LexVid/pjproject-2.0-alpha2/pjsip/include -ObjC++ -g -gdwarf-2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.8/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/usr/include -I. -F/Library/Frameworks -o moc_vidwin.o moc_vidwin.cpp
> g++ -headerpad_max_install_names -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -o vidgui.app/Contents/MacOS/vidgui vidgui.o vidwin.o moc_vidgui.o moc_vidwin.o ? -F/Library/Frameworks -L/Library/Frameworks -L/Users/aram/Projects/LexVid/pjproject-2.0-alpha2/pjlib/lib -L/Users/aram/Projects/LexVid/pjproject-2.0-alpha2/pjlib-util/lib -L/Users/aram/Projects/LexVid/pjproject-2.0-alpha2/pjnath/lib -L/Users/aram/Projects/LexVid/pjproject-2.0-alpha2/pjmedia/lib -L/Users/aram/Projects/LexVid/pjproject-2.0-alpha2/pjsip/lib -L/Users/aram/Projects/LexVid/pjproject-2.0-alpha2/third_party/lib -L/usr/local/lib -arch x86_64 -lpjsua-i386-apple-darwin10.8.0 -lpjsip-ua-i386-apple-darwin10.8.0 -lpjsip-simple-i386-apple-darwin10.8.0 -lpjsip-i386-apple-darwin10.8.0 -lpjmedia-codec-i386-apple-darwin10.8.0 -lpjmedia-videodev-i386-apple-darwin10.8.0 -lpjmedia-i386-apple-darwin10.8.0 -lpjmedia-audiodev-i386-apple-darwin10.8.0 -lpjnath-i386-apple-darwin10.8.0
> ?-lpjlib-util-i386-apple-darwin10.8.0 -lresample-i386-apple-darwin10.8.0 -lmilenage-i386-apple-darwin10.8.0 -lsrtp-i386-apple-darwin10.8.0 -lgsmcodec-i386-apple-darwin10.8.0 -lspeex-i386-apple-darwin10.8.0 -lilbccodec-i386-apple-darwin10.8.0 -lg7221codec-i386-apple-darwin10.8.0 -lportaudio-i386-apple-darwin10.8.0 -lpj-i386-apple-darwin10.8.0 -lm -lpthread -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox -framework QTKit -framework Foundation -framework AppKit -framework QuartzCore -framework OpenGL -lSDL -lavdevice -lswscale -lavutil -lcrypto -lssl -framework QtGui -framework QtCore
> Undefined symbols:
> ??"_pjsua_vid_win_get_info", referenced from:
> ?? ? ?MainWin::initVideoWindow() ? ? ?in vidgui.o
> ?? ? ?MainWin::preview() ? ? in vidgui.o
> ??"_pjsua_vid_preview_stop", referenced from:
> ?? ? ?MainWin::preview() ? ? in vidgui.o
> ??"_pjsua_vid_preview_param_default", referenced from:
> ?? ? ?MainWin::preview() ? ? in vidgui.o
> ??"_pjsua_vid_preview_get_win", referenced from:
> ?? ? ?MainWin::preview() ? ? in vidgui.o
> ??"_pjsua_vid_preview_start", referenced from:
> ?? ? ?MainWin::preview() ? ? in vidgui.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make: *** [vidgui.app/Contents/MacOS/vidgui] Error 1
>
>
> Please let me know if I am missing something...
> Thanks.
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org



-- 
Kristian Kielhofner



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux