Syllable Forum Index Syllable
Syllable Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Compiling software on Syllable

 
Post new topic   Reply to topic    Syllable Forum Index -> Syllable Desktop
View previous topic :: View next topic  
Author Message
dalmemail



Joined: 04 May 2014
Posts: 23

PostPosted: Thu Aug 25, 2016 9:59 am    Post subject: Compiling software on Syllable Reply with quote

Hi!

I have installed make and GCC on my Syllable Desktop 0.6.7 and when I tried to compile my software I get this error:

[code]fatal error: stdlib.h: No such file or directory[/code]

What is the problem with stdlib.h?
Back to top
View user's profile Send private message
Kaj
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 2203
Location: Friesland

PostPosted: Fri Aug 26, 2016 6:43 am    Post subject: Reply with quote

Did you install the development files pack?
Back to top
View user's profile Send private message Visit poster's website
dalmemail



Joined: 04 May 2014
Posts: 23

PostPosted: Fri Aug 26, 2016 9:01 am    Post subject: Reply with quote

[quote="Kaj"]Did you install the development files pack?[/quote]

Yes, I followed the guide from syllable.org.

[img]https://pbs.twimg.com/media/Cqy0RZdXgAAqjsl.jpg[/img]
Back to top
View user's profile Send private message
Kaj
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 2203
Location: Friesland

PostPosted: Mon Aug 29, 2016 5:39 am    Post subject: Reply with quote

Which guide do you mean? Did you follow the instructions on the download page?
Back to top
View user's profile Send private message Visit poster's website
dalmemail



Joined: 04 May 2014
Posts: 23

PostPosted: Mon Aug 29, 2016 9:06 am    Post subject: Reply with quote

This guide [url]http://development.syllable.org/documentation/introduction/part-1.html[/url]
Back to top
View user's profile Send private message
Kaj
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 2203
Location: Friesland

PostPosted: Tue Aug 30, 2016 9:26 am    Post subject: Reply with quote

That is about the Developer's Delight pack and others that are independent of the Syllable version. You need to follow the installation instructions for your Syllable version; step 9 here:

http://web.syllable.org/pages/get-Syllable.html#installation-CD
Back to top
View user's profile Send private message Visit poster's website
dalmemail



Joined: 04 May 2014
Posts: 23

PostPosted: Tue Aug 30, 2016 10:39 am    Post subject: Reply with quote

Thank you. The software I'm trying to compile on Syllable uses curl/curl.h header. I saw that I have it on my Syllable system but when I tried to compile gcc gave me some fails:

lib/send_status.c:36: error: 'CURLOPT_USERNAME' undeclared (first use in this function)

I get the same fail in all the .c files that uses curl.h. That software compiles in GNU/Linux and FreeBSD without fails or warnings.
Back to top
View user's profile Send private message
Kaj
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 2203
Location: Friesland

PostPosted: Wed Aug 31, 2016 9:05 am    Post subject: Reply with quote

Is your software compatible with the older cURL version in Syllable?

Is CURLOPT_USERNAME defined in curl.h?
Back to top
View user's profile Send private message Visit poster's website
dalmemail



Joined: 04 May 2014
Posts: 23

PostPosted: Wed Aug 31, 2016 2:15 pm    Post subject: Reply with quote

I don't know about an old version of Curl in Syllable. Maybe I can define it or upgrade curl on Syllable (is it possible?)
Back to top
View user's profile Send private message
dalmemail



Joined: 04 May 2014
Posts: 23

PostPosted: Thu Sep 01, 2016 9:51 am    Post subject: Reply with quote

Well, I don't know why I can use CURLOPT_USERNAME and CURLOPT_PASSWORD on Syllable-curl because that should be defined in curl.h, but I saw that CURLOPT_USERPWD is defined on Syllable-curl so I have rewrited the function that needed CURLOPT_USERNAME and CURLOPT_PASSWORD to use CURLOPT_USERPWD.

Thanks for help me.
Back to top
View user's profile Send private message
Kaj
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 2203
Location: Friesland

PostPosted: Thu Sep 01, 2016 2:46 pm    Post subject: Reply with quote

This is quite likely a cURL version issue. It's not hard to compile a new cURL on Syllable. If you use Builder, you usually only have to update the version number in the build recipe.

On the other hand, since you are making generic software, it makes sense to leave your Syllable adaptations in your source, so people can use it on standard Syllable installations.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Syllable Forum Index -> Syllable Desktop All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group