[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] appWeb not compiling



I actually got it running yesterday.
Here are the steps:

copy user/appWeb/conf/make.os.LINUX to user/appWeb/conf/make.os.UCLINUX

in mpr/UNIX/os.cpp change fork() to #ifdef EMBED vfork() #else fork() and
always open /dev/urandom instead of /dev/random (unless I can figure out how to get /dev/random)

modify mpr/Makefile to change the libminiStc++ build to be static instead of shared since the toolchain doesn't know about -shared. There should probably be a configure option
to do this.

modify bin/bld to remove --enable-new-dtags since the linker doesn't know what that is

make menuconfig and turn on appWeb
make dep
make

Once you build the kernel the appWeb stuff caches the build state, so you can run
./configure <options> and make again directly in the appWeb directory.
I run
./configure --disable-modules --disable-multi-thread --without-ssl --with-cgi=builtin
--enable-run-as-service --disable-rom-fs

Looks like it needs pthreads to be multi-threaded. I haven't looked into that yet.
They provide a tool to create a romfs but I haven't played with that yet.

You also need to create a .conf file. It looks for appWeb.conf by default. They supply
some sample ones.

To run it, I stuck my files in /tmp (appWeb.conf and some test html files) and ran as:
cd /tmp
appWeb -d -r .

If you set the log level to 9 in the .conf file it spits out all kinds of useful stuff to error.log.

John Williams wrote:
Hi Jim,

I'll try to get a look at this soon. Google shows the same problem has been reported on the uclinux-dev list so it doesn't seem microblaze-specific.

Regards,

John

Jim Van Vorst wrote:
Hello all,

I get an error trying to compile appWeb:

No rule to make target `conf/make.os.bld_cpu', needed by `make.os'

in user/appWeb directory

Anyone have a patch for this?

Thanks,
Jim

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/



___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/


___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/