# Could I use RemObjects in Delphi compile for Linux?

**URL:** https://talk.remobjects.com/t/could-i-use-remobjects-in-delphi-compile-for-linux/24270
**Category:** Remoting SDK
**Created:** [February 25, 2021, 6:16pm UTC](https://talk.remobjects.com/t/could-i-use-remobjects-in-delphi-compile-for-linux/24270 "2021-02-25T18:16:10Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![henriqueramos](https://talk.remobjects.com/user_avatar/talk.remobjects.com/henriqueramos/32/10360_2.png) [@henriqueramos](https://talk.remobjects.com/u/henriqueramos)
#### Post date: [February 25, 2021, 6:16pm UTC](https://talk.remobjects.com/t/could-i-use-remobjects-in-delphi-compile-for-linux/24270/1 "2021-02-25T18:16:10Z")

</div>

Could I use RemObjects in Delphi compile for Linux?  
I’m trying but not compiling.

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [February 25, 2021, 7:05pm UTC](https://talk.remobjects.com/t/could-i-use-remobjects-in-delphi-compile-for-linux/24270/2 "2021-02-25T19:05:56Z")

</div>

> [@henriqueramos](#):
>
> Could I use RemObjects in Delphi compile for Linux?  
> I’m trying but not compiling.

Definitely, yes. What problems/errors are you seeing?

---

<div class="post-metadata">

### Author: ![henriqueramos](https://talk.remobjects.com/user_avatar/talk.remobjects.com/henriqueramos/32/10360_2.png) [@henriqueramos](https://talk.remobjects.com/u/henriqueramos)
#### Post date: [February 25, 2021, 7:16pm UTC](https://talk.remobjects.com/t/could-i-use-remobjects-in-delphi-compile-for-linux/24270/3 "2021-02-25T19:16:03Z")

</div>

The uROEvent unit, in the create method, calls the “sem\_init” method but it is not present in any of the uses of unit.

I tried to change the uROEvent and add the includes for SemaphoreTypes.inc and SemaphoreAPI.inc but then I came across the error of not having a variable called “libc” with the name of the DLL used in the “sem\_close” function.

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [February 25, 2021, 7:23pm UTC](https://talk.remobjects.com/t/could-i-use-remobjects-in-delphi-compile-for-linux/24270/4 "2021-02-25T19:23:10Z")

</div>

Hmm, curious. I’ll have to loop my colleague in, here, who’s more familiar with RO/Delphi.

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [February 26, 2021, 8:12am UTC](https://talk.remobjects.com/t/could-i-use-remobjects-in-delphi-compile-for-linux/24270/6 "2021-02-26T08:12:32Z")

</div>

Hi,

can you specify what version of Remoting SDK you are using?

as I can see, in Delphi we have this alias:

```auto
  {$IFDEF DELPHI_or_MSWINDOWS}
  TROEvent = TEvent;
  {$ELSE}

```

all other code in this unit is designed for FPC/non-Windows platform.

---

<div class="post-metadata">

### Author: ![henriqueramos](https://talk.remobjects.com/user_avatar/talk.remobjects.com/henriqueramos/32/10360_2.png) [@henriqueramos](https://talk.remobjects.com/u/henriqueramos)
#### Post date: [February 26, 2021, 9:10am UTC](https://talk.remobjects.com/t/could-i-use-remobjects-in-delphi-compile-for-linux/24270/7 "2021-02-26T09:10:26Z")

</div>

When I saw the DELPHI\_or\_MSWINDOWS directive I thought it was for compiling packages for installation in Delphi and for generation from Delphi. I will test and tell you what happened.  
Thank you very much

---

<div class="post-metadata">

### Author: ![henriqueramos](https://talk.remobjects.com/user_avatar/talk.remobjects.com/henriqueramos/32/10360_2.png) [@henriqueramos](https://talk.remobjects.com/u/henriqueramos)
#### Post date: [February 26, 2021, 3:13pm UTC](https://talk.remobjects.com/t/could-i-use-remobjects-in-delphi-compile-for-linux/24270/8 "2021-02-26T15:13:29Z")

</div>

Now I stoped in sslinux.inc, where I don’t have the libc.  
Could you provide the conditional defines list or a example project?

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [February 26, 2021, 3:29pm UTC](https://talk.remobjects.com/t/could-i-use-remobjects-in-delphi-compile-for-linux/24270/9 "2021-02-26T15:29:15Z")

</div>

Hi,

try to compile RO packages under Linux.

you should be able to compile

- RemObjects\_Core\_D27.dpk
- RemObjects\_DataSnap\_D27.dpk
- RemObjects\_Indy\_D27.dpk
- RemObjects\_Server\_D27.dpk
- RemObjects\_Server\_DataSnap\_D27.dpk
- RemObjects\_Server\_Indy\_D27.dpk
- RemObjects\_WebBroker\_D27.dpk

is it correct?

---

<div class="post-metadata">

### Author: ![henriqueramos](https://talk.remobjects.com/user_avatar/talk.remobjects.com/henriqueramos/32/10360_2.png) [@henriqueramos](https://talk.remobjects.com/u/henriqueramos)
#### Post date: [February 26, 2021, 6:22pm UTC](https://talk.remobjects.com/t/could-i-use-remobjects-in-delphi-compile-for-linux/24270/10 "2021-02-26T18:22:12Z")

</div>

> [@EvgenyK](#):
>
> RemObjects\_WebBroker\_D2

Delphi does not allow generating versions in Linux for the RemObjects\_DataSnap\_D27 and RemObjects\_Server\_DataSnap\_D27 packages

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [March 1, 2021, 8:11am UTC](https://talk.remobjects.com/t/could-i-use-remobjects-in-delphi-compile-for-linux/24270/11 "2021-03-01T08:11:14Z")

</div>

Looks like you have other version of Delphi, because my version of Delphi 10.4.1 allows to compile `RemObjects_DataSnap_D27` and `RemObjects_Server_DataSnap_D27` packages:

 ![Untitled](https://talk.remobjects.com/uploads/default/original/2X/8/8bdc3de0b057140bf4ed61b627e31ee956e49514.png)

---

<div class="post-metadata">

### Author: ![DonaldShimoda](https://talk.remobjects.com/user_avatar/talk.remobjects.com/donaldshimoda/32/6_2.png) [@DonaldShimoda](https://talk.remobjects.com/u/DonaldShimoda)
#### Post date: [March 1, 2021, 2:57pm UTC](https://talk.remobjects.com/t/could-i-use-remobjects-in-delphi-compile-for-linux/24270/12 "2021-03-01T14:57:42Z")

</div>

For sure! I use this every day
