cross compiling libJudy
I am attempting to cross compile libJudy for the avr32 processor
i am using the following to configure the makefile: Code:
./configure --host=avr32-linux --prefix=/usr/avr32-linux --build=i686-pc-linux-gnu Code:
# make Is this a flaw in the makefile or am i running configure incorrectly? |
Quote:
but anyway, i changed the following line in the makefile from: Code:
$(CC) $(INCLUDES) $(AM_CFLAGS) -UJU_64BIT -g -O2 -o JudyLTablesGen JudyLTablesGen.c; ./JudyLTablesGen Code:
gcc $(INCLUDES) $(AM_CFLAGS) -UJU_64BIT -g -O2 -o JudyLTablesGen JudyLTablesGen.c; ./JudyLTablesGen I also changed the same thing in one of the other Makefiles that had the same problem with Judy1TablesGen. make and make install completed successfully and the program that is using libJudy successfully linked against the library. unfortunately, i do not actually have the processor with me to test it on. :( So it may have only appeared to fix it. i will post when i found out for sure (in case someone else ever runs across this same problem.) |
I have no experience with libJudy, much less ever heard of it, and my knowledge with cross-compiling is also not that proficient.
However, if you are trying to cross-compile source code to work on a difference architecture than your host's i686, then you will need the appropriate cross-compiler... and in your case, one for the avr32 processor. It seems that you have this cross-compiler, therefore I think the issue you are having is with the Makefile. It should not attempt to run the cross-compiled application on your i686. It won't work. If you compile with the host's gcc compiler, then the application will not run on the avr32. Cross-compiling is a tricky "game", in which you need to ensure that you have the proper C (and if necessary C++) libraries for the target system, including header files. |
Thanks for the reply.
Quote:
The more I looked at it the more it seemed that it is the Makefile. I really wanted to insure that i am using the correct options with the configure script. thanks. |
All times are GMT -5. The time now is 01:48 AM. |