realbasic-plugins
[Top] [All Lists]

Re: Can't get this plugin working on Linux, but nearly there with your h

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: Can't get this plugin working on Linux, but nearly there with your help.
From: Björn Eiríksson <bjorn at einhugur dot com>
Date: Wed, 23 Nov 2005 00:45:21 +0000
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <899011E3-95A3-403C-954E-FC70BC677D93 at elfdata dot com>
Did you remember to compile the PluginMain.cpp file into it ?

(I imagine that could happen if your SDK is in a separate folder)

On 23.11.2005, at 00:10 AM, Theodore H. Smith wrote:

Hi people,

I've mostly done the work necessary to get my ElfData plugin working for linux. I compiled a libElfData.so on an x86 linux computer. I'm using Mandrake by the way.

I used this makefile, maybe the makefile is bad, if so let me know:

CFLAGS = -c -Wall
LDFLAGS =
EDSRC = ElfDataSrc
OPSRC = ObjectPlatformSrc
SOURCES := $(wildcard $(EDSRC)/*.cpp) $(wildcard $(OPSRC)/*.cpp)
OBJECTS = $(SOURCES:.cpp=.o)
EXECUTABLE = libElfData.so
PREFIXHEADER = $(EDSRC)/ED_CompileUnix.h
INCLUDEDIRS = -I $(EDSRC) -I$(OPSRC)


all: $(SOURCES) $(EXECUTABLE)

$(EXECUTABLE): $(OBJECTS)
    g++ $(LDFLAGS) $(OBJECTS) -o $@

.cpp.o:
    g++ $(CFLAGS) -include $(PREFIXHEADER) $(INCLUDEDIRS) $< -o $@


clean:
    rm $(EDSRC)/*.o
    rm $(OPSRC)/*.o


Well, it compiles a lib. As for the rest of what's necessary I have no idea.

So, I put this lib into the "Linux x86" folder in my ElfData.rbx plugin, using the RB Plugin Converter.

The plugin runs perfectly on Mac and PC, using a Unit Test project that tests every function from my plugin.

I used my mac to successfully compile a Linux version of a test app.

I sent the app over to Linux, by uploading it to an ftp server and then downloading it again. Awkward I know, but right now I haven't figured out how to network the filesystems of my linux computer and the Mac.

OK. So I run the extracted app, and get a whole bunch of errors!


"

Failed Assertion: 4
Press OK to Continue, Press Cancel to quit
../Common/Plugin.cpp: 5944
Failiure condition: 0

The application cannot continue because a needed file cannot be installed: /tmp/blargh : Cannot dynamically load executable.

"


So what next?

Can someone take a look at my ElfData plugin beta for me please? Someone who knows how to compile for Linux that is. I got the file at: http://www.elfdata.com/ElfDataLinux.zip

It contains two files.

1) ElfData.rbx file.
2) TinyXML.rb file.

TinyXML.rb runs perfectly on MacOSX using the ElfData.rbx plugin.

So, how to get this working then?? I am out of ideas on this one. For all I know it's something wrong with my makefile but I know nothing about Linux and stupid linker settings! As far as I care you just compile your code and it should work if your code is good :)


--
http://elfdata.com/plugin/

What does our work achieve, if it's not making the world a happier place?
http://www.whatnextjournal.co.uk/Pages/Next/Happiness.html
When's the last time you thought deeply about how to improve our lives?


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>




_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>