mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] PTXdist: New cmake package (webtoolkit wt)
@ 2013-04-22 14:33 Stranz Jan-Marc
  2013-04-22 15:07 ` Josef Holzmayr
  2013-05-04 10:05 ` Alexander Dahl
  0 siblings, 2 replies; 4+ messages in thread
From: Stranz Jan-Marc @ 2013-04-22 14:33 UTC (permalink / raw)
  To: ptxdist

[-- Attachment #1: Type: text/plain, Size: 3703 bytes --]

Hello,

I'm using "ptxdist-2013.01.0" for building a root filesystem.

Now I'm going to bring a new package into my BSP project.
This package is a "C++ Web Toolkit" ("wt", http://www.webtoolkit.eu/wt/download).
You have to use "cmake" in order to build this package; I'm using "cmake-2.8.2".

I created new rules for that package with 
ptxdist newpackage target
But these rules a based on "autotools" rather than on "cmake".

So I created a new package with
ptxdist newpackage src-cmake-prog
in order to see the build steps for a project based on "cmake".

I have adapted my rule file "wt.make":
.
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

#CMAKE_PROG_CONF_ENV := $(CROSS_ENV)

#
# cmake
#
CMAKE_PROG_CONF_TOOL := cmake
#CMAKE_PROG_CONF_OPT := $(CROSS_CMAKE_USR)
.

Unfortunately I got a lot of error messages:

user1@GInsPTXdist:~/PTXdist/bsp-gins-qreader$ ptxdist prepare wt

------------------
target: wt.prepare
------------------

Re-run cmake no build system arguments
CMake Error at /usr/share/cmake-2.8/Modules/CMakeDetermineSystem.cmake:92 (MESSAGE):
  Could not find toolchain file:
  /home/user1/PTXdist/bsp-gins-qreader/platform-gins-qreader/state/config/toolchain-target.cmake
Call Stack (most recent call first):
  CMakeLists.txt:11 (PROJECT)

CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER
CMake Error: Could not find cmake module file:/home/user1/PTXdist/bsp-gins-qreader/platform-gins-qreader/build-target/wt-3.2.3-build/CMakeFiles/CMakeCCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER
CMake Error: Could not find cmake module file:/home/user1/PTXdist/bsp-gins-qreader/platform-gins-qreader/build-target/wt-3.2.3-build/CMakeFiles/CMakeCXXCompiler.cmake
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
make: *** [/home/user1/PTXdist/bsp-gins-qreader/platform-gins-qreader/state/wt.prepare] Error 1

What should I do?
Is there an application note for a packages based on "cmake"?

Thanks for any tips!

Best regards,
Jan-Marc.
_____________________________
 
Gantner Instruments GmbH
Montafonerstraße 8
A-6780 Schruns
Tel.: +43 5556 77463-200
Fax: +43 5556 77463-300
mailto:jm.stranz@gantner-instruments.com
http://www.gantner-instruments.com
FN 245174a LG Feldkirch, UID ATU57733723
Geschäftsführer: Werner Ganahl, Reinhard Kehrer

Diese E-Mail kann vertrauliche und/oder rechtlich geschützte Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. 
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and delete this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is prohibited


[-- Attachment #2: wt.make --]
[-- Type: application/octet-stream, Size: 2458 bytes --]

# -*-makefile-*-
#
# Copyright (C) 2013 by Jan-Marc Stranz
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_WT) += wt

#
# Paths and names
#
WT_VERSION	:= 3.2.3
WT_MD5		:= 58922ba5d68104880adbe2e022132fb5
WT		:= wt-$(WT_VERSION)
WT_SUFFIX	:= tar.gz
WT_URL		:= http://sourceforge.net/projects/witty/files/wt/3.2.3/$(WT).$(WT_SUFFIX)
WT_SOURCE	:= $(SRCDIR)/$(WT).$(WT_SUFFIX)
WT_DIR		:= $(BUILDDIR)/$(WT)
WT_LICENSE	:= unknown

# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------

#$(WT_SOURCE):
#	@$(call targetinfo)
#	@$(call get, WT)

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

#CMAKE_PROG_CONF_ENV	:= $(CROSS_ENV)

#
# cmake
#
CMAKE_PROG_CONF_TOOL	:= cmake
#CMAKE_PROG_CONF_OPT	:= $(CROSS_CMAKE_USR)

# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------

#$(STATEDIR)/wt.compile:
#	@$(call targetinfo)
#	@$(call world/compile, WT)
#	@$(call touch)

# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------

#$(STATEDIR)/wt.install:
#	@$(call targetinfo)
#	@$(call world/install, WT)
#	@$(call touch)

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/wt.targetinstall:
	@$(call targetinfo)

	@$(call install_init, wt)
	@$(call install_fixup, wt,PRIORITY,optional)
	@$(call install_fixup, wt,SECTION,base)
	@$(call install_fixup, wt,AUTHOR,"Jan-Marc Stranz")
	@$(call install_fixup, wt,DESCRIPTION,missing)

	@$(call install_copy, wt, 0, 0, 0755, $(WT_DIR)/foobar, /dev/null)

	@$(call install_finish, wt)

	@$(call touch)

# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------

#$(STATEDIR)/wt.clean:
#	@$(call targetinfo)
#	@$(call clean_pkg, WT)

# vim: syntax=make

[-- Attachment #3: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] PTXdist: New cmake package (webtoolkit wt)
  2013-04-22 14:33 [ptxdist] PTXdist: New cmake package (webtoolkit wt) Stranz Jan-Marc
@ 2013-04-22 15:07 ` Josef Holzmayr
  2013-05-04 10:05 ` Alexander Dahl
  1 sibling, 0 replies; 4+ messages in thread
From: Josef Holzmayr @ 2013-04-22 15:07 UTC (permalink / raw)
  To: ptxdist

Howdy!

Am 22.04.2013 16:33, schrieb Stranz Jan-Marc:
> I created new rules for that package with
> ptxdist newpackage target
> But these rules a based on "autotools" rather than on "cmake".

There are already some packages which use cmake. Jsut open up 
menuconfig, start a search (the '/'-key) and the enter cmake. I see 
initng, mmpong, shiboken among some others. So if you need cmake 
inspiration, just look at those .make files, either in you local 
ptxdist-xx.xx.x/rules directory or at 
http://git.pengutronix.de/?p=ptxdist.git;a=summary

Basically everything is there, a host cmake gets built and you can use it.

Furthermore, why did you attack via autotools instead of just using 
ptdist newpackage src-cmake-prog for a cmake-aware template? ;)

> Diese E-Mail kann vertrauliche und/oder rechtlich geschützte Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
> This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and delete this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is prohibited

Thanks, but I will do with that email as I desire, including storing for 
the period of time I see fit, forwarding it, or taking information from 
it and distributing it. And I will remind you that this footer is utter 
nonsense every time I receive it through an open mailing list.

Greetz Sepp

_____________________________________________________________
Josef Holzmayr
Dipl-Ing. (FH)
Entwicklung Embedded Devices / Software

Tel.: +49 8444 9204-48>
Fax:  +49 8444 9204-50
holzmayr@rsi-elektrotechnik.de

R-S-I Elektrotechnik GmbH & Co. KG
Woelkestrasse 11
D-85301 Schweitenkirchen
www.rsi-elektrotechnik.de
_____________________________________________________________
Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
USt-IdNr.: DE 128592548



-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] PTXdist: New cmake package (webtoolkit wt)
  2013-04-22 14:33 [ptxdist] PTXdist: New cmake package (webtoolkit wt) Stranz Jan-Marc
  2013-04-22 15:07 ` Josef Holzmayr
@ 2013-05-04 10:05 ` Alexander Dahl
  1 sibling, 0 replies; 4+ messages in thread
From: Alexander Dahl @ 2013-05-04 10:05 UTC (permalink / raw)
  To: ptxdist

Hei hei, 
Am 2013-04-22 16:33, schrieb Stranz Jan-Marc:
> I created new rules for that package with 
> ptxdist newpackage target
> But these rules a based on "autotools" rather than on "cmake".

Go like this but just change the stuff in the .in and .make rule.

> What should I do?
> Is there an application note for a packages based on "cmake"?

Not to my knowledge, but we use cmake for all our packages. I can give
you some hints.

First: include a line 

  select HOST_CMAKE

in your rules/foo.in so you are sure you can use cmake for build.

In your make file you can go with the default stages, but you have to
adapt the prepare stage. Just set

  FOO_CONF_TOOL := cmake

and give it a try. You can pass additional options for example with

  FOO_CONF_OPT += -DSOME_OPTION_IN_YOUR_CMAKE_LIST_FILE:STING="foobar"

That's all, basically, if your CMake based project does not do any
weird things.

HTH & Greets
Alex

-- 
»With the first link, the chain is forged. The first speech censured,
the first thought forbidden, the first freedom denied, chains us all
irrevocably.« (Jean-Luc Picard, quoting Judge Aaron Satie)
*** GnuPG-FP: 02C8 A590 7FE5 CA5F 3601  D1D5 8FBA 7744 CC87 10D0 ***

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ptxdist] PTXdist: New cmake package (webtoolkit wt)
@ 2013-04-22 14:05 Stranz Jan-Marc
  0 siblings, 0 replies; 4+ messages in thread
