LinuxMCE Forums

General => Developers => Topic started by: Matthew on January 13, 2008, 02:54:54 pm

Title: 0710b2 Build Errors
Post by: Matthew on January 13, 2008, 02:54:54 pm
I downloaded the source from the Charon Media SVN according to the wiki "Source Code (http://wiki.linuxmce.org/index.php/Source_Code)" article:
Quote from: [url=http://wiki.linuxmce.org/index.php/Source_Code#Current_Source]Source Code: Current Source[/url]
# Download snapshot (391MiB)
wget http://www.charonmedia.org/lmce-1465.tbz

# Test checksum to ensure it was downloaded intact.
md5sum lmce-1465.tbz # should be b3d4b3f6b33ff5e6c4641390f2314095

# Update snapshot (uncompressed: 1823MiB either snapshot or updated).
tar xfj lmce-1465.tbz
cd lmce
svn update

# Build from source (optional) to 3692MiB, total source+build = 5515MiB.
./configure
make

 I get some build errors (in KDE, launch_manager, and SimplePhone)
Quote from: make
checking for KDE... configure: error:
in the prefix, you've chosen, are no KDE headers installed. This will fail.
So, check this please and use another prefix!
make[3]: *** No targets specified and no makefile found.  Stop.
make[3]: Entering directory `/opt/lmce/src/lmce/src/lmce_launch_manager'
make[3]: Leaving directory `/opt/lmce/src/lmce/src/lmce_launch_manager'
cp: cannot stat `src/lmce_launch_manager': No such file or directory
make -f Makefile.cvs; LDFLAGS="-L../../lib" CPPFLAGS="-I../../ -I../../DCE -I../../Gen_Devices" CXXFLAGS="-O0 -g3" ./configure; make ; cp src/lmce_launch_manager ../bin/lmce_launch_manager  ***FAILED***
Error: make -f Makefile.cvs; LDFLAGS="-L../../lib" CPPFLAGS="-I../../ -I../../DCE -I../../Gen_Devices" CXXFLAGS="-O0 -g3" ./configure; make ; cp src/lmce_launch_manager ../bin/lmce_launch_manager  failed!
Continue anyway? [N/y]
make -f Makefile.cvs; LDFLAGS="-L../../lib" CPPFLAGS="-I../../ -I../../DCE -I../../Gen_Devices" CXXFLAGS="-O0 -g3" ./configure; make ; cp src/lmce_launch_manager ../bin/lmce_launch_manager  succeeded
***ERROR*** The file: /opt/lmce/src/lmce/src/lmce_launch_manager/src/lmce_launch_manager was not created.Continue anyway? [N/y] y
/opt/lmce/src/lmce/src/lmce_launch_manager/src/lmce_launch_manager exists
Continue? [N/y] y

(...)

***WARNING B*** /opt/lmce/src/lmce/src/bin/lmce_launch_manager not found
Continue? [N/y] y

(...)

***WARNING B*** /opt/lmce/src/lmce/src/bin/SimplePhone not found
Continue? [N/y] y

I haven't installed the built LMCE, so I don't know whether that KDE error or launch_manager error actually break the final platform (SimplePhone is not a critical component for me right now, but I want to eventually have it right if it's part of the standard distro, and as a test when I get my Cisco 7970 hardphone up and running). But I'd like the install to "just work".

Also, the install takes something like 5-6 hours on a P4/2.4GHz/512MB. That seems excessive, though it's building a hell of a lot of the bundled apps that make LMCE so featureful. But since most of those are available as Debian binary .deb packages, can't an installer just use those, rather than building from source (except as a final option, after the rest is tested and tweaked)? If there's a half-dozen (and eventually hopefully hundreds) of developers building, won't the "self-hosted build environment" at the LMCE project servers supposedly coming with 0710 just get swamped at a fraction of the developer community scale if it's building every external package from source, instead of just installing its binary .deb package?
Title: Re: 0710b2 Build Errors
Post by: danielk on January 13, 2008, 03:46:16 pm
Are you building on 0710 beta 2? I posted a patch to the lmce-dev mailing list which allows the build to mostly complete on amd64 0710 beta 2, I haven't applied it yet because it's a little hacky.

On 0704 you should not be getting the lmce_launch_manager error (we used to get it but this was fixed in SVN some weeks ago).
Title: Re: 0710b2 Build Errors
Post by: Matthew on January 13, 2008, 04:00:29 pm
Are you building on 0710 beta 2? I posted a patch to the lmce-dev mailing list which allows the build to mostly complete on amd64 0710 beta 2, I haven't applied it yet because it's a little hacky.

On 0704 you should not be getting the lmce_launch_manager error (we used to get it but this was fixed in SVN some weeks ago).

I am building according to the Source Code wiki article instructions, which are basically (wget http://www.charonmedia.org/lmce-1465.tbz) and (svn updte), which I believe gives me build 1480. Is that not 0710b2? How do I get and build 0710b2?
Title: Re: 0710b2 Build Errors
Post by: Zaerc on January 13, 2008, 04:31:23 pm
Are you building on 0710 beta 2? I posted a patch to the lmce-dev mailing list which allows the build to mostly complete on amd64 0710 beta 2, I haven't applied it yet because it's a little hacky.

On 0704 you should not be getting the lmce_launch_manager error (we used to get it but this was fixed in SVN some weeks ago).

Wouldn't that be much more usefull if "amd64 0710 beta 2" was actually available to other people as well?
Title: Re: 0710b2 Build Errors
Post by: Matthew on January 13, 2008, 05:25:51 pm
Are you building on 0710 beta 2? I posted a patch to the lmce-dev mailing list which allows the build to mostly complete on amd64 0710 beta 2, I haven't applied it yet because it's a little hacky.

On 0704 you should not be getting the lmce_launch_manager error (we used to get it but this was fixed in SVN some weeks ago).

I am building according to the Source Code wiki article instructions, which are basically (wget http://www.charonmedia.org/lmce-1465.tbz) and (svn updte), which I believe gives me build 1480. Is that not 0710b2? How do I get and build 0710b2?

Incidentally, I am building that source on a host that's already got 0710b2 installed (from the DVD, though against it as a bootable partition rather than a burned DVD disc). Is building 0710b2 against an installed 0710b2 system actually a requirement, or just a convenient coincidence as I was doing both the same day? If so, I want to update the wiki, and maybe suggest an alternative for people who want to develop against code without installing the DVD binaries, so they've always got only the code built from the source (a dependency ambiguity that has mooted many development sessions I've seen over the years, especially when testing on systems only some of which have the running installation with its depended elements, vs others which fail because the depended elements are not included in the source package).
Title: Re: 0710b2 Build Errors
Post by: danielk on January 13, 2008, 05:28:02 pm
Sorry I misspoke, the patch is to build on amd64 beta _1_, which is still available at the URL I posted last month in lmce-dev.

There was no amd64 beta 2.

-- Daniel
Title: Re: 0710b2 Build Errors
Post by: danielk on January 13, 2008, 08:16:45 pm
Zearc,

To build an individual package in src, you need a few things first:
  Development dependencies need to be installed. (make install_deb_packages)
  MakeRelease_PrepFiles needs to be built. (make build/bin/MakeRelease/MakeRelease_Prep)
  MakeRelease_PrepFiles needs to be run. (make makerelease_prep)

Then you can go into the directory containing the source for the package you want and build it normally.
Title: Re: 0710b2 Build Errors
Post by: Matthew on January 14, 2008, 05:34:13 am
Zearc,

To build an individual package in src, you need a few things first:
  Development dependencies need to be installed. (make install_deb_packages)
  MakeRelease_PrepFiles needs to be built. (make build/bin/MakeRelease/MakeRelease_Prep)
  MakeRelease_PrepFiles needs to be run. (make makerelease_prep)

Then you can go into the directory containing the source for the package you want and build it normally.

Is that not also true for building the source according to the wiki instructions I mentioned? Is that source not 0710b2?
Title: Re: 0710b2 Build Errors
Post by: Matthew on January 15, 2008, 06:04:12 am
Are you building on 0710 beta 2? I posted a patch to the lmce-dev mailing list which allows the build to mostly complete on amd64 0710 beta 2, I haven't applied it yet because it's a little hacky.

On 0704 you should not be getting the lmce_launch_manager error (we used to get it but this was fixed in SVN some weeks ago).

I am building according to the Source Code wiki article instructions, which are basically (wget http://www.charonmedia.org/lmce-1465.tbz) and (svn updte), which I believe gives me build 1480. Is that not 0710b2? How do I get and build 0710b2?

I'm bumping because I'm still not even sure I'm building 0710b2 and not some old version. Anyone want to let me in on the secret?
Title: Re: 0710b2 Build Errors
Post by: danielk on January 15, 2008, 09:13:59 pm
vendor/pluto-lmce-branch
contains a mirror of the sources used to build the 0710 betas.[/td][/tr][/table]
trunkcontains sources which can build on a LinuxMCE 704 system, and with the patch I posted to the lmce-dev mailing list can be mostly compiled on 0710 beta 1 or 2.

The pluto-lmce-branch will destroy an existing LinuxMCE install as it builds the DB for the new build. It should only be run on a stock Ubuntu 710 system, with a separate system set up as the database server.

The trunk tree has all the code changes from the pluto-lmce-branch synced to it, but it has a different set of build scripts and makefiles.
Title: Re: 0710b2 Build Errors
Post by: Matthew on January 15, 2008, 10:27:40 pm
vendor/pluto-lmce-branch contains a mirror of the sources used to build the 0710 betas.

So I download the tarball and untar it like the wiki says, then svn update? In the toplevel dir, or do I have to svn update in the vendor/pluto-lmce-branch subdir? And do I have to run make in that subdir, or make in the toplevel dir from the tarball?


trunk contains sources which can build on a LinuxMCE 704 system, and with the patch I posted to the lmce-dev mailing list can be mostly compiled on 0710 beta 1 or 2.

Does that mean that the source download/untar/update/make process has to be run on a system that's already got a 0704 LMCE make/installed from a source tarball, or is the 3CD/1DVD installer version sufficient? And does "mostly compiled on 0710 beta 1 or 2" mean that doing so on 0710b{1,2} will not completely compile? I take it that either way the 0710b2 tarball can't be installed on a simple Kubuntu system (without some 07{04,10} LMCE already installed for running)?

The pluto-lmce-branch will destroy an existing LinuxMCE install as it builds the DB for the new build. It should only be run on a stock Ubuntu 710 system, with a separate system set up as the database server.

The trunk tree has all the code changes from the pluto-lmce-branch synced to it, but it has a different set of build scripts and makefiles.

So let's see if I got this right: if I want to revise 0710b2 source code and build it, then install it to test it, throwing away any other LMCE version, I should install 0710 from the DVD, then download the 0710 tarball like I did and untar it. Then I run (svn update) in the toplevel dir (or in the pluto-lmce-branch subdir?). Then I edit some source file I choose in the pluto-lmce-branch subdirs, then I run make in the toplevel dir  (or in the pluto-lmce-branch subdir?). Then I guess run (make install) in the toplevel subdir  (or in the pluto-lmce-branch subdir?). At which point does the process replace my old LMCE with the new one I'm building - during the make, or during the make install? And what do I have to do to follow this process with a separate system set up as the database server"? Does that mean I need a separate machine, or a separate partition, or something else?

Thanks for clearing all this up. I want to get this going, especially as I'm overdue to revise the Device templates to accommodate state events in the Floorplan. And once I've done it, I want to update the wiki, so others can join us in the fun. Especially with a beta3 coming out, that will be helpful.
Title: Re: 0710b2 Build Errors
Post by: hari on January 15, 2008, 10:35:45 pm
...
you may want to browse http://svn.charonmedia.org/trac.cgi/browser/ and read a svn howto. That should clarify some bits for you.

If you want to build the database packages you need a mysql instance with the build database loaded. It's up to you where you host it. Just make sure the scripts work with your setup.

best regards,
hari
Title: Re: 0710b2 Build Errors
Post by: Matthew on January 16, 2008, 12:59:34 am
you may want to browse http://svn.charonmedia.org/trac.cgi/browser/ and read a svn howto. That should clarify some bits for you.

I've been browsing the SVN/Trac site. But I can't check out the source:
Code: [Select]
matt@lmce:/opt/linuxmce/src$ cd pluto-lmce-branch/
matt@lmce:/opt/linuxmce/src/pluto-lmce-branch$ svn co http://svn.charonmedia.com/trac.cgi/browser/vendor/pluto-lmce-branch
svn: PROPFIND request failed on '/trac.cgi/browser/vendor/pluto-lmce-branch'
svn: PROPFIND of '/trac.cgi/browser/vendor/pluto-lmce-branch': 200 Ok (http://svn.charonmedia.com)


If you want to build the database packages you need a mysql instance with the build database loaded. It's up to you where you host it. Just make sure the scripts work with your setup.

Does the 0710b2 I installed from the DVD include a MySQL instance with the build database loaded? If not, where do I get a copy of the 0710b2 build database, and install it in its own DB under the existing 0704? I suppose not from the SVN root/vendor/pluto-lmce-branch/db_dumps/pluto_[main_build,media,security,telecom].sql , which are each 3 months old (and which fail to co just as the whole branch fails). And does all that SVN code also depend on being installed on a running 0710 installation, or is everything necessary for build and run included in that branch?
Title: Re: 0710b2 Build Errors
Post by: hari on January 16, 2008, 01:28:35 am
Code: [Select]
matt@lmce:/opt/linuxmce/src$ cd pluto-lmce-branch/
matt@lmce:/opt/linuxmce/src/pluto-lmce-branch$ svn co http://svn.charonmedia.com/trac.cgi/browser/vendor/pluto-lmce-branch
svn: PROPFIND request failed on '/trac.cgi/browser/vendor/pluto-lmce-branch'
svn: PROPFIND of '/trac.cgi/browser/vendor/pluto-lmce-branch': 200 Ok (http://svn.charonmedia.com)
try http://svn.charonmedia.com/svn/vendor/pluto-lmce-branch
Quote
Does the 0710b2 I installed from the DVD include a MySQL instance with the build database loaded? If not,
no
Quote
where do I get a copy of the 0710b2 build database, and install it in its own DB under the existing 0704? I suppose not from the SVN root/vendor/pluto-lmce-branch/db_dumps/pluto_[main_build,media,security,telecom].sql , which are each 3 months old (and which fail to co just as the whole branch fails).
I'm not aware of any newer public dumps.
Quote
And does all that SVN code also depend on being installed on a running 0710 installation, or is everything necessary for build and run included in that branch?
it should work on 0704 and on 0710b2 with patches. Watch your libraries on 0704, they are incompatible with the ones compiled from svn. But it's not hard to compile it on any other platform. Few dependencies.

best regards,
Hari
Title: Re: 0710b2 Build Errors
Post by: Matthew on January 16, 2008, 02:26:37 am
Code: [Select]
matt@lmce:/opt/linuxmce/src$ cd pluto-lmce-branch/
matt@lmce:/opt/linuxmce/src/pluto-lmce-branch$ svn co http://svn.charonmedia.com/trac.cgi/browser/vendor/pluto-lmce-branch
svn: PROPFIND request failed on '/trac.cgi/browser/vendor/pluto-lmce-branch'
svn: PROPFIND of '/trac.cgi/browser/vendor/pluto-lmce-branch': 200 Ok (http://svn.charonmedia.com)
try http://svn.charonmedia.com/svn/vendor/pluto-lmce-branch

That's more like it :).

Does the 0710b2 I installed from the DVD include a MySQL instance with the build database loaded? If not,
no
Quote
where do I get a copy of the 0710b2 build database, and install it in its own DB under the existing 0704? I suppose not from the SVN root/vendor/pluto-lmce-branch/db_dumps/pluto_[main_build,media,security,telecom].sql , which are each 3 months old (and which fail to co just as the whole branch fails).
I'm not aware of any newer public dumps.

So do I just drop the existing lmce DB, and run the SVN dumps SQL against the LMCE DB?


And does all that SVN code also depend on being installed on a running 0710 installation, or is everything necessary for build and run included in that branch?
it should work on 0704 and on 0710b2 with patches. Watch your libraries on 0704, they are incompatible with the ones compiled from svn. But it's not hard to compile it on any other platform. Few dependencies.

I'm not using 0704 at all, just 0710b2.

So I should track down the patches DanielK sent to the dev list, apply those after the SVN co is complete, then drop the old DB and run the dumps' SQL. All on a server that's already got 0710b2 installed from the DVD. Right?
Title: Re: 0710b2 Build Errors
Post by: Matthew on January 16, 2008, 04:19:05 pm
Code: [Select]
matt@lmce:/opt/linuxmce/src$ cd pluto-lmce-branch/
matt@lmce:/opt/linuxmce/src/pluto-lmce-branch$ svn co http://svn.charonmedia.com/trac.cgi/browser/vendor/pluto-lmce-branch
svn: PROPFIND request failed on '/trac.cgi/browser/vendor/pluto-lmce-branch'
svn: PROPFIND of '/trac.cgi/browser/vendor/pluto-lmce-branch': 200 Ok (http://svn.charonmedia.com)
try http://svn.charonmedia.com/svn/vendor/pluto-lmce-branch

That's more like it :).

Does the 0710b2 I installed from the DVD include a MySQL instance with the build database loaded? If not,
no
Quote
where do I get a copy of the 0710b2 build database, and install it in its own DB under the existing 0704? I suppose not from the SVN root/vendor/pluto-lmce-branch/db_dumps/pluto_[main_build,media,security,telecom].sql , which are each 3 months old (and which fail to co just as the whole branch fails).
I'm not aware of any newer public dumps.

So do I just drop the existing lmce DB, and run the SVN dumps SQL against the LMCE DB?


And does all that SVN code also depend on being installed on a running 0710 installation, or is everything necessary for build and run included in that branch?
it should work on 0704 and on 0710b2 with patches. Watch your libraries on 0704, they are incompatible with the ones compiled from svn. But it's not hard to compile it on any other platform. Few dependencies.

I'm not using 0704 at all, just 0710b2.

So I should track down the patches DanielK sent to the dev list, apply those after the SVN co is complete, then drop the old DB and run the dumps' SQL. All on a server that's already got 0710b2 installed from the DVD. Right?

And now the mystery is how to actually build the source. I've got it co'ed into /opt/lmce/src/pluto-lmce-branch/ . There's a Makefile in its src/ subdirectory, but (make) or (make all) fails quickly with nothing but errors like
Code: [Select]
mkdir -p bin lib 2>/dev/null
for i in DCE PlutoUtils SerializeClass BD VIPShared FakeEPG; do make -C $i || exit $?; done
make[1]: Entering directory `/opt/lmce/src/pluto-lmce-branch/src/DCE'
Computing dependencies for ../db_wrapper/Socket.cpp/bin/sh: -mkr_t_compile_defines-: No such file or directory
/bin/sh: line 1: ../db_wrapper/Socket.d.19832: No such file or directory
 done
Where are these other depended files supposed to come from? There's a configure and a Makefile in pluto-lmce-branch/src/mce-installer , which configures OK but fails with
Code: [Select]
StepUbuntuExtraCD.o: In function `on_StepUbuntuExtraCD_forward_clicked':
/opt/lmce/src/pluto-lmce-branch/src/mce-installer/src/StepUbuntuExtraCD.c:34: undefined reference to `displayStepUbuntuLiveCD'
and seems to be a build scoped to only the installer CD anyway.

What's the formulat for actually building this thing?
Title: Re: 0710b2 Build Errors
Post by: Matthew on January 17, 2008, 05:11:09 pm
And now the mystery is how to actually build the source. I've got it co'ed into /opt/lmce/src/pluto-lmce-branch/ . There's a Makefile in its src/ subdirectory, but (make) or (make all) fails quickly with nothing but errors like
Code: [Select]
mkdir -p bin lib 2>/dev/null
for i in DCE PlutoUtils SerializeClass BD VIPShared FakeEPG; do make -C $i || exit $?; done
make[1]: Entering directory `/opt/lmce/src/pluto-lmce-branch/src/DCE'
Computing dependencies for ../db_wrapper/Socket.cpp/bin/sh: -mkr_t_compile_defines-: No such file or directory
/bin/sh: line 1: ../db_wrapper/Socket.d.19832: No such file or directory
 done
Where are these other depended files supposed to come from? There's a configure and a Makefile in pluto-lmce-branch/src/mce-installer , which configures OK but fails with
Code: [Select]
StepUbuntuExtraCD.o: In function `on_StepUbuntuExtraCD_forward_clicked':
/opt/lmce/src/pluto-lmce-branch/src/mce-installer/src/StepUbuntuExtraCD.c:34: undefined reference to `displayStepUbuntuLiveCD'
and seems to be a build scoped to only the installer CD anyway.

What's the formulat for actually building this thing?

Bumping because I still can't build from source. It shouldn't be this hard to find instructions for building source to test it. When I've got the instructions and post them on the wiki, it won't be hard to find anymore. But first I've got to get them myself. Then more people can help with the new 0710b3 (and future versions).
Title: Re: 0710b2 Build Errors
Post by: kir on January 17, 2008, 07:45:12 pm
Looks like there is an issue with not replaced the  -mkr_t_compile_defines- tags by proper compile definitions. Don't know why - probably instructions are outdated. Do you need to build some specific binary or the full tree? If former, I would suggest you to do some manual hacks, using already built libraries (looks like there is kind of circular build dependency as far as I can see).
Title: Re: 0710b2 Build Errors
Post by: Matthew on January 17, 2008, 07:58:05 pm
Looks like there is an issue with not replaced the  -mkr_t_compile_defines- tags by proper compile definitions. Don't know why - probably instructions are outdated. Do you need to build some specific binary or the full tree? If former, I would suggest you to do some manual hacks, using already built libraries (looks like there is kind of circular build dependency as far as I can see).

The problem is that there isn't a configure/Makefile in that branch. That branch is the 0710b3. The trunk configure/Makefile don't build the pluto-lmce branch.

There are no "instructions" for doing this, except what I'm piecing together in this thread (and basic SVN and make techniques). But some people here are doing it, so I hope they reveal the secret spells sometime soon. Then I can post actual instructions for everyone.
Title: Re: 0710b2 Build Errors
Post by: danielk on January 17, 2008, 08:02:35 pm
Those are replaced by MakeRelease_Prep, you need to run that on the sources before you try to compile it.
Title: Re: 0710b2 Build Errors
Post by: kir on January 17, 2008, 08:06:49 pm
Looks like there is an issue with not replaced the  -mkr_t_compile_defines- tags by proper compile definitions. Don't know why - probably instructions are outdated. Do you need to build some specific binary or the full tree? If former, I would suggest you to do some manual hacks, using already built libraries (looks like there is kind of circular build dependency as far as I can see).

The problem is that there isn't a configure/Makefile in that branch. That branch is the 0710b3. The trunk configure/Makefile don't build the pluto-lmce branch.

There are no "instructions" for doing this, except what I'm piecing together in this thread (and basic SVN and make techniques). But some people here are doing it, so I hope they reveal the secret spells sometime soon. Then I can post actual instructions for everyone.

You didn't answer my question: are you trying to build everything from sources and create the full CD/DVD or just want to build some specific binary? For the specific application you basically need
1) copy libraries from the existing installation to src/lib
2) build src/MakeRelease_PrepFiles tool
3) run MakeRelease_PrepFiles tool with certain config file against some binary src folder to make it adopt the code (exclude some not-required blocks), replace tags with values (like issue with Makefile you have - -mkr_t_compile_defines )
4) do make in that binary source folder

Building the full DVD is more complex process and I don't know the full details of it.
Title: Re: 0710b2 Build Errors
Post by: Matthew on January 17, 2008, 08:39:55 pm
Looks like there is an issue with not replaced the  -mkr_t_compile_defines- tags by proper compile definitions. Don't know why - probably instructions are outdated. Do you need to build some specific binary or the full tree? If former, I would suggest you to do some manual hacks, using already built libraries (looks like there is kind of circular build dependency as far as I can see).

The problem is that there isn't a configure/Makefile in that branch. That branch is the 0710b3. The trunk configure/Makefile don't build the pluto-lmce branch.

There are no "instructions" for doing this, except what I'm piecing together in this thread (and basic SVN and make techniques). But some people here are doing it, so I hope they reveal the secret spells sometime soon. Then I can post actual instructions for everyone.

You didn't answer my question: are you trying to build everything from sources and create the full CD/DVD or just want to build some specific binary? For the specific application you basically need
1) copy libraries from the existing installation to src/lib
2) build src/MakeRelease_PrepFiles tool
3) run MakeRelease_PrepFiles tool with certain config file against some binary src folder to make it adopt the code (exclude some not-required blocks), replace tags with values (like issue with Makefile you have - -mkr_t_compile_defines )
4) do make in that binary source folder

Building the full DVD is more complex process and I don't know the full details of it.


I thought I had answered that question in the other messages I posted in this thread.

I am trying to build the complete 0710b2 from its SVN sources. Which is approximately the 0710b2 DVD, but including the changes in SVN that are more recent than the 0710b2 DVD release date. Though I suppose for the moment I could get started with just the Disk_Drive , Disk_Drive_Functions , Powerfile_C200 , and Generic_Serial_Device components, which are where I have actual outstanding tasks to complete. But if getting that set up is about as much work (or takes as long) as just getting the complete build instructions, I'm better off with the complete build instructions. Also, since I want to post the complete build instructions so we can have more people building and testing (and maybe fixing), that is another benefit I'm looking for.
Title: Re: 0710b2 Build Errors
Post by: kir on January 17, 2008, 11:18:02 pm
I thought I had answered that question in the other messages I posted in this thread.
Sorry, probably I have missed it while quickly looking into this thread history.

OK, as I don't have installed 0710b2 anymore and I don't know the full DVD build process, the closest approximation I can help with is how to build these applications (and probably most of the other ones) on the existing 0710b3 installation (or just Kubuntu 0710 with access to libs from the /usr/pluto/lib). I assume you already have the toolchain and required extra dev libs installs (if not, it should be easy to see where it fails and install that extra stuff).

Code: [Select]
#create dir and checkout sources
linuxmce@linuxmce:~/sources$ mkdir pluto; cd pluto
linuxmce@linuxmce:~/sources/pluto$ svn co http://svn.linuxmce.com/pluto/trunk/src


#copy libs from existing installation
linuxmce@linuxmce:~/sources/pluto$ cp /usr/pluto/lib/* src/lib/


#build helper tool
linuxmce@linuxmce:~/sources/pluto/src$ cd MakeRelease_PrepFiles/
linuxmce@linuxmce:~/sources/pluto/src/MakeRelease_PrepFiles$ make


#prepare config and run helper tool
linuxmce@linuxmce:~/sources/pluto/src/MakeRelease_PrepFiles$ cd ../bin

linuxmce@linuxmce:~/sources/pluto/src/bin$ echo "compile_defines=-DKDE_LMCE -DDEBUG -DTHREAD_LOG -DLOG_ALL_QUERIES -I/opt/libxine1-pluto/include -I/opt/linphone-1.3.5/include" >> ../tool.conf
linuxmce@linuxmce:~/sources/pluto/src/bin$ echo "compile_libs=-L/opt/libxine1-pluto/lib -L/opt/linphone-1.3.5/lib" >> ../tool.conf
linuxmce@linuxmce:~/sources/pluto/src/bin$ echo "blocks=ubuntu,videowizard" >> ../tool.conf

linuxmce@linuxmce:~/sources/pluto/src/bin$ ./MakeRelease_PrepFiles -p ../ -e "*.cpp,*.h,Makefile*,*.php,*.sh,*.pl,*.awk" -c ../tool.conf


#build apps itself
linuxmce@linuxmce:~/sources/pluto/src/bin$ cd ../Disk_Drive/
linuxmce@linuxmce:~/sources/pluto/src/bin$ make bin

linuxmce@linuxmce:~/sources/pluto/src/Disk_Drive$ cd ../Disk_Drive_Functions/
linuxmce@linuxmce:~/sources/pluto/src/Disk_Drive_Functions$ make

linuxmce@linuxmce:~/sources/pluto/src/Disk_Drive_Functions$ cd ../Powerfile_C200
linuxmce@linuxmce:~/sources/pluto/src/Powerfile_C200$ make bin

linuxmce@linuxmce:~/sources/pluto/src/Powerfile_C200$ cd ../Generic_Serial_Device
linuxmce@linuxmce:~/sources/pluto/src/Generic_Serial_Device$ make bin

The only non-obvious step here is usage of the use of MakeRelease_PrepFiles tool - as I said, it replaces tags with the predefined values (here from tool.conf) plus cuts out blocks not listed in "blocks=..." section of tool.conf. There are actually some extra tags (and you will probably see warning messages when it fails to replace them) but these three should be enough for start. Please write here if you have more questions.
Title: Re: 0710b2 Build Errors
Post by: Matthew on January 17, 2008, 11:30:58 pm
I thought I had answered that question in the other messages I posted in this thread.
Sorry, probably I have missed it while quickly looking into this thread history.


Thanks for helping out.


OK, as I don't have installed 0710b2 anymore and I don't know the full DVD build process, the closest approximation I can help with is how to build these applications (and probably most of the other ones) on the existing 0710b3 installation (or just Kubuntu 0710 with access to libs from the /usr/pluto/lib). I assume you already have the toolchain and required extra dev libs installs (if not, it should be easy to see where it fails and install that extra stuff).

Code: [Select]
#create dir and checkout sources
linuxmce@linuxmce:~/sources$ mkdir pluto; cd pluto
linuxmce@linuxmce:~/sources/pluto$ svn co http://svn.linuxmce.com/pluto/trunk/src


#copy libs from existing installation
linuxmce@linuxmce:~/sources/pluto$ cp /usr/pluto/lib/* src/lib/


#build helper tool
linuxmce@linuxmce:~/sources/pluto/src$ cd MakeRelease_PrepFiles/
linuxmce@linuxmce:~/sources/pluto/src/MakeRelease_PrepFiles$ make


#prepare config and run helper tool
linuxmce@linuxmce:~/sources/pluto/src/MakeRelease_PrepFiles$ cd ../bin

linuxmce@linuxmce:~/sources/pluto/src/bin$ echo "compile_defines=-DKDE_LMCE -DDEBUG -DTHREAD_LOG -DLOG_ALL_QUERIES -I/opt/libxine1-pluto/include -I/opt/linphone-1.3.5/include" >> ../tool.conf
linuxmce@linuxmce:~/sources/pluto/src/bin$ echo "compile_libs=-L/opt/libxine1-pluto/lib -L/opt/linphone-1.3.5/lib" >> ../tool.conf
linuxmce@linuxmce:~/sources/pluto/src/bin$ echo "blocks=ubuntu,videowizard" >> ../tool.conf

linuxmce@linuxmce:~/sources/pluto/src/bin$ ./MakeRelease_PrepFiles -p ../ -e "*.cpp,*.h,Makefile*,*.php,*.sh,*.pl,*.awk" -c ../tool.conf


#build apps itself
linuxmce@linuxmce:~/sources/pluto/src/bin$ cd ../Disk_Drive/
linuxmce@linuxmce:~/sources/pluto/src/bin$ make bin

linuxmce@linuxmce:~/sources/pluto/src/Disk_Drive$ cd ../Disk_Drive_Functions/
linuxmce@linuxmce:~/sources/pluto/src/Disk_Drive_Functions$ make

linuxmce@linuxmce:~/sources/pluto/src/Disk_Drive_Functions$ cd ../Powerfile_C200
linuxmce@linuxmce:~/sources/pluto/src/Powerfile_C200$ make bin

linuxmce@linuxmce:~/sources/pluto/src/Powerfile_C200$ cd ../Generic_Serial_Device
linuxmce@linuxmce:~/sources/pluto/src/Generic_Serial_Device$ make bin

The only non-obvious step here is usage of the use of MakeRelease_PrepFiles tool - as I said, it replaces tags with the predefined values (here from tool.conf) plus cuts out blocks not listed in "blocks=..." section of tool.conf. There are actually some extra tags (and you will probably see warning messages when it fails to replace them) but these three should be enough for start. Please write here if you have more questions.

I was told that the 0710bN (N was 2+ in SVN, now is 3+) code was not in trunk, but rather in the pluto-lmce-branch subdir.

Also, I take it that I have to svn co the source code into a directory on a computer with a working compiled 0710b2 (or b3, but not 0704, and not without any LMCE, right?) installed, right?
Title: Re: 0710b2 Build Errors
Post by: kir on January 17, 2008, 11:43:07 pm
I was told that the 0710bN (N was 2+ in SVN, now is 3+) code was not in trunk, but rather in the pluto-lmce-branch subdir.
Probably you missed this news item: FOSS 0710 (http://wiki.linuxmce.org/index.php/FOSS_0710), now the source code is in public SVN server. The 0710 branch is not re-tagged yet, so use trunk for now.

Also, I take it that I have to svn co the source code into a directory on a computer with a working compiled 0710b2 (or b3, but not 0704, and not without any LMCE, right?) installed, right?
Not exactly: the only thing you need from the 0710b2 (or b3), is content of /usr/pluto/lib - copying of libs is a separate step in that snippet I posted (generally it is required because of circular dependence: you cannot build libs w/o running MakeRelease_PrepFiles; you cannot build MakeRelease_PrepFiles w/o libs). So it is enough to have clean Kubuntu 0710 (or Ubuntu 0710) and check code from SVN into some folder, then copy these libs and follow other steps - everything should build well, except for cases when somelib-dev packages are missing. Presence of installed LMCE on builder box is not required for building binaries.
Title: Re: 0710b2 Build Errors
Post by: hari on January 18, 2008, 12:16:05 am
explains that prep stuff: http://plutohome.com/wiki/index.php/Pluto-CD_Building_HowTo#Build_conf_files

best regards,
Hari
Title: Re: 0710b2 Build Errors
Post by: Matthew on January 18, 2008, 12:39:51 am
I was told that the 0710bN (N was 2+ in SVN, now is 3+) code was not in trunk, but rather in the pluto-lmce-branch subdir.
Probably you missed this news item: FOSS 0710 (http://wiki.linuxmce.org/index.php/FOSS_0710), now the source code is in public SVN server. The 0710 branch is not re-tagged yet, so use trunk for now.

Yes, I did miss that article. How did anyone else know about it?


Also, I take it that I have to svn co the source code into a directory on a computer with a working compiled 0710b2 (or b3, but not 0704, and not without any LMCE, right?) installed, right?
Not exactly: the only thing you need from the 0710b2 (or b3), is content of /usr/pluto/lib - copying of libs is a separate step in that snippet I posted (generally it is required because of circular dependence: you cannot build libs w/o running MakeRelease_PrepFiles; you cannot build MakeRelease_PrepFiles w/o libs). So it is enough to have clean Kubuntu 0710 (or Ubuntu 0710) and check code from SVN into some folder, then copy these libs and follow other steps - everything should build well, except for cases when somelib-dev packages are missing. Presence of installed LMCE on builder box is not required for building binaries.

OK, so I can install Kubuntu 0710 (Ubuntu, too - default GNOME version? Really?), then svn co http://svn.linuxmce.com/pluto/trunk/src into a source root dir, then copy from somewhere the /usr/pluto/lib (from 0710, or is 0704 OK?) into src/lib/ , make in MakeRelease_PrepFiles/ , then append those defs into tools.conf , run MakeRelease_PrepFiles , and then I can make each of those subsystems, right? What's stopping me at that point from making all of 0710?

explains that prep stuff: http://plutohome.com/wiki/index.php/Pluto-CD_Building_HowTo#Build_conf_files

Thanks. Hari, you're evidently building 0710bN from source - what else other than those instructions I just reiterated do I need to do to build all of 0710bN?
Title: Re: 0710b2 Build Errors
Post by: hari on January 18, 2008, 01:02:07 am
OK, so I can install Kubuntu 0710 (Ubuntu, too - default GNOME version? Really?), then svn co http://svn.linuxmce.com/pluto/trunk/src into a source root dir, then copy from somewhere the /usr/pluto/lib (from 0710, or is 0704 OK?) into src/lib/ , make in MakeRelease_PrepFiles/ , then append those defs into tools.conf , run MakeRelease_PrepFiles , and then I can make each of those subsystems, right? What's stopping me at that point from making all of 0710?
you can do that pretty much everywhere if you tweak the Makefiles manually until you can compile MakeRelease_PrepFiles. So the chicken-egg-problem is not that worse in this case. Etch worked fine for me, too.
Quote
explains that prep stuff: http://plutohome.com/wiki/index.php/Pluto-CD_Building_HowTo#Build_conf_files

Thanks. Hari, you're evidently building 0710bN from source - what else other than those instructions I just reiterated do I need to do to build all of 0710bN?
no. I'm building the charonmedia tree from source. Daniel invested much effort to provide a makefile (kudos!)

Maybe it would help if you read the lmce-dev archives. So for short:
those hints give you the possibility to compile the packages in trunk/src/. Maybe thats sufficient for you if you simply want to test/debug/extend/dcegen devices (but watch your libraries if using 0704, LD_LIBRARY_PATH may be helpful)

If you want more than that you might want to look at MakeRelease. It pulls the package information from pluto_main and generates the deb packages (kinda Plut'o'Matic[TM]) for you. Maybe you want to look at the DCEGen process further. You can specify which files to package on the device template.

Building the DB packages gets tricky for now. The hard way: pull all the tables needed from your installation, recreate the sqlCVS repositories and use these as build db. The easy way: get the db dumps from pluto.
As far as i know (and that may be completely wrong) the build scripts for the db packages simply do a sqlCVS dump and then collect the .sqlcvs files.

Have not looked deeply at the installer yet. Maybe some one could shed light on that.

I take your promise that you document that in the Wiki ;)

best regards,
Hari
Title: Re: 0710b2 Build Errors
Post by: kir on January 18, 2008, 01:06:39 am
I was told that the 0710bN (N was 2+ in SVN, now is 3+) code was not in trunk, but rather in the pluto-lmce-branch subdir.
Probably you missed this news item: FOSS 0710 (http://wiki.linuxmce.org/index.php/FOSS_0710), now the source code is in public SVN server. The 0710 branch is not re-tagged yet, so use trunk for now.

Yes, I did miss that article. How did anyone else know about it?

http://linuxmce.org/news.php?id=15#comments (http://linuxmce.org/news.php?id=15#comments)  =>  http://wiki.linuxmce.org/index.php/Version_0710 (http://wiki.linuxmce.org/index.php/Version_0710) => http://wiki.linuxmce.org/index.php/FOSS_0710 (http://wiki.linuxmce.org/index.php/FOSS_0710)


Also, I take it that I have to svn co the source code into a directory on a computer with a working compiled 0710b2 (or b3, but not 0704, and not without any LMCE, right?) installed, right?
Not exactly: the only thing you need from the 0710b2 (or b3), is content of /usr/pluto/lib - copying of libs is a separate step in that snippet I posted (generally it is required because of circular dependence: you cannot build libs w/o running MakeRelease_PrepFiles; you cannot build MakeRelease_PrepFiles w/o libs). So it is enough to have clean Kubuntu 0710 (or Ubuntu 0710) and check code from SVN into some folder, then copy these libs and follow other steps - everything should build well, except for cases when somelib-dev packages are missing. Presence of installed LMCE on builder box is not required for building binaries.

OK, so I can install Kubuntu 0710 (Ubuntu, too - default GNOME version? Really?),
Ubuntu - yes, I don't think there is difference (Ubuntu and Kubuntu differ only in Gnome/KDE packages), so you can use Ubuntu as build system too.

then svn co http://svn.linuxmce.com/pluto/trunk/src into a source root dir, then copy from somewhere the /usr/pluto/lib (from 0710, or is 0704 OK?) into src/lib/ ,
If you are not going to rebuild libraries, then better to copy them from 0710b3, so all other apps will be linked against them (Disk_Drive, etc. - whatever you are going to build). If you don't have 0710b3 installed, take libs from here (http://kva-kva.info/files/linuxmce-0710b3-lib.tar.bz2).

make in MakeRelease_PrepFiles/ , then append those defs into tools.conf , run MakeRelease_PrepFiles , and then I can make each of those subsystems, right? What's stopping me at that point from making all of 0710?
Few things: 1) you may not have g++ installed, and also dev packages (available usually as libsomething-dev in Ubuntu, but there may be certain special requirements for something like Orbiter, I don't know which exactly so this is question of "try and see")  2) if you will get a compile error with complain about some wrong construction like <?-mkr-... this means that my minimalistic tool.conf was not enough and you need to define more tags for substitution and re-run MakeRelease_PrepFiles
Title: Re: 0710b2 Build Errors
Post by: Matthew on January 18, 2008, 01:41:50 am
I was told that the 0710bN (N was 2+ in SVN, now is 3+) code was not in trunk, but rather in the pluto-lmce-branch subdir.
Probably you missed this news item: FOSS 0710 (http://wiki.linuxmce.org/index.php/FOSS_0710), now the source code is in public SVN server. The 0710 branch is not re-tagged yet, so use trunk for now.

Yes, I did miss that article. How did anyone else know about it?

http://linuxmce.org/news.php?id=15#comments (http://linuxmce.org/news.php?id=15#comments)  =>  http://wiki.linuxmce.org/index.php/Version_0710 (http://wiki.linuxmce.org/index.php/Version_0710) => http://wiki.linuxmce.org/index.php/FOSS_0710 (http://wiki.linuxmce.org/index.php/FOSS_0710)

Those news announcements should get Cc'd to the forum, or really the front page news should be just a link to a forum post. Yet another compartment into which LMCE info falls that people can easily miss. Thanks for the pointer.


Also, I take it that I have to svn co the source code into a directory on a computer with a working compiled 0710b2 (or b3, but not 0704, and not without any LMCE, right?) installed, right?
Not exactly: the only thing you need from the 0710b2 (or b3), is content of /usr/pluto/lib - copying of libs is a separate step in that snippet I posted (generally it is required because of circular dependence: you cannot build libs w/o running MakeRelease_PrepFiles; you cannot build MakeRelease_PrepFiles w/o libs). So it is enough to have clean Kubuntu 0710 (or Ubuntu 0710) and check code from SVN into some folder, then copy these libs and follow other steps - everything should build well, except for cases when somelib-dev packages are missing. Presence of installed LMCE on builder box is not required for building binaries.

OK, so I can install Kubuntu 0710 (Ubuntu, too - default GNOME version? Really?),
Ubuntu - yes, I don't think there is difference (Ubuntu and Kubuntu differ only in Gnome/KDE packages), so you can use Ubuntu as build system too.

I thought that LMCE depends on the KDE packages in Kubuntu, so installing LMCE on a (GNOME) Ubuntu installation would fail.


then svn co http://svn.linuxmce.com/pluto/trunk/src into a source root dir, then copy from somewhere the /usr/pluto/lib (from 0710, or is 0704 OK?) into src/lib/ ,
If you are not going to rebuild libraries, then better to copy them from 0710b3, so all other apps will be linked against them (Disk_Drive, etc. - whatever you are going to build). If you don't have 0710b3 installed, take libs from here (http://kva-kva.info/files/linuxmce-0710b3-lib.tar.bz2).

Thanks for publishing that. But when I've posted these instructions in the wiki, I don't think you want to be the depended source of those files. Probably I'll upload the tarfile to the wiki. Better yet would be for them to live in SVN, so all the dependencies can be satisfied with one co (especially as those scripts will have versions).

make in MakeRelease_PrepFiles/ , then append those defs into tools.conf , run MakeRelease_PrepFiles , and then I can make each of those subsystems, right? What's stopping me at that point from making all of 0710?
Few things: 1) you may not have g++ installed, and also dev packages (available usually as libsomething-dev in Ubuntu, but there may be certain special requirements for something like Orbiter, I don't know which exactly so this is question of "try and see")  2) if you will get a compile error with complain about some wrong construction like <?-mkr-... this means that my minimalistic tool.conf was not enough and you need to define more tags for substitution and re-run MakeRelease_PrepFiles

As long as I have all the "content" against which to run the make, I can make a list of depended packages that must be installed. Maybe later someone can make a metapackage that's hosted at linuxmce.org that in turn depends on those packages. Some good momentum towards installing all of LMCE from .debs , and using APT to ensure the LMCE distro is updateable like a proper debian-type distro.
Title: Re: 0710b2 Build Errors
Post by: kir on January 18, 2008, 05:25:42 pm
Also, I take it that I have to svn co the source code into a directory on a computer with a working compiled 0710b2 (or b3, but not 0704, and not without any LMCE, right?) installed, right?
Not exactly: the only thing you need from the 0710b2 (or b3), is content of /usr/pluto/lib - copying of libs is a separate step in that snippet I posted (generally it is required because of circular dependence: you cannot build libs w/o running MakeRelease_PrepFiles; you cannot build MakeRelease_PrepFiles w/o libs). So it is enough to have clean Kubuntu 0710 (or Ubuntu 0710) and check code from SVN into some folder, then copy these libs and follow other steps - everything should build well, except for cases when somelib-dev packages are missing. Presence of installed LMCE on builder box is not required for building binaries.

OK, so I can install Kubuntu 0710 (Ubuntu, too - default GNOME version? Really?),
Ubuntu - yes, I don't think there is difference (Ubuntu and Kubuntu differ only in Gnome/KDE packages), so you can use Ubuntu as build system too.

I thought that LMCE depends on the KDE packages in Kubuntu, so installing LMCE on a (GNOME) Ubuntu installation would fail.

Installation will probably fail - but building is a separate thing. But you will probably need to install some missing dev packages like qt and kde if you will want to build, say limce_launch_manager


then svn co http://svn.linuxmce.com/pluto/trunk/src into a source root dir, then copy from somewhere the /usr/pluto/lib (from 0710, or is 0704 OK?) into src/lib/ ,
If you are not going to rebuild libraries, then better to copy them from 0710b3, so all other apps will be linked against them (Disk_Drive, etc. - whatever you are going to build). If you don't have 0710b3 installed, take libs from here (http://kva-kva.info/files/linuxmce-0710b3-lib.tar.bz2).

Thanks for publishing that. But when I've posted these instructions in the wiki, I don't think you want to be the depended source of those files. Probably I'll upload the tarfile to the wiki. Better yet would be for them to live in SVN, so all the dependencies can be satisfied with one co (especially as those scripts will have versions).

Agree, probably they will be published on the public builder boxes when they will be ready.


make in MakeRelease_PrepFiles/ , then append those defs into tools.conf , run MakeRelease_PrepFiles , and then I can make each of those subsystems, right? What's stopping me at that point from making all of 0710?
Few things: 1) you may not have g++ installed, and also dev packages (available usually as libsomething-dev in Ubuntu, but there may be certain special requirements for something like Orbiter, I don't know which exactly so this is question of "try and see")  2) if you will get a compile error with complain about some wrong construction like <?-mkr-... this means that my minimalistic tool.conf was not enough and you need to define more tags for substitution and re-run MakeRelease_PrepFiles

As long as I have all the "content" against which to run the make, I can make a list of depended packages that must be installed. Maybe later someone can make a metapackage that's hosted at linuxmce.org that in turn depends on those packages. Some good momentum towards installing all of LMCE from .debs , and using APT to ensure the LMCE distro is updateable like a proper debian-type distro.

As far as I know, LMCE has different update system, based not completely on debian-type approach (in the sense that no "apt-get upgrade" runs in the background), but more likely a manually prepared list of upgraded packages which are auto-downloaded by LMCE. This is how at least LMCE 0704 worked - and there were reasons to design it this way. I cannot provide much information on that, maybe there is something in the wiki.. here it is: http://wiki.linuxmce.org/index.php/Update_System (http://wiki.linuxmce.org/index.php/Update_System)
Title: Re: 0710b2 Build Errors
Post by: Matthew on January 19, 2008, 12:31:33 am
So I restarted on a running  LMCE installed from the 0710b2 DVD (mounted image). (svn co  http://svn.linuxmce.com/pluto/trunk/src) into a src directory, then the instructions for making the build scripts and copying the existing pluto libs let me successfully make each of those Disk_Drive , Powerfile_C200 and Generic_Serial_Device directories. But when I tried (make all) in the toplevel src directory, it failed because the makefile specified building a Mozilla_Plugin directory that doesn't exist. I removed that from src/Makefile and src/Makefile_all , and ran make again. It made a lot of directories, but failed with
Code: [Select]
make[1]: Entering directory `/opt/lmce/src/DCERouter'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/lmce/src/DCERouter'
make[1]: Entering directory `/opt/lmce/src/MessageSend'
make[1]: *** No targets specified and no makefile found.  Stop.
make[1]: Leaving directory `/opt/lmce/src/MessageSend'
make: *** [apps] Error 2
And in fact, there is no Makefile in src/MessageSend , but there is Makefile.MessageSend and Makefile.moxi . There's a make_package.sh in that dir, but running it gives
Code: [Select]
Syntax: ./make_package.sh <application name> <version> <device template id>
What does it need to make it?
Title: Re: 0710b2 Build Errors
Post by: kir on January 19, 2008, 12:57:08 am
So I restarted on a running  LMCE installed from the 0710b2 DVD (mounted image). (svn co  http://svn.linuxmce.com/pluto/trunk/src) into a src directory, then the instructions for making the build scripts and copying the existing pluto libs let me successfully make each of those Disk_Drive , Powerfile_C200 and Generic_Serial_Device directories. But when I tried (make all) in the toplevel src directory, it failed because the makefile specified building a Mozilla_Plugin directory that doesn't exist. I removed that from src/Makefile and src/Makefile_all , and ran make again. It made a lot of directories, but failed with
Code: [Select]
make[1]: Entering directory `/opt/lmce/src/DCERouter'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/lmce/src/DCERouter'
make[1]: Entering directory `/opt/lmce/src/MessageSend'
make[1]: *** No targets specified and no makefile found.  Stop.
make[1]: Leaving directory `/opt/lmce/src/MessageSend'
make: *** [apps] Error 2
And in fact, there is no Makefile in src/MessageSend , but there is Makefile.MessageSend and Makefile.moxi . There's a make_package.sh in that dir, but running it gives
Code: [Select]
Syntax: ./make_package.sh <application name> <version> <device template id>
What does it need to make it?

1) I am not sure that top-level Makefile is up-to-date. As far as I know, Pluto (and probably LMCE) builds "packages", one-by-one. Packages itself are configured via pluto_main DB, and as the result, the .deb files are also generated. So using top-level Makefile makes no sense (imho).

2) For MessageSend, "make -f Makefile.MessageSend" in MessageSend folder worked for me.
Title: Re: 0710b2 Build Errors
Post by: Matthew on January 19, 2008, 04:40:19 am
I tried (cd src/MessageSend; ln -s Makefile.MessageSend Makefile; cd ..; make all) and the make completed successfully. Any ideas about the missing Mozilla_Plugin dir specified in the toplevel makefile? There are src/Gen_Devices/Mozilla_PluginBase.[cpp,h] files.

And how to install what I just made, so I can update the LMCE 0710b2 with the version I just made, and test it?
Title: Re: 0710b2 Build Errors
Post by: kir on January 19, 2008, 11:31:45 am
I tried (cd src/MessageSend; ln -s Makefile.MessageSend Makefile; cd ..; make all) and the make completed successfully. Any ideas about the missing Mozilla_Plugin dir specified in the toplevel makefile? There are src/Gen_Devices/Mozilla_PluginBase.[cpp,h] files.

And how to install what I just made, so I can update the LMCE 0710b2 with the version I just made, and test it?

1) Looking at topleled makefile (the one in trunk/src/Makefile), I don't think it includes _all_ the stuff.
2) To test, you can copy the ./bin/ contents to /usr/pluto/bin and ./lib/ to /usr/pluto/lib
Title: Re: 0710b2 Build Errors
Post by: Matthew on January 19, 2008, 10:33:32 pm
I tried (cd src/MessageSend; ln -s Makefile.MessageSend Makefile; cd ..; make all) and the make completed successfully. Any ideas about the missing Mozilla_Plugin dir specified in the toplevel makefile? There are src/Gen_Devices/Mozilla_PluginBase.[cpp,h] files.

1) Looking at topleled makefile (the one in trunk/src/Makefile), I don't think it includes _all_ the stuff.

How does the LMCE release team build the beta (and final) releases, I wonder?


And how to install what I just made, so I can update the LMCE 0710b2 with the version I just made, and test it?

2) To test, you can copy the ./bin/ contents to /usr/pluto/bin and ./lib/ to /usr/pluto/lib

I'll try it.

Another question: do you know a good environment/tool for tracing callgraphs/codepaths in a complex project full of wrappers like this one? Maybe cflow or CodeViz...