jahlxx Posted January 28, 2021 Share Posted January 28, 2021 Hi friends. When I generate / compile / build / deploy a sample apache module project, for win32 and linux platforms, allways generates a dll file, not a .so file. I build with no errors. And deploy to linux server, and in the scratch directory allways generates a dll, never a .so file. Someone can help me? This is new for me (linux project), ans sure I'm forgetting some step. I've followed unigui manual, and reviewed this: https://chapmanworld.com/2016/12/29/configure-delphi-and-redhat-or-ubuntu-for-linux-development/ Please, some help. My dev environment is Delphi 10.3.3, Unigui version 1.90.0.1539, and the linux server is Debian 10. Thanks. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted January 28, 2021 Administrators Share Posted January 28, 2021 As soon as you change target to Linux64 the file extension should change to SO. Link to comment Share on other sites More sharing options...
jahlxx Posted January 28, 2021 Author Share Posted January 28, 2021 Sorry, how? I only have Linux64 as target platform, but allways make a dll file. ??? Link to comment Share on other sites More sharing options...
jahlxx Posted January 28, 2021 Author Share Posted January 28, 2021 Ok. One more step. Now a Linux64 folder is generated when compiling, under project folder, not generated before, but I get these error linking: [DCC Error] E2597 C:\Program Files (x86)\Embarcadero\Studio\20.0\bin\ld-linux.exe: error: cannot find -lgcc_s C:\Program Files (x86)\Embarcadero\Studio\20.0\bin\ld-linux.exe: error: cannot find -lc C:\Program Files (x86)\Embarcadero\Studio\20.0\bin\ld-linux.exe: error: cannot find -ldl C:\Program Files (x86)\Embarcadero\Studio\20.0\bin\ld-linux.exe: error: cannot find -lpthread C:\Program Files (x86)\Embarcadero\Studio\20.0\bin\ld-linux.exe: error: cannot find -lm C:\Program Files (x86)\Embarcadero\Studio\20.0\bin\ld-linux.exe: error: cannot find -lz Can't find nothing in google that could help to me. Someone can help to me please? Thanks friends. Link to comment Share on other sites More sharing options...
claudio.piffer Posted January 28, 2021 Share Posted January 28, 2021 Hi jahlxx I suggest you to use this compiler directive {$E}. You can use this code in your dpr sample: {$IFDEF LINUX} {$E so} {$ELSE} {$E dll} {$ENDIF} Link to comment Share on other sites More sharing options...
jahlxx Posted January 28, 2021 Author Share Posted January 28, 2021 Thanks Claudio, but the solution, for me, has been: sudo apt-get install joe wget p7zip-full curl build-essential zlib1g-dev libcurl4-gnutls-dev I was forgetting that step, as the link https://chapmanworld.com/2016/12/29/configure-delphi-and-redhat-or-ubuntu-for-linux-development/ said Thanks anyway. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now