Ticket #72 (assigned enhancement)

Opened 4 years ago

Last modified 4 years ago

Building libyaml with CMake

Reported by: clive.crous@… Owned by: xi
Priority: low Component: libyaml
Severity: minor Keywords:
Cc:

Description

I have created a  cmake "meta-build" file for creating project files for building libyaml.

I have tested the attached cmake file with:

  • Visual Studio 7
  • MinGW Makefiles

It should work fine with Unix Makefiles, KDevelop etc as well (I will test when I get back home in front of a linux box and add a comment here with the results).

I've uploaded the  CMakeLists file to my  mini-libyaml branch for the purpose of getting this working.

-- Clive Crous

Attachments

CMakeLists.txt Download (1.2 KB) - added by clive.crous@… 4 years ago.
CMakeLists.txt for building libyaml with cmake

Change History

Changed 4 years ago by clive.crous@…

  • priority changed from normal to low
  • component changed from pyyaml to libyaml
  • severity changed from normal to minor

Oops accidentally chose the wrong component.

Changed 4 years ago by clive.crous@…

More than 2 months have past since I posted this :(

Anyone alive?

Changed 4 years ago by clive.crous@…

CMakeLists.txt for building libyaml with cmake

Changed 4 years ago by clive.crous@…

My server that I linked to above no longer exists so I've attached the CMake files here.

Changed 4 years ago by xi

  • status changed from new to assigned

Thanks for contribution, Clive. I'll try to incorporate it to the next release of libyaml.

Changed 4 years ago by anonymous

Confirmed build with cmake and MinGW under WinXP, but only when I unchecked BUILD_SHARED_LIBS in the cmake GUI.

With the BUILD_SHARED_LIBS checked, cmake will generate a makefile, but gcc fails miserably with a internal compiler error.

Also, when I attempted to build the example (w/ libyaml.a), there are still undefined reference to, for example, _impyaml_parser_initialize, among others.

Add/Change #72 (Building libyaml with CMake)

Author


E-mail address and user name can be saved in the Preferences.


Change Properties
<Author field>
Action
as assigned
as The resolution will be set. Next status will be 'closed'
to The owner will change from xi. Next status will be 'new'
 
Note: See TracTickets for help on using tickets.