s5vi's Motorola p2k phone page
March 12, 2010, 05:11:23 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
Your Ad Here
News: 29000 member !!!
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  

Email me.
You can help me to work on P2kc.
I'm looking for a freelance work.
Upcoming V-5.0.0 can be branded with your company for a small fee. Please contact me.
Email me.
Your Ad Here
Pages: 1 ... 3 4 [5] 6   Go Down
  Print  
Author Topic: OSX and P2kCommander  (Read 18257 times)
0 Members and 1 Guest are viewing this topic.
istink@modding
Newbie
*
Offline Offline

Posts: 36


Email
« Reply #60 on: March 08, 2008, 05:31:46 pm »

ok....it seems to have configured but i'm not sure it went in correctly.
when i typed 'make' it did nothing, when i typed 'make --prefix/opt' it came up with this.
adsl-67-125-134-203:libglade-2.0.1 scotthunter$ make install --prefix=/opt
make: unrecognized option `--prefix=/opt'
Usage: make [options] [target] ...
Options:
  -b, -m                      Ignored for compatibility.
  -B, --always-make           Unconditionally make all targets.
  -C DIRECTORY, --directory=DIRECTORY
                              Change to DIRECTORY before doing anything.
  -d                          Print lots of debugging information.
  --debug[=FLAGS]             Print various types of debugging information.
  -e, --environment-overrides
                              Environment variables override makefiles.
  -f FILE, --file=FILE, --makefile=FILE
                              Read FILE as a makefile.
  -h, --help                  Print this message and exit.
  -i, --ignore-errors         Ignore errors from commands.
  -I DIRECTORY, --include-dir=DIRECTORY
                              Search DIRECTORY for included makefiles.
  -j [N], --jobs[=N]          Allow N jobs at once; infinite jobs with no arg.
  -k, --keep-going            Keep going when some targets can't be made.
  -l [N], --load-average[=N], --max-load[=N]
                              Don't start multiple jobs unless load is below N.
  -L, --check-symlink-times   Use the latest mtime between symlinks and target.
  -n, --just-print, --dry-run, --recon
                              Don't actually run any commands; just print them.
  -o FILE, --old-file=FILE, --assume-old=FILE
                              Consider FILE to be very old and don't remake it.
  -p, --print-data-base       Print make's internal database.
  -q, --question              Run no commands; exit status says if up to date.
  -r, --no-builtin-rules      Disable the built-in implicit rules.
  -R, --no-builtin-variables  Disable the built-in variable settings.
  -s, --silent, --quiet       Don't echo commands.
  -S, --no-keep-going, --stop
                              Turns off -k.
  -t, --touch                 Touch targets instead of remaking them.
  -v, --version               Print the version number of make and exit.
  -w, --print-directory       Print the current directory.
  --no-print-directory        Turn off -w, even if it was turned on implicitly.
  -W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE
                              Consider FILE to be infinitely new.
  --warn-undefined-variables  Warn when an undefined variable is referenced.
  -N OPTION, --NeXT-option=OPTION
                              Turn on value of NeXT OPTION

i'm thinking that it is still having a path problem, not sure how to change it.

ok here's what happed when typing make:
adsl-67-125-134-203: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=\""/opt/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
rm -f .libs/glade-init.lo
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=\"/opt/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

help.......
Logged
s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 755



WWW Email
« Reply #61 on: March 08, 2008, 09:45:29 pm »

Sorry for that, i have posted the first google hit for libglade
The correct latest version here:  http://ftp.gnome.org/pub/GNOME/sources/libglade/2.6/libglade-2.6.2.tar.gz

Today is OSX day for me.
Try to install Leo. Not a simple tast for my ordinary PC. First attempt "b0 error".  Second is permanent resetting. Third is booted but cant see my p2k keyboard.....will be continued. and i have booted my good old 10.4.9 Tiger.

I have take a look into /opt/gtk , all files are from the same day when i compiled my gtk, except libglade.
This means libglade dosent need any other libs. On my PC there are only gtk libs (created with imendio script) and libglade.
This is good for you who has already installed gtk libs. The only thing you need is the libglade.dylib.

I have double check my PATH (in terminal enter "set" command)
My path contains   /opt/gtk/bin
and there is another environment variable: PKG_CONFIG_PATH
PKG_CONFIG_PATH=/opt/gtk/lib/pkgconfig

And now compiling libglade-2.6.2:
./autogen.sh --disable-gtk-doc --enable-shared --prefix=/opt/gtk
make
sudo make install

This autogen will run configure also, and the problem was the prefix (sorry for that i remember the wrong prefix)

If libglade installed, you have to compile p2kc
cd p2kc
make clean
cd p2k-core
make mac
cd ..
make
./p2kc

Anyway today i made a package (only intel for now) this contain p2kc and libglade
Who has intel MAC and installed gtk , can run this directly from finder:  http://www.el-co.hu/dl/p2kc/p2kc_OSX_Intel.tar.gz
Tomorrow i will make a ppc version

Also tried to pack all gtk libs into a package, pkg will 39 Mbytes ,but failed to run. (actually can run but hasnt window)

Hope these will help you.
Logged

istink@modding
Newbie
*
Offline Offline

Posts: 36


Email
« Reply #62 on: March 09, 2008, 02:41:35 am »

ok --- when looking @ the PATH i have may be different for installing libglade than you. but i'm not sure.
i have to look at the PATH by opening a finder window to see where the GTK components are installed.
first question, is /source & /opt the same? cuz i dont have an /opt folder.
second question, there is a /gnome folder BEFORE you can get to the /GTK folder (in my system anyways).
would this mean i'll change my PATH to:
set /source/gnome/gtk/bin

then:
PKG_CONFIG_PATH=/opt/gnome/gtk/lib/pkgconfig


when i tried to run the ./autogen.....this is what i got

Last login: Sat Mar  8 17:03:33 on ttys000
Macintosh:~ scotthunter$ set /opt/gtk/bin
Macintosh:~ scotthunter$ PKG_CONFIG_PATH
-bash: PKG_CONFIG_PATH: command not found
Macintosh:~ scotthunter$ PKG_CONFIG_PATH=/opt/gtk/lib/pkgconfig
Macintosh:~ scotthunter$ ./autogen.sh --disable-gtk-doc --enable-shared --prefix=/opt/gtk
-bash: ./autogen.sh: No such file or directory
Macintosh:~ scotthunter$ cd ~/opt/libglade-2.62/
-bash: cd: /Users/scotthunter/opt/libglade-2.62/: No such file or directory
Macintosh:~ scotthunter$ cd ~/source/libglade-2.6.2/
Macintosh:libglade-2.6.2 scotthunter$ ./autogen.sh --disable-gtk-doc --enable-shared --prefix=/opt/gtk
-bash: ./autogen.sh: No such file or directory
Macintosh:libglade-2.6.2 scotthunter$ set /opt/gtk/bin
Macintosh:libglade-2.6.2 scotthunter$ KG_CONFIG_PATH=/opt/gtk/lib/pkgconfig
Macintosh:libglade-2.6.2 scotthunter$ ./autogen.sh --disable-gtk-doc --enable-shared --prefix=/opt/gtk
-bash: ./autogen.sh: No such file or directory


Logged
istink@modding
Newbie
*
Offline Offline

Posts: 36


Email
« Reply #63 on: March 09, 2008, 02:48:59 am »

after looking at the PATH, it seems /opt - - it's there, sorry.
Logged
s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 755



WWW Email
« Reply #64 on: March 09, 2008, 02:54:08 pm »

export PKG_CONFIG_PATH=/opt/gnome/gtk/lib/pkgconfig
./configure --disable-gtk-doc --enable-shared --prefix=/opt/gtk
Logged

jimmydls05
Newbie
*
Offline Offline

Posts: 15


Email
« Reply #65 on: March 09, 2008, 04:45:05 pm »

I tried the new p2kc package. This i the error I got:
Dyld Error Message:
  Library not loaded: /opt/gtk/lib/libgtk-quartz-2.0.0.dylib
..
  Reason: Incompatible library version: p2kc requires version 1501.0.0 or later, but libgtk-quartz-2.0.0.dylib provides version 1302.0.0

I guess I need to update libgtk-quartz-2.0.0.dylib, not sure how to do that. maybe with jhbuild?
Logged
istink@modding
Newbie
*
Offline Offline

Posts: 36


Email
« Reply #66 on: March 09, 2008, 05:21:19 pm »

ok....libglade installed....  Grin
thank you my friend!!
you wrote to do this after libglade installed.....

If libglade installed, you have to compile p2kc
cd p2kc   ------>  (is this the p2kc in the p2kc_osb_intel_binary folder??)
make clean
cd p2k-core ------> (also same folder??)
make mac
cd ..
make
./p2kc

or is the new GUI?

thanks again

btw, i'm getting the same error message as jimmydls05 when trying to open app:

Dyld Error Message:
  Library not loaded: /opt/gtk/lib/libgtk-quartz-2.0.0.dylib
  Referenced from: /Users/scotthunter/Desktop/p2kc.app/Contents/MacOS/p2kc
  Reason: Incompatible library version: p2kc requires version 1501.0.0 or later, but libgtk-quartz-2.0.0.dylib provides version 1302.0.0
« Last Edit: March 09, 2008, 05:26:58 pm by istink@modding » Logged
s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 755



WWW Email
« Reply #67 on: March 09, 2008, 07:49:09 pm »

ok, man. If gtk libs and libglade installed, we need to compile p2kc gui.
Meanwhile i try to make a full (32Mb) package with all libraries, but failed.

1: get source zip file   http://gnomefiles.org/download.php?soft_id=2211&where=http%3A%2F%2Fwww.el-co.hu%2Fdl%2Fp2kc%2Fp2kc_0.6_source.tar.gz
2: unzip it
3: open a terminal and navigate there.
4: make clean   this will erase previous binaries
5: cd p2k-core   this bring you p2k-core folder, we need to compile this first
6: make mac      this will create p2k-core
7: cd ..             we are in p2kc folder
8: make           this will compile p2kc (gui app)
9: ./p2kc          this will run application

This is a youtube movie: http://gnomefiles.org/download.php?soft_id=2211&where=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DKhxRqiEnaxk
Logged

trojanmac
Newbie
*
Offline Offline

Posts: 9


« Reply #68 on: March 09, 2008, 11:14:54 pm »

S5vi ok so what you were telling me since, i don't have an intel I can't run the gui?
I am looking at buying a macbook, so this could answer my problems ;-) i need an intel! Smiley

Sort of Off subject...
With bootcamp on an intel, can you not just run windows and and use the p2k05 programs that are already out there?
Logged
istink@modding
Newbie
*
Offline Offline

Posts: 36


Email
« Reply #69 on: March 09, 2008, 11:34:02 pm »

s5vi ----

when i get to step 4 i get alot of warnings and such, however.......
when i get to step 5 i get these errors:
make[1]: *** [p2kc] Error 1
make: *** [all] Error 2
Macintosh:p2kc_0.6_source scotthunter$......

it is pages of errors, too long too list......is the 0.6 binary for designed for leopard??

thanks again
Logged
s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 755



WWW Email
« Reply #70 on: March 10, 2008, 08:30:22 pm »

If you compile from source it dosent matter if your mac is ppc or intel. The binary, result of compilation will be ppc otr intel regarding your cpu.

step4 is make clean this must work. or some file not found. dont worry.
step5 is cd p2k-core
step 6 is make mac       this is compile p2k-core. there will be some warnings...dont worry , go ahead
 
make[1]: *** [p2kc] Error 1    this must came from p2kc compilation. pls post outputto my email    s5vi.hu@gmail.com
Logged

istink@modding
Newbie
*
Offline Offline

Posts: 36


Email
« Reply #71 on: March 11, 2008, 04:13:54 am »

ok.....i've sent the e-mail......but it's lots of info, haha!

thanks for your help s5vi!!!!
Logged
istink@modding
Newbie
*
Offline Offline

Posts: 36


Email
« Reply #72 on: March 14, 2008, 03:56:43 am »

there are a couple of /opt files......i'm thinking if i go in and dump it all start from scratch, do you think this may help? the confusion in my system may be when i installed macports (it shows some duplicate files)......you dont have macports s5vi........what do you think?

thanks again
Logged
s5vi
Administrator
Hero Member
*****
Offline Offline

Posts: 755



WWW Email
« Reply #73 on: March 14, 2008, 09:11:01 am »

Yes, i dont have macports
Install only thru imendio script
Maybe was a bad idea to mix and match imendio and macports libs
i think imendio uses the latest source

I didnt do that, but you can try
if comiling p2kc (or libglade) drop an error msg regarding version number of certain lib
you can delet that dylib from /opt/gtk/lib
and search proper source folder in your home folder  (i remeber there is source folder)
cd into it and enter make to re-compile it. and sudo make install
Logged

istink@modding
Newbie
*
Offline Offline

Posts: 36


Email
« Reply #74 on: March 16, 2008, 01:49:31 am »

ok........cant get it to work.
maybe another day   Embarrassed
Logged
Pages: 1 ... 3 4 [5] 6   Go Up
  Print  
 
Jump to:  

s5vi webdesign: | www.inox-crom.hu | www.tancsicscipo.hu | www.el-co.hu | www.fulopkapu.hu | editdekor.atw.hu
Powered by MySQL Powered by PHP Powered by SMF 1.1 RC3 | SMF © 2001-2006, Lewis Media Valid XHTML 1.0! Valid CSS!