Building Flashclient

2 views
Skip to first unread message

JimN-LostArt

unread,
Feb 3, 2010, 2:46:03 AM2/3/10
to Cyclopath Development
Hi all. I have made some attempts at building flashclient, with the
sticking points detailed below. Any suggestions/guidance welcome. The
limited experience with Unix/Linux & scripts I ever had is pretty
rusty, so it's a struggle. I am on a Leopard (OSX 10.5)., ie, not a
Linux.

I am ignoring the server side stuff right now, and am attempting to
build just the flashclient, assuming (wrongly?) the builds are
independent.

-First first error I get is setting SRC in the Makefile. I get "find: -
xtype: unknown option" error (twice). The problem is in the previous
'foreach' expression, since when I insert another option in front of
xtype (ie -true), that gets the unknown option error. All my attempts
to find out what's going on with that 'foreach' expression failed
utterly. However, this error does not seem to prevent me from building
the files in the directory.

-There are some "svn: '.' is not a working copy" errors, which is
probably do to there being no subversion repositories--Once again, it
doesn't seem to be a problem.

-I hacked fcsh-wrap to hardcode the path to fcsh; it appears to run
quite well.

-The file build/main.mxml couldn't find main.css, because, well it's
one directory up. What isn't set that should be?

To get a little further, I hacked the Makefile and changed OUT to "."
which seemed to work; I did get farther.

-Now, on most of the files, I get the same error: "Error: Call to a
possibly undefined method m4_ASSERT." It's the only error I'm getting.
Any ideas?

Jim

Reid Priedhorsky

unread,
Feb 3, 2010, 11:12:16 AM2/3/10
to cyclop...@googlegroups.com
On 02/03/10 01:46, JimN-LostArt wrote:
> Hi all. I have made some attempts at building flashclient, with the
> sticking points detailed below. Any suggestions/guidance welcome. The
> limited experience with Unix/Linux & scripts I ever had is pretty
> rusty, so it's a struggle. I am on a Leopard (OSX 10.5)., ie, not a
> Linux.

Hi Jim!

My high-level advice would be: install Ubuntu in a virtual machine, and
install Cyclopath there. Otherwise, you have two problems - installing a
complex system which is a known very difficult install, and doing so in
a brand-new environment - which will be quite difficult to untangle. I'm
pretty sure there are free virtual machines out there; perhaps other
team members can suggest one.

> I am ignoring the server side stuff right now, and am attempting to
> build just the flashclient, assuming (wrongly?) the builds are
> independent.

Actually no, but the pyserver depends on the flashclient, so you picked
the right one. :)

> -First first error I get is setting SRC in the Makefile. I get "find: -
> xtype: unknown option" error (twice). The problem is in the previous
> 'foreach' expression, since when I insert another option in front of
> xtype (ie -true), that gets the unknown option error. All my attempts
> to find out what's going on with that 'foreach' expression failed
> utterly.

I suspect some incompatibility in make, or find. It would be useful to
know what the shell command is, obviously. If I were debugging this, I'd
create a short dummy makefile focused on this part and then use echo to
try to get some state.

> However, this error does not seem to prevent me from building
> the files in the directory.

Well, it's preventing you from running m4, which is why you get other
errors below. The purpose of build/ is so we can run m4 on each file,
which fills in the m4_ASSERT() macro.

> -There are some "svn: '.' is not a working copy" errors, which is
> probably do to there being no subversion repositories--Once again, it
> doesn't seem to be a problem.

I'd comment the svn calls out and substitute dummy values. They're in
build_id.pl.

> -I hacked fcsh-wrap to hardcode the path to fcsh; it appears to run
> quite well.

I'd suggest adding the Flex bin directory to your path instead.

> -The file build/main.mxml couldn't find main.css, because, well it's
> one directory up. What isn't set that should be?
>
> To get a little further, I hacked the Makefile and changed OUT to "."
> which seemed to work; I did get farther.
>
> -Now, on most of the files, I get the same error: "Error: Call to a
> possibly undefined method m4_ASSERT." It's the only error I'm getting.
> Any ideas?

These last errors cascade from the first one. :)

