[hpsdr] cuSDR on Mac

Jeremy McDermond mcdermj at xenotropic.com
Wed Nov 7 15:22:24 PST 2012


On Nov 7, 2012, at 12:22 PM, Hermann <hvh.net at gmail.com> wrote:

> ***** High Performance Software Defined Radio Discussion List *****
> 
> Dear All,
> 
> I have just uploaded an alpha version of the cuSDR code for testing on Linux or MacOSx:
> 
> http://svn.tapr.org/repos_sdr_hpsdr/trunk/DL3HVH/alpha
> 
> There are only two sockets in use now: one for the discovery (using broadcast) and one for Metis/Hermes start/stop and data transfer from and to Metis/Hermes. Hopefully I have now solved the problem which Jeremy analyzed as a different socket behavior on Linux/MacOS vs. Windows. Nothing has been done though regarding fonts/graphics etc.

A new compiled version for Mac based on this alpha code is posted at the aforementioned URL.

Here's a patch to make things compile up on MacOS X:

Index: src/DataEngine/cusdr_discoverer.cpp
===================================================================
--- src/DataEngine/cusdr_discoverer.cpp	(revision 2569)
+++ src/DataEngine/cusdr_discoverer.cpp	(working copy)
@@ -140,7 +140,7 @@
 		socket.close();
 		return 0;
 	}
-#elif defined(Q_OS_LINUX)
+#elif defined(Q_OS_LINUX) || defined(Q_OS_MAC)
 
 	if (socket.bind(
 				QHostAddress(set->getHPSDRDeviceLocalAddr()),
@@ -154,13 +154,13 @@
 
 		set->setMetisPort(this, socket.localPort());
 		io->networkIOMutex.lock();
-		HPSDRIO_DEBUG << "discovery_socket bound successfully to port " << socket.localPort();
+        DISCOVERER_DEBUG << "discovery_socket bound successfully to port " << socket.localPort();
 		io->networkIOMutex.unlock();
 	}
 	else {
 		
 		io->networkIOMutex.lock();
-		HPSDRIO_DEBUG << "discovery_socket bind failed.";
+        DISCOVERER_DEBUG << "discovery_socket bind failed.";
 		io->networkIOMutex.unlock();
 
 		socket.close();
Index: cuSDR64.pro
===================================================================
--- cuSDR64.pro	(revision 2569)
+++ cuSDR64.pro	(working copy)
@@ -4,7 +4,7 @@
 TEMPLATE = app
 
 CONFIG += qt warn_on
-CONFIG += console
+#CONFIG += console
 
 #message(CONFIG: $$CONFIG)
 
@@ -17,7 +17,7 @@
 #DEFINES += _WINDOWS
 #DEFINES += _CRT_SECURE_NO_WARNINGS
 #DEFINES += QT_LARGEFILE_SUPPORT 
-#DEFINES += QT_DLL 
+#DEFINES += QT_DLL
 #DEFINES += QT_MULTIMEDIA_LIB 
 #DEFINES += QT_OPENGL_LIB 
 #DEFINES += QT_NETWORK_LIB 

> 
> 73, Hermann
> DL3HVH
> 
> 
> _______________________________________________
> HPSDR Discussion List
> To post msg: hpsdr at openhpsdr.org
> Subscription help: http://lists.openhpsdr.org/listinfo.cgi/hpsdr-openhpsdr.org
> HPSDR web page: http://openhpsdr.org
> Archives: http://lists.openhpsdr.org/pipermail/hpsdr-openhpsdr.org/

--
Jeremy McDermond (NH6Z)
Xenotropic Systems
mcdermj at xenotropic.com



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4361 bytes
Desc: not available
URL: <http://lists.openhpsdr.org/pipermail/hpsdr-openhpsdr.org/attachments/20121107/f0be4040/attachment-0004.bin>


More information about the Hpsdr mailing list