From: Stranz Jan-Marc @ 2013-04-22 14:05 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 3747 bytes --]

Hello,

I'm using "ptxdist-2013.01.0" for building a root filesystem.

Now I'm going to bring a new package into my BSP project.
This package is a "C++ Web Toolkit" ("wt", http://www.webtoolkit.eu/wt/download).
You have to use "cmake" in order to build this package; I'm using "cmake-2.8.2".

I created new rules for that package with
ptxdist newpackage target
But these rules a based on "autotools" rather than on "cmake".

So I created a new package with
ptxdist newpackage src-cmake-prog
in order to see the build steps for a project based on "cmake".

I have adapted my rule file "wt.make":
...
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

#CMAKE_PROG_CONF_ENV := $(CROSS_ENV)

#
# cmake
#
CMAKE_PROG_CONF_TOOL := cmake
#CMAKE_PROG_CONF_OPT := $(CROSS_CMAKE_USR)
...

Unfortunately I got a lot of error messages:

user1@GInsPTXdist:~/PTXdist/bsp-gins-qreader$ ptxdist prepare wt

------------------
target: wt.prepare
------------------

Re-run cmake no build system arguments
CMake Error at /usr/share/cmake-2.8/Modules/CMakeDetermineSystem.cmake:92 (MESSAGE):
  Could not find toolchain file:
  /home/user1/PTXdist/bsp-gins-qreader/platform-gins-qreader/state/config/toolchain-target.cmake
Call Stack (most recent call first):
  CMakeLists.txt:11 (PROJECT)

CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER
CMake Error: Could not find cmake module file:/home/user1/PTXdist/bsp-gins-qreader/platform-gins-qreader/build-target/wt-3.2.3-build/CMakeFiles/CMakeCCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER
CMake Error: Could not find cmake module file:/home/user1/PTXdist/bsp-gins-qreader/platform-gins-qreader/build-target/wt-3.2.3-build/CMakeFiles/CMakeCXXCompiler.cmake
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
make: *** [/home/user1/PTXdist/bsp-gins-qreader/platform-gins-qreader/state/wt.prepare] Error 1

What should I do?
Is there an application note for a packages based on "cmake"?


Thanks for any tips!



Best regards,
Jan-Marc.
_____________________________

Gantner Instruments GmbH
Montafonerstraße 8
A-6780 Schruns
Tel.: +43 5556 77463-200
Fax: +43 5556 77463-300
mailto:jm.stranz@gantner-instruments.com
http://www.gantner-instruments.com<http://www.gantner-instruments.com/>
FN 245174a LG Feldkirch, UID ATU57733723
Geschäftsführer: Werner Ganahl, Reinhard Kehrer

Diese E-Mail kann vertrauliche und/oder rechtlich geschützte Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und löschen Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and delete this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is prohibited


[-- Attachment #1.2: Type: text/html, Size: 15692 bytes --]

[-- Attachment #2: wt.make --]
[-- Type: application/octet-stream, Size: 2458 bytes --]

# -*-makefile-*-
#
# Copyright (C) 2013 by Jan-Marc Stranz
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_WT) += wt

#
# Paths and names
#
WT_VERSION	:= 3.2.3
WT_MD5		:= 58922ba5d68104880adbe2e022132fb5
WT		:= wt-$(WT_VERSION)
WT_SUFFIX	:= tar.gz
WT_URL		:= http://sourceforge.net/projects/witty/files/wt/3.2.3/$(WT).$(WT_SUFFIX)
WT_SOURCE	:= $(SRCDIR)/$(WT).$(WT_SUFFIX)
WT_DIR		:= $(BUILDDIR)/$(WT)
WT_LICENSE	:= unknown

# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------

#$(WT_SOURCE):
#	@$(call targetinfo)
#	@$(call get, WT)

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

#CMAKE_PROG_CONF_ENV	:= $(CROSS_ENV)

#
# cmake
#
CMAKE_PROG_CONF_TOOL	:= cmake
#CMAKE_PROG_CONF_OPT	:= $(CROSS_CMAKE_USR)

# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------

#$(STATEDIR)/wt.compile:
#	@$(call targetinfo)
#	@$(call world/compile, WT)
#	@$(call touch)

# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------

#$(STATEDIR)/wt.install:
#	@$(call targetinfo)
#	@$(call world/install, WT)
#	@$(call touch)

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/wt.targetinstall:
	@$(call targetinfo)

	@$(call install_init, wt)
	@$(call install_fixup, wt,PRIORITY,optional)
	@$(call install_fixup, wt,SECTION,base)
	@$(call install_fixup, wt,AUTHOR,"Jan-Marc Stranz")
	@$(call install_fixup, wt,DESCRIPTION,missing)

	@$(call install_copy, wt, 0, 0, 0755, $(WT_DIR)/foobar, /dev/null)

	@$(call install_finish, wt)

	@$(call touch)

# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------

#$(STATEDIR)/wt.clean:
#	@$(call targetinfo)
#	@$(call clean_pkg, WT)

# vim: syntax=make

[-- Attachment #3: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-05-04 10:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-22 14:33 [ptxdist] PTXdist: New cmake package (webtoolkit wt) Stranz Jan-Marc
2013-04-22 15:07 ` Josef Holzmayr
2013-05-04 10:05 ` Alexander Dahl
  -- strict thread matches above, loose matches on Subject: below --
2013-04-22 14:05 Stranz Jan-Marc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox