Larswad / uno2iec

A commodore (CBM) 1541 emulator on the Arduino Uno, using any desktop PC (or raspberry PI with raspbian) as a media host.
http://larswad.github.io/uno2iec/
134 stars 36 forks source link

Which version of Qt is used ? #2

Closed ragekit closed 10 years ago

ragekit commented 10 years ago

Hi! I don't know why but the app doesn't want to compile with QT 5.1, tried with 4.8 and doesn't work either.

What version of Qt is used to compile it ?

Thanks

PS : i'm using the v0.2.1-alpha , i'm going to try compiling with master tomorrow. Plus i'm on mac 10.9. But it should break ?

Larswad commented 10 years ago

It should work just fine with Qt 4.8 up to 5.1. On desktop I'm using 5.1 on raspberry pi I use whatever version is there. From what I've heard it should build just fine on mac unless I've introduced something strange in last commits. What are your build errors? I'll guide you through this.

ragekit commented 10 years ago

ok, so, with the last version from master i've got :

/Users/benjamingattet/Qt/5.1.1/clang_64/include/QtCore/qlist.h:52: erreur : 'initializer_list' file not found

include

     ^
ragekit commented 10 years ago

oh damn, it's a bug with mac. Since it's a new error i didn't check on google.

Larswad commented 10 years ago

Aha, ok! Actually that addition with using initializer-lists is quite recently added in the code. It is a c++11 addition and I can do it another (old) way if it is not support on the mac side. Do you get around it or should I do that code without initializer list? It is an easy fix within 5 minutes or so.

ragekit commented 10 years ago

ok, now i've got /Users/benjamingattet/Utilities/uno2iec/uno2iec/t64driver.cpp:312: erreur : use of undeclared identifier 'log10' cb.send(fileBlocks, line.mid((int)log10(fileBlocks))); ^

I'm guessing that's a C++11 stuff too ?

ragekit commented 10 years ago

(i'm a Qt noob and not very better at c++)

Larswad commented 10 years ago

I'm wondering, could you add the following line at the top of t64driver.cpp:

include

It is included in d64driver.cpp but not in t64driver.cpp and both of them use the log10 function. So it is weird that it compiles on other qt platform. But please try that and let me know... log10 is not even a qt specific function, it is standard library function for taking the 10 logarithm of a value.

EDIT: Had to update this post. The wiki "ate" the less than and greater than characters. Had to escape them so that you could see the line.

Larswad commented 10 years ago

Note: I have fixed t64driver.cpp now. You can do a 'git pull' to update if you prefer that instead of changing t64driver.cpp manually.

ragekit commented 10 years ago

yeah, i added it in m2idriver.cpp too and i works now. i think it's a C++11 problem with QT 5.1, i had to add macx-clang-libc++ to the mkspec too.

Larswad commented 10 years ago

Goodie! Yes, I saw that later too. I googled it also. Really goofy by the Qt people not to test c++11 on such a huge release. Either I should add the stuff you mentioned to the readme file (how to do on MAC/OSX), or I could make conditional compiling for mac so that initializer lists is not used at all when compiling mac.

Great finding also that you put my attention on the forgotten include file on both these cpp. I will fix the m2idriver.cpp file also then.

Just let me know I any other issue comes up. It would also be nice to hear if you get it running properly with your commodore.

ragekit commented 10 years ago

Gotta find a way to make a din plug now. :)

Larswad commented 10 years ago

Yeah, it's pretty easy. Its the DIN 45322. All pictures on the web show the port pinout on the machine side, not as if you would look on the the cable plug end, but since you are working with soldering on the backside of the plug it is of course mirrored so it becomes the same as on the pictures which makes it easier.

I contrast to what I say in the README I recommend you to also solder the RESET line since I actually test whether the RESET is low or not in the code. I should change that in the README.

The SRQIN however is optional for now. Don't forget the ground pin. You don't need any resistors or stuff between, both Arduino and the Commodore machines are 5V. I recommend to put on shrinking tubes on the wire to avoid short circuiting anything (we would be very sad I've we would harm our old babies).

You can use the following jumper wires bought cheaply at dx.com if you're using a UNO: http://dx.com/p/breadboard-jumper-cable-wires-for-electronic-diy-65-cable-pack-121345 If you have an Arduino Mini needs female cables instead, use the following: http://dx.com/p/single-port-female-to-female-jumper-wire-set-50-pack-20cm-length-55454

Remember your pin configuration when you plug it to your arduino (ATN, DATA, CLOCK, RESET), then enter the same info in the settings dialog in the application. It will autoconfigure itself and you are good to go!

Good luck, and I'd be grateful if you let me know how things progress!

ragekit commented 10 years ago

thanks for the infos! But i meant making the plus like, the Din connector, cause it's a mess to find one where i live.

Larswad commented 10 years ago

Sorry I didn't understand. What do you mean with "plus like"?

ragekit commented 10 years ago

I need to build a din connector because i can't find where to buy one.

Larswad commented 10 years ago

OK. Can't you place an order on the net, like from Farnell or similar?

Ragekit notifications@github.com skrev:

I need to build a din connector because i can't find where to buy one.

— Reply to this email directly or view it on GitHub.

ragekit commented 10 years ago

Yeah, but it's pretty expensive to deliver to France. And it's more rock and roll !

Larswad commented 10 years ago

Yes, I understand you! Do you want me to keep this issue open for other questions once you have the DIN plug fixed, or should I close it? You can always open another issue later.

ragekit commented 10 years ago

you can close it, no problem, i'll comment to show progress later.

2013/11/1 Lars Wadefalk notifications@github.com

Yes, I understand you! Do you want me to keep this issue open for other questions once you have the DIN plug fixed, or should I close it? You can always open another issue later.

— Reply to this email directly or view it on GitHubhttps://github.com/Larswad/uno2iec/issues/2#issuecomment-27565812 .