My other high-level advice is: understand each problem before going on
to the next one. Some can indeed be simply papered over, but others
really do need to be fixed, and if you don't, the later errors might not
be real and working on them would not be fruitful.

Thanks for downloading the source code and trying it out! I'm sure
you'll be able to get it working eventually. Let us know what other
questions you have (though sadly I'm sure we'll be of little help in
figuring out OS X issues).

HTH,

Reid

Landon Bouma

unread,
Feb 3, 2010, 11:29:45 AM2/3/10
to cyclop...@googlegroups.com
Jim,

I agree with Reid about the virtual machine. I've been running VirtualBox inside Windows Vista at home and I love it! None of the Linux distros work 100% with my hardware anyway, so I have no choice but to run a virtual machine, but I actually prefer it as a solution. The speed is comparable to native, and the ability to take snapshots is great -- whenever I screw something up, it's nice knowing I can quickly restore a snapshot and try again.

http://www.virtualbox.org/

Also, I'm currently documenting a fresh installation of Cyclopath, since I just installed it on a new Ubuntu box. I'll get this up by the end of the week and send you a link.

Sincerely,

Landon



--
You received this message because you are subscribed Cyclopath Development.
To post to this group: send email to cyclop...@googlegroups.com
To read this group on the Web: http://groups.google.com/group/cyclopath-dev
To unsubscribe from this group: send email to
cyclopath-de...@googlegroups.com

JimN-LostArt

unread,
Feb 3, 2010, 1:51:59 PM2/3/10
to Cyclopath Development
Thanks for the replies. It definably looks like a virtual machine is
the way to go. I already downloaded virtualbox and installed it; now
it looks like I need to get a Ubuntu installation "disk" which I'll do
next. I've never installed a Linux OS before, so I hope it's
straightforward.

This should solve another problem I had; I should be able to install
the Apache server right on virtual box, right? I didn't want to
install a server straight on my OSX for security and stability
concerns, possible through my utter lack of knowledge of how to
properly install and setup servers. Now everything can be put in the
virtual box, walled off and turned off whenever not being used.

So I should be able to install the complete CP system (sans an
existing database).

Thanks again,
Jim

P.S. Attempting to hack my way through the build scripts was not a
waste of time, even if it proved fruitless; it increases my working
knowledge of both Unix/Linux and CP quite rapidly.


On Feb 3, 10:29 am, Landon Bouma <land...@cs.umn.edu> wrote:
> Jim,
>
> I agree with Reid about the virtual machine. I've been running VirtualBox
> inside Windows Vista at home and I love it! None of the Linux distros work
> 100% with my hardware anyway, so I have no choice but to run a virtual
> machine, but I actually prefer it as a solution. The speed is comparable to
> native, and the ability to take snapshots is great -- whenever I screw
> something up, it's nice knowing I can quickly restore a snapshot and try
> again.
>
> http://www.virtualbox.org/
>
> Also, I'm currently documenting a fresh installation of Cyclopath, since I
> just installed it on a new Ubuntu box. I'll get this up by the end of the
> week and send you a link.
>
> Sincerely,
>
> Landon
>

> > cyclopath-de...@googlegroups.com<cyclopath-dev%2Bunsu...@googlegroups.com>
>
>

Reid Priedhorsky

unread,
Feb 3, 2010, 2:29:00 PM2/3/10
to cyclop...@googlegroups.com
On 02/03/2010 12:51 PM, JimN-LostArt wrote:
>
> Thanks for the replies. It definably looks like a virtual machine is
> the way to go. I already downloaded virtualbox and installed it; now
> it looks like I need to get a Ubuntu installation "disk" which I'll do
> next. I've never installed a Linux OS before, so I hope it's
> straightforward.

I think you'll probably be OK. Ubuntu tries to be fairly accessible.
FWIW, we currently use 8.04 and are probably looking to upgrade to 9.04
sometime in the next few months.

> This should solve another problem I had; I should be able to install
> the Apache server right on virtual box, right?

Yes, you'll install everything in the virtual machine. You can probably
set it up so that you can use your dev install from the host machine, or
from within the virtual machine if you prefer.

