XBMC for Mac - Compile Error lost on me
#1
I am trying to compile and get the following error
after managing to fix a number of compile problems i am stuck on this one

Code:
ld warning: duplicate dylib /opt/local/lib/libz.1.dylib
ld warning: duplicate dylib /opt/local/lib/libiconv.2.dylib
Undefined symbols:
  "_smbc_urlencode", referenced from:
      CSMB::URLEncode(CStdStr<char> const&)in FileSmb.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
** BUILD FAILED **

The following build commands failed:
XBMC:
    Ld /Users/matthewspence/Development/XBMC/linuxport/XBMC/build/Debug/XBMC normal i386
(1 failure)

can any one point me in the right direction?
Reply
#2
The problem is most likely related to an incompatible version of Samba. Try installing the precompiled version of it, available as part of this package and see if that solves the issue, or manually downgrade to a compatible version (should be in the README).
Always read the XBMC online-manual, FAQ and search the forum before posting.
Please read and follow the forum rules.
For troubleshooting and bug reporting, please make sure you read this first.


Image
Reply
#3
in the read me its says version 3.0.28a
when i
Code:
sudo port list samba
its says i have version 3.0.28a installed but also have version 3.2.3
is that the problem?
how do i uninstall just the the 3.2.3?
Reply
#4
ok so now i can compile

but its says that xbmc exited with status 5
Reply
#5
msaspence Wrote:ok so now i can compile

but its says that xbmc exited with status 5

Little sparse on details, more info needed. How are you running it. What does console log say, what does xbmc.log say, what does crashreporter.log say. Use a pastebin site for long content and post that URL here.
Reply
#6
sorry

am trying to run it from xcode,

i have build
- configure
- python
- libraries
- XBMCHelper

as the read me instructs

then its says to build xbmc, not sure whether thats xbmc or xbmc.app i try both and get the same result

if i go 'build and go' i get exited with status 5, in the xcode status bar after it says xbmc launched

if i go 'build and debug' i get error from debugger: no executable file specified

the console gives message to the same affect on build and go and on build and debug

Code:
Loading program into debugger…
GNU gdb 6.3.50-20050815 (Apple version gdb-960) (Sun May 18 18:38:33 UTC 2008)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-apple-darwin"./Users/matthewspence/Development/XBMC/linuxport/XBMC/build/Debug/XBMC: Inappropriate ioctl for device.
/Users/matthewspence/Development/XBMC/linuxport/XBMC/build/Debug/XBMC: Inappropriate ioctl for device.
tty /dev/ttys005
sharedlibrary apply-load-rules all
(gdb) run
Running…
No executable file specified.
Use the "file" or "exec-file" command.
No executable file specified.
Use the "file" or "exec-file" command.

xbmc.log has nothing (or at least nothing new)
and i am afraid i dont know where crashreporter.log, but the crashreporter folder has nothing on xbmc
Reply
#7
msaspence Wrote:sorry

am trying to run it from xcode,

i have build
- configure
- python
- libraries
- XBMCHelper

as the read me instructs

then its says to build xbmc, not sure whether thats xbmc or xbmc.app i try both and get the same result

build/debug XBMC not XBMC.app.

Do you have XBMC_HOME exported?

edit XBMC executable, arguments and add the name XBMC_HOME and value $SRCROOT

This is the same as "export XBMC_HOME=/Users/matthewspence/Development/XBMC"


Do a "ls /Users/matthewspence/Development/XBMC/linuxport/XBMC/build/Debug"

XBMC should be present, it not it did not build. Look for errors on the build.
Reply
#8
Also make sure "XBMC" is the active target and debug or release for active build configuration.
Reply
#9
i did export on XBMC_HOME
and set it in Project->Edit Active Executable "XBMC", Arguments tabs, added under variables

i was sure if you meant /Users/matthewspence/Development/XBMC or /Users/matthewspence/Development/XBMC/linuxport/XBMC so tried both and same result still

Quote:[Session started at 2008-09-16 13:09:05 +0100.]
Loading program into debugger…
GNU gdb 6.3.50-20050815 (Apple version gdb-960) (Sun May 18 18:38:33 UTC 2008)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-apple-darwin".tty /dev/ttys001
/Users/matthewspence/Development/XBMC/linuxport/XBMC/build/Debug/XBMC: Inappropriate ioctl for device.
/Users/matthewspence/Development/XBMC/linuxport/XBMC/build/Debug/XBMC: Inappropriate ioctl for device.
sharedlibrary apply-load-rules all
(gdb) run
Running…
No executable file specified.
Use the "file" or "exec-file" command.
No executable file specified.
Use the "file" or "exec-file" command.

in /Users/matthewspence/Development/XBMC/linuxport/XBMC/build/Debug i have an empty xbmc directory and a xbmc.app which can be opened because "it is not supported on this architecture".
Reply
#10
Do a build of XBMC, open build results, copy the build results and put it on a pastebin site and post the URL here. Something is very wrong with your build and we need to find out what.
Reply
#11
http://pastebin.com/f79bd3348
Reply
#12
clean XBMC, then build and pastebin the build results.

You do have 10.4 sdk installed?
Reply
#13
unfortunately it have now reverted to a previous error

i know these thing don't just happen, but i dont think that i have done anything differently to provoke this

Code:
Undefined symbols:
  "_smbc_urlencode", referenced from:
      CSMB::URLEncode(CStdStr<char> const&)in FileSmb.o
Reply
#14
oh and i didnt specifically install it i just assumed that it was installed with xcode
Reply
#15
Please go over the readme.osx again. It's quite explicit about the need to install 10.4 sdks.

Quote:Install Xcode 3.0. You can download it from Apple's site after registration at
(http://developer.apple.com/tools/download). You also need to install the 10.4 sdk.

it is important to make sure that any libs are also built using 10.4 sdk refs.
It is not possible to build using MacPorts 1.6.0 to 10.4 sdk on a 10.5 system.

The best way to ensure this is to remove the existing MacPorts installation and
install the required libs using MacPorts-mpkgs-1.0.zip download at

http://sourceforge.net/project/showfiles...p_id=87054.

These libs are built to 10.4 sdk. You can still use MacPorts but the resulting
binary will only run under 10.5 if built under 10.5.

Also sounds like you are running MacPorts rather than the mpkg download.

The missing "_smbc_urlencode" symbol is from using the wrong version of samba3. If you use MacPorts you will need to create a custom portfile to build and install samba3 version 3.0.28a.
Reply

Logout Mark Read Team Forum Stats Members Help
XBMC for Mac - Compile Error lost on me0