s5vi's Motorola p2k phone page
February 09, 2012, 09:40:05 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Over 30000 member ! Under heavy spammer attack ! Cleaning in progress !
V-6.0.0 with CDMA support is available now.
To become VIP: you can do it via PayPal: http://www.el-co.hu/p2k05/paypal.html
 
   Home   Help Login Register  
Pages: 1 2 3 [4] 5 6   Go Down
  Print  
Author Topic: OSX and P2kCommander  (Read 26219 times)
0 Members and 1 Guest are viewing this topic.
istink@modding
Newbie
*
Offline Offline

Posts: 36


Email
« Reply #45 on: March 06, 2008, 09:05:00 pm »

thanks s5vi---this will make it soooooo easy!!!
Logged
jimmydls05
Newbie
*
Offline Offline

Posts: 15


Email
« Reply #46 on: March 06, 2008, 10:28:10 pm »

Thanks s5vi,

I tried it and it didn't work for me.
    make: Nothing to be done for `makefile.in'.


Then I tried
./configure
make
sudo make install

and it returned this error:
ld: warning, duplicate dylib /usr/lib/libiconv.2.dylib
ld: duplicate symbol _g_bit_nth_lsf in glade-xml.lo and glade-init.lo

collect2: ld returned 1 exit status
make[2]: *** [libglade-2.0.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error
Logged
trojanmac
Newbie
*
Offline Offline

Posts: 9


« Reply #47 on: March 07, 2008, 12:34:47 am »

Here are a few errors im getting, anyone else get any of these, is it normal?:

(ERROR #1)
when running the last command for jhbuild "jhbuild build meta-gtk-osx-core meta-gtk-osx-python meta-gtk-osx-themes gossip"

I get this error

*** Checking out loudmouth *** [28/29]
git clone git://git.imendio.com/projects/loudmouth loudmouth
Error: [Errno 2] No such file or directory
*** error during stage checkout of loudmouth: [Errno 2] No such file or directory *** [28/29]

  [1] rerun stage checkout
  [2] ignore error and continue to configure
  [3] give up on module
  [4] start shell
  [5] go to stage force_checkout
choice: 1
*** Checking out loudmouth *** [28/29]
git clone git://git.imendio.com/projects/loudmouth loudmouth
Error: [Errno 2] No such file or directory
*** error during stage checkout of loudmouth: [Errno 2] No such file or directory *** [28/29]

(ERROR #2)

trojans-power-mac-g4:~ trojan$ jhbuild run /opt/gtk/bin/pygtk-demo
Using prefix: /opt/gtk
Traceback (most recent call last):
  File "/opt/gtk/bin/pygtk-demo", line 7, in ?
    execfile(os.path.join(pygtklibdir, "pygtk-demo.py"))
  File "/opt/gtk/lib/pygtk/2.0/pygtk-demo.py", line 19, in ?
    import gtk
  File "/opt/gtk/lib/python2.3/site-packages/gtk-2.0/gtk/__init__.py", line 48, in ?
    from gtk import _gtk
ImportError: No module named cairo
trojans-power-mac-g4:~ trojan$

(Just to let people know, from now on, don't have little snitch running when installing these, especially if your not going to be around your computer cause it will deny connections, im wondering if this happened during one or more of my installations resulting in errors #1&2....SOO im going back and installing everything again with little snitch off.)

« Last Edit: March 07, 2008, 12:36:42 am by trojanmac » Logged
jimmydls05
Newbie
*
Offline Offline

Posts: 15


Email
« Reply #48 on: March 07, 2008, 12:57:30 am »

@trojan

I don't think loudmouth has anything to do with gtk. Where did you get this command from? "jhbuild build meta-gtk-osx-core meta-gtk-osx-python meta-gtk-osx-themes gossip"

did you get any errors after
jhbuild bootstrap

what about     (should build all of the jhbuild packages)
jhbuild build   

If you get a permission denied error start your commands with sudo

test gtk with  /opt/gtk/bin/gtk-demo
Logged
trojanmac
Newbie
*
Offline Offline

Posts: 9


« Reply #49 on: March 07, 2008, 01:49:55 am »

@jimmydls05
Yes installed jhbuild boostrap with no errors, as well as with jhbuild build.

I got them from "http://shreevatsa.wordpress.com/2007/12/07/pidgin-on-mac-os-x-natively/"
if they are not needed than good =) means im a little closer =) has anyone gotten teh GUI to work yet besides s5vi?

Ok now here is my next dilemma:
I can't get the p2kc to open at all

trojans-power-mac-g4:/p2kc_0.6_source/p2k-core trojan$ ./p2k-core
-bash: ./p2k-core: cannot execute binary file

trojans-power-mac-g4:/p2kc_0.6_binary/p2k-core trojan$ ./p2k-core
-bash: ./p2k-core: cannot execute binary file

can someone point out the obvious to me again?  Undecided Huh?
heheh thanks very much for the help

BTW is this an intel version? I don't have intel.
« Last Edit: March 07, 2008, 02:26:07 am by trojanmac » Logged
jimmydls05
Newbie
*
Offline Offline

Posts: 15


Email
« Reply #50 on: March 07, 2008, 02:57:16 am »

@trojan

did you try this command?:
 /opt/gtk/bin/gtk-demo

Did it work? Did the gtk demo come up?


Logged
trojanmac
Newbie
*
Offline Offline

Posts: 9


« Reply #51 on: March 07, 2008, 04:20:48 am »

Sorry I didn't answer your question, yes it worked fine, played around in the demo ect ect

Logged
istink@modding
Newbie
*
Offline Offline

Posts: 36


Email
« Reply #52 on: March 07, 2008, 06:13:30 am »

@s5vi:
i tried to install libglade 2.0.1 here is what i got....
adsl-75-31-162-143:~ scotthunter$ make
make: *** No targets specified and no makefile found.  Stop.
adsl-75-31-162-143:~ scotthunter$ ~/desktop/libglade-2.0.1/
-bash: /Users/scotthunter/desktop/libglade-2.0.1/: is a directory
adsl-75-31-162-143:~ scotthunter$ make
make: *** No targets specified and no makefile found.  Stop.
adsl-75-31-162-143:~ scotthunter$

then after i (cd) to the libglade-2.0.1 folder i typed (cuz of the instructions on the install text file that was in it):
./configure

after that i typed
make

and this is what i got:
adsl-75-31-162-143:libglade-2.0.1 scotthunter$ make
make  all-recursive
Making all in glade
source='glade-init.c' object='glade-init.lo' libtool=yes \
   depfile='.deps/glade-init.Plo' tmpdepfile='.deps/glade-init.TPlo' \
   depmode=gcc3 /bin/sh ../depcomp \
   /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"libglade\" -I.. -I/opt/local/include/libxml2 -I/opt/local/include/atk-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/freetype2 -I/opt/local/include/libpng12   -DGLADE_LIBDIR=\""/usr/local/lib"\" -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED    -g -O2 -Wall -std=c9x -c -o glade-init.lo `test -f 'glade-init.c' || echo './'`glade-init.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"libglade\" -I.. -I/opt/local/include/libxml2 -I/opt/local/include/atk-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -DGLADE_LIBDIR=\"/usr/local/lib\" -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -g -O2 -Wall -std=c9x -c glade-init.c -MT glade-init.lo -MD -MP -MF .deps/glade-init.TPlo  -fno-common -DPIC -o .libs/glade-init.lo
In file included from glade-init.c:34:
glade-private.h:33: error: syntax error before 'GtkTooltips'
glade-private.h:33: warning: no semicolon at end of struct or union
glade-private.h:60: error: syntax error before '}' token
make[2]: *** [glade-init.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

i guess the same as jimmydls05 ---- so i'm stuck.

maybe i should uninstall it all and start from scratch?? HA! (kidding.....)




Logged
s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 769



WWW Email
« Reply #53 on: March 07, 2008, 08:20:02 am »

OK, my bad , i didnt remember, compiling libgalde needs configure also
AFAIK Proper command is ./configure --prefix=/opt
This prefix is a must because OSX gtk place gtk libs into /opt
In fact libglade has some dependencies during compilation and these functions and symbols will be search in /opt

In error messages you posted i see a lot of /usr/local or usr/lib ...etc these are bad paths in osx.

These are not needed: meta-gtk-osx-python meta-gtk-osx-themes gossip

cannot execute p2k-core:  i see you are in V06 source
did you compile p2k-core with "make mac" command?
if not you are try to run my binary compiled on my PC. That why not run

Anyway the solution will be if i boot my OSX (i have no time for it , yet) and look around.....
Logged

trojanmac
Newbie
*
Offline Offline

Posts: 9


« Reply #54 on: March 07, 2008, 03:05:27 pm »

@s5vi

I tried in both binary, and source...its not opening up, gives me cannon execute binary?!

here are some other options i've tried, and they are not working as well
(1.)
trojans-power-mac-g4:/p2kc_0.6_binary trojan$ make install
install -s -m 755 -g root -o root p2k-core/p2k-core /usr/local/bin
install: root: Invalid argument
make: *** [install] Error 67
(2.)
trojans-power-mac-g4:/p2kc_0.6_binary trojan$ ./p2kc
-bash: ./p2kc: cannot execute binary file
(3.)
trojans-power-mac-g4:/p2kc_0.6_binary trojan$ p2kc
-bash: p2kc: command not found
(4.)
trojans-power-mac-g4:/p2kc_0.6_binary trojan$ sudo make install
install -s -m 755 -g root -o root p2k-core/p2k-core /usr/local/bin
install: root: Invalid argument
make: *** [install] Error 67

if you want i can post what happened when i did a sudo make install -d
if the debug would help.

thanks
Trojan

Logged
istink@modding
Newbie
*
Offline Offline

Posts: 36


Email
« Reply #55 on: March 07, 2008, 05:17:20 pm »

@s5vi:
thanks again......
before i proceed ....... 2 questions?Huh?

1) so instead of ./compile' , type './complile --prefix=/opt'  ??

or in my case add prefix's where the gtk folders are?:
'./compile --prefix=/opt/gtk'

2) then after compile, do i still run?
make
make install
 
thanks again






« Last Edit: March 07, 2008, 05:30:58 pm by istink@modding » Logged
s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 769



WWW Email
« Reply #56 on: March 07, 2008, 05:41:04 pm »

@istink: not compile, but configure
./complile --prefix=/opt
and yes then make and "make install"

@trojan:
binary package is executable without compilation
source package must be compile before running (accidentally maybe i put binaries also into source)
you wrote your mac is PPC (not intel)
p2k-core universal binary is availabe (this run both on intel and PPC, but its size is double) you can find here some UB in filename
my p2kc binary is only intel, and my gtk libs also on my PC
Logged

trojanmac
Newbie
*
Offline Offline

Posts: 9


« Reply #57 on: March 07, 2008, 07:10:05 pm »

@s5vi
sorry my english is a little rough, so what you are saying is that the p2kc i am using is for intel only? i've looked and used the search on this site and can't find anything to do with Universal Binary, or UB that correlates to P2kc.

Can you provide me a link to get the correct P2kc universal binary?
(if we can't get the gui working, i would love to at-least get the terminal version working, been wanting to unbrand my v3xx so i can install Salling CLicker and get it working)

Thanks for your help, sorry if sometimes i can't understand.

Thanks!
Trojanmac
PPC G4 Dual 500mhz
OS X 10.4.11
Motorola V3xx

Logged
s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 769



WWW Email
« Reply #58 on: March 07, 2008, 08:56:15 pm »

Hehe.... i think my english is more rough (i'm from Hungary/Europe)
There are 2 kind of Mac computer Intel and PPC
Programs can be compiled for intel/ppc/universal
universal versions contains both intel and ppc code (doublesized binaries)
To be honest i cannot compile my gtk libs in universal format.
Due to this (gtk libs are intel) p2kc cannot compile ppc format.
So Pk2c compiled only in intel format. My PC is intel based.
Before i try to play with this this and finally can compile p2k-core universal binary format.
http://www.el-co.hu/dl/p2kc/p2k-core_1.4_OSX_UB.tar.gz
this must work on every mac. only one dependency here: libusb
10.3.x Panther  http://www.ellert.se/PKGS/libusb-2007-11-06/10.3/libusb.pkg.tar.gz
10.4.x Tiger      http://www.ellert.se/PKGS/libusb-2007-11-06/10.4/libusb.pkg.tar.gz
10.5.x Leopard  http://www.ellert.se/PKGS/libusb-2007-11-06/10.5/libusb.pkg.tar.gz

If you install libusb package, and unzip p2k-core
and open a terminal in p2k-core folder, enter this command "./p2k-core -m"

In some words:
- P2k-core can be run on any mac without compilation.
- For P2kc gui you need
1. gtk libs. this can be done via imendio script
2. libglade. i compiled this from source with this commands:
a: ./configure --prefix=/opt
b: make
c: sudo make install
Logged

istink@modding
Newbie
*
Offline Offline

Posts: 36


Email
« Reply #59 on: March 07, 2008, 10:40:07 pm »

hehe.....i think we are both tired  Wink....you said ./compile instead of configure too.................but yes, i meant configure.

thanks again s5vi......appreciate you helping us out!!
Logged
Pages: 1 2 3 [4] 5 6   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!

Bad Behavior has blocked 118 access attempts in the last 7 days.



Google visited last this page January 04, 2012, 12:08:14 am