> P.S. Attempting to hack my way through the build scripts was not a
> waste of time, even if it proved fruitless; it increases my working
> knowledge of both Unix/Linux and CP quite rapidly.

OK, good to hear! :)

Reid

James Nordgaard

unread,
Feb 5, 2010, 6:24:03 PM2/5/10
to cyclop...@googlegroups.com
Boy is virtualbox slick. It's like inventing Babelfish.

I was wandering what version of Apache 2, as well as versions of  Python, PostGIS, PostgreSql (the Tech wiki page says 8.2). Did I leave anything out (besides Flex)?

Also (which may answer the above), Landon, you mentioned fresh installation documentation. Should I wait for it (still coming soon), or has plans changed and I should just go ahead and install with the old documentation?

Thanks,
Jim

Landon Bouma

unread,
Feb 8, 2010, 2:20:16 PM2/8/10
to cyclop...@googlegroups.com
Hi, Jim,

Sorry for the late reply; this weekend was extremely busy, and, yeah, on Friday I spent all my time coding and didn't get around to the instructions until late. I hope to have them posted within 24 hours, but I won't vouch for their accuracy until I test them, i.e., I want to install a fresh Ubuntu in VirtualBox and go through the instructions to make sure they're complete.

Our production server is running Apache 2.2.8, Python 2.5.2, Psql 8.2.7, and has PostGIS 1.3.6 installed. I think you can run Python 2.6 no problem. Psql 8.3 also works if you edit scripts/permissions-cleanup.sh and change '8.2' to '8.3'.

Hope that helps!!

Landon

JimN-LostArt

unread,
Feb 8, 2010, 5:16:58 PM2/8/10
to Cyclopath Development
Hi Landon,

Thanks for the version info. I guessing it'll take me a day (or more)
just to install the packages, so the instructions will arrive just
about the right time. If not, I just proceed with the old
instructions.

Good news: I (just) got Flashclient built! I even ran it in a browser
and got the interface displayed (along with continuous complaints
about no connection, of course).

Thanks again,

Jim


On Feb 8, 1:20 pm, Landon Bouma <land...@cs.umn.edu> wrote:
> Hi, Jim,
>
> Sorry for the late reply; this weekend was extremely busy, and, yeah, on
> Friday I spent all my time coding and didn't get around to the instructions
> until late. I hope to have them posted within 24 hours, but I won't vouch
> for their accuracy until I test them, i.e., I want to install a fresh Ubuntu
> in VirtualBox and go through the instructions to make sure they're complete.
>
> Our production server is running Apache 2.2.8, Python 2.5.2, Psql 8.2.7, and
> has PostGIS 1.3.6 installed. I think you can run Python 2.6 no problem. Psql
> 8.3 also works if you edit scripts/permissions-cleanup.sh and change '8.2'
> to '8.3'.
>
> Hope that helps!!
>
> Landon
>

Landon Bouma

unread,
Feb 10, 2010, 11:27:21 AM2/10/10
to cyclop...@googlegroups.com
Jim,

I've got an install guide started on the Wiki

http://cyclopath.org/wiki/Tech:Open_Source/Install_Guide

Turns out takes a while to get 2000 lines of notes into a Wiki!

I'll get the remainder posted soon, but what's up so far should help if you need any assistance getting the machine initially configured.

What's missing is installing the Flash Debug Plugin on x64 machines, and documenting a step-by-step of downloading and installing the source from http://cyclopath.org/wiki/Tech:Source_Code.

I also need to install Ubuntu in VirtualBox to verify all my instructions. The instructions I posted were gleaned from my native Ubuntu installation at work and from my Fedora installation in VirtualBox at home, so I'm not 100% sure they're accurate for Ubuntu in VirtualBox.

Happy Hacking!

Landon


Reid Priedhorsky

unread,
Feb 10, 2010, 11:52:44 PM2/10/10
to cyclop...@googlegroups.com
JimN-LostArt wrote:
>
> Good news: I (just) got Flashclient built! I even ran it in a browser
> and got the interface displayed (along with continuous complaints
> about no connection, of course).

Yay!! :)

Reid

Reply all
Reply to author
Forward
0 new messages