pvbrowser
Level-1
- Beiträge
- 470
- Reaktionspunkte
- 44
-> Hier kostenlos registrieren
Wenn das geht, eventuelle Erkenntnisse auf Libnodave zurückübertragen.
Hallo Zottel,
ich habe Dein nodave.c und setport.c in unsere rlllib mit eingebunden.
Dazu waren folgende #defines notwendig:
# LITTLEENDIAN and LINUX is only for libnodave to work
DEFINES += LITTLEENDIAN
unixEFINES += LINUX
Dann funktioniert es auch mit 64 Bit unter Linux.
Hier der qmake pro file zur Erzeugung des Makefile
###############################################################
TEMPLATE = lib
#CONFIG = warn_on release Hilscher qt
#CONFIG = warn_on release staticlib
CONFIG = warn_on release
CFLAGS = -pipe -Wall -W -O0 -march=i586 -mcpu=i686 -fmessage-length=0 -DNO_DEBUG -fPIC
# LITTLEENDIAN and LINUX is only for libnodave to work
DEFINES += LITTLEENDIAN
unixEFINES += LINUX
unix:QMAKE_LFLAGS += -lpthread -Wl --no-undefined -pthread
macxEFINES += unix
macxEFINES += PVMAC
HEADERS = rllib.h \
rlspawn.h \
rlwthread.h \
rlthread.h \
rlsocket.h \
rltime.h \
rlmailbox.h \
rlfifo.h \
rlsharedmemory.h \
rlspreadsheet.h \
rlinifile.h \
rlinterpreter.h \
rlpcontrol.h \
rlcutil.h \
rldefine.h \
rlevent.h \
rleventlogserver.h \
rldataprovider.h \
rlserial.h \
rlmodbus.h \
rlmodbusclient.h \
rl3964r.h \
rlsiemenstcp.h \
rlsiemenstcpclient.h \
rlcontroller.h \
rlppiclient.h \
rlsvganimator.h \
rlsvgcat.h \
rlfileload.h \
rlhistorylogger.h \
rlhistoryreader.h \
rlhilschercif.h \
rludpsocket.h \
rleibnetip.h \
rlopcxmlda.h \
rldataacquisition.h \
rldataacquisitionprovider.h \
rlstring.h \
rlplc.h \
rlwebcam.h \
rlcommandlineinterface.h
SOURCES = rlspawn.cpp \
rlwthread.cpp \
rlthread.cpp \
rlsocket.cpp \
rltime.cpp \
rlmailbox.cpp \
rlfifo.cpp \
rlsharedmemory.cpp \
rlspreadsheet.cpp \
rlinifile.cpp \
rlinterpreter.cpp \
rlpcontrol.cpp \
rlcutil.cpp \
rlevent.cpp \
rleventlogserver.cpp \
rldataprovider.cpp \
rlserial.cpp \
rlmodbus.cpp \
rlmodbusclient.cpp \
rl3964r.cpp \
rlsiemenstcp.cpp \
rlsiemenstcpclient.cpp \
rlcontroller.cpp \
rlppiclient.cpp \
rlsvganimator.cpp \
rlsvgcat.cpp \
rlfileload.cpp \
rlhistorylogger.cpp \
rlhistoryreader.cpp \
rlhilschercif.cpp \
rludpsocket.cpp \
rleibnetip.cpp \
rlopcxmlda.cpp \
rldataacquisition.cpp \
rldataacquisitionprovider.cpp \
rlstring.cpp \
rlplc.cpp \
rlwebcam.cpp \
rlcommandlineinterface.cpp \
nodave.c \
setport.c
macx:SOURCES -= rlhilschercif.cpp
Hilscher {
HEADERS += rlcannode.h \
rlcanopendaemon.h \
rlcanopentypes.h \
rlcanopenstructs.h \
objdir.h \
rlcanopenclient.h \
rlcanopen.h
SOURCES += rlcanopendaemon.cpp \
rlcanopentypes.cpp \
objdir.cpp \
rlcanopenclient.cpp \
rlcannode.cpp \
rlcanopen.cpp
INCLUDEPATH = ../usr-inc
}
#unix:OBJECTS += ../foreign/abel/lib/libabplc5.a
#unix:OBJECTS += ../foreign/cell/lib/libcell.a
#unix:OBJECTS += ../foreign/libnodave/openSocket.o
#unix:OBJECTS += ../foreign/libnodave/setport.o
#unix:OBJECTS += ../foreign/libnodave/nodave.o
TARGET = rllib
#unix:header.path = /usr/local/include/rllib
#unix:header.files = *.h ../foreign/abel/lib/*.h ../foreign/cell/lib/*.h ../foreign/libnodave/*.h
#unix:header.extra = mkdir -p /usr/local/include/rllib
#unix:target.path = /usr/lib
#unix:target.files = librllib.*
#unix:INSTALLS = target header
##################################################################
Unter Windows sieht es so aus:
%mingwdir%\bin\gcc.exe nodave.c -o nodave_mingw.o -c -D_WIN32 -DBCCWIN -I%mingwdir%\include
Aber eben nur 32 Bit ausprobiert.
PS: Die Forensoftware macht mir die da rein :-(