Nowind, Mac and Linux

Страница 3/7
1 | 2 | | 4 | 5 | 6 | 7

By yzi

Champion (444)

Аватар пользователя yzi

27-05-2011, 19:41

But What I find strange is that you plug the USB so late.

Well, I actually read the paper manual that came with the cartridge, and it warned against having the USB cable plugged while turning the MSX on or off! Or otherweise, no warranty...

But do you think that output looks normal? Isn't there any indication of an error? Why is the MSX seeing the contents of the Mac directory instead of the .dsk file?

By Manuel

Ascended (18151)

Аватар пользователя Manuel

27-05-2011, 22:24

Very good question. DOes it work better on your Linux box?

By yzi

Champion (444)

Аватар пользователя yzi

28-05-2011, 00:13

I only have two low-powered Linux machines (Acer Aspire One with Intel Atom and an Efika MX Smarttop with ARM Cortex A8), and I haven't tried compiling the stuff on them. Actually, it would be kind of funny to use the Efika for MSX development. But I do have access to a Windows 7 laptop, so I'll try that, maybe tomorrow. The good thing is, I can at least get Nowind to work with the Philips MSX2. Would be so great to get it to work on the MSX1s as well. And I still didn't try it on my SVI-728, so that's one more combination to find out.

By Manuel

Ascended (18151)

Аватар пользователя Manuel

28-05-2011, 13:29

I suggest to directly get into contact with the developers to sort this out.

By Haohmaru

Paladin (773)

Аватар пользователя Haohmaru

13-07-2012, 20:07

Ok.

So I am trying to get this working on my laptop running Ubuntu 12.04.

haohmaru@tokoloshe:~/nowindlibraries-read-only$ cmake -G 'Unix Makefiles' --debug-output
Running with debug output on.
   Entering             /home/haohmaru/nowindlibraries-read-only/general
   Called from: [1]	/home/haohmaru/nowindlibraries-read-only/CMakeLists.txt
   Returning to         /home/haohmaru/nowindlibraries-read-only
   Called from: [1]	/home/haohmaru/nowindlibraries-read-only/CMakeLists.txt
   Entering             /home/haohmaru/nowindlibraries-read-only/nwhost
   Called from: [1]	/home/haohmaru/nowindlibraries-read-only/CMakeLists.txt
   Returning to         /home/haohmaru/nowindlibraries-read-only
   Called from: [1]	/home/haohmaru/nowindlibraries-read-only/CMakeLists.txt
   Entering             /home/haohmaru/nowindlibraries-read-only/ftdx
   Called from: [1]	/home/haohmaru/nowindlibraries-read-only/CMakeLists.txt
   Returning to         /home/haohmaru/nowindlibraries-read-only
   Called from: [1]	/home/haohmaru/nowindlibraries-read-only/CMakeLists.txt
   Entering             /home/haohmaru/nowindlibraries-read-only/nowind
   Called from: [1]	/home/haohmaru/nowindlibraries-read-only/CMakeLists.txt
   Returning to         /home/haohmaru/nowindlibraries-read-only
   Called from: [1]	/home/haohmaru/nowindlibraries-read-only/CMakeLists.txt
   Entering             /home/haohmaru/nowindlibraries-read-only/nwhostapp
   Called from: [1]	/home/haohmaru/nowindlibraries-read-only/CMakeLists.txt
   Returning to         /home/haohmaru/nowindlibraries-read-only
   Called from: [1]	/home/haohmaru/nowindlibraries-read-only/CMakeLists.txt
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
BOOST_FS3
    linked by target "nwhostapp" in directory /home/haohmaru/nowindlibraries-read-only/nwhostapp
BOOST_SYS
    linked by target "nwhostapp" in directory /home/haohmaru/nowindlibraries-read-only/nwhostapp

-- Configuring incomplete, errors occurred!

Great.

So I tried messing with export, changing the nwhostapp/CMakeLists.txt, sacrificing a small chicken, etc to no avail.

If I am missing something obvious please point it out to me in painstaking detail because I'm on the verge of going FUCK THAT SHIT on the whole thing and spend my time with something more productive, such as counting the leaves of grass in front of the house :P

By Edwin

Paragon (1182)

Аватар пользователя Edwin

13-07-2012, 21:25

Make sure you have the two required boost libs (and corresponding -dev packages) installed. If that doesn't work, then I don't know. Never used CMake for it.

