LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Building a linux/unix project on a windows platform (https://www.linuxquestions.org/questions/programming-9/building-a-linux-unix-project-on-a-windows-platform-657693/)

enduser000 07-23-2008 09:27 AM

Building a linux/unix project on a windows platform
 
Hello,
This is my first post in the forum and it's a tuff one. I am trying to compile pearpc (http://pearpc.net/pearpc_net_package.php fo rthe source or project) on my vista computer. I have gotten some help from this thread (http://www.cplusplus.com/forum/windows/3018/) but still can't seem to get it right. I have gotten MinGW, MSYS, and NASM but still get these errors:

/mingw/bin/make all-recursive
make[1]: Entering directory `c:/pearpc-0.4'
Making all in doc
make[2]: Entering directory `c:/pearpc-0.4/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `c:/pearpc-0.4/doc'
Making all in src
make[2]: Entering directory `c:/pearpc-0.4/src'
Making all in cpu
make[3]: Entering directory `c:/pearpc-0.4/src/cpu'
Making all in cpu_jitc_x86
make[4]: Entering directory `c:/pearpc-0.4/src/cpu/cpu_jitc_x86'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `c:/pearpc-0.4/src/cpu/cpu_jitc_x86'
make[4]: Entering directory `c:/pearpc-0.4/src/cpu'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `c:/pearpc-0.4/src/cpu'
make[3]: Leaving directory `c:/pearpc-0.4/src/cpu'
Making all in debug
make[3]: Entering directory `c:/pearpc-0.4/src/debug'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `c:/pearpc-0.4/src/debug'
Making all in io
make[3]: Entering directory `c:/pearpc-0.4/src/io'
Making all in 3c90x
make[4]: Entering directory `c:/pearpc-0.4/src/io/3c90x'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `c:/pearpc-0.4/src/io/3c90x'
Making all in rtl8139
make[4]: Entering directory `c:/pearpc-0.4/src/io/rtl8139'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `c:/pearpc-0.4/src/io/rtl8139'
Making all in prom
make[4]: Entering directory `c:/pearpc-0.4/src/io/prom'
Making all in fs
make[5]: Entering directory `c:/pearpc-0.4/src/io/prom/fs'
Making all in hfs
make[6]: Entering directory `c:/pearpc-0.4/src/io/prom/fs/hfs'
make[6]: Nothing to be done for `all'.
make[6]: Leaving directory `c:/pearpc-0.4/src/io/prom/fs/hfs'
Making all in hfsplus
make[6]: Entering directory `c:/pearpc-0.4/src/io/prom/fs/hfsplus'
make[6]: Nothing to be done for `all'.
make[6]: Leaving directory `c:/pearpc-0.4/src/io/prom/fs/hfsplus'
make[6]: Entering directory `c:/pearpc-0.4/src/io/prom/fs'
make[6]: Nothing to be done for `all-am'.
make[6]: Leaving directory `c:/pearpc-0.4/src/io/prom/fs'
make[5]: Leaving directory `c:/pearpc-0.4/src/io/prom/fs'
make[5]: Entering directory `c:/pearpc-0.4/src/io/prom'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `c:/pearpc-0.4/src/io/prom'
make[4]: Leaving directory `c:/pearpc-0.4/src/io/prom'
Making all in graphic
make[4]: Entering directory `c:/pearpc-0.4/src/io/graphic'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `c:/pearpc-0.4/src/io/graphic'
Making all in pic
make[4]: Entering directory `c:/pearpc-0.4/src/io/pic'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `c:/pearpc-0.4/src/io/pic'
Making all in cuda
make[4]: Entering directory `c:/pearpc-0.4/src/io/cuda'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `c:/pearpc-0.4/src/io/cuda'
Making all in pci
make[4]: Entering directory `c:/pearpc-0.4/src/io/pci'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `c:/pearpc-0.4/src/io/pci'
Making all in ide
make[4]: Entering directory `c:/pearpc-0.4/src/io/ide'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `c:/pearpc-0.4/src/io/ide'
Making all in macio
make[4]: Entering directory `c:/pearpc-0.4/src/io/macio'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `c:/pearpc-0.4/src/io/macio'
Making all in nvram
make[4]: Entering directory `c:/pearpc-0.4/src/io/nvram'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `c:/pearpc-0.4/src/io/nvram'
Making all in usb
make[4]: Entering directory `c:/pearpc-0.4/src/io/usb'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `c:/pearpc-0.4/src/io/usb'
make[4]: Entering directory `c:/pearpc-0.4/src/io'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `c:/pearpc-0.4/src/io'
make[3]: Leaving directory `c:/pearpc-0.4/src/io'
Making all in system
make[3]: Entering directory `c:/pearpc-0.4/src/system'
Making all in arch
make[4]: Entering directory `c:/pearpc-0.4/src/system/arch'
Making all in x86
make[5]: Entering directory `c:/pearpc-0.4/src/system/arch/x86'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `c:/pearpc-0.4/src/system/arch/x86'
make[5]: Entering directory `c:/pearpc-0.4/src/system/arch'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `c:/pearpc-0.4/src/system/arch'
make[4]: Leaving directory `c:/pearpc-0.4/src/system/arch'
Making all in osapi
make[4]: Entering directory `c:/pearpc-0.4/src/system/osapi'
Making all in win32
make[5]: Entering directory `c:/pearpc-0.4/src/system/osapi/win32'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `c:/pearpc-0.4/src/system/osapi/win32'
make[5]: Entering directory `c:/pearpc-0.4/src/system/osapi'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `c:/pearpc-0.4/src/system/osapi'
make[4]: Leaving directory `c:/pearpc-0.4/src/system/osapi'
Making all in ui
make[4]: Entering directory `c:/pearpc-0.4/src/system/ui'
Making all in win32
make[5]: Entering directory `c:/pearpc-0.4/src/system/ui/win32'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `c:/pearpc-0.4/src/system/ui/win32'
make[5]: Entering directory `c:/pearpc-0.4/src/system/ui'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `c:/pearpc-0.4/src/system/ui'
make[4]: Leaving directory `c:/pearpc-0.4/src/system/ui'
make[4]: Entering directory `c:/pearpc-0.4/src/system'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `c:/pearpc-0.4/src/system'
make[3]: Leaving directory `c:/pearpc-0.4/src/system'
Making all in tools
make[3]: Entering directory `c:/pearpc-0.4/src/tools'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `c:/pearpc-0.4/src/tools'
make[3]: Entering directory `c:/pearpc-0.4/src'
g++ -Wundef -Wall -Woverloaded-virtual -fsigned-char -O2 -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pipe -o ppc.exe main.o ppc_img.o ppc_font.o ppc_button_changecd.o configparser.o cpu/cpu_jitc_x86/libcpu.a io/graphic/libgraphic.a io/ide/libide.a system/ui/win32/libui.a debug/libdebug.a io/libio.a io/prom/libprom.a io/prom/fs/libfs.a io/prom/fs/hfs/libhfs.a io/prom/fs/hfsplus/libhfsplus.a io/pic/libpic.a io/pci/libpci.a io/macio/libmacio.a io/nvram/libnvram.a io/cuda/libcuda.a io/3c90x/lib3c90x.a io/rtl8139/librtl8139.a io/usb/libusb.a tools/libtools.a system/libsystem.a system/arch/x86/libsarch.a system/osapi/win32/libsosapi.a system/ui/win32/resources.o -lgdi32 -lcomdlg32 -lwinmm
make[3]: Leaving directory `c:/pearpc-0.4/src'
make[2]: Leaving directory `c:/pearpc-0.4/src'
make[1]: Leaving directory `c:/pearpc-0.4'

Any help is greatly appreciated as I am farly new to programming and not expierenced in a linux environment. Thanks in advance,

enduser000

jiml8 07-23-2008 11:45 AM

There are no errors in the listing you provided. What is the problem? Doesn't run? Try doing a make clean first, then try to compile it.

enduser000 07-23-2008 04:08 PM

Quote:

Originally Posted by jiml8 (Post 3223906)
There are no errors in the listing you provided. What is the problem? Doesn't run? Try doing a make clean first, then try to compile it.

... ? I am trying to do a clean compile. I just copied the output from the make command after I cd'd to the pearpc folder and did ./configure. I don't understad what I'm doing wrong...

enduser000

leedude 07-23-2008 07:12 PM

by the looks of it...nothing.
seems fine.
Don't be scared by all of the stuff it spits out - that just says it's working.
It will actually say Error if there is a problem - which there isn't.

Usually, you need to run 'make install' next,
that will copy the executables to your bin directories like /usr/bin.
then you can usually type the executable's name in the terminal to run.
if you want the executables put somewhere else, tell it with the ./configure command by adding the --prefix parameter:
Code:

./configure --prefix=some_dir/

enduser000 07-23-2008 10:32 PM

Okay, now I am getting some errors, here they are:

/mingw/bin/make all-recursive
make[1]: Entering directory `c:/pearpc-0.4'
Making all in doc
make[2]: Entering directory `c:/pearpc-0.4/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `c:/pearpc-0.4/doc'
Making all in src
make[2]: Entering directory `c:/pearpc-0.4/src'
Making all in cpu
make[3]: Entering directory `c:/pearpc-0.4/src/cpu'
Making all in cpu_jitc_x86
make[4]: Entering directory `c:/pearpc-0.4/src/cpu/cpu_jitc_x86'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `c:/pearpc-0.4/src/cpu/cpu_jitc_x86'
make[4]: Entering directory `c:/pearpc-0.4/src/cpu'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `c:/pearpc-0.4/src/cpu'
make[3]: Leaving directory `c:/pearpc-0.4/src/cpu'
Making all in debug
make[3]: Entering directory `c:/pearpc-0.4/src/debug'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `c:/pearpc-0.4/src/debug'
Making all in io
make[3]: Entering directory `c:/pearpc-0.4/src/io'
Making all in 3c90x
make[4]: Entering directory `c:/pearpc-0.4/src/io/3c90x'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `c:/pearpc-0.4/src/io/3c90x'
Making all in rtl8139
make[4]: Entering directory `c:/pearpc-0.4/src/io/rtl8139'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `c:/pearpc-0.4/src/io/rtl8139'
Making all in prom
make[4]: Entering directory `c:/pearpc-0.4/src/io/prom'
Making all in fs
make[5]: Entering directory `c:/pearpc-0.4/src/io/prom/fs'
Making all in hfs
make[6]: Entering directory `c:/pearpc-0.4/src/io/prom/fs/hfs'
make[6]: Nothing to be done for `all'.
make[6]: Leaving directory `c:/pearpc-0.4/src/io/prom/fs/hfs'
Making all in hfsplus
make[6]: Entering directory `c:/pearpc-0.4/src/io/prom/fs/hfsplus'
make[6]: Nothing to be done for `all'.
make[6]: Leaving directory `c:/pearpc-0.4/src/io/prom/fs/hfsplus'
make[6]: Entering directory `c:/pearpc-0.4/src/io/prom/fs'
make[6]: Nothing to be done for `all-am'.
make[6]: Leaving directory `c:/pearpc-0.4/src/io/prom/fs'
make[5]: Leaving directory `c:/pearpc-0.4/src/io/prom/fs'
make[5]: Entering directory `c:/pearpc-0.4/src/io/prom'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `c:/pearpc-0.4/src/io/prom'
make[4]: Leaving directory `c:/pearpc-0.4/src/io/prom'
Making all in graphic
make[4]: Entering directory `c:/pearpc-0.4/src/io/graphic'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `c:/pearpc-0.4/src/io/graphic'
Making all in pic
make[4]: Entering directory `c:/pearpc-0.4/src/io/pic'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `c:/pearpc-0.4/src/io/pic'
Making all in cuda
make[4]: Entering directory `c:/pearpc-0.4/src/io/cuda'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `c:/pearpc-0.4/src/io/cuda'
Making all in pci
make[4]: Entering directory `c:/pearpc-0.4/src/io/pci'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `c:/pearpc-0.4/src/io/pci'
Making all in ide
make[4]: Entering directory `c:/pearpc-0.4/src/io/ide'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `c:/pearpc-0.4/src/io/ide'
Making all in macio
make[4]: Entering directory `c:/pearpc-0.4/src/io/macio'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `c:/pearpc-0.4/src/io/macio'
Making all in nvram
make[4]: Entering directory `c:/pearpc-0.4/src/io/nvram'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `c:/pearpc-0.4/src/io/nvram'
Making all in usb
make[4]: Entering directory `c:/pearpc-0.4/src/io/usb'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `c:/pearpc-0.4/src/io/usb'
make[4]: Entering directory `c:/pearpc-0.4/src/io'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `c:/pearpc-0.4/src/io'
make[3]: Leaving directory `c:/pearpc-0.4/src/io'
Making all in system
make[3]: Entering directory `c:/pearpc-0.4/src/system'
Making all in arch
make[4]: Entering directory `c:/pearpc-0.4/src/system/arch'
Making all in x86
make[5]: Entering directory `c:/pearpc-0.4/src/system/arch/x86'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `c:/pearpc-0.4/src/system/arch/x86'
make[5]: Entering directory `c:/pearpc-0.4/src/system/arch'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `c:/pearpc-0.4/src/system/arch'
make[4]: Leaving directory `c:/pearpc-0.4/src/system/arch'
Making all in osapi
make[4]: Entering directory `c:/pearpc-0.4/src/system/osapi'
Making all in win32
make[5]: Entering directory `c:/pearpc-0.4/src/system/osapi/win32'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `c:/pearpc-0.4/src/system/osapi/win32'
make[5]: Entering directory `c:/pearpc-0.4/src/system/osapi'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `c:/pearpc-0.4/src/system/osapi'
make[4]: Leaving directory `c:/pearpc-0.4/src/system/osapi'
Making all in ui
make[4]: Entering directory `c:/pearpc-0.4/src/system/ui'
Making all in win32
make[5]: Entering directory `c:/pearpc-0.4/src/system/ui/win32'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `c:/pearpc-0.4/src/system/ui/win32'
make[5]: Entering directory `c:/pearpc-0.4/src/system/ui'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `c:/pearpc-0.4/src/system/ui'
make[4]: Leaving directory `c:/pearpc-0.4/src/system/ui'
make[4]: Entering directory `c:/pearpc-0.4/src/system'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `c:/pearpc-0.4/src/system'
make[3]: Leaving directory `c:/pearpc-0.4/src/system'
Making all in tools
make[3]: Entering directory `c:/pearpc-0.4/src/tools'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `c:/pearpc-0.4/src/tools'
make[3]: Entering directory `c:/pearpc-0.4/src'
g++ -Wundef -Wall -Woverloaded-virtual -fsigned-char -O2 -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pipe -o ppc.exe main.o ppc_img.o ppc_font.o ppc_button_changecd.o configparser.o cpu/cpu_jitc_x86/libcpu.a io/graphic/libgraphic.a io/ide/libide.a system/ui/win32/libui.a debug/libdebug.a io/libio.a io/prom/libprom.a io/prom/fs/libfs.a io/prom/fs/hfs/libhfs.a io/prom/fs/hfsplus/libhfsplus.a io/pic/libpic.a io/pci/libpci.a io/macio/libmacio.a io/nvram/libnvram.a io/cuda/libcuda.a io/3c90x/lib3c90x.a io/rtl8139/librtl8139.a io/usb/libusb.a tools/libtools.a system/libsystem.a system/arch/x86/libsarch.a system/osapi/win32/libsosapi.a system/ui/win32/resources.o -lgdi32 -lcomdlg32 -lwinmm
make[3]: Leaving directory `c:/pearpc-0.4/src'
make[2]: Leaving directory `c:/pearpc-0.4/src'
make[1]: Leaving directory `c:/pearpc-0.4'

Is there something I'm missing?
Thanks for taking a look again...

enduser000

chrism01 07-23-2008 10:39 PM

Re-read jiml8 and leedude's comments... carefully.
If you do a text search you'll see the word 'error' does not appear in your output (nor does warning).
It's all informational.

enduser000 07-23-2008 10:51 PM

Okay, this is what I get in a make install. I've read this one closely...

$ make install>error.txt
system/arch/x86/libsarch.a(sysvaccel.o):sysvaccel.cc:(.text+0x300): undefined reference to `x86_convert_2be555_to_4le888'
system/arch/x86/libsarch.a(sysvaccel.o):sysvaccel.cc:(.text+0x344): undefined reference to `x86_convert_4be888_to_4le888'
system/arch/x86/libsarch.a(sysvaccel.o):sysvaccel.cc:(.text+0x5df): undefined reference to `x86_convert_2be555_to_2le555'
system/arch/x86/libsarch.a(sysvaccel.o):sysvaccel.cc:(.text+0x5f7): undefined reference to `x86_convert_2be555_to_2le565'
collect2: ld returned 1 exit status
make[2]: *** [ppc.exe] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1

I put the start of it to error.txt, and that's what I posted before.

leedude 07-24-2008 05:29 AM

now there's an error.

ive never used pearPC before, but i did find this:
http://wiki.pearpc.net/index.php?tit...earPC_from_CVS

if you just wanna get it working in vista, a binary will probably work:
http://pearpc.sourceforge.net/downloads.html
the binary is in the pearpc-0.4-win32-jitc.zip file

enduser000 07-24-2008 10:00 AM

Nah, I;m good to go there, it works with vista. I want to do a clean compile so I know it works and then can modify it.

any ideas?


All times are GMT -5. The time now is 07:45 PM.