volv / cosmographia

Automatically exported from code.google.com/p/cosmographia
0 stars 0 forks source link

build failure #21

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. checkout
2. build

What is the expected output? What do you see instead?

Error in "thirdparty/Eigen/src/Array/Functors.h"

What version of the product are you using? On what operating system?

trunk on linux/ubuntu (latest) with qt sdk (latest)

Please provide any additional information below.

g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DGLEW_STATIC 
-DEIGEN_USE_NEW_STDVECTOR -DQJSON_EXPORT= -DQT_NO_DEBUG -DQT_DECLARATIVE_LIB 
-DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB 
-I../QtSDK/Desktop/Qt/474/gcc/mkspecs/linux-g++-64 -I../cosmographia 
-I../QtSDK/Desktop/Qt/474/gcc/include/QtCore 
-I../QtSDK/Desktop/Qt/474/gcc/include/QtNetwork 
-I../QtSDK/Desktop/Qt/474/gcc/include/QtGui 
-I../QtSDK/Desktop/Qt/474/gcc/include/QtOpenGL 
-I../QtSDK/Desktop/Qt/474/gcc/include/QtDeclarative 
-I../QtSDK/Desktop/Qt/474/gcc/include -I../cosmographia/thirdparty/glew 
-I../cosmographia/thirdparty/curveplot -I../cosmographia/thirdparty 
-I/usr/X11R6/include -I. -I../cosmographia -I. -o GlareOverlay.o 
../cosmographia/thirdparty/vesta/GlareOverlay.cpp
In file included from ../cosmographia/thirdparty/Eigen/Array:28:0,
                 from ../cosmographia/thirdparty/Eigen/Geometry:8,
                 from ../cosmographia/thirdparty/vesta/Entity.h:19,
                 from ../cosmographia/thirdparty/vesta/Material.h:14,
                 from ../cosmographia/thirdparty/vesta/RenderContext.h:16,
                 from ../cosmographia/thirdparty/vesta/GlareOverlay.h:14,
                 from ../cosmographia/thirdparty/vesta/GlareOverlay.cpp:11:
../cosmographia/thirdparty/Eigen/src/Array/Functors.h:242:8: error: partial 
specialization of ‘Eigen::ei_functor_traits<std::greater<T> >’ after 
instantiation of ‘Eigen::ei_functor_traits<std::greater<float> >’ 
[-fpermissive]
../cosmographia/thirdparty/Eigen/src/Array/Functors.h:246:8: error: partial 
specialization of ‘Eigen::ei_functor_traits<std::less<T> >’ after 
instantiation of ‘Eigen::ei_functor_traits<std::less<float> >’ 
[-fpermissive]
make: *** [GlareOverlay.o] Error 1
make: Leaving directory 
`/home/jdp/src/cosmographia-build-desktop-Desktop_Qt_4_7_4_for_GCC__Qt_SDK__Rele
ase'
The process "/usr/bin/make" exited with code 2.
Error while building project cosmographia (target: Desktop)
When executing build step 'Make'

Original issue reported on code.google.com by john.douglas.pritchard on 18 Nov 2011 at 10:08

GoogleCodeExporter commented 8 years ago
If I go under cmake and edit the Makefile to add "-fpermissive" to CXXFLAGS, 
this error becomes a warning and the build continues

Original comment by john.douglas.pritchard on 19 Nov 2011 at 5:47

GoogleCodeExporter commented 8 years ago
is there a case sensitive filesystem issue? 
http://lists.trolltech.com/qt-interest/2004-05/msg00009.html

Original comment by john.douglas.pritchard on 19 Nov 2011 at 6:23

GoogleCodeExporter commented 8 years ago
Added "QMAKE_CXXFLAGS += -fpermissive" to Cosmographia.pro to fix the build 
error

Original comment by john.douglas.pritchard on 19 Nov 2011 at 6:31

GoogleCodeExporter commented 8 years ago
:-1: error: No rule to make target `src/Main/main.cpp', needed by `main.o'.  
Stop.

Original comment by john.douglas.pritchard on 19 Nov 2011 at 6:38

GoogleCodeExporter commented 8 years ago
csfs error: pro file:15: MAIN_PATH = src/main #not src/Main

Original comment by john.douglas.pritchard on 19 Nov 2011 at 6:42

GoogleCodeExporter commented 8 years ago
(and we're done.. builds & runs on linux)

Original comment by john.douglas.pritchard on 19 Nov 2011 at 6:57

GoogleCodeExporter commented 8 years ago
MAIN_PATH = src/Main 
still not fixed at of 1 hour age svn update 616 

Original comment by John.K.V...@gmail.com on 23 Nov 2011 at 10:26

GoogleCodeExporter commented 8 years ago
The Eigen error *might* be fixed in the 2.0.16 version of the Eigen library. 
This is preferred to adding -fpermissive. I will take care of updating Eigen.

Original comment by clau...@gmail.com on 24 Nov 2011 at 5:05

GoogleCodeExporter commented 8 years ago

Original comment by clau...@gmail.com on 24 Nov 2011 at 5:05

GoogleCodeExporter commented 8 years ago
Fixed case of src/main in revision #617

Original comment by clau...@gmail.com on 24 Nov 2011 at 5:08