By Haohmaru

Paladin (773)

Аватар пользователя Haohmaru

13-07-2012, 21:57

Ok so boost-wise (according to aptitude) I have:

libboost-dev
libboost1.46-dev

So I should be fine?

EDIT: ok... I installed boost-all-dev and buildfiles were made!
Everything seems to be going fine until:

haohmaru@tokoloshe:~/nowindlibraries-read-only$ make
[  9%] Built target nwgeneral
[ 63%] Built target nwhost
[ 78%] Built target ftdx
[ 87%] Built target nowind
Linking CXX executable nwhostapp
../ftdx/libftdx.a(ConLibFtdi.cpp.o): In function `ftdx::ConLibFtdi::open()':
ConLibFtdi.cpp:(.text+0xe1): undefined reference to `ftdi_init'
ConLibFtdi.cpp:(.text+0xff): undefined reference to `ftdi_usb_open'
ConLibFtdi.cpp:(.text+0x129): undefined reference to `ftdi_set_latency_timer'
../ftdx/libftdx.a(ConLibFtdi.cpp.o): In function `ftdx::ConLibFtdi::close()':
ConLibFtdi.cpp:(.text+0x17d): undefined reference to `ftdi_usb_close'
ConLibFtdi.cpp:(.text+0x18b): undefined reference to `ftdi_deinit'
../ftdx/libftdx.a(ConLibFtdi.cpp.o): In function `ftdx::ConLibFtdi::readExact(unsigned char*, unsigned long)':
ConLibFtdi.cpp:(.text+0x1c7): undefined reference to `ftdi_read_data'
../ftdx/libftdx.a(ConLibFtdi.cpp.o): In function `ftdx::ConLibFtdi::readBlocking(unsigned char*, unsigned long)':
ConLibFtdi.cpp:(.text+0x2dd): undefined reference to `ftdi_read_data'
../ftdx/libftdx.a(ConLibFtdi.cpp.o): In function `ftdx::ConLibFtdi::write(unsigned char*, unsigned long, unsigned long*)':
ConLibFtdi.cpp:(.text+0x34c): undefined reference to `ftdi_write_data'
ConLibFtdi.cpp:(.text+0x363): undefined reference to `ftdi_get_error_string'
../ftdx/libftdx.a(ConLibFtdi.cpp.o): In function `ftdx::ConLibFtdi::reset()':
ConLibFtdi.cpp:(.text+0x392): undefined reference to `ftdi_usb_reset'
../ftdx/libftdx.a(ConLibFtdi.cpp.o): In function `ftdx::ConLibFtdi::purgeRx()':
ConLibFtdi.cpp:(.text+0x3b8): undefined reference to `ftdi_usb_purge_rx_buffer'
../ftdx/libftdx.a(ConLibFtdi.cpp.o): In function `ftdx::ConLibFtdi::purgeTx()':
ConLibFtdi.cpp:(.text+0x3ce): undefined reference to `ftdi_usb_purge_tx_buffer'
collect2: ld returned 1 exit status
make[2]: *** [nwhostapp/nwhostapp] Error 1
make[1]: *** [nwhostapp/CMakeFiles/nwhostapp.dir/all] Error 2
make: *** [all] Error 2

But (again according to aptitude) I have libftdi-dev installed...

By Haohmaru

Paladin (773)

Аватар пользователя Haohmaru

13-07-2012, 22:12

Right.

Apparantly a

cc ConLibFtdi.cpp -lftdi

should do the trick.

However, this requires libgeneral.h (which points to general.h and Util.h in the general folder).
I could try rewriting things and then cross fingers again but I wouldn't know HOW and still have everything work.

At least we're slowly getting somewhere now Tongue

By Manuel

Ascended (18151)

Аватар пользователя Manuel

13-07-2012, 23:07

For direct support, just contact Jan or Aaldert.

By Sky_hawk

Champion (267)

Аватар пользователя Sky_hawk

14-07-2012, 09:09

I will install ubuntu 12 and test was goes wrong, i had hoped cmake would make the build procedure more compatible over distrubutions , but so far it also has had regular problem with new cmake or library versions.

Cmake is supose to add the -lftdi for you so instead or 'rewriting' anything i think we need to figure out what needs to ben added to the cmakelist.txt file to get it to find and use libftdi again.

Greetings,

Jan

Страница 3/7
1 | 2 | | 4 | 5 | 6 | 7